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

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…

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
  1. Distinctive:

    Write a failing test: expected behavior, failure modes, and edge cases.

    line 75
  2. Distinctive:

    Write minimal code to pass it.

    line 77
  3. Distinctive:

    Stop when all criteria have exhaustive passing test coverage.

    line 80
  4. Distinctive:

    Prefer existing project patterns over new design.

    line 111
  5. Distinctive:

    Keep production code minimal, local, and test-driven.

    line 112
  6. Distinctive:

    Look ahead, don't act ahead: read forward tasks to avoid foreclosing them.

    line 114
  7. Distinctive:

    Write every category of test the task demands: unit, integration, end-to-end, or otherwise.

    line 119
  8. Distinctive:

    When the task legitimately changes a contract, update the tests it invalidates to the new contract.

    line 122
  9. Very specific:

    Run task verification before changing .spae/current/STATE.json.

    line 125
  10. Very specific:

    When task requirements lack detail, choose the assumption most consistent with the task Intent and plan ## Goal, record it in the result …

    line 137
  11. Very specific:

    Never edit .spae/current/PLAN.md during /build.

    line 146
  12. Distinctive:

    Never execute more than one task.

    line 148
  13. Very specific:

    Never stage or commit .spae/ artifacts.

    line 149
  14. Distinctive:

    Avoid incidental refactoring, cleanup, formatting, or dependency churn outside the active task.

    line 150
  15. Distinctive:

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

    line 152
  16. Distinctive:

    Full autonomy: Never perform or request human execution, an attended or interactive terminal, or human presence to meet a verification step.

    line 154
  17. Very specific:

    Never introduce fields to STATE.json outside the schema reference.

    line 158
  18. Distinctive:

    No hacks, workarounds, or shortcuts.

    line 159
  19. Distinctive:

    Never edit build or tool configuration files as a workaround.

    line 161
  20. Very specific:

    Never suppress or turn off compiler or linter diagnostics.

    line 164
  21. Very specific:

    Never weaken type contracts to silence errors.

    line 167
  22. Distinctive:

    All task verification steps pass.

    line 173
  23. Very specific:

    All new tests pass CI Parity audit in references/testing-guide.md.

    line 177
  24. Very specific:

    No self-introduced cleanup violation remains per references/cleanup-guide.md.

    line 178
  25. Distinctive:

    Keep prose terse while ensuring clarity.

    line 189
  26. Distinctive:

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

    line 192

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

Build

When to use

  • STATE.json has phase: build.
  • The work stream needs the next planned task completed.

Goal

  • 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.

Input

Read:

  • .spae/current/STATE.json for phase, cursor, and task registry (consult references/STATE.md for field reference, directives, and phase snapshots).
  • .spae/current/PLAN.md for the plan ## Goal, the active task, its Intent, 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

  1. GATE—Confirm .spae/current/STATE.json has phase: build and an active task. Halt on state drift: if tasks[active_task_id] reads "done", halt; report and make no changes. Read the plan ## Goal and active task section — including its Intent — 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's Dependencies field carries status "done" in tasks registry in STATE.json; fail the task for any incomplete dependency.
  2. 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: set tasks[active_task_id] to "in_progress" in .spae/current/STATE.json.
  3. PLAN—Declare the full implementation path that satisfies every acceptance criterion, advances the task Intent and plan ## Goal, and leaves seams for forward tasks. Read references/testing-guide.md, references/shell-command-guide.md, and references/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.
  4. 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→implement until 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.

  5. 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 status against the Self-cleanup checklist in references/cleanup-guide.md; remove every self-introduced artifact before proceeding.
    • For each unmet criterion or failing command: return to ACT, execute, then re-enter VERIFY.
    • 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.
  6. PERSIST—Set .spae/current/STATE.json phase: check. /check owns the done transition and cursor advance. Re-read STATE.json after writing; on a field mismatch, rewrite and re-read before REPORT.
  7. 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.md for command safety, timeouts, redirects, and non-interactive environment directives.
  • Consult references/cleanup-guide.md for 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 task Intent, or a downstream task—an undeniable conflict, not a subjective doubt. Report it in the result; make no .spae/current/STATE.json write. 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 Intent and 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.md during /build.
  • Never edit .spae/current/SPEC.md during /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.json outside 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 Intent and plan ## Goal; no forward-task work performed.
  • .spae/current/STATE.json shows phase: check; the active task stays in_progress; cursor remains untouched.
  • .spae/current/PLAN.md and .spae/current/SPEC.md remain 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 Status value 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 -->

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.