agentleFS
mystilleefmystilleef/spae-framework/skills/spae-prepare/SKILL.md

spae-prepare

Skill1 starsChanged 4 months agoMITView on GitHub

Orchestrate SPAE subagents sequentially through the spec, plan, and inspect phases of the structured workflow.

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
  1. Very specific:

    Read .spae/current/STATE.json to resolve the current execution phase and cursor.

    line 26
  2. Distinctive:

    Every phase maps to exactly one subagent, spawned the same way regardless of phase:

    line 37
  3. Distinctive:

    Always use the subagent tool for subagent invocation.

    line 70
  4. Very specific:

    Never run subagents in parallel or concurrently.

    line 91
  5. Distinctive:

    Never invoke agents outside the permitted list.

    line 93
  6. Distinctive:

    Never prompt the user for decisions mid-run.

    line 94
  7. Distinctive:

    Never perform activities beyond subagent invocation, state tracking, and reporting.

    line 96
  8. Distinctive:

    Keep prose terse while ensuring clarity.

    line 111
  9. Distinctive:

    Use lists and sub-lists over paragraphs and long sentences.

    line 114

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prepare SPAE

When to use

  • The user wants to run the preparatory phases of the SPAE structured workflow autonomously: spec, plan, and inspect.

Goal

  • Spawn spec, plan, and inspect subagents sequentially based on STATE.json status and phase.
  • Halt successfully when the workstream reaches phase: 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:

phaseSubagent
specspec
planplan
inspectinspect

Workflow

  1. Resolve Workstream:
    • Locate .spae/current/STATE.json.
    • Missing, no proposal argument: halt.
    • Missing, proposal provided: spawn spec with the proposal; await completion; proceed to step 2.
    • Present: proceed to step 2 without spawning.
  2. Dispatch Loop:
    • Re-read .spae/current/STATE.json; record phase.
    • Exit on phase: "build".
    • Halt immediately if phase matches 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 Failed status or any process failure (crash, timeout, AgentError).
    • Re-read .spae/current/STATE.json; halt immediately if phase matches the value recorded at the start of this iteration.
    • Repeat step 2.
  3. Finalize: Emit the execution summary.

Directives

  • Always use the subagent tool for subagent invocation.
  • Rely only on STATE.json for 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 spec spawn only; never reuse it on later iterations, and never read or expand file-path arguments.
  • Halt immediately on subagent Failed status or any process failure (crash, timeout, AgentError).
  • List of agents permitted to invoke:
    • spec
    • plan
    • inspect

Constraints

  • Perform orchestration only; never edit codebase files, tests, or documentation.
  • Restrict your activities to:
    • Using the subagent tool to spawn relevant agents.
    • Reading STATE.json to orchestrate the workflow.
  • Never run subagents in 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 phase changes on every iteration; halt on a stalled phase.
  • Confirm sequential spawning of spec, plan, and inspect agents.
  • Confirm the workstream reaches phase: build upon 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.