원클릭으로
tp-implementation-audit
Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Design Audit — multi-angle review of a detailed design against the actual codebase before implementation.
Mark a TDD design as complete — stamp completion, archive handoff.md, archive to three-pillars-docs/completed-tp-designs/, and optionally commit + open a PR merging the design branch back to the base branch.
Scaffold architecture.md, product_roadmap.md, and known_issues.md in three-pillars-docs/ from codebase analysis. Creates the three project docs that the TDD pipeline reads for context. Assumes three-pillars-docs/vision.md already exists — if missing, recommends /tp-setup first.
Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs.
Sync a base branch INTO a design's worktree (base-sync) and auto-resolve the safe living-doc conflict classes behind a zero-drop verifier, deferring everything semantic to the human. Re-runs tests, re-pushes only when green, updates the PR. This is the reversible base-into-branch operation — landing the PR is the separate /tp-merge land gate.
| name | tp-implementation-audit |
| description | Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md. |
| argument-hint | {design-name} [--auto] [--force-takeover] |
Comprehensive review of a completed implementation against both design documents. This runs after all phases are done (unlike /tp-phase-review which reviews a single phase). It answers: "Did we build what we designed?"
Argument: {design-name} (required) — must match an existing directory under three-pillars-docs/tp-designs/.
three-pillars-docs/tp-designs/{design-name}/design.md must exist.three-pillars-docs/tp-designs/{design-name}/detailed-design.md must exist.three-pillars-docs/tp-designs/{design-name}/plan.md must exist with all phases marked as Done (or Skipped/Blocked).Run the collaboration preflight per skills/_shared/collaboration.md with phase: "implementation-audit". This verifies the branch and refreshes the lock so the final audit artifact is written by the rightful owner. Honor --force-takeover if passed.
Per skills/_shared/repo-map-preamble.md. If aider is on PATH, generate a structural map of the codebase before walking design vs. implementation. Use it to focus interface-fidelity checks in Step 3 on files PageRank surfaces as load-bearing.
Read design.md, detailed-design.md, plan.md, and any review.md files from the design directory. Do not skim — read fully. Also read project docs per skills/_shared/read-project-docs.md for project context.
For EVERY item in design.md, verify it was implemented:
For EVERY interface defined in detailed-design.md:
Run the project's complete test suite. Discover the test command from the project config (CLAUDE.md, Makefile, package.json, pyproject.toml, etc.):
{project-test-command} 2>&1 | tee "$(mktemp /tmp/test_output.XXXXXX.log)"
All tests must pass. Flag any failures.
If multiple phases were implemented across separate sessions:
Things the design promised but the implementation may have missed:
Things the implementation added that weren't in the design:
Write three-pillars-docs/tp-designs/{design-name}/implementation-audit.md:
# <Design Name> — Implementation Audit
## Summary
<2-3 sentences: overall assessment, confidence that the design was faithfully implemented>
## Scope Coverage
| Design Item | Status | Notes |
|-------------|--------|-------|
| <item from design.md> | Done / Partial / Missing | {details} |
## Interface Fidelity
| Interface | Matches Design | Deviations |
|-----------|---------------|------------|
| <API/module from detailed-design.md> | Yes / Partial / No | <what differs> |
## Test Results
<test suite output summary — pass/fail counts>
## Gaps
- <things the design specified but the implementation missed>
## Unintended Additions
- <things implemented that weren't in the design — note if beneficial or accidental>
## Cross-Phase Drift
- <inconsistencies between phases, if any>
## Verdict
<One of: PASS — implementation faithfully matches design | PASS WITH NOTES — minor deviations documented above | NEEDS WORK — significant gaps listed above>
## Recommended Actions
- <concrete next steps if anything needs fixing>
Commit per skills/_shared/commit-after-work.md. Artifact paths to stage:
three-pillars-docs/tp-designs/{design-name}/implementation-audit.mdthree-pillars-docs/tp-designs/{design-name}/lock.json (if refreshed)Commit message: Audit: {design-name} implementation.
/tp-design-learnWalk through the audit with the user. If the verdict is PASS, keep it brief. If NEEDS WORK, prioritize the gaps by severity and suggest whether to fix them, update the design to match reality, or accept the deviation.
After presenting the audit verdict, prompt the user to run /tp-design-learn immediately rather than relying on a soft reminder:
Run
/tp-design-learn {design-name}now to keep project docs current? (yes / no — default yes)
/tp-design-learn {design-name} via the Skill tool directly. The user doesn't have to context-switch; doc updates land in the same session while the audit's findings are fresh.Required next step: Run
/tp-design-learn {design-name}to propagate implementation results intoproduct_roadmap.md,architecture.md, andknown_issues.md, update the Design Inventory status, and scan for affected sibling designs. Do this BEFORE/tp-design-complete— that skill will refuse to archive a design whose roadmap status hasn't been updated (override available via--skip-learnfor legacy designs only). Skipping this step causes the roadmap to go stale and downstream designs to miss critical updates.
This prompt is interactive-only. In --auto mode it does not fire — the autonomous chain is /tp-run-full-design Tier 5's responsibility, which already calls /tp-design-learn --auto after a clean audit verdict.
{design-name} per skills/_shared/validate-name.md.skills/_shared/collaboration.md — the final audit should be written by the design's current owner. Pass --force-takeover to claim the design before auditing it./tp-phase-review's job). Focus on the big picture: did we build what we set out to build?review.md files from phase reviews flagged issues, check whether those issues were resolved.implementation-audit.md under 80 lines. Dense and specific.--auto is Shape C verdict-only per skills/_shared/auto-mode.md — this skill produces an audit verdict in --auto, never edits code regardless of finding confidence. Steps 1–8 run unchanged (load artifacts, scope coverage, interface fidelity, test suite, drift, gap, addition checks, write implementation-audit.md). Step 10's interactive walk-through and the prompt-to-invoke-/tp-design-learn are both skipped — the autonomous chain is /tp-run-full-design Tier 5's responsibility, which already calls /tp-design-learn --auto after a clean audit verdict. This skill must NOT invoke /tp-design-learn from inside --auto mode: that would double-fire learn on the autonomous path and would re-introduce the "audit also writes docs" coupling that Shape C verdict-only explicitly forbids.
In --auto:
implementation-audit.md."$TP_ROOT"/skills/_shared/auto_verdict.py::compute_verdict(confidences):
implementation-audit.md; the human acts on them. This is the line between Shape C apply-fixes (/tp-design-audit) and Shape C verdict-only (this skill).three-pillars-docs/tp-designs/{design-name}/decisions.md with the verdict, finding count by confidence (e.g., 2 High, 0 Medium, 0 Low → PASS WITH NOTES), and Confidence: High (the verdict rule is deterministic, so the decision-to-emit-the-verdict is always high-confidence even when the underlying findings are not). Use [tp-implementation-audit] as the bare skill-name prefix.skills/_shared/auto-mode.md to write decisions.md (create with schema-v1 header if missing, otherwise append).decisions.md entry. Do not re-document here.decisions.md alongside implementation-audit.md in step 9's commit.Contract: in --auto, this skill writes a verdict and never edits code or design artifacts. The verdict-to-confidence-mix mapping is deterministic.