From gyre
Use when the user wants to prepare a host project for the AI Harness's component generation by installing the external stack skills it depends on. Reads the stack-skills manifest, detects which skills are already installed in the host project, installs the missing ones via the skills CLI, and reports the result. Invoked as /setup with no arguments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gyre:setupThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A skill that installs into the current host project the external stack skills
A skill that installs into the current host project the external stack skills that the AI Harness's component-generation pipeline depends on. It reads a manifest of required stack skills, installs any that are missing, and reports what it did.
/setup
The skill takes no arguments. It operates on the current working directory, which is treated as the host project root.
External stack skills are installed individually, as skills, into the host
project's skills directory via the skills CLI — the current CLI places the
Claude Code agent's skills under .claude/skills/. They are never installed as
plugins. Installing a whole plugin to obtain one stack skill would
pull unrelated skills, agents, and commands into the host project; skill-level
installation matches the Harness's per-skill dependency exactly. This is a
standing constraint, not a deferred feature.
The skill body and the manifest are written in English. At runtime the AI conducts any dialogue and delivers the final report in the user's language, inferred from the user's messages.
The external stack skills to install are declared in
references/stack-skills.md. Each entry has four fields — name, source,
skill, purpose — documented in that file. The AI reads the manifest at
invocation time; its contents are not duplicated here.
The skill executes the following six steps in order.
Check that the current working directory contains a package.json file. If it
does not, tell the user that setup must be run from a project root, and
terminate without installing anything.
Read references/stack-skills.md and parse every row of its Skills table into
the four fields. This is the list of external stack skills to ensure are
installed in the host project.
Inspect the host project's package.json:
packageManager field, derive the runner from the named manager:
pnpm → pnpm dlx, bun → bunx --bun, npm or yarn → npx.packageManager field, infer from the lockfile present at the
project root: pnpm-lock.yaml → pnpm dlx; bun.lockb or bun.lock →
bunx --bun; otherwise → npx.The resulting runner string is used to invoke the skills CLI in step 5.
For each manifest entry, evaluate two signals against the host project:
SKILL.md, in EITHER of the two locations the skills CLI may use: at
.claude/skills/<name>/SKILL.md OR at .agents/skills/<name>/SKILL.md.
Both are checked because a host project may have been set up with different
skills CLI versions or agent selectors — the current CLI installs the
Claude Code agent's skills under .claude/skills/, but .agents/skills/ is
also a valid installed location.skills-lock.json exists at the project root and contains
the key <name> under its skills object.Classify the entry:
incomplete and missing entries are both installation targets for step 5.
installed entries are skipped.
For each installation target, run this command from the host project root:
<runner> skills add <source> --agent claude-code --yes
<runner> is the runner string from step 3.<source> is the entry's source field.skill field is not —, append --skill <skill> to the
command.--agent claude-code installs the skill for Claude Code, the agent the
Harness runs under.--yes skips the CLI's interactive confirmation prompts so the command runs
unattended.Process entries independently: if one command fails, capture its error output, record the entry as failed, and continue with the remaining entries. Do not abort the run on a single failure.
For each entry that was an installation target, re-check the two detection signals from step 4. The entry is verified when both now hold.
Report to the user, in their language:
skills CLI error output included.If any entry failed or did not verify, the report says so plainly. A failed run is never described as a success.
This skill does NOT:
skills CLI itself — it is invoked through the host project's
package runner, never installed.components.json, dependencies, and build
configuration are out of scope.references/stack-skills.md — the manifest of external stack skills the
component-generation pipeline depends on. Read at invocation time.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub calelix/gyre --plugin gyre