reuse-first
Skill1 starsChanged 14 days agoMITView on GitHub
Check for existing code or a library before creating anything new.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- Wasif-ZA/metatroopertheir own version, first seen Nov 29, 2026
- carriegale2710/skills-librarytheir own version, first seen Nov 29, 2026
- beingaeditor/reuse-firsttheir own version, first seen Nov 22, 2026
- Leksgg/claude-skillstheir own version, first seen Oct 20, 2026
- tentenco/skillstheir own version, first seen Sep 10, 2026
- bhagyamudgal/skillstheir own version, first seen Sep 9, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- AlemTuzlak/skills★ 45same name
- tentenco/skills★ 5same name
- bhagyamudgal/skills★ 2same name
- phatnguyen03022001/agent-skills★ 2same name
- answersamir/codebase-hygiene★ 1same name
- beingaeditor/reuse-first★ 1same name
- carriegale2710/skills-library★ 1same name
- Wasif-ZA/metatrooper★ 1same name
- Leksgg/claude-skills★ 0same name
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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compactSkill
- lean-codeSkill
- learn-correctionsSkill
- mapSkill
- safe-refactorSkill
- self-checkSkill
- setupSkill
- split-fileSkill
- terseSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Map: Search CODEMAP.md for the name and 2-3 synonyms (e.g.
- Very specific: line 14
Scout: Ask the explorer agent one precise question: "Is there existing code that <does X>?
- Distinctive: line 17
Confirm a "no match": Do one direct search yourself (Grep for the key word) before believing it.
- Very specific: line 19
Dependencies: Check the project's dependency file (requirements.txt, pyproject.toml, package.json, go.mod, ...) for a library already …
- Distinctive: line 24
Never send project code or private details in a web search.
“Common” is measured: kept by at least 6 in 10 of the 8 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
reuse-first
Duplicate code costs tokens twice: once to write it, again every time someone has to read both copies. Search first; it is far cheaper than building.
Steps (stop at the first step that finds a fit)
- Map. Search
CODEMAP.mdfor the name and 2-3 synonyms (e.g. "parse date" →parse,date,time,format). Match whole words. - Scout. Ask the
exploreragent one precise question: "Is there existing code that<does X>? Return path:line or no match." For a wide search, run 2explorercalls at once with different angles (definitions vs. callers). - Confirm a "no match". Do one direct search yourself (Grep for the key word) before believing it. Scouts can miss.
- Dependencies. Check the project's dependency file (
requirements.txt,pyproject.toml,package.json,go.mod, ...) for a library already installed that does it. - Standard solution. Still nothing and the task is common (dates, CSV, retries,
validation)? Ask the
researcheragent for the standard-library or well-known way. Never send project code or private details in a web search.
Then decide, in one line
reuse: <path:line>: call it as is.extend: <path:line>: small change to existing code (keep its callers working).new: <path>: nothing fits; say why in a few words. After creating it, refresh the map (/map).
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.

