spae-fix
Skill1 starsChanged 4 months agoMITView on GitHub
Remediates pre-classified SPAE task gaps. Use after /check writes FIX.md and moves an active task to phase fix.
In this repository19 other files it gives its agents.
- auto-commitSkill
- cleanSkill
- code-reviewSkill
- coverageSkill
- documentSkill
- purifySkill
- refactorSkill
- spae-buildSkill
- spae-checkSkill
- 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
20 rules. About 0 are common, 12 are distinctive, and 8 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.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 63
Write a failing or gap-reproducing test covering expected behavior, failure modes, and edge cases.
- Distinctive: line 65
Write the minimal source, test, configuration, or documentation change required by that gap.
- Very specific: line 67
Run targeted checks; repeat test→implement until the gap passes.
- Very specific: line 100
Follow canonical _SPAE_ Step 6 /fix whenever guidance conflicts.
- Very specific: line 104
Treat Observations as informational only.
- Distinctive: line 106
Prefer existing project patterns.
- Distinctive: line 111
Never inspect forward tasks or preserve forward seams.
- Distinctive: line 113
When closing a named gap invalidates an existing test's now-incorrect expectation, update that test to match.
- Very specific: line 124
Never read or edit .spae/current/PLAN.md or .spae/current/SPEC.md.
- Very specific: line 125
Never mark a task done, advance a cursor, change task registry entries, or claim _workstream_ completion.
- Very specific: line 127
Never add _SPAE_ artifacts or STATE.json fields.
- Distinctive: line 128
Never act on observations, invent findings, inspect forward tasks, or expand remediation beyond named gaps.
- Very specific: line 130
Never stage or commit .spae/ artifacts.
- Distinctive: line 131
Autonomy: Never ask users for input or clarification mid-execution.
- Distinctive: line 133
Full autonomy: Never request or require human execution, an attended terminal, an interactive session, or human presence.
- Distinctive: line 136
No hacks, workarounds, shortcuts, suppressed diagnostics, or weakened type contracts.
- Distinctive: line 145
Every changed project file maps to a named gap.
- Very specific: line 150
No self-introduced cleanup violation remains per references/cleanup-guide.md.
- Distinctive: line 161
Keep prose terse while ensuring clarity.
- Distinctive: line 164
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
Fix (SPAE)
When to use
STATE.jsonreportsphase: fix.FIX.mdlists pre-classified gaps for the active in-progress task.
Goal
- Close only the active task's named
FIX.mdgaps through minimal, test-driven changes. - Return the workstream to
/checkwithout task completion, cursor movement, plan edits, or scope expansion.
Input
Read:
- STATE.json in
.spae/current/for task management (consultreferences/STATE.mdfor field reference, directives, and phase snapshots). - FIX.md in
.spae/current/for gaps to address. - Project source, tests, configuration, docs, and command output required by the named gaps.
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—Read
.spae/current/STATE.json; confirmphase: fixand an active task identifier. Self-heal state drift: iftasks[active_task_id]reads"todo", correct it to"in_progress"and writeSTATE.jsonbefore proceeding. Halt on state drift: iftasks[active_task_id]reads"done", halt. Read.spae/current/FIX.md; confirm its task identifier matches the active task and its## Gapslist supplies concrete actionable gaps. Halt on missing, malformed, or mismatched input; report the failed precondition; make no changes. - ORIENT—Goal: close the named gaps for one active task and return
it to
/check. LeavePLAN.md,SPEC.md, task completion, cursor movement, forward tasks, and unrelated project concerns untouched. - PLAN—List each pre-classified
FIX.mdgap. Map its required test surface: expected behavior, failure modes, and edge cases. Use the taskIntentonly for context; never expand scope from it,Acceptance,Verification, forward tasks, seams, or observations. ACT—For each named gap:
- Write a failing or gap-reproducing test covering expected behavior, failure modes, and edge cases.
- Write the minimal source, test, configuration, or documentation change required by that gap.
- Run targeted checks; repeat
test→implementuntil the gap passes.
Ignore
Observationsfor source changes. Stop after every listed gap has passing test coverage. Never write production code before its test exists.- VERIFY—Loop over every named gap and its relevant project checks:
- Audit changed tests for project CI parity; correct violations.
- 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 gap or failing check: return to ACT, remediate, then re-enter VERIFY.
- Exit only after every gap test and relevant task check passes.
- Fail the task only for an infeasible finding, plan or spec defect,
or broken external dependency. Leave
FIX.mdand state transition untouched.
- PERSIST—After every named gap passes, delete
.spae/current/FIX.mdand write.spae/current/STATE.jsononce withphase: check. Keep the active taskin_progress; never mark itdoneor alter the cursor. Re-readSTATE.jsonafter writing; on a field mismatch, rewrite and re-read beforeREPORT. - REPORT—Emit the result under Result directives. After successful remediation, use guide template C verbatim. On a failure, report it under Findings and never claim gap closure.
Directives
- Optimize work 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. - Follow canonical SPAE Step 6
/fixwhenever guidance conflicts. - Remediate exactly one active task per invocation.
- Scope every change solely from
FIX.md## Gaps; consume those pre-classified gaps as written. - Treat
Observationsas informational only; never classify, promote, or act on them. - Prefer existing project patterns; apply KISS and YAGNI.
- Drive every listed gap through test→implement; treat red checks as ordinary remediation work.
- Hold exclusive authority for source edits during
/fix, limited to files required by named gaps. - Never inspect forward tasks or preserve forward seams; remediation closes named gaps only.
- When closing a named gap invalidates an existing test's now-incorrect expectation, update that test to match; make no other contract change beyond what the named gap requires; never weaken, skip, or delete tests to force green.
Constraints
- May edit source, tests, documentation, configuration, and other non-SPAE project files only when named gaps require them.
- May delete
.spae/current/FIX.mdand update.spae/current/STATE.jsononly after successful verification. - Never read or edit
.spae/current/PLAN.mdor.spae/current/SPEC.md. - Never mark a task
done, advance a cursor, change task registry entries, or claim workstream completion. - Never add SPAE artifacts or
STATE.jsonfields. - Never act on observations, invent findings, inspect forward tasks, or expand remediation beyond named gaps.
- Never stage or commit
.spae/artifacts. - Autonomy: Never ask users for input or clarification mid-execution; halts and failures stop autonomously.
- Full autonomy: Never request or require human execution, an attended terminal, an interactive session, or human presence. Treat such a dependency as an out-of-scope failure.
- No hacks, workarounds, shortcuts, suppressed diagnostics, or weakened type contracts.
Verification
- Entry state contains
phase: fixand one matching active in-progress task. FIX.mdtask identifier matches state; every## Gapsitem receives a passing test and relevant project-check evidence.- Every changed project file maps to a named gap; no change follows an observation, plan acceptance item, verification item, forward task, or unrelated concern.
- Changed tests cover expected behavior, failure modes, and edge cases without CI-parity violations.
- No self-introduced cleanup violation remains per
references/cleanup-guide.md. - Successful remediation deletes
FIX.md, changes only statephasetocheck, retains the active taskin_progress, and leaves cursor, task registry, status, version, and workstream untouched. - Successful output uses guide template C verbatim; no extra SPAE status block appears.
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 selected result as live markdown—never in a code fence.
- Output nothing outside the execution summary and applicable guide 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 remediation actions]
- **Files**: [Terse affected source and SPAE artifacts]
- **Findings**: [Closed gaps or failure]
> **SPAE Status** • `workstream-name`
> **Active Task**: `T-XXX` - [Task title]
> **Result**: Gaps addressed, `FIX.md` removed
>
> _Run `/check` to re-verify the 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.

