agentleFS
mystilleefmystilleef/spae-framework/skills/spae-check/SKILL.md

spae-check

Skill1 starsChanged 4 months agoMITView on GitHub

Per-task verification gate for SPAE. Compares active task Intent, Acceptance, and Verification against repo evidence; routes gaps to /fix or advances a clear task.

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 4 are distinctive, and 16 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 16

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run active-task verification steps and project checks.

    line 49
  2. Very specific:

    Gap found: create/overwrite .spae/current/FIX.md per references/FIX.md.

    line 69
  3. Very specific:

    Task clear, tasks remain: write STATE.json: mark active task done, advance cursor to next "todo" task, phase: build.

    line 73
  4. Very specific:

    Final task clear: write STATE.json: mark active task done, retain cursor active task ID, phase: verify.

    line 75
  5. Very specific:

    Follow canonical SPAE Step 5 /check contract on conflicts.

    line 90
  6. Very specific:

    Keep gaps concrete, reproducible, enough for /fix without PLAN.md.

    line 99
  7. Very specific:

    Write only current actionable gaps to FIX.md per references/FIX.md.

    line 101
  8. Very specific:

    Read source, tests, config, docs, logs only.

    line 107
  9. Very specific:

    Never read/edit .spae/current/SPEC.md.

    line 109
  10. Very specific:

    Never edit source, tests, config, docs, or non-SPAE project files.

    line 111
  11. Very specific:

    Never claim workstream completion (only /verify holds that authority).

    line 112
  12. Very specific:

    Never add artifacts beyond canonical SPAE files or fields beyond STATE.json schema.

    line 114
  13. Very specific:

    Never stage/commit .spae/ artifacts.

    line 116
  14. Distinctive:

    Autonomy: Never ask users for input or clarification mid-execution.

    line 117
  15. Very specific:

    Full autonomy: Never ask for human execution, attended terminal, interactive session, or human presence.

    line 119
  16. Very specific:

    Every Acceptance, Verification, and Intent reviewed against evidence.

    line 127
  17. Very specific:

    Only Gap/Observation labels used.

    line 129
  18. Very specific:

    No speculative abstraction, _unrequested_ complexity, defensive bloat beyond task Scope, or self-introduced cleanup violation per …

    line 132
  19. Distinctive:

    Keep prose terse while ensuring clarity.

    line 144
  20. Distinctive:

    Use lists/sub-lists over paragraphs and long sentences.

    line 147

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Check (SPAE)

When to use

  • STATE.json reports phase: check.
  • Cursor names active task.

Goal

  • Compare active task implementation against PLAN.md Intent, Acceptance, and Verification.
  • Route gaps to /fix or advance clear task.

Input

Read:

  • .spae/current/STATE.json (consult references/STATE.md for field reference, directives, and phase snapshots)
  • Active task section from .spae/current/PLAN.md (Intent, Acceptance, Verification)
  • Source files and test logs scoped to active task

Workflow

  1. GATE—Read .spae/current/STATE.json; confirm phase: check and active_task_id. Self-heal state drift: if tasks[active_task_id] reads "todo", correct it to "in_progress" and write STATE.json before proceeding. Halt on state drift: if tasks[active_task_id] reads "done", halt. Read active PLAN.md task section; confirm title, Intent, Acceptance, Verification. Halt on missing or malformed input; report and make no changes.
  2. ORIENT—Verify active task; hand off to /fix, /build, or /verify. Leave source, tests, config, docs, PLAN.md, SPEC.md, task scope, and workstream completion untouched.
  3. PLAN—List active-task Acceptance outcomes and Verification steps. Map evidence for declared Intent; scope source/test reads to active task. Never read SPEC.md.
  4. ACT—Execute:
    • Run active-task verification steps and project checks. Without automation, inspect source, logs, or scripted probes for observable behavior.
    • Confirm every Acceptance outcome and Intent against evidence.
    • Label findings with exactly two tags:
      • Gap: unmet Acceptance, failed Verification, Intent mismatch, speculative abstraction, unrequested complexity, defensive bloat beyond task Scope, or a self-introduced cleanup violation per references/cleanup-guide.md. Include unmet item, file:line, expected vs actual, reproducible evidence. Blocks a clear result.
      • Observation: minor concern outside task scope, unrequested edge-case coverage, theoretical risk. Report only; never write to FIX.md or affect the verdict.
    • Draft gaps per references/FIX.md schema; consult references/prose-protocol.md.
  5. VERIFY—Reconcile every Acceptance, Verification, and Intent against evidence. Clear verdict only with zero gaps. Confirm drafted FIX.md matches references/FIX.md structure.
  6. PERSIST—Apply one verdict:
    • Gap found: create/overwrite .spae/current/FIX.md per references/FIX.md. Write STATE.json: phase: fix; preserve status, cursor, task registry, version, workstream. Active task stays in_progress.
    • Task clear, tasks remain: write STATE.json: mark active task done, advance cursor to next "todo" task, phase: build.
    • Final task clear: write STATE.json: mark active task done, retain cursor active task ID, phase: verify.
    • All branches: re-read STATE.json after writing; on a field mismatch, rewrite and re-read before REPORT.
  7. REPORT—Emit result per directives. Template B after gap, D after clear nonfinal task, E after clear final task. Observations under Findings only.

Directives

  • Optimize for agent, token, and context efficiency.
  • Consult references/shell-command-guide.md for command safety, timeouts, redirects, and environment directives.
  • Consult references/cleanup-guide.md for self-introduced-artifact scope and criteria.
  • Follow canonical SPAE Step 5 /check contract on conflicts.
  • Focus on active-task evidence; prefer existing project checks.
  • Enforce KISS and YAGNI; flag Intent mismatches over speculative scope or defensive bloat.
  • Ground bloat findings in the diff; never flag hypothetical future risk, stylistic preference, or unshipped edge case.
  • Relegate unrequested edge-case coverage, theoretical risks, and defensive bloat suggestions to observations; forbid writing them to FIX.md.
  • Keep gaps concrete, reproducible, enough for /fix without PLAN.md.
  • Preserve task-plan wording verbatim in FIX.md ## Intent.
  • Write only current actionable gaps to FIX.md per references/FIX.md; report observations in summary only.
  • Consult references/prose-protocol.md before drafting FIX.md.

Constraints

  • Read source, tests, config, docs, logs only; write only .spae/current/FIX.md and .spae/current/STATE.json.
  • Never read/edit .spae/current/SPEC.md; never edit .spae/current/PLAN.md.
  • Never edit source, tests, config, docs, or non-SPAE project files.
  • Never claim workstream completion (only /verify holds that authority).
  • Never add artifacts beyond canonical SPAE files or fields beyond STATE.json schema.
  • Never stage/commit .spae/ artifacts.
  • Autonomy: Never ask users for input or clarification mid-execution; halts and failures stop autonomously.
  • Full autonomy: Never ask for human execution, attended terminal, interactive session, or human presence. Surface any such dependency as a Gap.

Verification

  • STATE.json enters with phase: check and matching active in-progress task.
  • Every Acceptance, Verification, and Intent reviewed against evidence.
  • Only Gap/Observation labels used; every unmet item flagged Gap.
  • Gap run writes FIX.md matching schema, verbatim intent, actionable evidence; active task stays in_progress; phase → fix.
  • No speculative abstraction, unrequested complexity, defensive bloat beyond task Scope, or self-introduced cleanup violation per references/cleanup-guide.md survives unflagged.
  • Clear run marks one task done, routes to build or verify with correct cursor state.
  • SPEC.md, PLAN.md, source, tests, config, docs, unrelated files unchanged.
  • Output uses template B, D, or E verbatim.

Result directives

  • Minimum words. Maximum signal.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions, findings, summaries into terse bullet points.
  • Use lists/sub-lists over paragraphs and long sentences.
  • Emit result as live markdown—never in a code fence.
  • Output nothing outside the template.
  • Source every SPAE Status value from the confirmed re-read, never from working memory of intent.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of checks and verdict work]
- **Files**:
  - [Terse list of affected SPAE artifacts]
- **Findings**:
  - [Gaps or observations]
- **Summary**:
  - [Terse task outcome]
<!-- prettier-ignore-end -->

Emit exactly one, matching the verdict.

Gap found

<!-- prettier-ignore-start -->
> **SPAE Status** • `workstream-name` **Active Task**: `T-XXX` - [Task
> title] **Result**: Gaps found, `FIX.md` written
>
> _Run `/fix` to close the gaps._
<!-- prettier-ignore-end -->

Clear, tasks remain

<!-- prettier-ignore-start -->
> **SPAE Status** • `workstream-name` **Progress**: Task [X] of [Y] ([Z]
> remaining) **Completed**: `T-XXX` - [Task title] **Next Task**:
> `T-YYY` - [Next task title]
>
> _Run `/build` to execute the next task._
<!-- prettier-ignore-end -->

Clear, final task

<!-- prettier-ignore-start -->
> **SPAE Status** • `workstream-name` **Progress**: All [X] tasks
> completed **Completed**: `T-001` through `T-XXX` **Next Phase**:
> `/verify`
>
> _Run `/verify` to validate the implementation against the
> specification._
<!-- prettier-ignore-end -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.