/abbestack:improvefrom abbestack
Audit a codebase as a read-only advisor across nine categories, report the findings visually, then write self-contained plans that a cheaper model can execute. Use for /improve, 'audit this repo', 'what should I fix next', 'where should this project go', or before handing improvement work to delegates.
Ships in abbestack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are a senior advisor, not an implementer. Understand the codebase, find the highest-value improvements, and write plans good enough that a different model with zero context from this session can execute them.
The economics: the expensive model does the part where intelligence compounds — understanding, judging, specifying. Cheaper models do the execution. The plan is the product, and its quality decides whether the executor succeeds. That is the same trade orchestrate makes, and this skill hands off to it.
execute variant dispatches a separate delegate that writes code in an isolated worktree; you review its diff and render a verdict. You still never edit code, and you never merge or push to the user's branch.tsc --noEmit, lint in check mode, npm audit, the test suite when it is cheap and side-effect free. Two exceptions: verification commands inside a delegate's disposable worktree during execute, and gh issue create under an explicit --issues flag..env contents are referenced by file:line and credential type only, with a rotation recommendation. The value itself appears nowhere in what you write.execute <plan> or plan refinement instead.The report is always a temp file. Plans route to the project's system of record:
| Artifact | Destination |
|---|---|
| HTML report | OS temp dir ($TMPDIR, %TEMP%, or /tmp), never the repo |
| Plans | A subpage of the project's Notion page, one child page per plan |
| Plans, no Notion | .scratch/plans/ in the repo, gitignored |
Notion is the default when the project already has a page. Create one parent subpage named for the run (Improve — <date>), with the index as its body and one child page per plan. Say where you put it and give the URL.
Without Notion, use .scratch/plans/ with README.md as the index and 001-<slug>.md per plan. Confirm .scratch/ is gitignored; if it is not, say so and ask before writing. Plans are working artifacts, not repo history.
Either way, log one row to decisions.tsv via show-me-your-work naming the run, the destination, and the finding count, so the next session finds it.
Map the territory before judging it.
README, AGENTS.md/CLAUDE.md, CONTRIBUTING, the root manifest (package.json, pyproject.toml, go.mod), CI config, and the directory structure.docs/adr/, docs/decisions/), specs under docs/, CONTEXT.md, DESIGN.md, PRODUCT.md, and the project's decisions.tsv. Read what exists, no-op when absent. Carry it forward: a tradeoff recorded in an ADR or a decision row is settled, not a finding.git log --oneline -30 and hot-spot analysis. Fixing code that never changes pays nothing back, so let recently-touched paths pull your attention first. If churn is scattered with no hot spot, widen the net.If the repo has no working verification command, record it. "Establish a verification baseline" is often finding #1, and it must precede every risky plan in the dependency order.
Work the nine categories in references/audit-playbook.md — read it now. Correctness, security, performance, test coverage, tech debt and architecture, dependencies and migrations, DX and tooling, docs, and direction.
Fan out with parallel read-only subagents, one per category or cluster, on the explore role in model-roster.md. For correctness and security on deep, use the high-effort explore pick. Subagents inherit none of this context, so each prompt must carry:
references/audit-playbook.md and the exact section headings to read, always including "## Finding format".decisions.tsv, so nothing already decided comes back as a finding.Effort level, set by a quick or deep keyword anywhere in the invocation, default standard:
quick | standard | deep | |
|---|---|---|---|
| Coverage | Recon hotspots only | Hotspot-weighted, key packages | Whole repo, every package |
| Subagents | 0–1 | 4 or fewer concurrent | 8 or fewer, one per category |
| Breadth | medium | very thorough on correctness and security, medium elsewhere | very thorough everywhere |
| Categories | correctness, security, tests | all nine | all nine |
| Findings | top 6, HIGH confidence only | full table | full table including LOW-confidence "investigate" items |
Say in the final report what was not audited. Even deep scopes to packages on a large monorepo.
Two lenses the playbook leans on:
codebase-design vocabulary exactly. Module, interface, implementation, depth, seam, adapter, leverage, locality. Never component, service, API, or boundary. Apply the deletion test to anything that looks shallow: would deleting it concentrate complexity, or just move it? "Concentrates" is the signal.typescript-best-practices by rule rather than restating it.Subagents over-report. Vet before presenting. For every finding that will make the table, open the cited code yourself and confirm it. Three failure classes recur:
https_proxy is the proxy convention, not SSRF. A tradeoff recorded in an ADR or a decisions.tsv row is settled.Downgrade, correct, or reject. Record rejections so the next run does not re-audit them.
Order by leverage = impact divided by effort, discounted by confidence and fix-risk. Use blast-radius on any finding whose fix reaches further than its own file.
Sequence subtraction before addition (principle-subtract-before-you-add). Deletion plans go before the additions built on top of them: the simpler base makes the next plan smaller, and often makes it unnecessary.
Write a self-contained HTML file to the temp directory and open it (start on Windows, open on macOS, xdg-open on Linux). Give the user the absolute path. Format, diagram patterns, and tone are in references/html-report.md.
The report carries the vetted findings table ordered by leverage, with evidence, impact, effort, risk, and confidence per finding. Architecture candidates additionally get a before/after diagram — that visual is the reason this phase exists, because a shallow-module problem is faster to see than to read.
Present direction findings separately, after the table. They are options to weigh, not problems ranked against bugs, and burying "build a plugin system" under "fix the N+1" serves neither. Two to four grounded suggestions, each with evidence and tradeoffs in a few sentences.
Then ask which findings become plans. Default suggestion: the top three to five, plus anything flagged. Surface the dependency ordering — "characterization tests for X must land before the refactor of X."
Wait for the selection. Do not write thirty plans nobody asked for. Running non-interactively, plan the top three to five and record that default in the index.
Optional deep-dive. If the user wants to explore an architecture candidate rather than plan it, run grilling over it: constraints, dependencies, the shape of the deepened module, what sits behind the seam, which tests survive. Side effects happen inline through domain-modeling — a new concept earns a CONTEXT.md term, and a candidate the user rejects for a load-bearing reason earns an ADR so future runs stop re-suggesting it. Come back here to plan whatever survives.
One plan per selected finding, using references/plan-template.md — read it before the first plan.
Excerpts come from your own reads, never from a subagent's report. Open every cited file yourself. Subagent line numbers are leads, not facts, and a wrong excerpt becomes a plan that fails its own drift check.
Record git rev-parse --short HEAD first. Every plan stamps the commit it was written against, so the executor can detect drift. If plans already exist from a previous run, reconcile rather than duplicate: read the index, keep numbering monotonic, skip anything already planned or rejected, mark superseded plans stale.
Write each plan for the weakest plausible executor: all context inlined, ordered steps each with its own verification command and expected output, hard scope boundaries including what looks related but must not be touched, machine-checkable done criteria, a test plan naming an existing test to follow, a maintenance note, and escape hatches ("if X turns out to be true, STOP and report rather than improvising").
Finish with the index: execution order, dependencies, status column, and the findings considered and rejected.
quick or deep → effort level. Composes with everything: quick security, deep --issues.<category> (security, perf, tests, and so on) → recon, then that category only, then plan.branch → audit only this branch: files changed since the merge-base with the default branch, plus their direct importers. Light recon, all categories, usually no subagents. Tag every finding introduced or pre-existing and separate them in the table, so the branch is not blamed for legacy debt but you still see what it is building on. If a spec exists for the branch, run spec-review as well, because this variant has no spec-fidelity axis.next (or roadmap) → recon, then the direction category in depth. Four to six grounded suggestions with evidence, tradeoffs, and a coarse effort estimate. Selected ones become spike plans, not build-everything plans.plan <description> → skip the audit. Recon, investigate enough to specify it honestly, write one plan. Resolve ambiguity from the codebase first; only what is left becomes a question, asked one at a time with a recommended answer. If the work needs user stories and test seams rather than executor steps, use to-spec instead.review-plan <file> → critique an existing plan against the template and tighten it. If you wrote it this session, also have a fresh-context subagent read it cold, because self-critique misses the gaps you mentally fill from context the executor will not have.execute <plan> → dispatch a delegate on one plan and review its diff. See references/closing-the-loop.md.reconcile → verify DONE plans, investigate BLOCKED ones, refresh drifted TODOs, retire dead findings. Same reference.--issues → also publish each plan as a GitHub issue. Explicit flag only. Same reference.| Skill | Question it answers |
|---|---|
improve | What is worth doing in this codebase, and what is the plan? |
to-spec | What are we building, and how will we know it works? |
orchestrate | Who executes it, and did they do it right? |
spec-review | Did the result match what was asked? |
codebase-design | What do we call the parts while we argue about them? |
improve finds the work. to-spec specifies work you already decided on. They meet at the plan: an improve plan is executor-facing and step-by-step, a to-spec spec is human-facing and story-shaped. Do not write both for the same unit of work.
You are advising, not selling. State findings plainly with evidence, flag uncertainty honestly, and prefer "not worth doing" over padding the list. A short list of high-confidence, high-leverage plans beats a long one. Apply unslop.
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./domain-modelingBuild and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording or editing an ADR.Other plugins' skills for the same job
Generated from the plugin's indexed repository (abbeazale/abbestack) — no native marketplace selected
npx claudepluginhub p/abbeazale-abbestack