From gyre
Use when the user supplies a natural-language UI component request that needs to be turned into a precise component specification. Fills the spec by inference, asking the director a question only for genuine UI branches that pass Principle 2's gate (in practice the interaction-model variant). Writes a Markdown spec to docs/gyre/specs/components/<kebab-name>.md. Component-only in this iteration; classifier recognizes page and design-guide requests but the skill terminates without writing a file in those cases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gyre:clarify-componentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A skill that turns an under-specified natural-language UI component request into a precise component specification, then writes the result to a Markdown file. The skill fills every dimension of the spec by inference and authors the result directly; it asks the director a question only when a decision is a genuine UI branch that passes Principle 2's two gate conditions at once (see `references/d...
A skill that turns an under-specified natural-language UI component request into a precise component specification, then writes the result to a Markdown file. The skill fills every dimension of the spec by inference and authors the result directly; it asks the director a question only when a decision is a genuine UI branch that passes Principle 2's two gate conditions at once (see references/dimensions.md, The governing rule: the gate is the law). In practice this reduces almost always to the interaction-model variant.
/clarify-component "<natural-language request>"
The natural-language request may be supplied as an argument. If it is omitted, the AI asks for it as the first message of dialogue.
A single Markdown file at:
docs/gyre/specs/components/<kebab-name>.md
The output path is not user-overridable in this iteration. See references/output-format.md for the file's full structure.
Questions, prompts, multiple-choice presentations, and any follow-up messages delivered to the user are in the user's language, inferred from the user's first message. Everything else — the spec body in its entirety (Summary, Purpose, descriptions, rationale, edge cases, code-bound string literals), and any internal AI processing — is in English without exception. The skill body and reference files are written in English. The output Markdown file's section headings and content are both in English; the AI translates the user's natural-language answers into English at spec write time.
The skill executes eleven steps in order. Steps 3–9 are the seven dimensions documented in references/dimensions.md, governed by the gate rule (The governing rule: the gate is the law) — filled by inference by default, asked only when the gate is satisfied. (Classify = 1, Risk read = 2, the seven dimensions = 3–9, Self-check = 10, Write spec = 11.)
Determine whether the request describes a single UI component, a page or layout, or a design guide.
Estimate the three risk axes documented in references/risk-signals.md from the request text alone. This estimate is never shown to the user and never written to the output file. It calibrates the depth of inference in subsequent dimensions and the self-check threshold (Step 10), per references/risk-signals.md.
Run the Interaction model dimension as documented in references/dimensions.md. It activates when the requested component class admits more than one legitimate interaction model. Once activated, apply the gate: infer the variant when it is inferable from the intent; otherwise ask the single variant question. This is the one routinely-asked dimension.
Run the Composition dimension as documented in references/dimensions.md. It activates only when the component is divisible (several namable parts); for an atomic component it stays inactive and no ## Composition section is written. When ambiguous, default to inactive. Filled by inference; no director question. The units are stated as capabilities only — generate resolves which catalog component/primitive provides each, and whether the result is a molecule or organism.
Fill the What dimension by inference: purpose, usage scenarios, naming, and props. The inferred name establishes <kebab-name>, used as the output filename. No director question.
Fill the Look dimension by inference: visual hierarchy, spacing, responsive behavior, token overrides/suggestions. Design-guide presence is generate's discovery; clarify does not ask about it. No director question.
Fill the How dimension by inference: states, interactions, accessibility, edge cases. Depth is calibrated by the risk read. The three sub-sections capturing observable behavior (## How → Interactions, ## How → Edge cases, ## How → Accessibility) follow the requirements-only voice rule; see references/dimensions.md and Step 10 Self-check.
Fill the Data / Content dimension by inference. The risk read calibrates inference depth (full vs. one-line schema), not whether the dimension is filled. No director question.
Infer and record at least one non-goal. A non-goal escalates to a question only when it passes the gate (rare).
Evaluate, with no question asked to the user unless a gated escalation is warranted:
## How → Interactions, ## How → Edge cases, and ## How → Accessibility read as a requirement rather than an implementation pattern? Apply the three tests defined in references/dimensions.md (Note on requirements-only voice for ## How) and references/output-format.md (## How voice rule): the Outcome test, the Procedural test, and the Mechanism citation test. When an AI-authored bullet trips any test, rewrite it as the underlying requirement. Route prose to ## Implementation hints only when the director's original intent explicitly stated the pattern (with the director's rationale).The ambiguity threshold tightens with risk: a high-risk component requires a lower ambiguity tolerance than a low-risk one to pass self-check.
If any check finds remaining ambiguity or a voice-rule violation, the AI deepens its inference (or, for a genuine gated UI branch, asks the one permitted question) and re-runs self-check. Repeat until no ambiguity or voice-rule violation remains. There is no iteration cap.
Write the Markdown file at docs/gyre/specs/components/<kebab-name>.md per references/output-format.md. If a file already exists at the target path, do not overwrite silently — tell the user and ask whether to overwrite or pick a different name.
After writing, tell the user the file path so they can review.
Inference-first. The AI fills every dimension by inference and authors it into the spec. A director question is asked only when the gate is satisfied (almost always the Interaction model variant). Most invocations therefore involve zero or one question total.
Sequential discipline for the rare question. When a question is asked, it is delivered via the AskUserQuestion tool, one call per turn (see references/dimensions.md Question delivery). If a gated escalation co-occurs with the Interaction model question, ask Interaction model first.
Absorbing answers richer than asked. If the director volunteers information beyond what was asked (or in the original request), absorb it and let it override the corresponding inference.
For the rare gated question, every AskUserQuestion option is a proposed default the director can accept by selecting it. If the director's "Other" reply is equivalent to "I don't know," widen the candidate set or offer concrete examples in option descriptions; acceptance of a proposed default is a resolved decision, not a deferral. The skill never writes a spec containing an unanswered question; there is no Open Questions section.
The spec Markdown files produced by this skill are formal documents. They must not:
The only informal vocabulary they may use is vocabulary belonging to the AI Harness itself.
references/dimensions.md — The governing rule (the gate is the law), definitions, and inference sources for the seven dimensions.references/risk-signals.md — Three risk axes, the heuristic guide for assigning low/medium/high, and the context-announcement phrasing rules.references/output-format.md — Front matter schema and the Markdown body structure for the spec.The AI reads these reference files at invocation time and uses them to drive dialogue and rendering. None of their contents are duplicated in this file.
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