executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
plan-stub-checkerPlan-only sweep for stubs, dead buttons, fake components, unwired handlers, and dead links, then a wiring plan. Use when "find dead buttons", "stub checker", "fake components", "unwired handlers", or "dead links".
Independent GitHub snapshot · Automated classification · Original documentation governs
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-ship