Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: execute description: Gate 2 of plan → execute → review. Implements an approved OpenSpec change (openspec/changes/<slug>/) on a branch task by task, runs the check, then chains slop pass → solo:review → atomic conventional commits (one per task group), and marks the change done. Refuses a change whose Status is not approved. Does not open the PR — use solo:pr-ready. argument-hint: <change slug or path>
Execute
- Read the change:
proposal.md, everyspecs/**/spec.md,design.md,tasks.md.Status: approvedinproposal.mdrequired; otherwise stop and say so. The delta specs are the contract; tasks are the route. - Re-check cwd +
git status --short --branch— right repo, right branch, clean tree or known state. Onmain/master→ branch first:git switch -c <type>/<slug>. Always; gates apply to every non-one-liner. - Read the repo's
AGENTS.md## Coding standardif present — runner, package manager, style rules. None → lockfile is law (uv.lock→uv,pnpm-lock.yaml→pnpm,yarn.lock→yarn,package-lock.json→npm,go.mod→go,pubspec.yaml→flutter). Never mix managers. - Work
tasks.mdtop to bottom, exactly. Tick each box (- [x]) the moment its verification passes, not in a batch at the end. A test task comes before the code it proves: write it, watch it fail, then make it pass. Mid-way discovery that changes behavior → update the delta spec and tasks first (../plan/scripts/validate-change.sh <slug>still exits 0), then continue; say what changed. A discovery that changes a requirement's meaning → stop and ask.
Route each group before starting it:
| work | goes to | |
|---|---|---|
| read-only lookup that would flood context (callers across a big repo, log grep) | solo:explorer (haiku) | |
| a group that is bounded and fully specified (target paths, scenario or test, verification command), has no judgment calls left, and is not finishable in a handful of tool calls | solo:implementer: sonnet by default; model: "opus" when the group is heavy (many files, tricky logic) but still fully specified | |
| everything else: ambiguous, cross-cutting, auth/money/data-loss paths, integration; and every verification, tick, slop pass, review dispatch, commit, set-status | main thread (opus), which writes code too |
Fable only after the user approves it: the request asks to run on Fable, or AskUserQuestion gets a yes; then dispatch solo:implementer with model: "fable". No yes, no Fable. One group at a time, in this tree:
- Index must be empty (
git diff --cached --quiet); something staged → stop and ask. Group has a test task → write the test yourself and watch it fail. Recordgit status --porcelain, thengit add -u && git add -- <the group's allowed paths that exist> <test files you wrote for this group> openspec/changes/<slug>/, so every tracked edit and your own new files are staged and the implementer's edits are the only unstaged changes; untracked files outside those paths (a stray secrets file) stay unstaged. - Dispatch
solo:implementerwith: the group's tasks verbatim, the scenarios they prove, the design E# lines naming the paths, the## Coding standard, the verification command, and the allowed-path list. - On return, read
git diffandgit status --shortand compare them with the recorded status (its edits only; anything new outside the allowed paths is a defect), run the verification yourself, tick, thengit reset -qto unstage.
blocked, a spec mismatch, or a failed verification → git reset -q, then do the group inline; never re-dispatch with a looser spec.
- Ponytail rules stay on: shortest diff that is correct, reuse over write, no unrequested abstractions. Deliberate ceilings get a
# ponytail: <ceiling>, <upgrade path>comment. Framework/API questions → Context7, not memory. - Run the last task group (the check). Change has none → derive it: Makefile/justfile target →
package.jsoncheck/testscript →[tool.pytest]→go test ./...; write it back intotasks.md. It must pass. - Slop pass on your own diff:
/solo:slop(scope defaults togit diff --name-only <base>...HEAD). The check stays green after every pass. - Placeholder scan:
rg -n 'TODO|FIXME|NotImplemented|\.only\(|xit\(|xdescribe\(' <diff files>plus bare skips (test.skip(/pytest.skip(/@skipwith no condition-and-reason). Any hit is a blocker. Conditional skips with a reason string (skipif(cond, reason=...),test.skip(cond, 'why')) are fine. - Invoke
/solo:review <base>. Fix every CRIT/WARN; delete or justify every CUT. Re-run the check. - Commit — atomic, logically grouped, always. Never one commit for a whole plan, never one commit per layer. One commit per feature slice — the task groups in
tasks.mdare the slices: a capability that works end to end, carrying its backend, UI, tests and the docs for that slice (e.g. "settings + their dialog tab", "the job + its API + dashboard", "webhook follow-up", "undo script"). Order slices by dependency; a refactor or dependency bump nothing user-visible depends on alone may stand as its own commit, otherwise it rides with the slice that needs it. Split a shared file (tests, docs, generated files) across slices so each commit holds only its slice. Every commit must pass lint + the check on its own — verify each before reporting, e.g.git rebase --exec '<check>' <base>, or a detached worktree looping overgit rev-list --reverse <base>..HEAD(prefer the loop in a linked worktree:rebase --execexportsGIT_DIRthere, and a test that makes its own repo then writes to yours). A fix found later is folded into the commit that introduced the code (git commit --fixup <sha>+ autosquash), never stacked. Message: caveman-terse conventional commit,type(scope): subject≤50 chars, imperative, English; body only when the why is not obvious, one line per reason. The change folder itself rides in the first commit.Refs owner/repo#n(from theIssue:line inproposal.md) on the last slice commit;Closes owner/repo#ngoes on the spec-fold commit/solo:pr-readyadds. Scope = the area the commit touches. ../plan/scripts/set-status.sh <slug> done(path relative to this skill's base directory) — it refuses while any box intasks.mdis unticked. An unticked box means not done: finish it or say why it cannot be. Commit the status change into the last slice commit. Report: branch, the commit list (git log --oneline <base>..HEAD), per-commit check result, changed files, review findings fixed/left. Next gate is/solo:pr-ready, which folds the delta specs intoopenspec/specs/.