/kenji:plan-stub-checkerfrom kenji skills
Scans a codebase for stubs, dead buttons, fake/placeholder components, unwired handlers, and dead links. Produces a burndown inventory and phased wiring plan without implementing changes.
Ships in kenji skills. 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.
Degree of freedom: MIXED — wiring plan is judgment; detection passes and MCP/live probes run exactly. Stay plan-only. No wiring until approved.
Role: Senior full-stack engineer + reliability auditor.
Task: Exhaustively find every stub, dead button, fake/placeholder component, and unwired handler across the repo. Trace whether each should connect to a real backend / data pipeline / Supabase / Sentry path. Produce a burndown + wiring plan. Audit & plan only — do not implement.
| Skill | Does |
|---|---|
| plan-stub-checker (this) | Plan only — inventory, burndown, wiring roadmap |
debug-fe-be-integration | Diagnose and fix FE-BE mismatches |
audit-fe-api | Audit API calls vs backend contracts |
test-qa | Live QA — may find dead buttons during crawl |
debug-sentry-monitor | Triage production Sentry errors |
workflow-fix-and-ship | Fix → verify → PR after you approve |
Chain: plan-stub-checker → approval → plan-test-coverage → … see docs/PLAN-LOOPS.md
Execute: debug-fe-be-integration / workflow-fix-and-ship → test-playwright
Propose: wire Settings → Export to the existing
POST /api/exportaction; add loading/error/empty. Risk:onClick={() => {}}— user thinks export ran; no request, no error. Keep-working: Settings → Save profile already hits the server action. Phase: Phase 1 — silent-failure P0. Cite:app/settings/page.tsx:84. Missing action →[NEEDS REAL TARGET].
Read references/preservation-contract.md before Phase 1.
Acknowledge in output #1 — restate what you will NOT do:
| File | Contents |
|---|---|
references/detection-taxonomy.md | Types, grep patterns, integration checks |
references/detection-methodology.md | Six-pass methodology + linkage tracing |
references/output-templates.md | Burndown, inventory, phased plan templates |
1. Auto-detect stack (routes, data layer, integrations)
2. Entry-point + static analysis sweep
3. Handler-binding + data-flow trace
4. False-positive filter (dynamic invocation pass)
5. Integration linkage (API, Supabase, Sentry, pipeline)
6. Burndown + phased wiring plan
7. Research + guardrails (current year)
Read package.json and config:
| Signal | Layer |
|---|---|
@supabase/supabase-js | Supabase — find createClient, supabase/migrations |
@sentry/* | Sentry — find init, instrumentation config |
react-query / @tanstack/react-query | Data fetching |
next/server actions | Server actions |
trpc / graphql | API style |
Record: route manifest paths, API client location, env example file.
Execute all passes in references/detection-methodology.md:
Review requiredTaxonomy: references/detection-taxonomy.md
Keep Confirmed vs Review required separate.
Optional live click pass: protocol-browser-anti-stall + your own named session (-s=…) before playwright-cli.
Delegate a detection pass to a subagent only when it is sizeable, independent of the others, and its raw output (grep dumps, route manifests) has no place in the plan; brief it with the exact commands and the columns to return. It edits nothing, like this pass. Long sweeps are expected — context compaction exists, so finish the inventory rather than wrapping up early.
For every stub that should be live, map:
[NEEDS REAL TARGET] if missingUse MCP when available:
| MCP | Use |
|---|---|
| Supabase | list_tables, policies, advisors — verify tables/RLS exist |
| Sentry | Production errors on related routes — swallowed failures |
| Firecrawl | Current-year Supabase RLS + Sentry instrumentation patterns |
| Playwright | Click dead-looking controls; observe network/nav |
Never invent table names or endpoints.
Burndown columns:
Surface | Element | Type | Classification | Intended target | Wiring gap | Severity P0–P3 | Effort S/M/L | Risk | File:line
Group by page/screen. Quantify totals.
Phased wiring plan:
Per confirmed stub: proposed wiring (target, contract, auth, states) + one-line "what must keep working."
Industry-standard enhancements (cite current year via Firecrawl):
catch with handling + Sentry capture; breadcrumbs/tags/releaseEach phase independently reviewable + revertible.
audit-ui-states; live QA crawl → test-qaReview required stays uncertain until the dynamic-invocation pass[NEEDS REAL TARGET] listDeliver as markdown or canvas for large repos, then end the turn with a standalone recap in chat: the two or three highest-impact stubs and the first phase to approve. The document is the deliverable — write it before the recap. Do not implement wiring unless user approves in a follow-up.
audit-ui-states — empty/error/offline rendering (wired controls that still look broken)debug-fe-be-integration / audit-fe-api / test-qa / workflow-fix-and-shipWhat SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
/audit-auth-flowsRead-only audit of app-layer auth: route×gate matrix, session lifecycle, OAuth, provider traps (getSession vs getUser, middleware-only gates, CVE-2025-29927). Use when "audit our auth" or "check middleware protection". RLS → plan-rls-audit.
/audit-backend-architectureRead-only backend-architecture audit and pattern advisor, gated by stack. Use when "audit backend architecture", "which pattern should I use", "am I over-engineering", or "sync vs event-driven". Enforced boundaries → enhance-arch-boundaries.
/audit-bundle-sizeAnalyse and shrink a web app's JavaScript bundle. Use when "reduce bundle size", "code splitting", "slow initial load", or "why is the bundle so big". Runtime → audit-performance.
Other plugins' skills for the same job