simplify
Skill114 starsChanged 8 months agoMITView on GitHub
Review code for unnecessary complexity and simplify it. Use when the user wants to clean up code, reduce complexity, remove dead code, or make code more readable.
130 other projects use a version of this.
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 codex-system, design-tracker and 10 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.
gaebalaiSkillcodex-system
PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
Also in 4 projects that use this
gaebalaiSkilldesign-tracker
PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.
Also in 4 projects that use this
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
- +6 more from gaebalai
Other versions130 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 130
- 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
120 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- browseSkill
- chatgpt-searchSkill
- commitSkill
- debugSkill
- docxSkill
- file-readingSkill
- frontend-designSkill
- pdf-readingSkill
- pdfSkill
- pptxSkill
- product-self-knowledgeSkill
- review-prSkill
- skill-creatorSkill
- xlsxSkill
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 120 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 24
Delete code rather than add it when possible
- Distinctive: line 25
If removing something breaks nothing, it shouldn't have been there
- Distinctive: line 27
Don't design for hypothetical future requirements
- Distinctive: line 31
Read the target files
- Distinctive: line 35
Verify the changes don't break anything (run tests if available)
“Common” is measured: kept by at least 6 in 10 of the 120 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
Code Simplification
Review the specified code (or recent changes) for unnecessary complexity and simplify it.
What to look for
- Over-abstraction — helpers, utilities, or wrapper functions used only once. Inline them.
- Unnecessary indirection — callback chains, event buses, or service layers that just pass data through.
- Defensive overkill — error handling for impossible cases, null checks deep inside trusted internal code.
- Dead code — unused imports, unreachable branches, commented-out blocks, unused variables.
- Complex conditionals — nested if/else that could be early returns, switch statements that could be lookups.
- Premature generalization — config objects for one use case, plugin systems with one plugin, factory patterns for one type.
- Redundant comments — comments that restate the code instead of explaining why.
Principles
- Three similar lines of code are better than a premature abstraction
- Delete code rather than add it when possible
- If removing something breaks nothing, it shouldn't have been there
- The right amount of complexity is the minimum needed for the current requirements
- Don't design for hypothetical future requirements
Process
- Read the target files
- For each issue found, explain what's overly complex and why it can be simplified
- Show the simplified version
- Apply the fix
- Verify the changes don't break anything (run tests if available)
$ARGUMENTS
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.

