improve
Skill410 starsChanged 4 months agoMITView on GitHub
Makes existing code easier to understand without changing behavior. Use to simplify structure, remove duplication or dead code, improve names, or remove unnecessary abstractions.
36 other projects use a version of this.
Adopted by
Most recently taken up by
- crbnos/carbontheir own version, first seen Oct 4, 2026
- kyashrathore/Claxedotheir own version, first seen Oct 4, 2026
- getstackit/stackittheir own version, first seen Oct 1, 2026
- garthcodes/claude-skillstheir own version, first seen Sep 30, 2026
- manusco/resonancetheir own version, first seen Sep 28, 2026
- jim60105/copilot-prompttheir own version, first seen Sep 28, 2026
Used with
Projects with it also use goal, loop and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jthackSkillgoal
Codex-style /goal for Claude Code. Use when the user runs /goal, wants a persistent long-running objective, or wants to pause, resume, clear, or complete a goal.
Also in 3 projects that use this
ww-w-aiSkillloop
Run a prompt or command on a recurring interval. Useful for monitoring, polling, or periodic checks.
Also in 3 projects that use this
Microsoft AzureSkillbuild
Build the TypeSpec Rust emitter from source. Run this after cloning the repo, after pulling changes, or when TypeScript source files have been modified.
Also in 4 projects that use this
Google CloudSkillfix
Plan a remediation strategy after a test failure.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 4 projects that use this
renatorozasSkillgrill
Adversarial code review. Don't let me ship until the changes pass your scrutiny.
Also in 3 projects that use this
Other versions36 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 36
- crbnos/carbon★ 2.7ksame name
- SethGammon/Citadel★ 922same name
- gadicc/yahoo-finance2★ 802same name
- shobcoder/shob★ 577same name
- AkaraChen/aghub★ 271same name
- kyashrathore/Claxedo★ 83same name
- joshuadavidthomas/agent-skills★ 54same name
- valpere/session-indexer★ 42same name
- manusco/resonance★ 37same name
- getstackit/stackit★ 32same name
26 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- architectureSkill
- codex-issue-coordinatorSkill
- designSkill
- factorySkill
- html-docSkill
- planSkill
- reviewSkill
- task-to-prSkill
- testSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 35 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Read the target, its tests, and relevant surrounding code.
- Distinctive: line 16
If that behavior lacks tests, add focused coverage and run it against the unchanged code.
- Distinctive: line 20
Run tests and checks that cover behavior the refactor can affect.
- Distinctive: line 28
Do not add product scope or absorb unrelated cleanup.
- Distinctive: line 29
Prefer a few clear edits over a broad rewrite.
“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Improve
Make code easier to understand without changing what it does. Reduce the layers a reader must trace and the hidden state they must remember.
Process
- Identify the target from the request, current diff, or recently changed code.
- Read the target, its tests, and relevant surrounding code. State the behavior that must not change.
- If that behavior lacks tests, add focused coverage and run it against the unchanged code. Commit the passing test-only change before refactoring. If automated tests cannot exercise the behavior, explain why and give other evidence.
- Find unnecessary complexity, duplication, dead code, weak names, awkward boundaries, and abstractions that cost more than they help.
- Make focused improvements by deleting, deduplicating, renaming, simplifying, extracting, or inlining.
- Preserve public interfaces, data shapes, errors, and user-visible behavior unless the user explicitly asks to change them.
- Run tests and checks that cover behavior the refactor can affect. Report what improved, what behavior was preserved, and the evidence.
Return
State what became simpler, what behavior stayed the same, and which checks prove it. Name any behavior that remains unverified.
Boundaries
- Do not add product scope or absorb unrelated cleanup.
- Prefer a few clear edits over a broad rewrite.
- Preserve behavior even when a redesign would be easier.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

