From three-pillars
Design Audit — multi-angle review of a detailed design against the actual codebase before implementation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/three-pillars:tp-design-audit {design-name} [--auto] [--force-takeover]{design-name} [--auto] [--force-takeover]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Thorough multi-angle review of a detailed design against the actual codebase. Catches interface mismatches, schema conflicts, resource constraints, and implementation feasibility issues before code is written.
Thorough multi-angle review of a detailed design against the actual codebase. Catches interface mismatches, schema conflicts, resource constraints, and implementation feasibility issues before code is written.
Argument: {design-name} (required) — must match an existing directory under three-pillars-docs/tp-designs/.
three-pillars-docs/tp-designs/{design-name}/detailed-design.md must exist.Run the collaboration preflight per skills/_shared/collaboration.md with phase: "audit". The audit may update detailed-design.md and plan.md in Step 8 — the lock ensures those edits come from 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 audit. Use it to focus the parallel exploration agents in Step 2 — verifying interfaces against files PageRank confirms exist is faster than launching agents blind.
Read both design.md and detailed-design.md from the design directory.
Read project docs per skills/_shared/read-project-docs.md. Check that the design does not contradict decisions recorded in architecture.md. Flag contradictions as INCONSISTENT findings.
Read three-pillars-docs/vision.md if it exists and explicitly evaluate:
three-pillars-docs/vision.md does this design serve? If you can't name one, flag this as a CRITICAL MISALIGNMENT finding — either the design should not be built, or the vision is stale and needs /tp-docs-update.MISALIGNMENT findings are presented alongside CRITICAL/MEDIUM/MINOR categories in Step 7 and must be resolved with the user before the audit completes — do not silently pass an audit over a vision conflict.
For EVERY interface defined in the detailed design (data structures, interfaces, function/method signatures), launch exploration agents to verify against the actual codebase:
Modified modules: For each file listed as "modify", read the current file and verify:
Data flow threading: For each data flow connection (A produces X, B consumes X):
Cross-boundary schema agreement: For data structures that cross serialization or language boundaries (e.g., backend → JSON → frontend, API contracts, IPC):
Resource constraints: If the design involves constrained resources (memory, GPU, connections, rate limits), verify budgets and lifecycle management. Can proposed components coexist within resource limits?
State persistence: If the design adds new state (iteration counts, plans, revisions), verify the current persistence layer can handle it. Check what's saved, what format, and what would need extension.
External dependencies: If the design assumes capabilities of external tools or services, verify those capabilities actually exist. Check parameter support, output format, granularity.
Search for cases where:
For each feedback loop or orchestration flow:
Categorize issues as:
MISALIGNMENT — Design conflicts with or ignores three-pillars-docs/vision.md:
Misalignment findings are resolved differently from the others: the user decides whether to drop the design, reshape it, or update the vision. Do not propose code-level fixes.
CRITICAL — Would block implementation or cause architectural failure:
MEDIUM — Would require unplanned work but not block:
MINOR — Should be addressed but won't block:
For each issue:
After discussing findings with the user:
detailed-design.md with fixesplan.md to reflect expanded/new tasks{design-name} per skills/_shared/validate-name.md.skills/_shared/collaboration.md — audit fixes land in detailed-design.md and plan.md, which must not be edited by a non-owner.--auto is Shape C apply-fixes per skills/_shared/auto-mode.md — an audit with confidence-based dispatch. Steps 1–6 run unchanged (load artifacts, vision-alignment check, interface verification, architecture feasibility, schema conflict detection, edge-case analysis, compile findings). Step 7 (interactive walk-through) and Step 8 (with-user-approval edits) are replaced by the dispatch rule below.
In --auto:
design.md's ## Vision alignment section already names and justifies the exact tension (e.g., the non-goal touched, the principle traded). Otherwise they are Low and escalate. Code-level fixes are never appropriate for MISALIGNMENT — High here means "the design already acknowledged this; the audit's job is to record the finding and move on," not "auto-apply a code edit."detailed-design.md and/or plan.md to land the fix exactly as it would have been applied in step 8. Append a Decision Entry to three-pillars-docs/tp-designs/{design-name}/decisions.md containing the finding, the fix, and a brief diff summary. Use [tp-design-audit] as the bare skill-name prefix.audit clean with Confidence: High and exit 0.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 any artifact edits in the audit's commit.Contract: in --auto, this skill is all-or-nothing — either every finding is High-confidence and the fixes land cleanly, or the whole batch escalates BLOCKED for human review.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub curtisthe/three-pillars-plugin --plugin three-pillars