/hyperflow:specfrom hyperflow
Guides structured design exploration: triages ambiguous requests, proposes 2-3 approaches, walks design sections section-by-section. Auto-chains into /hyperflow:scope on approval.
Ships in hyperflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This phase is thinking, not building. No code until the user approves the design. On approval, the chain advances to scope → dispatch. The user picks the advancement mode at Step 0.
This skill drives Layer 0.5 (Task Triage) and Layer 4 (Brainstorming/Spec) from the doctrine. Multi-level review (L1–L5) runs later during /hyperflow:dispatch per the triage's chosen flow profile.
Every substantive step dispatches at least one Agent. The orchestrator never does "real" work inline — it only coordinates dispatches and prints status.
| Step | Worker tier | Thinking tier | Notes |
|---|---|---|---|
| 0 — Chain mode | — | — | AskUserQuestion only (exempt) |
| 1 — Triage | — | Classifier (Opus) | Pure thinking work |
| 2 — Context | Searcher (Sonnet) | Reviewer (Opus) verifies coverage | Both tiers per step |
| 3 — Multi-dim analysis | — | Analyst (Opus) produces 6-dim brief | Pure thinking |
| 4 — Smart questions | — | — | AskUserQuestion only (exempt) |
| 5 — Requirement synthesis | Writer (Sonnet) drafts | Reviewer (Opus) verifies fidelity | Both tiers |
| 6 — Propose approaches | Writer (Sonnet) drafts 2–3 | Reviewer (Opus) probes for missing alternatives | Both tiers |
| 7 — Design sections | Writer (Sonnet) drafts each section | Reviewer (Opus) checks each section before user sees it | Both tiers · per section |
| 8 — Spec output | Writer (Sonnet) writes file | Reviewer (Opus) final spec sanity check | Both tiers |
| 9 — Hand off | — | — | Skill tool invocation (exempt) |
Substantive steps = 1, 2, 3, 5, 6, 7, 8. Each appears in the usage summary.
| Gate | When | Format |
|---|---|---|
| Chain mode | Step 0, once per chain | AskUserQuestion — auto / manual |
| Design section approval | Step 7, after each of 5 design sections | AskUserQuestion — approve / revise |
Phase advance (if manual mode) | Step 9, before invoking scope | AskUserQuestion — continue / stop |
This is a structural gate per DOCTRINE rule 8. It MUST fire every time the skill is invoked directly. "No clarifying questions" / "auto-pilot" / "always-on" / any other autonomy directive does NOT skip it. The agent MUST AskUserQuestion here — defaulting to auto without asking is a doctrine violation.
If invoked with a chain-mode=<auto|manual> arg (from a prior skill in the chain), skip this step — the previous chain-starter already asked.
Otherwise, before any research, triage, or analysis, ask via AskUserQuestion. Per DOCTRINE rule 8, the recommended option goes first with (Recommended):
How should I advance through the chain after each phase?
Auto (Recommended) — chain forward through spec → scope → dispatch with no gates.
Fewer interruptions, faster end-to-end.
Manual — pause between phases and ask before advancing.
More control, more confirmations.
Auto is the recommended default because most users invoking a chain-starter want momentum; Manual exists for high-risk or exploratory work. Wait for the user's answer. Do not proceed without it. Save the chosen mode and propagate via args: "chain-mode=<mode>".
If the agent cannot present AskUserQuestion (e.g., headless mode), it should print an error and stop — never silently default.
Agents — Classifier (Opus, thinking-tier).
Dispatch a thinking-tier triage call per task-triage.md. The Classifier produces { types[], complexity, risk, scope, ambiguity, flow, personas[] } JSON. The classification drives:
ambiguity 0.0–0.5 → light: 2 questions0.5–0.8 → standard: 3 questions0.8–1.0 → deep: 4–5 questionsdispatch phase — fast, standard, deep, research, creative, or scientific (see flow-profiles.md)Persist the triage output and propagate it forward through chain-mode=<mode> triage=<base64-json> args. Print:
**Classifier** — triaging request
Triage — types: [<types>] · flow: <profile> · ambiguity: <score>
Agents — Searcher (Sonnet) ⇒ Reviewer (Opus).
Searcher — mapping context relevant to <idea> (worker). Find existing code, patterns, similar features. Do not ask the user what you can find in the code.**Reviewer** — verifying context coverage (thinking-tier). Confirm the Searcher hit the relevant subsystems; if gaps remain, redispatch the Searcher with the missing scope before moving on.Agents — Analyst (Opus, thinking-tier).
Dispatch **Analyst** — 6-dimension exploration with the request + context from Step 2. The Analyst produces a brief covering:
The Analyst flags which dimensions have unknowns the user must resolve. Those unknowns become the Step 4 question set.
AskUserQuestion — MANDATORY · floor 2)Use the AskUserQuestion tool. Never plain text questions. Ask about unknowns from step 3.
Hard floor: every spec run asks at least 2 questions, regardless of how confident the triage was. The two minimum questions give the user a structural place to redirect before any decomposition runs. Question budget:
Never stack more than 2 questions per AskUserQuestion call.
Every option list MUST mark a recommended choice (DOCTRINE rule 8). The Analyst's leading hypothesis from Step 3 goes first with (Recommended); alternatives follow. The user can pick anything — the marker is guidance, not a default.
Question categories (in order — pick the first N for depth N):
If the request feels "completely clear" — ask anyway. The first two questions exist so the user can spot a misalignment the agent missed.
Example structure (DON'T omit the recommendation marker):
? Where should auth state live?
Server sessions (Recommended) — revocable, refreshable, fits this project's DB conventions
JWT stateless — simpler, no DB, harder to revoke
Agents — Writer (Sonnet) ⇒ Reviewer (Opus).
Writer — drafting requirement synthesis with the user's answers from Step 4. The Writer produces a one-paragraph restatement: "So the goal is X, with constraints Y, excluding Z."**Reviewer** — verifying requirement fidelity to confirm the synthesis matches what the user actually said (catches paraphrase drift).AskUserQuestion before moving on.Agents — Writer (Sonnet) ⇒ Reviewer (Opus).
Writer — drafting 2–3 approaches with the synthesized requirements. The Writer produces, for each approach:
**Reviewer** — probing for missing alternatives to challenge whether the proposed set covers the design space (catches anchor bias). If gaps surface, redispatch the Writer with the gap.AskUserQuestion.Agents per section — Writer (Sonnet) ⇒ Reviewer (Opus) ⇒ user approval.
For each of the 5 sections below:
Writer — drafting section: <name> with the chosen approach + prior approved sections.**Reviewer** — reviewing section: <name> (Opus thinking-tier) to validate coherence, surface unstated assumptions, and check against the multi-dim analysis from Step 3.AskUserQuestion: approve / revise.Sections (always in this order):
Agents — Writer (Sonnet) ⇒ Reviewer (Opus).
Writer — writing spec to .hyperflow/specs/<slug>.md for non-trivial features (3+ files / multiple subsystems). For simpler designs, the Writer composes an inline summary instead.**Reviewer** — final spec sanity check to verify every approved section is captured and no contradiction exists between sections./hyperflow:scopeOnce the design is approved:
If chain-mode=auto — immediately invoke Skill with skill: scope and args: "chain-mode=auto <spec-ref>". Print:
Spec complete — design approved
Auto-chaining to /hyperflow:scope…
If chain-mode=manual — ask via AskUserQuestion: "Spec done. Continue to /hyperflow:scope?" → yes / no / stop. On yes, invoke Skill with skill: scope and args: "chain-mode=manual <spec-ref>". Print:
Spec complete — design approved
Awaiting your go-ahead for /hyperflow:scope…
In both modes, the scope skill decomposes the design into worker batches; dispatch then picks up the task file (respecting the same chain mode).
AskUserQuestion callchain-mode=auto — that was already answered at Step 0After design approval:
.hyperflow/memory/decisions.md with tags.hyperflow/memory/pitfalls.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-spec, brainstorming, architecture-design, task-triage
npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin hyperflow8 skills in this plugin
/auditUse when the user asks for a code review, "review this change", "review my PR", "review the diff", or wants quality/spec/security/perf feedback on recent changes. Triggers a multi-level review with a thinking-tier reviewer agent. Standalone — does not auto-chain./cacheUse when the user wants to view, search, add, edit, prune, archive, or clear hyperflow memory entries — phrases like "show memory", "search memory for X", "clear memory", "what does hyperflow remember about Y", or any `hyperflow: memory *` invocation./deployUse when the user says "ship it", "ready to push", "release", "deploy", or wants pre-push gates (lint, typecheck, build, tests) plus commit/release/push in one flow. Standalone — never auto-invoked; push always requires explicit confirmation.Other plugins' skills for the same job