Audits wiring drift between UI surfaces and backend capabilities—orphan surfaces, unwired capabilities, contract mismatches. Triggered by requests like 'audit our wiring' or 'find drift'. Generic but optimized for React (hooks, tRPC, Next.js).
Ships in nickcrew-claude-ctx-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Diff a project's consumed surface (UI buttons, components, hooks, fetch calls, tRPC client invocations, GraphQL queries, server actions) against its produced capability (route handlers, hook exports, tRPC routers, GraphQL resolvers, exported async functions) and report every mismatch as a prioritized finding with citations on both sides.
The audit's load-bearing claim: every UI consumption should match exactly one backend production, and every production should be consumed somewhere. Orphans, drift, and gaps are the failure modes. The report is the punch list.
Trigger this skill when the user asks for:
Do not trigger for:
architectural-analysis)security-auditor or /security-review)test-review)Six phases. The diff (phase 3) is the load-bearing one — the rest are supporting work to feed it accurate inputs.
Establish:
references/react-patterns.md and references/capability-enumeration.md adapts based on what's detected.docs/audits/<YYYY-MM-DD>/ — create now if missing.docs/architecture/<recent-date>/ exists from a previous architectural-analysis run, the UI-surfaces and integrations reports can be passed as priors to skip rediscovery (saves sub-agent time).Two sub-agents, dispatched in a single message with two Agent tool calls (parallel, one-shot, no team_name):
general-purpose, sonnet) — walks UI, returns the consumed-set per references/surface-enumeration.md.general-purpose, sonnet) — walks backend, returns the produced-set per references/capability-enumeration.md.Both return YAML registries (see references/audit-protocol.md for the contract). Both need sonnet because correlation reasoning across full files matters here — Explore excerpt reads aren't sufficient.
Read references/drift-detection.md. The orchestrator:
(kind, identifier).references/finding-categories.md.Apply the rubric in references/finding-categories.md:
| Severity | Default applies to | Override when |
|---|---|---|
| broken | orphan-surface, method-drift | Surface is dead code (no callers itself) — downgrade to stale |
| drifted | shape-drift, validation-drift, permission-drift | Auth-bypass flavor → upgrade to broken |
| stale | stale-label | Public-facing user surface → upgrade to drifted |
| gap | unwired-capability, unsurfaced-config | Capability is brand-new (recent commit) → annotate "expected, planned" |
Every finding's citation must resolve. Use codanna (when .codanna/ exists) or grep + Read to confirm:
Discard findings whose citations fail to resolve. Maintain a discard log for the report's verification section.
docs/audits/<date>/report.md per references/report-template.md.docs/audits/<date>/registries/surfaces.yaml and capabilities.yaml. These let future audits diff against them (compare-to-history is a future v2 feature).docs/audits/<date>/wiring.mmd showing surface→capability with broken edges highlighted in red, unwired capabilities in amber.bash scripts/render.sh docs/audits/<date>/ to produce wiring.svg.docs/audits/2026-05-10/
├── report.md ranked findings, severity-grouped
├── wiring.mmd optional supplemental graph
├── wiring.svg optional, run scripts/render.sh
└── registries/
├── surfaces.yaml raw consumed-set
└── capabilities.yaml raw produced-set
Every finding must carry path:line citations on both sides where applicable:
fetch call, useQuery invocation, hook import, form submission, etc.).grep -rn 'route /api/old' server/ returned 0 matches").Fabricated "missing X" claims are the dominant failure mode for audits — sub-agents over-fire on absence. The verification protocol grep-checks every absence claim before the finding is recorded.
Generic by design but optimized for React. The signal catalog in references/react-patterns.md covers:
For non-React targets, the same workflow applies but the FE-side signal catalog is sparser. Tell the user up front if the UI-side detection will be limited.
references/audit-protocol.md — workflow phases, registry contracts, sub-agent promptsreferences/surface-enumeration.md — UI consumption discovery (generic + React-aware)references/capability-enumeration.md — backend capability discovery (Node.js HTTP, Next.js, tRPC, GraphQL)references/drift-detection.md — the diff algorithm in detailreferences/finding-categories.md — 8 categories, severity rubric, evidence requirementsreferences/react-patterns.md — React-specific signal catalogreferences/report-template.md — ranked findings report skeletonscripts/render.sh — render wiring.mmd to wiring.svg via mmdcscripts/verify-findings.sh — quick path:line existence check over a findings reportreferences/audit-protocol.md (opens in a new tab)references/capability-enumeration.md (opens in a new tab)references/drift-detection.md (opens in a new tab)references/finding-categories.md (opens in a new tab)references/react-patterns.md (opens in a new tab)references/report-template.md (opens in a new tab)references/surface-enumeration.md (opens in a new tab)scripts/render.sh (opens in a new tab)scripts/verify-findings.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/nickcrew-claude-ctx-plugin:wiring-auditfrom nickcrew-claude-ctx-plugin
nickcrew-claude-ctx-plugin@cascade-code-languages-misc-1 is listed by joshuarweaver/cascade-code-languages-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin nickcrew-claude-ctx-plugin156 skills in this plugin
/accessibility-auditFast, high-signal accessibility triage for pages, components, or PRs targeting WCAG 2.2 AA compliance./agent-loopsComplete operational workflow for implementer agents (Codex, Gemini, etc.) making code changes and writing tests. Drives all work through atomic commits — each loop operates on the smallest complete, reviewable change. Defines the Code Change Loop, Test Writing Loop, Lint Gate, and Issue Filing process with circuit breakers, severity levels, and escalation rules. Requires `cortex git commit` for all commits. Includes bundled provider-aware review scripts that keep same-model shell-outs as the last resort, plus a fresh-context Codex fallback for code review and test audit. Use this skill when starting any implementation task./Other plugins' skills for the same job