spae-build
Skill1 starsChanged 4 months agoMITView on GitHub
- Execute exactly one task from PLAN.md, mutating source/tests plus STATE.json, while preserving the framework execution cursor. - Complete the active task with minimal production code that meets exhaustive tests, serves its Intent and the plan ## Goal, and leaves seams for downstream tasks. - Meet the task acceptance criteria through exhaustive tests and task verification steps. - Hand off to /check for the done transition and cursor advance; never claim either. - .spae/current/STATE.json for phase, cursor, and task registry…
In this repository19 other files it gives its agents.
- auto-commitSkill
- cleanSkill
- code-reviewSkill
- coverageSkill
- documentSkill
- purifySkill
- refactorSkill
- spae-checkSkill
- spae-fixSkill
- spae-inspectSkill
- spae-orchestrateSkill
- spae-planSkill
- spae-prepareSkill
- spae-spawnSkill
- spae-specSkill
- spae-verifySkill
- testSkill
- tipSkill
- troubleshootSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 17 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 75
Write a failing test: expected behavior, failure modes, and edge cases.
- Distinctive: line 77
Write minimal code to pass it.
- Distinctive: line 80
Stop when all criteria have exhaustive passing test coverage.
- Distinctive: line 111
Prefer existing project patterns over new design.
- Distinctive: line 112
Keep production code minimal, local, and test-driven.
- Distinctive: line 114
Look ahead, don't act ahead: read forward tasks to avoid foreclosing them.
- Distinctive: line 119
Write every category of test the task demands: unit, integration, end-to-end, or otherwise.
- Distinctive: line 122
When the task legitimately changes a contract, update the tests it invalidates to the new contract.
- Very specific: line 125
Run task verification before changing .spae/current/STATE.json.
- Very specific: line 137
When task requirements lack detail, choose the assumption most consistent with the task Intent and plan ## Goal, record it in the result …
- Very specific: line 146
Never edit .spae/current/PLAN.md during /build.
- Distinctive: line 148
Never execute more than one task.
- Very specific: line 149
Never stage or commit .spae/ artifacts.
- Distinctive: line 150
Avoid incidental refactoring, cleanup, formatting, or dependency churn outside the active task.
- Distinctive: line 152
Autonomy: Never ask users for input or clarification mid-execution.
- Distinctive: line 154
Full autonomy: Never perform or request human execution, an attended or interactive terminal, or human presence to meet a verification step.
- Very specific: line 158
Never introduce fields to STATE.json outside the schema reference.
- Distinctive: line 159
No hacks, workarounds, or shortcuts.
- Distinctive: line 161
Never edit build or tool configuration files as a workaround.
- Very specific: line 164
Never suppress or turn off compiler or linter diagnostics.
- Very specific: line 167
Never weaken type contracts to silence errors.
- Distinctive: line 173
All task verification steps pass.
- Very specific: line 177
All new tests pass CI Parity audit in references/testing-guide.md.
- Very specific: line 178
No self-introduced cleanup violation remains per references/cleanup-guide.md.
- Distinctive: line 189
Keep prose terse while ensuring clarity.
- Distinctive: line 192
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
Build
When to use
STATE.jsonhasphase: build.- The work stream needs the next planned task completed.
Goal
- Execute exactly one task from
PLAN.md, mutating source/tests plusSTATE.json, while preserving the framework execution cursor. - Complete the active task with minimal production code that meets
exhaustive tests, serves its
Intentand the plan## Goal, and leaves seams for downstream tasks. - Meet the task acceptance criteria through exhaustive tests and task verification steps.
- Hand off to
/checkfor thedonetransition and cursor advance; never claim either.
Input
Read:
.spae/current/STATE.jsonfor phase, cursor, and task registry (consultreferences/STATE.mdfor field reference, directives, and phase snapshots)..spae/current/PLAN.mdfor the plan## Goal, the active task, itsIntent, acceptance criteria, and verification steps; they carry all the goal context build needs.- Relevant project source, tests, docs, and configuration needed for the active task.
Testing
See references/testing-guide.md for test structure, isolation,
mocking, assertion, and performance standards.
Cleanup
See references/cleanup-guide.md for the self-introduced-artifact
checklist and diff-only audit scope.
Workflow
- GATE—Confirm
.spae/current/STATE.jsonhasphase: buildand an active task. Halt on state drift: iftasks[active_task_id]reads"done", halt; report and make no changes. Read the plan## Goaland active task section — including itsIntent— from.spae/current/PLAN.md. Read dependent and forward task titles plus acceptance criteria to map seams, not build them. Verify every task ID in the active task'sDependenciesfield carries status"done"intasksregistry inSTATE.json; fail the task for any incomplete dependency. - ORIENT—State the goal in one sentence: execute the active task
and hand off to
/check. Name what won't change:PLAN.md,SPEC.md, and forward-task seams. Task status update: settasks[active_task_id]to"in_progress"in.spae/current/STATE.json. - PLAN—Declare the full implementation path that satisfies every
acceptance criterion, advances the task
Intentand plan## Goal, and leaves seams for forward tasks. Readreferences/testing-guide.md,references/shell-command-guide.md, andreferences/cleanup-guide.md. Map the test surface per criterion: expected behaviors, failure modes, and edge cases. Choose among valid implementations by goal fit, not local convenience. ACT—Iterate over every acceptance criterion:
- Write a failing test: expected behavior, failure modes, and edge cases.
- Write minimal code to pass it.
- Drive green; repeat
test→implementuntil the criterion passes.
Stop when all criteria have exhaustive passing test coverage. Never write production code before its test exists. Edit only source, tests, docs, or configuration files required by the task.
- VERIFY—Loop over every acceptance criterion and verification
command listed for the active task:
- Audit every new test file against CI Parity rules in
references/testing-guide.md; fix any violation before proceeding. - Audit the task's own
git diff/git statusagainst the Self-cleanup checklist inreferences/cleanup-guide.md; remove every self-introduced artifact before proceeding. - For each unmet criterion or failing command: return to
ACT, execute, then re-enterVERIFY. - Exit only when all criteria pass and all commands succeed.
- Fail only for out-of-scope conditions: infeasible acceptance criterion, plan/spec defect, or broken external dependency.
- Audit every new test file against CI Parity rules in
- PERSIST—Set
.spae/current/STATE.jsonphase: check./checkowns thedonetransition and cursor advance. 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 all operations for agent, token, and context efficiency.
- Consult
references/shell-command-guide.mdfor command safety, timeouts, redirects, and non-interactive environment directives. - Consult
references/cleanup-guide.mdfor self-introduced-artifact scope and checklist. - Execute exactly one atomic task per invocation.
- Prefer existing project patterns over new design.
- Keep production code minimal, local, and test-driven; never reduce test scope.
- Look ahead, don't act ahead: read forward tasks to avoid foreclosing them; never build beyond the active task. Name any forward task you designed around in the result.
- Tests drive every task; write them first, exhaustively, before any production code. Implementation serves tests, never the reverse.
- Write every category of test the task demands: unit, integration, end-to-end, or otherwise. Cover expected behavior, failure modes, and edge cases exhaustively.
- When the task legitimately changes a contract, update the tests it invalidates to the new contract; never weaken, skip, or delete a test to force green.
- Run task verification before changing
.spae/current/STATE.json. - Drive verification green; treat red as ordinary build work. Fail the task only when verification can't pass within task scope: infeasible acceptance criterion, plan/spec defect, or broken external dependency; never to escape fixing your own code, never by gaming a test or editing the plan.
- Fail the task when it as written logically contradicts the plan
## Goal, the taskIntent, or a downstream task—an undeniable conflict, not a subjective doubt. Report it in the result; make no.spae/current/STATE.jsonwrite. Leave ambiguous interpretation to/verify; never ship a locally correct, globally wrong implementation. - When task requirements lack detail, choose the assumption most
consistent with the task
Intentand plan## Goal, record it in the result under Findings, and proceed.
Constraints
- Exercise exclusive authority to edit source code, tests, documentation, configuration, and other non-framework project files during this phase.
- Never edit
.spae/current/PLAN.mdduring/build. - Never edit
.spae/current/SPEC.mdduring/build. - Never execute more than one task.
- Never stage or commit
.spae/artifacts. - Avoid incidental refactoring, cleanup, formatting, or dependency churn outside the active task.
- Autonomy: Never ask users for input or clarification mid-execution; halts and failures stop autonomously.
- Full autonomy: Never perform or request human execution, an attended or interactive terminal, or human presence to meet a verification step; treat any such dependency as an out-of-scope failure (plan/spec defect).
- Never introduce fields to
STATE.jsonoutside the schema reference. - No hacks, workarounds, or shortcuts.
- Forbid laziness; fix issues properly, correctly, and idiomatically.
- Never edit build or tool configuration files as a workaround; build and tool configuration changes only apply when the active task's acceptance criteria explicitly require them.
- Never suppress or turn off compiler or linter diagnostics; for
example,
@ts-ignore,eslint-disable,@SuppressWarnings,# type: ignore. - Never weaken type contracts to silence errors; for example,
as any,!non-null assertions, or broadening union types.
Verification
- Active task acceptance criteria pass.
- All task verification steps pass.
- Relevant project tests pass with no new failures.
- Task tests cover expected behavior, failure modes, and edge cases exhaustively; no thin-coverage shortcuts.
- All new tests pass CI Parity audit in
references/testing-guide.md. - No self-introduced cleanup violation remains per
references/cleanup-guide.md. - Implementation advances the task
Intentand plan## Goal; no forward-task work performed. .spae/current/STATE.jsonshowsphase: check; the active task staysin_progress; cursor remains untouched..spae/current/PLAN.mdand.spae/current/SPEC.mdremain unchanged.
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]
- **Tests**:
- [Terse list of tests written — behaviors, failure modes, and edge cases covered]
- **Findings**:
- [Terse list of notable findings]
- **Summary**:
- [Terse list of summary of changes]
> **`SPAE` Status** • `[workstream-name]`
> **Active Task**: `T-XXX` - [Task title]
> **Status**: Implemented, pending check
>
> _Run `/check` to verify the completed task._<!-- 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.

