AGENT SKILL

canvas

Launch the Momentum Cycle live dashboard (Hono+Bun, port 3456). Checks if running, starts if not; opens http://localhost:3456 in the viewer pane.

使用场景视觉设计
License 许可
Apache-2.0
最近更新
2026-11-09
Stars
★ 0
Forks
0

01 前言 Front Matter

name
spec-audit-tasks
description
After an implement step, audit that every task was genuinely completed — catch skipped tasks, stubbed work, missing tests, unimplemented spec requirements. Works with structured (tasks.md) and design-doc layouts; auto-discovers or takes paths. Invoke right after the implement step finishes.

02 资源文件 9

03 SKILL.md 正文

Task-Completion Audit

An implement step ticks tasks done as it goes, but a checked box is a claim, not proof. This skill verifies the claim: it walks every task in the task list and looks for real evidence of completion — the code exists, the tests it promised exist and pass, the spec requirement it maps to is actually satisfied, and no placeholder was left behind. It runs right after implementation so gaps surface while the work is fresh, before the change is committed and assumed done.

Analysis-only: it reports gaps, it never edits code or the task list. Fixing is the implementer's call — this skill's job is to tell the truth about what is actually finished.

Procedure

  1. Locate the artifacts per ../../runtime/references/spec-artifact-discovery.md (explicit paths win, else detect the layout):

    • structured: the task list is tasks.md inside the spec's feature directory (specs/<NNN-slug>/, newest by name sort, or a caller-supplied path).
    • design-doc: there is no tasks.md — the spec is the newest docs/design/specs/*-design.md and the task list is embedded in the newest docs/design/plans/*.md. Parse the plan's checkbox/numbered tasks.

    If no task list can be found in either layout, report there is nothing to review (implementation may not have generated tasks) and stop.

  2. Enumerate tasks. Parse the task list into {id, description, checkbox-state, referenced files/tests}. Note which are marked done ([x]) vs open ([ ]).

  3. Verify each task against evidence — one at a time. A checkbox is not evidence. For each task, confirm:

    • Artifact exists — the file(s)/symbol(s) the task describes are actually present in the working tree, not merely planned.
    • Tests are real and green — any test the task promised exists and passes. Run /manifest-code-quality:project-verify (or the task's specific test) rather than trusting the box; test/security failures are blocking, lint is advisory.
    • No stub left — no TODO/FIXME/pass/NotImplemented/placeholder sitting where the task required real behavior.
    • Requirement satisfied — the spec requirement (FR-*) or acceptance scenario the task maps to is genuinely met, not just touched.

    Where there are many independent tasks, fan the per-task verifications out in parallel (one subagent per task or per cluster) and aggregate. The checks are independent, so this is faster and keeps each verdict isolated from the others.

  4. Cross-check coverage between the spec and the task list:

    • Orphan requirements — any FR-*/acceptance scenario with no implementing task.
    • Orphan tasks — any task that maps to no requirement (possible scope creep).

    Use the spec↔task-list relationship for the active layout: structured is spec ↔ plan ↔ tasks; the design-doc layout is spec ↔ plan (with the tasks embedded in that plan).

  5. Classify and report. Give every task one of: DONE (verified), INCOMPLETE (marked done but evidence missing), SKIPPED (still open), or UNVERIFIABLE (needs a human/manual check — e.g. a live external dependency). Then state the summary verdict.

Output template

ALWAYS use this structure so the gap between claimed and actual is unmistakable:

## Task-completion audit — <feature/plan name>
**Verdict:** <ALL VERIFIED | GAPS FOUND (<n> incomplete, <m> skipped)>

| Task | Claimed | Verified | Evidence / Gap |
|------|---------|----------|----------------|
| T001 | [x] | ✅ DONE         | <file + passing test> |
| T0xx | [x] | ❌ INCOMPLETE   | <what's missing> |
| T0yy | [ ] | ⏭️ SKIPPED      | <not implemented> |

**Coverage gaps:**
- Orphan requirements (no task): <FR-… or "none">
- Orphan tasks (no requirement): <T… or "none">

**Punch list (finish before this is done):**
1. <task id> — <concrete fix>

Notes

  • Evidence over checkboxes is the entire point. If a task can only be confirmed by its checkbox, it is UNVERIFIABLE, not DONE — say so plainly rather than rubber-stamp it.
  • Analysis-only, which is what makes it safe to auto-run: it never edits code or re-checks boxes. It produces the punch list; the implementer (or a follow-up implement pass) acts on it.
  • Invoke it right after the implement step — gaps are cheapest to fix while the work is fresh and before it is committed. It re-audits any time.
  • Complements /manifest-code-quality:project-verify (deterministic lint/test/scan) and the cross-artifact consistency pass (/manifest-spec-planning:spec-review): this skill is specifically about did we actually finish every task.

Sub-agent dispatch

Follow the shared dispatch contract. Each assigned unit verifies its bounded task group; the parent records statuses from directly validated evidence.

04 同仓库更多 Skills