improvelisted
Install: claude install-skill samibs/skillfoundry
# /improve — Continuous Improvement Loop
> Scans the codebase for improvement opportunities, fixes them one at a time,
> and loops until no improvements remain or the token budget is exhausted.
>
> This is Boris Cherny's "agent prompting itself" pattern applied to codebase health:
> the agent scans → prioritizes → fixes → checkpoints → scans again.
> No human input between iterations.
>
> Protocol engine: `agents/_ralph-loop-protocol.md` + `agents/_self-prompt-protocol.md`
---
## Usage
```
/improve Scan and fix all improvement categories
/improve arch Architectural improvements only
/improve duplication Duplicate code / abstraction consolidation
/improve quality Code quality (GuardLoop patterns GL-01 through GL-10)
/improve security Security posture improvements
/improve --dry-run Show what would be fixed, do not apply any changes
/improve --resume Resume a previously interrupted improvement loop
/improve --budget [N] Set max iterations (default: 10)
/improve --pr Open a PR with all fixes when the loop completes
```
---
## What This Command Does
This is a **self-prompting loop** — the agent finds the work, does the work, finds more work, and stops when there is nothing left.
```
LOOP {
1. SCAN — Identify all improvement opportunities in scope
2. PRIORITIZE — Rank by impact, select the single highest-priority item
3. FIX — Apply the fix (surgical — one