spae-prepare
Skill1 starsChanged 4 months agoMITView on GitHub
Orchestrate SPAE subagents sequentially through the spec, plan, and inspect phases of the structured workflow.
In this repository19 other files it gives its agents.
- auto-commitSkill
- cleanSkill
- code-reviewSkill
- coverageSkill
- documentSkill
- purifySkill
- refactorSkill
- spae-buildSkill
- spae-checkSkill
- spae-fixSkill
- spae-inspectSkill
- spae-orchestrateSkill
- spae-planSkill
- spae-spawnSkill
- spae-specSkill
- spae-verifySkill
- testSkill
- tipSkill
- troubleshootSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Read .spae/current/STATE.json to resolve the current execution phase and cursor.
- Distinctive: line 37
Every phase maps to exactly one subagent, spawned the same way regardless of phase:
- Distinctive: line 70
Always use the subagent tool for subagent invocation.
- Very specific: line 91
Never run subagents in parallel or concurrently.
- Distinctive: line 93
Never invoke agents outside the permitted list.
- Distinctive: line 94
Never prompt the user for decisions mid-run.
- Distinctive: line 96
Never perform activities beyond subagent invocation, state tracking, and reporting.
- Distinctive: line 111
Keep prose terse while ensuring clarity.
- Distinctive: line 114
Use lists and sub-lists over paragraphs and long sentences.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prepare SPAE
When to use
- The user wants to run the preparatory phases of the
SPAEstructured workflow autonomously: spec, plan, and inspect.
Goal
- Spawn
spec,plan, andinspectsubagents sequentially based onSTATE.jsonstatus and phase. - Halt successfully when the
workstreamreachesphase: build, or halt immediately on errors.
Input
Read .spae/current/STATE.json to resolve the current execution phase
and cursor. Accept an optional argument, the proposal, during initial
execution.
STATE.json
See references/STATE.md for the field reference, directives, and
phase snapshots.
Phase-agent map
Every phase maps to exactly one subagent, spawned the same way regardless of phase:
phase | Subagent |
spec | spec |
plan | plan |
inspect | inspect |
Workflow
- Resolve Workstream:
- Locate
.spae/current/STATE.json. - Missing, no proposal argument: halt.
- Missing, proposal provided: spawn
specwith the proposal; await completion; proceed to step 2. - Present: proceed to step 2 without spawning.
- Locate
- Dispatch Loop:
- Re-read
.spae/current/STATE.json; recordphase. - Exit on
phase: "build". - Halt immediately if
phasematches none of the phase-agent map's rows. - Spawn the subagent the map names for the recorded
phase, no arguments. - Await completion; halt immediately on
Failedstatus or any process failure (crash, timeout,AgentError). - Re-read
.spae/current/STATE.json; halt immediately ifphasematches the value recorded at the start of this iteration. - Repeat step 2.
- Re-read
- Finalize: Emit the execution summary.
Directives
- Always use the subagent tool for subagent invocation.
- Rely only on
STATE.jsonfor all orchestration decisions. - Operate strictly in read-only mode; make no file writes.
- Trust the machine-readable state file over subagent output text.
- Pass the proposal argument verbatim to the bootstrap
specspawn only; never reuse it on later iterations, and never read or expand file-path arguments. - Halt immediately on subagent
Failedstatus or any process failure (crash, timeout,AgentError). - List of agents permitted to invoke:
specplaninspect
Constraints
- Perform orchestration only; never edit codebase files, tests, or documentation.
- Restrict your activities to:
- Using the
subagenttool to spawn relevant agents. - Reading
STATE.jsonto orchestrate the workflow.
- Using the
- Never run
subagentsin parallel or concurrently. - Never activate skills.
- Never invoke agents outside the permitted list.
- Never prompt the user for decisions mid-run; let failures halt execution.
- Never perform activities beyond subagent invocation, state tracking, and reporting.
Verification
- Confirm every spawned subagent's phase matches the phase-agent map at spawn time.
- Confirm
phasechanges on every iteration; halt on a stalled phase. - Confirm sequential spawning of
spec,plan, andinspectagents. - Confirm the
workstreamreachesphase: buildupon completion. - Confirm zero project writes from the orchestration agent itself.
Result directives
- Minimum words. Maximum signal.
- Keep prose terse while ensuring clarity.
- Optimize prose for agent, token, and context efficiency.
- Split actions, findings, and summaries into terse bullet points.
- Use lists and sub-lists over paragraphs and long sentences.
- Emit the result template as live markdown—never in a code fence.
- Output nothing outside the template.
Result template
<!-- prettier-ignore-start -->### Execution Summary
- **Actions**:
- [Terse list of actions from spawned subagents]
- **Files**:
- [Terse list of files affected by spawned subagents]
- **Findings**:
- [Terse list of findings from spawned subagent]
- **Summary**:
- [Terse list of summary from spawned subagents]
> **`SPAE` Prepare** • `[workstream]`
> **Result**: [Completed | Halted | Failed]
> **Halted at**: `[Phase]` _(if halted)_
> **Reason**: [Terse explanation] _(if halted)_
> **Impact**: [Terse impact statement]<!-- prettier-ignore-end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

