simplify
Skill0 starsChanged 9 months agoMITView on GitHub
Simplify and refactor code while preserving functionality and library constraints.
130 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- UsmanBuk/skillstheir own version, first seen Nov 29, 2026
- UsmanBuk/Skillstheir own version, first seen Nov 29, 2026
- CsHeng/agent-skillstheir own version, first seen Nov 29, 2026
- mattwynne/skillstheir own version, first seen Nov 29, 2026
- yanmxa/cc-pluginstheir own version, first seen Nov 29, 2026
- carriegale2710/skills-librarytheir own version, first seen Nov 29, 2026
Used with
Projects with it also use clonedeps, verification-planning and 2 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.
mike22890Skillclonedeps
将项目依赖的第三方库源码克隆到本地,便于深入阅读和调试。当需要查看库的实现细节、阅读源码、调试第三方依赖、理解 SDK/framework 内部机制、查看 node_modules 之外的原始代码、分析开源库架构、学习他人代码、查看依赖的 TypeScript 类型定义时使用。
Also in 3 projects that use this
paulingramSkillverification-planning
Use BEFORE verifying any claim -- fix, feature, deploy, diagnosis -- to choose HOW. Enumerate venues (local, dev, replay, seeded fixture, prod read-only), pick the cheapest faithful one, record a verification_plan. Adds cheaper-faithful-method-found; a gate needing a live environment makes the run PROVIDE one.
Also in 3 projects that use this
codebycoreySkillbatch
Create multiple proposals from free-form feature descriptions. Use when planning several features at once, batch creating proposals, or setting up related changes.
Also in 4 projects that use this
mehd-ioSkilldataviz
Also in 3 projects that use this
Other versions130 projects use a version of this.
Word for word · 2
- gaebalai/claude-code-orchestrator★ 18100% same
- ilhae-ai/claude-code-orchestrator★ 18100% same
Edited · 1
- DeL-TaiseiOzaki/claude-code-orchestra★ 19917% same
Wrote their own version · 127
- Z3Prover/z3★ 13ksame name
- aaddrick/claude-desktop-debian★ 5.6ksame name
- elliothux/open-compute★ 4.6ksame name
- CherryHQ/cherry-studio-app★ 4.1ksame name
- meta-pytorch/OpenEnv★ 2.9ksame name
- huggingface/OpenEnv★ 2.9ksame name
- bholmesdev/hubble.md★ 1.5ksame name
- kdlbs/kandev★ 1.2ksame name
- bex-co/bex★ 997same name
- truffle-ai/dexto★ 661same name
117 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 repository14 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- checkpointingSkill
- codex-systemSkill
- design-trackerSkill
- gemini-systemSkill
- initSkill
- planSkill
- research-libSkill
- startprojectSkill
- tddSkill
- team-implementSkill
- team-reviewSkill
- update-designSkill
- update-lib-docsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 118 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Read the file(s) to understand current structure
- Very specific: line 30
Check constraints in .claude/docs/libraries/
- Distinctive: line 38
Verify it doesn't break library usage
- Distinctive: line 84
Always preserve library features/constraints
- Distinctive: line 86
Don't change behavior (refactoring only)
- Distinctive: line 87
Run tests after each significant change
“Common” is measured: kept by at least 6 in 10 of the 118 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
Simplify Code
Simplify and refactor $ARGUMENTS.
Simplification Principles
- Single Responsibility - 1 function = 1 thing
- Short Functions - Target under 20 lines
- Shallow Nesting - Early return, depth ≤ 2
- Clear Naming - Clear enough to not need comments
- Type Hints Required - On all functions
Steps
1. Analyze Target Code
- Read the file(s) to understand current structure
- Identify complexity hotspots (deep nesting, long functions)
- List functions/classes to simplify
2. Check Library Constraints
- Identify libraries used in target code
- Check constraints in
.claude/docs/libraries/ - Web search for unclear library behaviors
3. Plan Refactoring
For each complexity issue:
- What change to make
- Why it improves readability
- Verify it doesn't break library usage
4. Execute Refactoring
Apply changes following these patterns:
Early Return:
# Before
def process(value):
if value is not None:
if value > 0:
return do_something(value)
return None
# After
def process(value):
if value is None:
return None
if value <= 0:
return None
return do_something(value)Extract Function:
# Before
def main():
# 50 lines of mixed concerns
...
# After
def main():
data = load_data()
result = process_data(data)
save_result(result)5. Verify with Tests
uv run pytest -vNotes
- Always preserve library features/constraints
- Web search for unclear points
- Don't change behavior (refactoring only)
- Run tests after each significant change
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.

