
improve
Plugin先用强模型审计代码库,按正确性、安全、性能、测试等维度列出带证据的问题,写成可交给便宜模型执行的计划并评审执行结果;自身不改代码。shadcn 出品。
improve
An agent skill that audits any codebase and writes implementation plans for other agents to execute.
The idea: use your most capable model for the part where intelligence compounds — understanding the codebase, judging what's worth doing, writing the spec — and hand execution to cheaper models. The skill never implements anything itself. The plan is the product.
you → /improve (expensive model, advises)
plans/ → 001-fix-n-plus-one.md (self-contained specs)
other agent → implements, tests, ships (cheap model, executes)
Install
npx skills add shadcn/improve
Works in any agent that supports Agent Skills format. The plans it writes are plain markdown, so any agent (or human) can pick them up.
Usage
/improve full audit → prioritized findings → plans
/improve quick cheap pass: hotspots, top findings only
/improve deep exhaustive: every package, every category
/improve security focused audit (also: perf, tests, bugs, ...)
/improve branch audit only what the current branch changes
/improve next feature suggestions — where to take the project
/improve plan <description> skip the audit, spec one thing
/improve review-plan <file> critique and tighten an existing plan
/improve execute <plan> dispatch a cheaper executor, review its work
/improve reconcile refresh the backlog: verify, unblock, retire
/improve ... --issues also publish plans as GitHub issues
How to use
A typical first run, start to finish:
- Open your agent in the repo and run
/improve(or/improve quickto keep it cheap). - It maps the repo, audits it, and comes back with a findings table. Reply with the ones you want planned — "plan 1, 3 and 5".
- Plans land in
plans/— one file each, plus an index with the recommended order. Read them; they're meant to be reviewed. - Hand a plan to any agent ("implement plans/001-*.md"), or let the skill run it:
/improve execute 001. It dispatches a cheaper model in an isolated worktree, reviews the diff against the plan, and reports back with a verdict. Merging stays up to you. - Next session, run
/improve reconcileto clean up the backlog: verify what landed, refresh what drifted, unblock what got stuck.
Before a PR, /improve branch does the same thing scoped to just what your branch changes.
Example
A run against shadcn/ui came back with findings like:
| # | Finding | Category | Effort | Confidence |
|---|------------------------------------------------|-----------|--------|------------|
| 1 | shadow-config duplicated in search.ts/view.ts, | tech-debt | M | HIGH |
| | copies already drifted (TODO at search.ts:31) | | | |
| 2 | O(n²) icon migration (migrate-icons.ts:168) | perf | S | HIGH |
…and rejected a few, with reasons recorded so they don't come back next run:
- [SEC-01] https_proxy env var "SSRF": by-design — standard proxy convention,
every CLI honors it. Not a finding.
Picking #1 produced this plan — current code excerpted, exact steps, the repo's own test/lint commands as verification gates, and STOP conditions for when reality doesn't match.
How it works
Recon. Maps the repo: stack, conventions, and the exact build/test/lint commands — these become verification gates in every plan. It also ingests intent and design docs when present — ADRs (docs/adr/), PRDs, CONTEXT.md, DESIGN.md, PRODUCT.md — so decided tradeoffs aren't re-flagged as findings, direction suggestions stay grounded in stated product intent, and plans speak the repo's own vocabulary. Composes with any repo that already maintains these docs.
Audit. Fans out parallel subagents across nine categories: correctness, security, performance, test coverage, tech debt, dependencies & migrations, DX, docs, and direction (feature suggestions — every one must cite evidence from the repo itself, no generic idea-slop). Every finding carries file:line evidence, impact, effort, and confidence.
Vet. Subagents over-report, so the advisor re-reads every cited location itself before showing you anything — false positives get dropped, wrong attributions get corrected, rejections get recorded.
Prioritize. Findings land in a table ordered by leverage (impact ÷ effort, weighted by confidence). You pick what becomes plans.
Plan. One file per selected finding, written into plans/ with an index, priority order, and dependency graph.
What makes the plans executable
Plans are written for the weakest plausible executor — a model that has never seen the advisor session and may be much smaller. Three properties carry that:
- Self-contained. All context is inlined: exact file paths, current-state code excerpts, repo conventions with an exemplar file, verified commands. No "as discussed above."
- Verification gates. Every step ends with a command and its expected output. Done criteria are machine-checkable. The executor never has to judge whether it succeeded.
- Hard boundaries. Explicit out-of-scope lists, and STOP conditions — "if X, stop and report" — instead of letting a small model improvise when reality doesn't match the plan.
Each plan also stamps the git commit it was written against, so executors run a mechanical drift check before touching anything.
Closing the loop
Plans aren't fire-and-forget:
execute <plan>spawns a cheaper executor subagent in an isolated git worktree, hands it the plan, then reviews the result like a tech lead — re-runs every done criterion, checks scope compliance, reads the diff against intent. Verdict: approve (merging stays your call), send back for revision (max 2 rounds), or block and refine the plan.reconcileprocesses what happened since: verifies DONE plans still hold, investigates BLOCKED ones and rewrites around the obstacle, refreshes drifted plans, retires findings that got fixed independently.--issuespublishes plans as GitHub issues — same self-contained body, so any agent or human can pick them up where work already lives.
Hard rules
- Never modifies source code itself. The only writes go to
plans/; executors edit only in disposable worktrees, and merging is always yours. - Never runs commands that mutate your working tree — read, search, and read-only analysis only.
- Never reproduces secret values. Locations and credential types only, rotation always recommended.
- Asked to implement? It declines and points at the plan (or offers
execute).
License
MIT © shadcn
相关资源

Superpowers
Plugin完整的编码 agent 开发方法论:先头脑风暴澄清需求、写实施计划,再用子代理驱动开发,贯穿红绿 TDD、系统化调试与代码评审。已收入 Claude Code 与 Codex 官方插件市场。
obra/superpowers300k
Feature Dev
Plugin七阶段功能开发流程:澄清需求、用并行子代理探索代码库、设计架构、实现,最后做质量评审,用 /feature-dev 启动。Anthropic 官方插件。
anthropics/claude-code151k
PR Review Toolkit
Plugin六个专项评审子代理,分别检查注释准确性、测试覆盖、静默失败、类型设计、代码规范与可简化之处,可单独调用或一次跑全。Anthropic 官方插件。
anthropics/claude-code151k
wshobson/agents
Plugin多宿主插件市场,含 90 余个单一用途插件、200 余个子代理与 180 余个技能,覆盖语言开发、运维、安全、数据与多代理编排;安装插件时只加载该插件的内容。
wshobson/agents40.9k
Code Simplifier
Plugin在不改变行为的前提下精简、规整最近改动的代码:减少嵌套与冗余、改善命名,并遵循 CLAUDE.md 里的项目规范。Anthropic 官方插件。
anthropics/claude-plugins-official40.2k
Requesting Code Review
Skill完成任务或合并前,按 git 提交区间派发独立的评审子代理,对照计划与需求检查实现,并按严重、重要、次要分级处理反馈。obra/superpowers 技能集之一。
obra/superpowers301k