spae-spec
Skill1 starsChanged 4 months agoMITView on GitHub
- Initialize a new SPAE workstream. - Resume interrupted spec work (phase: spec, status: active). - Rewrite requirements from scratch after a failed /verify (status: revision_required). - 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. 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 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-prepareSkill
- spae-spawnSkill
- spae-verifySkill
- testSkill
- tipSkill
- troubleshootSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 12 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
If absent symlink follow this workflow.
- Distinctive: line 56
If AGENTS.md exists at the project root, read it in full
- Distinctive: line 59
Read codebase sections narrowly.
- Distinctive: line 78
If present symlink follow this workflow.
- Very specific: line 87
Delete SPEC.md. Don't reuse.
- Very specific: line 88
Read VERIFY.md in full. Convert each hard block into a spec item.
- Distinctive: line 91
Treat observations as context, not spec items:
- Very specific: line 103
Write new SPEC.md from scratch.
- Distinctive: line 126
Write observable, testable, and implementation-neutral requirements.
- Very specific: line 130
Treat manual testing strategy as agent-executed, unattended inspection only.
- Distinctive: line 135
Document assumptions explicitly instead of guessing scope.
- Very specific: line 141
Never stage or commit the .spae/ directory.
- Distinctive: line 145
AGENTS.mdauthority: If AGENTS.md exists at the project root, its constraints, conventions, and gates bind all spec requirements. - Very specific: line 148
Write Scope: write only .spae/current symlink, .spae/[workstream]/SPEC.md, .spae/[workstream]/STATE.json, forbid all other writes.
- Distinctive: line 154
Autonomy: Never ask users for input or clarification mid-execution.
- Very specific: line 156
Full autonomy: Never author a spec item, testing strategy, or assumption that presumes human execution, an attended or interactive …
- Very specific: line 163
Never introduce fields to STATE.json outside the schema reference.
- Very specific: line 167
Ensure .spae/[workstream]/SPEC.md contains distilled requirements and structure matching references/SPEC.md exactly.
- Very specific: line 178
Ensure .spae/[workstream]/STATE.json specifies phase: "plan", status: "active", cursor: {}, and tasks: {}.
- Very specific: line 181
Verify new invocations without arguments generate a slugged workstream.
- Distinctive: line 188
Verify all other halt conditions leave artifacts intact.
- Distinctive: line 193
Keep prose terse while ensuring clarity.
- Distinctive: line 196
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
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
SPAEphase boundaries. - Generate
.spae/[workstream]/SPEC.mdand advanceSTATE.jsontophase: plan.
Input
Determine scope by the first available source:
- proposal or task from user
- Existing
STATE.json(consultreferences/STATE.mdfor field reference, directives, and phase snapshots) andVERIFY.mdin.spae/currentwhen 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.
- GATE—
.spae/currentabsent. Halt if symlink exists (revision path). - ORIENT—Produce
SPEC.mdandSTATE.jsonfor[workstream]. Codebase unmodified. - PLAN—Derive
[workstream]slug fromargsor auto-generate. Identify codebase sections to read. - ACT—Execute:
- Initialize
.spae/[workstream]/; point.spae/currentsymlink; createSTATE.json(phase: spec,status: active). - If
AGENTS.mdexists 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.mdbefore drafting. - Derive goal, requirements, testing strategy, out-of-scope
boundaries, and assumptions; reflect all
AGENTS.mdconstraints. - Assess derived requirements against
YAGNI; discardunrequestedscope, speculative features, or theoretical complexity.
- Initialize
- VERIFY—Loop over spec completeness criteria:
- For each failure: return to
ACT, fix, then re-enterVERIFY. - Exit only when spec complete and structure matches
references/SPEC.md. - Fail only for out-of-scope conditions.
- For each failure: return to
- PERSIST—Write
SPEC.md. UpdateSTATE.json(phase: plan,status: active,cursor: {},tasks: {}). Re-readSTATE.jsonafter writing; on a field mismatch, rewrite and re-read beforeREPORT. - REPORT—Emit result using the Result template.
Revision spec workflow
If present symlink follow this workflow.
- GATE—
.spae/currentpresent.VERIFY.mdexists.STATE.jsonstatus: revision_required. Halt immediately on any failure. - ORIENT—Delete
SPEC.mdand rewrite it from scratch to address everyVERIFY.mdhard block. Source code unmodified. - PLAN—Survey
VERIFY.mdfindings; identify source files to inspect and requirements to derive. - ACT—Execute:
- Delete
SPEC.md. Don't reuse. - Read
VERIFY.mdin full. Convert each hard block into a spec item. Assess soft findings againstYAGNI; discard soft findings addingunrequestedscope or theoretical complexity. - Treat observations as context, not spec items:
- Re-classify an observation naming a clear
SPEC.mddeviation as a hard block, then convert it. - Convert an observation to a spec item only when it names
actionable scope reduction—simplify or remove an existing
element—never to formalize or expand
unrequestedscope. - Otherwise, drop it after noting the context.
- Re-classify an observation naming a clear
- If
AGENTS.mdexists at the project root, read it in full before inspecting source files; treat its constraints as binding; reflect them in the revised requirements. - Inspect source files to ground new requirements.
- Consult
references/prose-protocol.mdbefore drafting. - Write new
SPEC.mdfrom scratch; never reuse old spec; assign freshR-NNNidentifiers; address every item converted fromVERIFY.mdhard blocks.
- Delete
- VERIFY—Loop over every
VERIFY.mdhard block, plus each accepted item converted underACT:- For each unaddressed item: return to
ACT, address it, then re-enterVERIFY. - Exit only when every item resolves and the spec matches
references/SPEC.md. - Fail only for out-of-scope conditions.
- For each unaddressed item: return to
- PERSIST—Write
SPEC.md. UpdateSTATE.json(phase: plan,status: active,cursor: {},tasks: {}). Re-readSTATE.jsonafter writing; on a field mismatch, rewrite and re-read beforeREPORT. - REPORT—Emit the result following the result directives and using the result template.
Directives
- Optimize for agent, token, and context efficiency.
- Align with existing codebase patterns; avoid speculative design.
- Filter all requirements and incoming findings against
YAGNI; rejectunrequestedscope, speculative design, or theoretical complexity. - Write observable, testable, and implementation-neutral requirements.
- Match testing strategy detail to task size; require failure modes and edge cases only when proposal introduces complex branching or error paths.
- Treat
manualtesting strategy as agent-executed, unattended inspection only; never encode a spec item, approach, or assumption that presumes human execution, an attended or interactive terminal, or human presence. - Tag each item with a unique, stable
R-NNNidentifier. - Document assumptions explicitly instead of guessing scope.
- Match level of detail to task size; avoid process bloat.
- Consult
references/prose-protocol.mdbefore draftingSPEC.md. - Set
Out of scopeandAssumptionstoNoneon single-behavior specs unless explicit constraints exist; avoid invented exclusions or assumptions; keep section headers intact. - Never stage or commit the
.spae/directory.
Constraints
AGENTS.mdauthority: IfAGENTS.mdexists at the project root, its constraints, conventions, and gates bind all spec requirements; contradictions count as spec defects.- Write Scope: write only
.spae/currentsymlink,.spae/[workstream]/SPEC.md,.spae/[workstream]/STATE.json, forbid all other writes. - Read-only files: inspect source code to ground requirements and confirm fit; stay read-only.
- Phase boundary: hand off work to
/plan; don't decompose tasks. - Autonomy: Never ask users for input or clarification mid-execution; halts and failures stop autonomously.
- Full autonomy: Never author a spec item, testing strategy, or
assumption that presumes human execution, an attended or interactive
terminal, or human presence; treat such a need as a scope defect and
resolve it before writing
SPEC.md. - Ambiguity: resolve from codebase evidence first; fall back to a
documented conservative assumption only when evidence proves
insufficient; record under Assumptions in
SPEC.md. - Never introduce fields to
STATE.jsonoutside the schema reference.
Verification
- Ensure
.spae/[workstream]/SPEC.mdcontains distilled requirements and structure matchingreferences/SPEC.mdexactly. - Confirm each item carries a unique
R-NNNidentifier. - Confirm no spec item, testing strategy, or assumption in
SPEC.mdpresumes human execution, an attended or interactive terminal, or human presence. - Confirm testing strategy covers expected behavior; require failure modes and edge cases only for complex proposals; allow single-target verification on single-behavior specs.
- Confirm section depth matches task size; no invented edge case, failure mode, or exclusion on a single-behavior spec.
- Ensure
.spae/[workstream]/STATE.jsonspecifiesphase: "plan",status: "active",cursor: {}, andtasks: {}. - Confirm
.spae/currentlinks to.spae/[workstream]. - Verify new invocations without arguments generate a slugged
workstream. - Confirm revision processes resolve every
VERIFY.mdhard block and soft finding, and each converted observation, without editing forbidden files. - Confirm invalid
STATE.jsonor orphaned artifacts halt with diagnostics; no artifacts modified. - Verify all other halt conditions leave artifacts intact.
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.
- Source every
SPAE Statusvalue from the confirmed re-read, never from working memory of intent.
Result template
<!-- prettier-ignore-start -->### Execution Summary
- **Actions**:
- [Terse list of actions taken]
- **Files**:
- [Terse list of affected files]
- **Findings**:
- [Terse list of notable findings]
- **Summary**:
- [Terse list of summary of changes]
> **`SPAE` Status** • `[workstream-name]`
> **Result**: [Spec Complete | Revision Complete | Failed]
> **Phase Complete**: `/spec`
> **Next Phase**: `/plan`
> **Impact**: [Terse impact statement]
>
> _Run `/plan` to decompose `SPEC.md` into atomic tasks._<!-- 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.

