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

spae-spawn

Skill1 starsChanged 4 months agoMITView on GitHub

Executes the build phase of the SPAE structured workflow autonomously, cycling build, check, and fix per task.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ensure phase: verify in STATE.json once the loop exits.

    line 20
  2. Very specific:

    Read .spae/current/STATE.json for phase, cursor, and task registry.

    line 24
  3. Distinctive:

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

    line 33
  4. Distinctive:

    Always use the subagent tool for subagent invocation.

    line 65
  5. Distinctive:

    Never write to any project file.

    line 79
  6. Distinctive:

    Never invoke agents outside the permitted list.

    line 81
  7. Very specific:

    Never run subagents in parallel or concurrently.

    line 83
  8. Distinctive:

    Never prompt the user for decisions mid-run.

    line 84
  9. Distinctive:

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

    line 86
  10. Distinctive:

    Keep prose terse while ensuring clarity.

    line 101
  11. Distinctive:

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

    line 104

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

Spawn

When to use

  • The user wants to perform the build phase of the SPAE structured workflow autonomously.

Goal

  • Spawn the subagent matching the current STATE.json phase, looped until every task completes.
  • Ensure phase: verify in STATE.json once the loop exits.

Input

Read .spae/current/STATE.json for phase, cursor, and task registry.

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
buildbuild
checkcheck
fixfix

Workflow

  1. Validate State: Confirm STATE.json has phase in "build", "check", "fix" and a populated cursor.active_task_id. Halt on malformed or missing STATE.json, or an unrecognized phase.
  2. Dispatch Loop:
    • Re-read .spae/current/STATE.json; record phase.
    • Exit on phase: "verify".
    • 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 Phase: Confirm STATE.json shows phase: "verify". Emit the final completion feedback.

Directives

  • Limit actions entirely to orchestration.
  • Always use the subagent tool for subagent invocation.
  • Trust STATE.json over subagent result.
  • Halt immediately on subagent Failed status or any process failure (crash, timeout, AgentError).
  • List of agents permitted to invoke:
    • build
    • check
    • fix

Constraints

  • Restrict your activities to:
    • Reading .spae/current/STATE.json.
    • Using the subagent tool to spawn agents the phase-agent map names.
  • Never write to any project file.
  • Never activate skills.
  • Never invoke agents outside the permitted list.
  • Never make commits.
  • Never run subagents in parallel or concurrently.
  • 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 all tasks show done state upon completion.
  • Confirm the workstream advanced to phase: verify.
  • 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` Spawn** • `[workstream]`
> **Result**: [Completed | Halted | Failed]
> **Halted at**: `[Task ID]`  _(if halted)_
> **Remaining**: [Y] tasks    _(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.