/research-docs:brownfield-retrospectivefrom research-docs
Runs ECC engineering process retroactively on existing code. Audits current state, reconstructs past decisions, produces a four-axis gap register (thinking, coding practice, missing features, technology selection), then executes fixes forward through plan-TDD-review pipeline.
Ships in research-docs. 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.
None: SKILL.md is the whole skill.
Run ECC's engineering process retroactively against a project that was built without it. Pick any slice of an existing codebase, audit what exists, reconstruct how it got there, extract a four-axis gap register, then execute the fixes forward through the standard ECC pipeline.
The workflow is slice-first: no whole-repo onboarding is required before it is useful, and every phase is re-enterable from a durable artifact on disk. Start in the middle, work backwards, then move forward.
planner and tdd-workflow directlyspec-miner agent does that on its ownproduction-auditsecurity-reviewAll artifacts are written inside the audited project, under docs/retro/<slice>/:
| File | Phase | Purpose |
|---|---|---|
gap-register.md | 0-6 | The state machine — perimeter, Current phase: marker, and rows. The only file required to resume mid-stream. |
baseline-audit.md | 1 | Reviewer findings, test/CI snapshot, TODO inventory. |
reconstructed-spec.md | 2 | What the code actually does today (Requirements + Invariants). |
target-design.md | 4 | Target shape for the slice and the fix sequence. |
Backfilled decisions go to docs/adr/ per the architecture-decision-records skill. If the project uses OpenSpec, reconstructed-spec.md may instead be openspec/specs/<capability>/spec.md produced by spec-miner.
Start from what the user cares about today. Do not map the whole repo first.
Any of these is a valid slice:
| User signal | Slice |
|---|---|
| Names a directory, module, or service | That path plus its direct callers |
| Names a feature or user flow | The files that implement it, traced from the entry point |
| Names a bug, incident, or pain point | The code that produced it plus one level of call chain |
| Names a dependency or tech choice | Everything that touches it |
| Names nothing | The 2-3 hottest paths by churn — propose them and let the user pick |
Record the perimeter at the top of gap-register.md before anything else: paths in scope, entry points, callers, blast radius. Budget the slice at roughly 15 files or 2,000 lines; if the user's pick is bigger, cut it into named sub-slices and register each as its own row of work. A slice too big to audit in one session is a slice that never finishes. Keep a Current phase: marker beside the perimeter and advance it each time a phase completes.
Establish what exists now, with evidence. Do not fix anything yet.
codebase-onboarding, scoped to the perimeter).file:line pointer:
typescript-reviewer, python-reviewer, go-reviewer, ...)security-reviewersilent-failure-hunter for swallowed errorstype-design-analyzer where invariants are encoded in typesperformance-optimizer only if the slice is on a hot pathTODO/FIXME/HACK inventory inside the perimeter.Write everything to baseline-audit.md. Findings that get fixed during this phase corrupt the baseline — hold them for the register.
Work backwards from the present state to the decisions that produced it.
spec-miner against the slice. Its Requirements (WHEN → THEN) and Invariants become reconstructed-spec.md — the baseline truth for Phase 5 tests.git log --oneline -- <slice> for directory history; use --follow only with a single file path — age, authors, cadencedocs/adr/, README, and comments. Every decision with no written record is itself a pre-existing thinking gap — record it in Phase 3, do not silently backfill it here.code-explorer to trace execution paths before guessing at intent.Convert the audit and reconstruction into register rows. One axis per class of gap:
| Axis | Question | Sources |
|---|---|---|
| Thinking | What was decided but never recorded? Which invariants live only in code? | Decision inventory, reconstructed spec |
| Coding practice | Where does the code diverge from how ECC would have written it? | Phase 1 findings, the rules/ pack for the language, spec items with no test anchor |
| Missing features | What would a day-one build have included that this slice never got? | Boundary input validation, observability, rate limiting, idempotency, migrations plus rollback, a11y, i18n, user docs, CI gates |
| Technology selection | Is the chosen tech fighting the codebase? Outdated, duplicated, risky, or missing? | Dependency inventory, git archaeology, recon |
Register format (the table is the skill's durable output):
| ID | Axis | Gap | Evidence | Forward fix | Severity | Effort | Status |
|----|------|-----|----------|-------------|----------|--------|--------|
| G-001 | practice | Errors swallowed in retry loop | src/api/retry.ts:42 | Propagate + map at boundary | P1 | S | open |
P0 security exposure or data loss, P1 correctness, P2 practice and observability, P3 selection and cleanup.S under a session, M a few sessions, L needs its own plan.open, in-progress, done, wont-fix.Turn the register into a sequenced plan. Follow the project's existing task and approval authority. Keep the register as audit evidence linked to that system; do not create competing canonical task state. Confirm scope and obtain project-required approval before a rewrite, technology replacement, migration, or other material change.
architect or code-architect over the P0 and P1 rows to produce target-design.md: target shape for the slice, the fix sequence, and an explicit "what does not change" list to protect working behavior.status: proposed (reconstructed), date of the retro, note the original decision predates the record). Separate observed history from inferred intent, and have the project owner confirm a decision before marking it accepted. Never present a backfilled ADR as if it were written at decision time.fix-forward (repair in place), rewrite (replace the slice), leave-documented (wont-fix). A wont-fix must record its reason in the register — a wont-fix with a reason closes the thinking gap; a silent one reopens it.P0 first, then interleave quick wins with larger repairs to keep momentum.Work the register through the standard ECC pipeline, one row per session as a baseline pace:
planner (scope the row)
→ tdd-guide (failing test first — for a legacy gap the first test
usually encodes the missing invariant from reconstructed-spec.md)
→ implement
→ code-reviewer
→ security-reviewer (if the row touches input, auth, or data)
→ doc-updater + ADR (if the decision changed)
→ conventional commit
→ mark the register row done
gap-register.md statuses as rows close; the register is the durable state, not the conversation.unified-memory, context carriers) so the next session resumes from the register alone.When every row is done or wont-fix:
baseline-audit.md and verify with verification-loop — the gaps claimed closed must stay closed.gap-register.md.Any session can start in the middle. Read docs/retro/<slice>/gap-register.md first:
in-progress → Phase 5, finish that row.Current phase: marker (Phase 3 register awaiting triage, or Phase 4 backlog awaiting its first row).baseline-audit.md exists → Phase 2.wont-fix without a recorded reason.codebase-onboarding — recon baseline for Phase 1architecture-decision-records — retro-ADR backfill in Phase 4tdd-workflow — Phase 5 execution disciplineverification-loop — Phase 6 closureproduction-audit — launch-readiness lens (complementary, later)security-review — security-only requestsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ecc, codebase-audit, gap-analysis, retrospective, legacy-code
npx claudepluginhub siddu1004/sfp --plugin research-docs40 skills in this plugin
/architecture-decision-recordsCapture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an index README. Use when the user says 'record this decision' or 'ADR this', chooses between frameworks or databases, discusses trade-offs, or asks why the codebase is shaped this way./codebase-memory-mcpConnect persistent local code intelligence and architectural dependency graphs using Codebase Memory MCP. Use when exploring complex codebases, querying architectural relationships, or maintaining cross-session code context./codebase-onboardingAnalyze an unfamiliar codebase and generate a structured onboarding guide with architecture map, key entry points, conventions, and a starter CLAUDE.md. Use when joining a new project or setting up Claude Code for the first time in a repo./code-tourCreate CodeTour `.tour` files — persona-targeted, step-by-step walkthroughs with real file and line anchors. Use for onboarding tours, architecture walkthroughs, PR tours, RCA tours, and structured "explain how this works" requests. Use when the user asks for a code tour, onboarding walkthrough, PR tour, or an explanation of how a subsystem works./deep-researchProduce cited research reports from multiple web sources using firecrawl and exa MCP tools — plan sub-questions, search and deep-read sources, then synthesize findings with inline citations and confidence levels. Use when the user asks to research a topic in depth, run a deep dive or investigation, or do competitive analysis, technology evaluation, market sizing, or due diligence on a company./defuddleExtract clean Markdown from HTML pages with Defuddle CLI.15 plugins ship this exact skill · first indexed Oct 11, 2026
Showing 6 of 15 plugins, one per repository first
Other plugins' skills for the same job