spae-spec

spae-spec is a skill for Claude Code, Codex from mystilleef/spae-framework. It costs 23 tokens per session (2,289 once invoked), scanned C, original, MIT.

A requirements-writing step for SPAE, a structured workflow for taking a coding task from request to verified change. It creates a specification and records the workflow state.

In plain words
What is it for?
Use it to start a new SPAE workstream, resume interrupted specification work, or rewrite requirements after verification finds problems.
Why use it?
It turns a broad proposal into concise, testable requirements and preserves where the work stands. This reduces confusion before planning or coding begins.

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-spec
Any agent
npx skills add mystilleef/spae-framework --skill spae-spec
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-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/mystilleef/spae-framework/spae-spec.svg)](https://agentmods.dev/skills/mystilleef/spae-framework/spae-spec)
Your own site
<a href="https://agentmods.dev/skills/mystilleef/spae-framework/spae-spec"><img src="https://agentmods.dev/badge/skills/mystilleef/spae-framework/spae-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,289 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 $0.00023 $0.02289
Opus 5 $0.00012 $0.01144
Sonnet 5 $0.00005 $0.00458
Haiku 4.5 $0.00002 $0.00229

Measured 5d ago against content hash 98223df5987a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

spae-spec 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-spec/SKILL.md · 226 lines

How it starts

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

Spec (SPAE)

When to use

  • Initialize a new SPAE workstream.
  • Resume interrupted spec work (phase: spec, status: active).
  • Rewrite requirements from scratch after a failed /verify (status: revision_required).

Goal

  • Distill user requests, verification findings, and codebase context into concise, testable requirements while preserving SPAE phase boundaries.
  • Generate .spae/[workstream]/SPEC.md and advance STATE.json to phase: plan.

Input

Determine scope by the first available source:

  • proposal or task from user
  • Existing STATE.json (consult references/STATE.md for field reference, directives, and phase snapshots) and VERIFY.md in .spae/current when present.

Workflow

Select sub-workflow by .spae/current symlink state:

  • New (symlink absent): New spec workflow
  • Revision (symlink present): Revision spec workflow

New spec workflow

If absent symlink follow this workflow.

  1. GATE.spae/current absent. Halt if symlink exists (revision path).
  2. ORIENT—Produce SPEC.md and STATE.json for [workstream]. Codebase unmodified.
  3. PLAN—Derive [workstream] slug from args or auto-generate. Identify codebase sections to read.
  4. ACT—Execute:
    • Initialize .spae/[workstream]/; point .spae/current symlink; create STATE.json (phase: spec, status: active).
    • If AGENTS.md exists at the project root, read it in full before any codebase sections; treat its constraints, conventions, and gates as non-negotiable spec inputs.
    • Read codebase sections narrowly; widen only on uncertainty.
    • Consult references/prose-protocol.md before drafting.
    • Derive goal, requirements, testing strategy, out-of-scope boundaries, and assumptions; reflect all AGENTS.md constraints.
    • Assess derived requirements against YAGNI; discard unrequested scope, speculative features, or theoretical complexity.
  5. VERIFY—Loop over spec completeness criteria:
    • For each failure: return to ACT, fix, then re-enter VERIFY.
    • Exit only when spec complete and structure matches references/SPEC.md.
    • Fail only for out-of-scope conditions.
  6. PERSIST—Write SPEC.md. Update STATE.json (phase: plan, status: active, cursor: {}, tasks: {}). Re-read STATE.json after writing; on a field mismatch, rewrite and re-read before REPORT.
  7. REPORT—Emit result using the Result template.

Read the full file on GitHub · 226 lines

Files

What ships with it

3 files 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 · 226 lines · 23 tokens per session scan C 98223df5987a

Subscribe to this mod's changes

spae-spec is a skill published in the GitHub repository mystilleef/spae-framework (1 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 2,289 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.