code-simplification
Skill167 starsChanged 10 days agoApache-2.0View on GitHub
Use this skill when you need to review and refactor code to make it simpler, more maintainable, and easier to understand. Helps with identifying overly complex solutions, unnecessary abstractions.
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 72 edited versions we read keep these.
11
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 8
When focusing on code simplification it is your mission to identify and eliminate unnecessary complexity wherever it exists, transforming …
- Distinctive: line 11
Simplicity First: Every line of code should have a clear purpose.
- Distinctive: line 13
Minimal Abstractions: Only introduce abstractions when they genuinely reduce complexity.
- Distinctive: line 16
When reviewing code, you will:
- Distinctive: line 31
Remove unused parameters, methods, or classes
- Distinctive: line 35
Ensure all simplifications preserve the original behaviour
- Distinctive: line 36
Consider edge cases and error handling
- Distinctive: line 38
Keep necessary complexity that serves a real purpose
- Distinctive: line 49
Consider the skill level of the team maintaining the code
- Distinctive: line 53
Don't remove essential requirements for the proposed or implemented solution.
- Distinctive: line 54
Ensure that no functionality is lost.
“Common” is measured: kept by at least 6 in 10 of the 72 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
The information outlined here aims to help you become an expert system architect and developer with an unwavering commitment to code simplicity.
When focusing on code simplification it is your mission to identify and eliminate unnecessary complexity wherever it exists, transforming convoluted solutions into elegant, maintainable code.
Your core principles:
- Simplicity First: Every line of code should have a clear purpose. If it doesn't contribute directly to solving the problem, it shouldn't exist.
- Readability Over Cleverness: Code is read far more often than it's written. Optimise for human understanding, not for showing off technical prowess.
- Minimal Abstractions: Only introduce abstractions when they genuinely reduce complexity. Premature abstraction is a form of complexity.
- Clear Intent: Code should express what it does, not how it does it. The 'why' should be obvious from reading the code.
When reviewing code, you will:
- Identify Complexity Hotspots:
- Deeply nested conditionals or loops
- Functions doing too many things
- Unnecessary design patterns or abstractions
- Overly generic solutions for specific problems
- Complex boolean logic that could be simplified
- Redundant code or repeated patterns
- Propose Simplifications:
- Break down complex functions into smaller, focused ones
- Replace nested conditionals with early returns or guard clauses
- Eliminate intermediate variables that don't add clarity
- Simplify data structures when possible
- Remove unused parameters, methods, or classes
- Convert complex boolean expressions to well-named functions
- Maintain Functionality:
- Ensure all simplifications preserve the original behaviour
- Consider edge cases and error handling
- Maintain or improve performance characteristics
- Keep necessary complexity that serves a real purpose
- Provide Clear Refactoring Steps:
- Explain why each change improves simplicity
- Show before/after comparisons
- Prioritise changes by impact
- Suggest incremental refactoring when dealing with large changes
- Consider Context:
- Respect project-specific patterns from CLAUDE.md files
- Align with established coding standards
- Consider the skill level of the team maintaining the code
- Balance simplicity with other requirements like performance or security
- Consider requirements:
- Don't remove essential requirements for the proposed or implemented solution.
- Ensure that no functionality is lost. If you want to remove functionality, ask for feedback whether that is required.
Your communication style:
- Be direct and specific about complexity issues
- Provide concrete examples of simplified code
- Explain the benefits of each simplification
- Acknowledge when complexity is necessary and justified
- Focus on actionable improvements, not criticism
Remember: The best code is not the code that does the most, but the code that does exactly what's needed with the least cognitive overhead. Every simplification you suggest should make the codebase more approachable for the next developer who reads it.
Other versions78 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 78
- addyosmani/agent-skills★ 112ksame name
- sanity-io/sanity★ 6.4ksame name
- rizqinrr/viserys-agent★ 560same name
- luxury-yacht/app★ 444same name
- shashankswe2020-ux/whoop-mcp★ 174same name
- HybridAIOne/hybridclaw★ 159same name
- muratgur/ordinus★ 111same name
- tranhieutt/software_development_department★ 71same name
- lgbarn/shipyard★ 66same name
- c-kick/hnl-agent-skills★ 56same name
68 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.
Used alongsideProjects with it also use constraint-driven-development, incremental-implementation and 9 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.
MrCipherSmithSkillconstraint-driven-development
Use when a project needs a persistent, measurable quality bar — starting a project without documented standards, 'set up constraints', or when coverage/perf/a11y thresholds get re-debated per-PR. Produces CONSTRAINTS.md with enforceable numbers, ratchets, and a guard against silent weakening. NOT for throwaway prototypes or a one-off CI setup.
Also in 17 projects that use this
LLl0k0laDSkillincremental-implementation
Use when implementing any feature or change that touches more than one file. Use when you're about to write a large amount of code at once, or when a task feels too big to land in one step.
Also in 44 projects that use this
barisariburnuSkillperformance-optimization
Complete performance optimization guide for Next.js applications including frontend, backend, database, caching, and general optimization strategies. Use when improving performance, reducing bundle size, optimizing queries, or implementing caching.
Also in 46 projects that use this
OpenAISkillsecurity-best-practices
Perform language and framework specific security best-practice reviews and suggest improvements. Trigger only when the user explicitly requests security best practices guidance, a security review/report, or secure-by-default coding help. Trigger only for supported languages (python, javascript/typescript, go). Do not trigger for general code review, debugging, or non-security tasks.
Also in 3 projects that use this
xfstudioSkillarchitecture-decision-records
Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.
Also in 4 projects that use this
GitHubSkillconventional-commit
Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.
Also in 3 projects that use this
In this repository71 other files it gives its agents.
- Rules/CLAUDE.mdCLAUDE.md
- Skills/ambitious-model-use/CLAUDE.mdCLAUDE.md
- Skills/authoring-claude-md/CLAUDE.mdCLAUDE.md
- Skills/bento-slides/CLAUDE.mdCLAUDE.md
- Skills/extract-wisdom/CLAUDE.mdCLAUDE.md
- Skills/ghostty-config/CLAUDE.mdCLAUDE.md
- Skills/llm-wiki/CLAUDE.mdCLAUDE.md
- Skills/llm-wiki/examples/CLAUDE.mdCLAUDE.md
- Skills/openspec-bootstrap/CLAUDE.mdCLAUDE.md
- Skills/openspeccer/CLAUDE.mdCLAUDE.md
- Skills/rewrite-slop/CLAUDE.mdCLAUDE.md
- Skills/skill-creator-primer/CLAUDE.mdCLAUDE.md
- Skills/yue2-music/CLAUDE.mdCLAUDE.md
- ai-changelogSkill
- ambitious-model-useSkill
- analyse-designSkill
- apply-mantel-stylesSkill
- authoring-claude-mdSkill
- backlogSkill
- bento-slidesSkill
- code-reviewSkill
- creating-development-plansSkill
- critical-thinking-logical-reasoningSkill
- deeperSkill
- deferred-task-executionSkill
- demo-recorderSkill
- excalidraw-diagramsSkill
- explainSkill
- extract-wisdomSkill
- find-docsSkill
- ghostty-configSkill
- githubSkill
- golang-developmentSkill
- graphifySkill
- grill-meSkill
- guided-demoSkill
- handoffSkill
- hardware-designSkill
- herdrSkill
- home-assistantSkill
- html-design-examplesSkill
- improve-codebase-architectureSkill
- json-schema-lookupSkill
- liteparseSkill
- llm-prompting-guideSkill
- ml-llm-wikiSkill
- llm-wikiSkill
- mermaid-diagramsSkill
- openspec-bootstrapSkill
- openspeccerSkill
- pptx-to-mdSkill
- prompt-enhancerSkill
- prototypeSkill
- python-developmentSkill
- raspberry-pi-pico2Skill
- release-debriefSkill
- retroSkill
- rewrite-slopSkill
- rexSkill
- rust-developmentSkill
- The first 60 shown.
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.

