spae-prepare

spae-prepare is a skill for Claude Code, Codex from mystilleef/spae-framework. It costs 28 tokens per session (1,095 once invoked), scanned C, original, MIT.

An automation step for SPAE, a structured workflow for taking a coding task from request to verified change. It runs the specification, planning, and inspection phases in order using separate helper agents.

In plain words
What is it for?
Use it to prepare a new or existing SPAE workstream through requirements, an implementation plan, and plan inspection.
Why use it?
It removes the need to manually coordinate each preparation phase and stops when the work is ready to build or when an error occurs.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mystilleef/spae-framework/spae-prepare
Any agent
npx skills add mystilleef/spae-framework --skill spae-prepare
Clone the repo
git clone --depth 1 https://github.com/mystilleef/spae-framework

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spae-prepare

README.md
[![agentmods](https://agentmods.dev/badge/skills/mystilleef/spae-framework/spae-prepare.svg)](https://agentmods.dev/skills/mystilleef/spae-framework/spae-prepare)
Your own site
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/spae-prepare"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/spae-prepare.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01095
Opus 5 $0.00014 $0.00548
Sonnet 5 $0.00006 $0.00219
Haiku 4.5 $0.00003 $0.00110

Measured 5d ago against content hash 53ee698bc68a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

spae-prepare scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- prettier-ignore-start -->
skills/spae-prepare/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

phase Subagent
spec spec
plan plan
inspect inspect

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

Read the full file on GitHub · 140 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 140 lines · 28 tokens per session scan C 53ee698bc68a

Subscribe to this mod's changes

spae-prepare is a skill published in the GitHub repository mystilleef/spae-framework (1 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 1,095 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.