spae-fix
Skill2 starsChanged 15 days agoMITView on GitHub
- STATE.json reads phase: fix: close the gaps FIX.md lists for the active task. - Close exactly the FIX.md ## Gaps items for the active task with minimal changes, test-first where behavior changes. - Advance the workstream to phase: check. Read only what the ## Gaps items require: - .spae/current/STATE.json; references/STATE.md holds field reference, directives, and snapshots. - .spae/current/FIX.md; it carries all task context: the task ID and title in its heading, ## Intent, and ## Gaps items with File,…
In this repository21 other files it gives its agents.
- auto-commitSkill
- cleanSkill
- code-reviewSkill
- coverageSkill
- documentSkill
- purifySkill
- puritySkill
- refactorSkill
- spae-buildSkill
- spae-checkSkill
- spae-inspectSkill
- spae-orchestrateSkill
- spae-planSkill
- spae-prepareSkill
- spae-spawnSkill
- spae-specSkill
- spae-verifySkill
- structureSkill
- testSkill
- tipSkill
- troubleshootSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 7 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Read only what the ## Gaps items require:
- Very specific: line 56
Read FIX.md in full.
- Very specific: line 82
Write STATE.json per references/STATE.md exit snapshot.
- Distinctive: line 98
Treat a failing test or check as ordinary fix work.
- Distinctive: line 99
When closing a gap invalidates an existing test, update that test to the new contract.
- Very specific: line 116
Version control and release: never execute git mutations (staging, commits, branches, tags, pushes) or release operations.
- Distinctive: line 119
Autonomy: never ask users for input or clarification mid-execution.
- Very specific: line 123
State schema: never introduce STATE.json fields outside references/STATE.md.
- Very specific: line 143
Never suppress compiler or linter diagnostics—for example, @ts-ignore, eslint-disable, @SuppressWarnings, # type: ignore.
- Very specific: line 146
Never weaken type contracts to silence errors—for example, as any, !
- Very specific: line 148
Never edit build or tool configuration as a workaround.
- Distinctive: line 150
Never weaken, skip, delete, or game a test to force a pass.
- Distinctive: line 156
Every behavior gap carries a passing test covering expected behavior, failure modes, and edge cases.
- Very specific: line 159
Every added or updated test passes the CI parity rules in references/testing-guide.md.
- Very specific: line 161
No self-introduced artifact remains per references/cleanup-guide.md.
- Distinctive: line 171
Keep prose terse while ensuring clarity.
- Distinctive: line 174
Use lists and sub-lists for long sentences and dense paragraphs.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Fix (SPAE)
When to use
STATE.jsonreadsphase: fix: close the gapsFIX.mdlists for the active task.
Goal
- Close exactly the
FIX.md## Gapsitems for the active task with minimal changes, test-first where behavior changes. - Advance the
workstreamtophase: check.
Input
Read only what the ## Gaps items require:
.spae/current/STATE.json;references/STATE.mdholds field reference, directives, and snapshots..spae/current/FIX.md; it carries all task context: the task ID and title in its heading,## Intent, and## Gapsitems withFile,Expected,Actual, andEvidence.- Repository source, tests, docs, and configuration the
## Gapsitems touch.
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—Make no writes:
- Parse
.spae/current/STATE.json; self-heal missing metadata:version("1.0"),workstream(target directory name),status("active");PERSISTwrites the healed fields. - Self-heal state drift: treat a
"todo"or missingtasks[active_task_id]as"in_progress"untilPERSIST. - Halt on any Halt conditions entry.
- Parse
- ORIENT—State goal in one sentence:
FIX.mdstays unmodified untilPERSISTdeletes it; directly modify no code outside the## Gapsitems.- Read
FIX.mdin full. - Capture the pre-task baseline per
references/cleanup-guide.md.
- PLAN—Declare the remediation path:
- Read
references/testing-guide.mdandreferences/shell-command-guide.md. - Map each
## Gapsitem to its minimal edit; for a behavior gap, map the test surface: expected behavior, failure modes, and edge cases. - Halt on any Halt conditions entry.
- Read
- ACT—Per
## Gapsitem, repeat until re-checking itsEvidenceshows theExpectedresult:- Behavior gap—runtime behavior misses
Expected: reproduce it with a failing test, reusing an existing test that already fails on it; then write the minimal code that passes it. - Any other gap—a leftover artifact, diff bloat, a defective test, or a static-check failure: make the minimal edit that closes it.
- Apply Directives and Constraints.
- Behavior gap—runtime behavior misses
- VERIFY—Loop over Verification criteria for the
## Gapsitems:- Audit task edits against the pre-task baseline using the
Self-cleanup checklist in
references/cleanup-guide.md; remove every self-introduced artifact before proceeding. - For each failure: return to
ACT, fix, then re-enterVERIFY. - Exit only when every criterion passes.
- Halt only on a Halt conditions entry.
- Audit task edits against the pre-task baseline using the
Self-cleanup checklist in
- PERSIST—Write in order:
- Write
STATE.jsonperreferences/STATE.mdexit snapshot. - Re-read
STATE.json; on a mismatch against Verification state criteria, rewrite and re-read beforeREPORT. - Delete
.spae/current/FIX.md.
- Write
- REPORT—Emit result following result directives and using result
template:
Result:Gaps addressed, FIX.md removedafterPERSIST, elseFailed.- List each closed gap under
Findings.
Directives
- Optimize for agent, token, and context efficiency.
- Align with existing codebase patterns; avoid speculative design.
- For a behavior gap, never write production code before its test exists.
- Treat a failing test or check as ordinary fix work; drive it green.
- When closing a gap invalidates an existing test, update that test to the new contract.
- Re-check
Evidenceand run project checks perreferences/verification-guide.md; never discover, install, or calibrate tooling ad hoc.
Constraints
- Write scope: edit only the source, tests, docs, and configuration
the
## Gapsitems require, plus.spae/current/STATE.jsonand the.spae/current/FIX.mddeletion, both atPERSIST; forbid all other writes. Byproducts of a command run for evidence, such as a formatter's rewrites, never count as this phase's writes; never run a command for its write effect outside this scope. Never delete pre-existing uncommitted files. - Phase boundary: remediate exactly one task; hand off work to
/check; never mark a task"done"or move the cursor. - Version control and release: never execute git mutations (staging,
commits, branches, tags, pushes) or release operations. Never stage or
commit
.spae/. - Autonomy: never ask users for input or clarification mid-execution; halts and failures stop autonomously. Never perform or request human execution, an attended or interactive terminal, or human presence.
- State schema: never introduce
STATE.jsonfields outsidereferences/STATE.md. - Halt conditions: halt with no further
STATE.jsonwrite; reportFailedwith a diagnostic underFindings:.spae/currentmissing or dangling.STATE.jsonmissing or holds unparseable JSON syntax.STATE.jsonphaseother thanfix.cursor.active_task_idmissing.tasks[active_task_id]reads"done".FIX.mdmissing, naming a task other thancursor.active_task_id, or listing no## Gapsitem.- A gap can't close within its scope: an
Expectedresult infeasible or contradicting the## Intentor another gap, a broken external dependency, an unrunnableEvidencecommand or project check, or a need for human presence.
- Scope control: close each
## Gapsitem as written and change nothing else;## Intentguides design, never scope. No incidental refactoring, cleanup, formatting, or dependency churn. - Integrity: fix issues properly and idiomatically; no hacks,
workarounds, or shortcuts:
- Never suppress 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 broadened union types. - Never edit build or tool configuration as a workaround; change it
only when a
## Gapsitem requires it. - Never weaken, skip, delete, or game a test to force a pass.
- Never suppress compiler or linter diagnostics—for example,
Verification
- Re-checking each
## Gapsitem'sEvidenceshows itsExpectedresult. - Every behavior gap carries a passing test covering expected behavior, failure modes, and edge cases.
- Relevant project tests pass with no new failures.
- Every added or updated test passes the CI parity rules in
references/testing-guide.md. - No self-introduced artifact remains per
references/cleanup-guide.md. - The task diff changes nothing beyond the
## Gapsitems. - The task diff breaks no Integrity rule.
STATE.jsonspecifiesphase: "check",tasks[active_task_id]: "in_progress", and the entry cursor.- This phase wrote no file outside Write scope.
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 for long sentences and dense paragraphs.
- Emit result template as live markdown—never in a code fence.
- Output nothing outside template.
- Source every
SPAE Statusvalue from confirmed re-read, never from working memory of intent.
Result template
<!-- prettier-ignore-start -->### Execution Summary
- **Actions**:
- [Terse list of remediation actions]
- **Files**:
- [Terse list of affected source and SPAE artifacts]
- **Findings**:
- [Terse list of closed gaps or the failure diagnostic]
- **Summary**:
- [Terse list of summary of changes]
> **`SPAE` Status** • `[workstream-name]`
> **Result**: [Gaps addressed, `FIX.md` removed | Failed]
> **Active Task**: `T-XXX` - [Task title]
>
> _Run `/check` to re-verify the task._ _(unless failed)_<!-- 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.

