Skill Security

shadcn-improve

An agent skill that audits a codebase with your strongest model and writes self-contained plans into plans/ for cheaper models to execute. It never edits source code itself; it can dispatch an executor in a worktree and review the result.

  • 10.6k GitHub stars
  • ⚖️ MIT

Last verified: write-up checked

npx skills add shadcn/improve
shadcn-improve — skill preview

What it is

improve is shadcn's answer to a cost question: where should the expensive model's tokens go? The README's answer is understanding the codebase, judging what is worth doing and writing the spec, and nothing else. The skill never implements. "The plan is the product." A run has five stages. Recon maps the stack, the conventions and the exact build, test and lint commands, which later become verification gates, and it reads ADRs, PRDs, CONTEXT.md, DESIGN.md and PRODUCT.md when present. Audit fans out subagents over nine categories, including a "direction" category for feature suggestions that must cite evidence from the repo. Vet has the advisor re-read every cited location itself, because subagents over-report. Prioritize orders the table by impact divided by effort, weighted by confidence. Plan writes one file per finding you choose. The README shows a run against shadcn/ui that found a duplicated shadow-config whose copies had already drifted and an O(n²) icon migration, and that rejected a proxy-variable "SSRF" finding as by-design. Plans stamp the commit they were written against, so an executor checks for drift before touching code. We read the README and did not run an audit ourselves.

Who it's for

  • Developers who pay for a top model and want it spent on judgement and specs, not typing
  • Teams that want an audit backlog of reviewable plan files or GitHub issues
  • Anyone preparing a pull request who wants only the branch's changes audited

Requirements

Requirements

  • An agent that supports the Agent Skills format (Claude Code and others)
  • Node.js for the npx skills installer
  • A git repository; execute uses an isolated git worktree
  • The GitHub CLI or access only if you use --issues

Setup

  1. Step 1

    bash
    npx skills add shadcn/improve
  2. Step 2

    bash
    Open your agent inside the repository you want audited
  3. Step 3

    bash
    Run /improve quick first if you want to keep the first pass cheap

مهارة للوكيل تفحص الكود بأقوى نموذج لديك وتكتب خططا مكتملة في مجلد plans/ لتنفذها نماذج أرخص. لا تعدل الكود بنفسها أبدا، ويمكنها تشغيل نموذج منفذ في نسخة عمل منفصلة ثم مراجعة ما فعله.

Examples

Full audit

Prompt
prompt
/improve                        full audit → prioritized findings → plans

Expected output: Maps the repo, audits nine categories, vets every finding and returns a prioritized table.

Audit only your branch

Prompt
prompt
/improve branch                 audit only what the current branch changes

Expected output: The README suggests this before opening a PR.

Pick findings to plan

Prompt
prompt
plan 1, 3 and 5

Expected output: Your reply to the findings table; one plan file per selected finding lands in plans/ with an index.

Let a cheaper model execute a plan

Prompt
prompt
/improve execute 001

Expected output: Dispatches a cheaper executor in an isolated worktree, re-runs the plan's done criteria and returns approve, revise or block. Merging stays yours.

Clean up the backlog next session

Prompt
prompt
/improve reconcile              refresh the backlog: verify, unblock, retire

Expected output: Verifies finished plans still hold, rewrites blocked ones and retires findings fixed elsewhere.

Pros & cons

Pros

  • Pro:Read-only by design: the only writes go to plans/, and merging is always yours
  • Pro:Every finding carries file:line evidence, and the advisor re-reads each cited location before showing it
  • Pro:Plans are written for a small executor: inlined code, a command and expected output per step, STOP conditions
  • Pro:Rejected findings are recorded with reasons so they do not return next run
  • Pro:Reads ADRs, PRDs and DESIGN.md so decided tradeoffs are not re-flagged; MIT licence

Cons

  • Con:A full or deep audit on a large repo uses many subagents on your most expensive model
  • Con:The skill declines to implement anything; you need a second agent or execute for the edits
  • Con:execute allows at most 2 revision rounds before it blocks and asks to refine the plan
  • Con:Plan quality depends on the repo having working test and lint commands to use as gates