/steepy-formula:brainstormfrom steepy-formula
Guides an interactive brainstorming session to refine an idea into a structured spec file. Asks clarifying questions, proposes approaches, and writes the final spec as a gitignored work artifact.
Ships in steepy-formula. 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.
Manual phase boundaries use this literal shape (the envelope is chat text, never a file):
handoff: steepy-formula/v1
next: <phase>
required: <role/path map or none>
onDemand: <role/path map or none>
All four keys are mandatory and occur once, in that order. Use explicit none for an empty map.
The phase input role maps are exact and unique: brainstorm has required: none, onDemand: none;
plan has required spec, onDemand: none; Gear-2 direct implement has required spec,
onDemand: none; plan-backed implement has required plan, on-demand source-spec; either
implement alternative additionally authorizes exact progress-ledger and task-results on demand
when resuming;
regular Gear-3 review has required criteria, task-results, and branch-diff, onDemand: none;
fresh loop-engineer has required goal, onDemand: none; resume may additionally authorize exact
loop-ledger on demand; Gear-4 review has required goal and loop-ledger, onDemand: none.
Thus Gear-2 brainstorm → implement maps spec; brainstorm → plan maps spec; plan → implement
maps plan, source-spec; Gear-3 implement → review maps criteria, task-results, branch-diff;
loop-engineer → review maps goal, loop-ledger. The two implement role alternatives and the two
review role alternatives are mutually exclusive: never merge or infer them. A role occurs only in
its mapped phase, alternative, and list.
Validate literally before any work-artifact read. Reject duplicate keys, unknown keys, unknown roles,
missing keys, a wrong next, and unsafe paths: absolute paths, .. segments, globs, or anything
outside the repository. Never infer corrections. An explicit malformed or stale binding fails closed
without discovery. Supporting onDemand inputs are never preloaded; read one only for a concrete
named missing fact. Stable routing inputs stay outside the envelope and follow bootstrap routing.
Native invocation spelling comes only from the active harness. No child inherits general
.formula/work/** access; pass only its accepted role paths.
Every new work artifact starts with verdict/contract metadata when that phase requires it, followed immediately by this versioned header before the Markdown title:
<!-- steepy-workflow: v1
phase: <brainstorm|plan|implement|review|loop-engineer|goal-contract>
status: <DRAFT|READY|CONSUMED>
next: <phase|none>
source: <safe exact repo-relative path|none>
consumed-by: <safe exact repo-relative path|none>
-->
Header fields are mandatory, unique, and literal. source and consumed-by must agree with the
adjacent lifecycle transition and authorize no transitive reads. Headerless artifacts are
ignored by recovery and are available only under explicit user audit scope.
These are exact resume capabilities, not paths inferred from provenance. The input retains its
normal required role; the output role is added to onDemand, as are any existing on-demand companions.
Regular review retains its required criteria and branch diff. Plan resume adds onDemand.output-plan;
regular Gear-3 review resume adds onDemand.review-report. Fresh forms above are unchanged.
Gear-4 controller/ledger handling is excluded from this model-based pair repair.
| Route | Input role | Output role | Companion roles | Input phase | Output phase | Output next |
|---|---|---|---|---|---|---|
| plan | spec | output-plan | none | brainstorm | plan | implement |
| implement-2-direct | spec | task-results | progress-ledger | brainstorm | implement | none |
| implement-2-plan | plan | task-results | source-spec,progress-ledger | plan | implement | none |
| implement-3 | plan | task-results | source-spec,progress-ledger | plan | implement | review |
| review-3 | task-results | review-report | criteria,branch-diff | implement | review | none |
This table applies only to the exact authorized pair with matching phase, route and provenance.
Validate the pair before the fresh-only READY input gate; a resume capability is never inferred.
Input next names the consumer phase until consumed; consumption retains it for plan/implement
and sets it to none for review. Output consumed-by is none throughout this producer's run.
An unconsumed input must have consumed-by: none; a consumed input must name the exact output.
| Input status | Output status | Action |
|---|---|---|
| absent | absent | reject |
| absent | DRAFT | reject |
| absent | READY | reject |
| absent | CONSUMED | reject |
| DRAFT | absent | reject |
| DRAFT | DRAFT | reject |
| DRAFT | READY | reject |
| DRAFT | CONSUMED | reject |
| READY | absent | fresh-create |
| READY | DRAFT | resume-work |
| READY | READY | finish-consumption |
| READY | CONSUMED | reject |
| CONSUMED | absent | reject |
| CONSUMED | DRAFT | reject |
| CONSUMED | READY | no-op |
| CONSUMED | CONSUMED | reject |
fresh-create permits a new absent output only in a fresh run, never a missing resume target.
resume-work requires exact output capability and leaves the input READY while work/gates remain.
For finish-consumption, revalidate output.source against the exact input path, input.consumed-by
as none, and the recorded approval and verification bound to those input/output paths and content
(excluding lifecycle fields). Recheck current branch/HEAD or uncommitted diff identity where applicable.
Only then perform the input-consumption write with input.consumed-by equal to the exact output path.
For no-op, revalidate the recorded proof with the final reciprocal links instead of the
unconsumed-input condition; perform no writes or redispatch.
A missing capability, mismatched path/phase/next/content, absent approval/proof, or impossible state
must fail closed, preserving both files. A READY marker alone is not proof. Do not follow links to
undeclared evidence; request the exact missing capability or user-delimited scope instead.
Never select a most-recent output or recover by directory/body search.
Publication is ordered: record the phase's applicable approval and verification in the output, publish output READY by per-file atomic replacement, then consume the input by per-file atomic replacement. This is not a multi-file atomic operation; READY/READY is its sole verified intermediate prefix. Resume repairs no other state and never repeats completed work or release actions. In manual drive you are the enforcement: no parser, manifest, or validator checks this contract.
Turn an idea into a local working spec informed by the hub. Do not write code or scaffold anything in this skill — the only artifact produced is the spec.
Engine root: this skill's base directory is
<engine-root>/skills/brainstorm/; engine scripts live two levels up, at<engine-root>/scripts/. Resolve them relative to the base directory your harness reports for this skill.
context resolve).
1.5. Resolve a CONFLICT (doc-wins, or override) or GAP (explore-first, then brainstorm) verdict..formula/work/specs/ and get approval, section by section (gate).status: DRAFT until the approval gate passes.
5.5. Self-review the spec inline — free gate, gear 2 and 3 (Step 5.5).steepy-formula graph validate (deterministic gate).implement; hand Gear 3 to plan (Step 8).This is the fresh entry: use the human request, stable routed hub rules (Step 1), and ordinary
repository source evidence to recompute the coverage verdict inline (COVERED / CONFLICT / GAP with
file:line evidence → gear). It has no historical work inputs: never read a prior spec, log, or
verdict to choose coverage or gear, and do not perform work-area recovery discovery. Gear 3 is a
valid fresh entry, not a reason to demand an upstream brainstorm artifact.
Declare the recomputed
verdict, gear, and evidence, then ask the user for one confirmation before the ceremony starts —
the user may force a different gear, and the override is recorded in the verdict artifact. Then
proceed.
Record that ratification in the new spec (or the new gear-1 local log), not an old artifact. If
gear 4 is confirmed, route to the loop-engineer skill and stop; this is not authority to fabricate
its required human-ratified goal contract. An explicit request to revisit existing work needs its
own user-delimited scope; the fresh entry's required: none grants no such read or overwrite.
Scale this skill's ceremony to the gear (see "Ceremony by gear" below). This skill dispatches no subagent reviewer: a spec is prose, gated by the inline self-review (Step 5.5) plus a human review of the written spec (Step 7), per the "Review architecture (gear 3)" governance rule — recorded as a Rule in the canonical graph.
Session declaration (declare, never block). Say whether this conversation started clean for this
phase or has already run an earlier phase of the chain in the same session. A same-session phase
already grew the context, and every turn of this phase now pays to carry it — name that cost, but
never refuse or gate on it: this is a declaration about the conversation, not a measurement, and
sound work proceeds either way. If the session's history cannot be determined with certainty, say so
and proceed. Under drive: autopilot this declaration is a no-op: the conductor
(scripts/autopilot.mjs) already opens a fresh headless session per phase, so the discipline stated
here is already enforced by that mechanism, not by this prose.
steepy-formula graph validate, skip Step 7, and hand
the READY spec directly to
implement. A light plan remains an explicit opt-in when the user already requested one or the
spec cannot become one independently testable implementation task.loop-engineer skill and stop.Declare the hub mode first. Run steepy-formula hub-mode and carry its declared mode —
graph, migrate, or none, each printed with one evidence: line — through the rest of the
run. This is the same once-per-run
declaration Step 1.5 governs (declared here, it is not re-declared there): the command always
exits 0, it is a declaration, not a gate, and the command is the single authority — this prose
never re-implements its detection. The declared mode branches the orientation:
graph mode: resolve orientation from the canonical graph — run
steepy-formula context resolve --path <p>... for the paths the idea touches (exit 0 emits
context.json + context.md). The resolved context supplies the owning surface (or shows
the idea is cross-cutting), its Rules — the standards-equivalent the design must respect — and
its Terms. The bound specialist agent is .claude/agents/<surface>-agent.md by naming
convention. On exit 10 UNRESOLVED — normal in a
freshly graph-first-initialized repo, where no topology bridge links the detected Packages
to the curated Components yet — fall back to the deterministic surface targets:
steepy-formula context resolve --target apex:<projectId>:surface:<slug(name)> for each
owning surface, every part derived, never guessed — surface names from
.claude/agents/<name>-agent.md (CLAUDE.md's Surfaces section is the fallback listing),
the project id from the hub-mode declaration's hub-mode '<projectId>' echo, slug(name)
lowercase with non-alphanumeric runs collapsed to - — and never target the bare project
root on its own: it resolves empty. If the resolve fails, diagnose with
steepy-formula graph status — exit 3, initialized: no, or an engine failure means the
graph binding is missing or failed: tell the user to run the init skill (invoke it the way
your harness invokes skills) first and stop.migrate mode: the repo still carries a pre-graph Markdown hub.
Stop and tell the user to run the graph-migrate skill (invoke it the way your harness invokes skills) before any other workflow.none: no graph — the repo is not initialized. The "not initialized" signal is the
missing graph binding (steepy-formula graph status). Tell the user to run the init skill
(invoke it the way your harness invokes skills) first and stop.If Step 0's verdict was COVERED, skip this step. Otherwise, resolve the verdict before moving on.
Hub-mode declaration (once per run). Step 1's orientation already made this declaration; if
this run somehow reaches its first hub-delta decision without it — here, or later when
a Step 2 delta routes back to this channel — run steepy-formula hub-mode and carry its declared
mode — graph, migrate, or none, each printed with one evidence: line — through the rest of
the run, stopping as Step 1 does for migrate and none. The command always exits 0: it is a
declaration, not a gate, and this prose never re-implements its detection — the command is the single authority.
Brainstorm NEVER mutates the hub — no graph mutation, no .apex/*.md edit —
every delta (a term, a latent convention, a
CONFLICT override) is recorded in the spec as a
typed deferred proposal (Step 5) for downstream review's sweep to promote.
On CONFLICT (Step 0 found that a hub rule and the intended change contradict): stop
and surface the contradiction with its file:line citation. Default is doc-wins: the plan
bends to the documented rule — but never silently. Tell the user what the rule says and ask them
to confirm doc-wins, or to declare an explicit override.
On GAP (no rule decides it): explore the codebase first, before any user brainstorm.
Gear 2 and 3. Grill the idea against the hub, one question at a time — surface and sharpen, don't just collect requirements. Treat the open decisions as a design tree: each decision branches into the ones that hang off it. Work the tree in dependency order — never ask a decision whose prerequisites are still unsettled. Split facts from decisions: facts are this skill's job — explore the codebase instead of asking; never ask the user for something look-up-able. Decisions are the user's — put each one to them and wait. Ask multiple-choice when possible and recommend an answer. Focus on purpose, constraints, and success criteria — and challenge along these hub-aware dimensions:
scripts/, skills/, templates/, tests/); surface any divergence between the docs and reality.Exit criterion. Step 2 is done when every branch of the design tree has been visited and nothing is left silently assumed, and the user confirms shared understanding.
Write nothing to the hub here. Step 2 grills; it does not mutate docs. An already-durable delta (a latent convention the code already follows, or an explicit override) routes to the existing Step 1.5 channel; a speculative design delta — a term sharpened for something not yet built — is captured in the spec (Step 5) as a deferred proposal for downstream promotion.
Present 2–3 approaches with trade-offs, lead with your recommendation and reasoning.
Write the design into a new spec at its conventional path, .formula/work/specs/YYYY-MM-DD-<topic>.md.
Check only target existence first. An existing target requires a stop for an absent path or explicit
user-delimited revisit scope: no historical body read or overwrite is authorized by fresh entry.
Within this invocation, continue editing only the draft it created.
Create .formula/work/specs/ if it does not exist. After the verdict/contract metadata and before the title, write this workflow header:
<!-- steepy-workflow: v1
phase: brainstorm
status: DRAFT
next: implement
source: none
consumed-by: none
-->
Use next: implement for the default Gear-2 direct route. Use next: plan for Gear 3 and for a
Gear-2 light plan the user explicitly requested before handoff. Do not ask Gear-2 users whether they
want a plan merely to create a gate: direct implementation is the lean default.
Present it in sections scaled to complexity (architecture, components, data flow, error handling, testing). Two sections are canonical — required at gear 3, recommended at gear 2:
At gear 3 an empty section is written as a real statement ("nothing excluded"), never omitted. Point the user at the file — not chat prose — and ask for approval section by section, referencing the document by file path and section name.
Approval gates finalization and handoff, not file creation: the DRAFT file records only material already discussed, so writing it early does not anchor the design.
The gate: no finalization, no handoff, no hub mutation until the user approves each section. Harness-portable: the artifact is a file path, nothing harness-specific.
Incorporate the requested changes from the Step 4 review into the draft file. Leave the workflow header at status: DRAFT until the applicable approval gate completes. Make sure the owning surface, the success criteria, and the Out of Scope and Testing Decisions sections are stated explicitly (the canonical sections per Step 4's gear gradient).
For every new gear-2 and gear-3 spec, use this canonical machine-readable metadata and criteria grammar. Direct Gear-2 implement copies these fields into its task brief, so a light spec has less prose, never fewer fields:
- **Owning surface:** \``- **Cross-cutting surfaces:** \`, ...or- Cross-cutting surfaces: none`- **Feature complexity:** \``## Success criteria heading;- **SC1:** <criterion>, - **SC2:** <criterion>, and so on.Do not place cross-cutting surfaces inside the owning-surface value. The finalized spec records exactly one Feature complexity: mechanical | integration | design field, selecting the one value that describes the feature as a whole.
If the Step 2 grilling surfaced a speculative hub-delta (a term or rule worth promoting once the work proves it), or Step 1.5 routed a delta here (a term, a latent convention, a CONFLICT override), record it in the spec as a typed deferred proposal — never a canonised hub edit; downstream review's sweep promotes it if it holds. Type every deferred proposal with the candidate schema that sweep consumes mechanically — the same typed-candidates file steepy-formula promotion create reads, whose wrapper (scripts/formula/core/scenario-assembly.mjs) is that schema's only interpreter; this prose maps nothing itself:
term — term + definition;rule — title + statement, plus concern, strength (must|should), and appliesTo
(the existing node id that scopes the rule), where applicable;decision — title + statement + context.README/user-facing deltas are not typed candidates — they stay prose notes in the spec (out of graph V1) and are promoted by direct edit, as today.
Do not create a specs sub-index. Specs are local workflow artifacts, not stable hub documentation.
Gear 2 and 3 — skip only at gear 1 (no spec is produced there).
Read the spec you just wrote with fresh eyes and fix any of these inline — no re-review needed, just fix and move on:
Feature complexity field, and is its value exactly mechanical | integration | design?## Success criteria H2, and unique sequential SC1…SCn IDs?Brainstorm never writes back to the graph. Every delta is a typed deferred proposal (Step 5).
Run the read-only graph gate:
steepy-formula graph validate
It MUST exit 0 with violations: 0 and a clean revision-chain replay. Brainstorm never mutates the graph, so any violation is pre-existing drift: report it and point the user to the check skill — do not fix it mid-phase.
Gear 3 only — skip in gears 1–2.
A spec is prose: the downstream code reviewers validate code against it, so they cannot catch a wrong requirement — a human must. Do not dispatch a subagent. Tell the user:
"Spec written to
<path>— please review it and tell me if anything should change before we plan."
Wait for the response. The human gate includes validating that the spec has exactly one Feature complexity field with an allowed value. On requested changes, edit the spec and re-run the Step 5.5 self-review. Proceed to handoff only once the user approves.
On that gear-3 human approval, record the ratification, approval and completed self-review/hub gate,
then publish the spec workflow header as status: READY. For gear 2, publish only after both
Step 5.5 and Step 6 succeed (its human gate is intentionally skipped). Interruption before those
gates complete leaves the spec DRAFT. This fresh producer consumes no historical input.
Once the user approves the spec, ask one more question: drive manual or autopilot?
manual (default) → acknowledge the choice and state the approved spec's relative path (.formula/work/specs/<spec-basename>.md). When the active harness exposes the native plan invocation spelling, emit it; otherwise do not invent one. Then emit this canonical envelope and proceed to Step 8:
handoff: steepy-formula/v1
next: plan
required:
spec: <exact-spec-path>
onDemand: none
No headless mode on this harness (any harness missing from SUPPORTED_HARNESSES in adapters/headless.mjs) → do not offer autopilot. Say explicitly that this harness has no headless mode, so the run stays manual — degradations are explicit, never silent.
On autopilot:
Anticipate implement Step 2's git decisions now, in one message: branch name (suggest one from the topic) + commit authorization (per-task commits). Create the branch.
Extend the verdict artifact at the spec head into the contract:
<!-- verdict: <verdict> | gear: 3
drive: autopilot
branch: <branch-name>
commit-auth: per-task
harness: claude|codex|opencode
blast-radius: branch-only, no-push, stop-before-PR
log-mode: safe
-->
Keep the verdict text and gear unchanged — only turn the one-line comment into this multi-line contract block, so the closing --> moves to its own line at the end (parseContract reads the contract only when every field sits inside that one HTML comment). harness = the current harness. The budget field is rejected on fresh and resumed gear-3 contracts; do not author it. Write log-mode: safe by default and ask no logging question. Offer exact only when the user explicitly requests sensitive exact capture: warn that exact raw logs may contain secrets, write log-mode: exact, and state that the conductor will print and record EXACT_LOGGING.
Launch the conductor in background: node <engine-root>/scripts/autopilot.mjs <spec-path>.
Report the run's status path and live artifacts: .formula/work/tasks/<spec-basename>/autopilot-status.md, per-attempt readable phase-<n>-attempt-<m>.log, per-attempt raw phase-<n>-attempt-<m>.raw.jsonl, and aggregate phase-<n>.log. Report the native open/resume reference when supported. The run is no-steer: it halts on anything needing a human, and its branch-only boundary is stop-before-PR (READY_FOR_PR). The version-bump/PR decision (review Step 5) stays human, in an interactive session.
Drive mode adds nothing to the manual path: no new question is asked at gears 1-2, and answering manual changes nothing downstream.
Gear 2, default direct route. After Step 5.5 and Step 6 succeed, set the spec header to
status: READY, retain next: implement, and tell the user the next step is the implement skill
(invoke it the way the active harness invokes skills). Emit:
handoff: steepy-formula/v1
next: implement
required:
spec: <exact-spec-path>
onDemand: none
Run implement in a new session: this phase's context does not serve implementation, and every turn
of implementation would otherwise pay to carry the brainstorm context. Do not route Gear 2 through
plan unless the user explicitly requested the optional light plan before this handoff or the spec
cannot represent one independently testable implementation task. In that opt-in case, set
next: plan and use the same plan handoff as Gear 3.
Gear 3. Only after the Step 7 reviewer approves, hand the READY spec to plan using the canonical
envelope emitted in Step 7, and tell the user the next step is the plan skill (invoke it the way
the active harness invokes skills). On the manual drive choice (Step 7), the handoff message must
state, textually: run the plan skill in a NEW session, with the relative path of the plan document
it will write — by convention .formula/work/plans/<date>-<topic>.md, the topic derived from the spec.
Run plan in a new session: this phase's context does not serve planning, and every turn of the
plan phase would pay to carry it forward. Autopilot remains conductor-owned after the blocking spec
gate.
Always set model: explicitly when dispatching a subagent. An omitted model inherits the session model (usually the most capable and most expensive) and silently defeats this policy.
Pick the tier by task complexity and risk:
| Signal | Tier |
|---|---|
| Mechanical / transcription (1-2 files, complete spec) | cheap |
| Integration / multi-file / judgment | standard |
| Design / architecture / high-risk or subtle change | most-capable |
Reviewers floor at standard and rise to most-capable when the artifact is high-risk or subtle.
Turn count beats token price. The cheapest model often takes 2-3× the turns on multi-step work — more wall-clock and context overall. Make a mid-tier model the floor for reviewers and for implementers working from prose; reserve the cheapest tier for transcription tasks whose exact code the plan already contains.
Translate the tier to a concrete model by judgment at dispatch time using your harness's available models. The three tiers are the whole ladder — most-capable is its top rung, not an open-ended "best available". A model that sits above that rung is outside the ladder: never reach it from a tier, and record a one-line reason in the ledger when you override to it. On a harness without per-dispatch model choice, everything runs on the session model — record that in the ledger.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub steepy-it/steepy-formula --plugin steepy-formula11 skills in this plugin
/checkRun `steepy-formula graph validate` on the canonical Stable Knowledge Graph and report any violations./discoveryPopulate and refresh the hub's knowledge from the real codebase via a seeded, per-item confirmed interview — accepted items land through a typed promotion scenario. Re-runnable — a second run surfaces only new or drifted items./graph-migrateMove a repository out of the steepy-apex `.apex/` area — extract its Markdown Hub into the Stable Knowledge Graph (drive the G1 extraction, review the typed promotion diff, obtain explicit full or curated approval, apply ONE transaction, validate, archive at cutover and remove the archive only after a validated SHA-256 integrity-checked export exists), or, when the area holds only leftover local state, discard it after explicit confirmation. Either way `.apex/` is gone at the end. Never re-implements core logic./implementExecute a READY Gear-2 spec directly or a hub-governed plan under TDD, scaling code-diff review and downstream handoff to the recorded gear./inceptionTurn an idea and its starting materials into a minimal, verified, runnable application before the graph binding exists — reconnaissance, architecture decisions, verified versions, one human approval, bootstrap of one representative path, and final verification — then hand off to init and discovery./initGraph-first init — gate on a provisioned Stable Knowledge Graph before writing anything, interview the governed structure, scaffold the disk-minimal harness assets, and land the initial graph through a promotion scenario. Never invents Rules from stack detection.