code-simplifier
Skill2 starsChanged 58 days agoMITView on GitHub
Simplify and refine recently modified code for clarity, consistency, and maintainability while preserving exact behavior. Use when the user asks to simplify, clean up, refactor for readability, polish recently changed code, or review touched code for unnecessary complexity.
42 other projects use a version of this.
Adopted by
Most recently taken up by
- kopp0510/claude-ddtheir own version, first seen Oct 5, 2026
- aktsmm/Agent-Skillstheir own version, first seen Oct 4, 2026
- yeisonrestrepo/code-conductortheir own version, first seen Oct 3, 2026
- zvadaadam/az-skillstheir own version, first seen Sep 28, 2026
- kaiohenricunha/dotbabeltheir own version, first seen Sep 24, 2026
- rtk-ai/rtktheir own version, first seen Sep 22, 2026
Used with
Projects with it also use comment-analyzer, performance 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.
lin30Skillcomment-analyzer
微博评论抓取与深度分析,生成可视化HTML报告。Use when user asks to analyze weibo comments, analyze social media comments, or requests sentiment analysis from weibo posts
Also in 3 projects that use this
pluginagentmarketplaceSkillperformance
Optimize application performance through caching strategies, load balancing, database scaling, and monitoring. Build systems handling thousands of concurrent users.
Also in 3 projects that use this
AWSSkillsetup-matt-pocock-skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
Also in 3 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 4 projects that use this
AWSSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 9 projects that use this
- +2 more from aws
Other versions42 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 42
- rtk-ai/rtk★ 82ksame name
- getsentry/skills★ 1ksame name
- Azure/azqr★ 793same name
- microsoft/ghqr★ 529same name
- feiskyer/codex-settings★ 244same name
- FlorianBruniaux/ccboard★ 96same name
- zvadaadam/az-skills★ 49same name
- roman01la/skills-agents★ 48same name
- 1024XEngineer/bytemind★ 43same name
- kumaran-is/claude-code-onboarding★ 36same name
32 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 repository8 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 18 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 40 edited versions we read keep these.
18
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 12
Use this skill to refine recently modified code unless the user explicitly asks for a broader scope.
- Distinctive: line 17
Do not change what the code does.
- Distinctive: line 18
Keep all original features, outputs, and behavior intact.
- Distinctive: line 19
Treat behavior changes as bugs unless the user requested them.
- Distinctive: line 22
Read and follow local guidance such as AGENTS.md, CLAUDE.md, README files, contribution docs, formatter configs, lint rules, and nearby …
- Distinctive: line 23
Prefer the repository's established style over generic preferences.
- Distinctive: line 24
Keep import order, naming, file layout, typing style, error handling, and component patterns consistent with the project.
- Distinctive: line 28
Remove redundant code and weak abstractions.
- Distinctive: line 31
Remove comments that only restate obvious code.
- Very specific: line 32
Avoid nested ternary operators.
- Distinctive: line 36
Do not create clever one-liners that are harder to debug.
- Distinctive: line 37
Do not combine unrelated concerns into a single function, module, or component.
- Distinctive: line 38
Do not remove helpful abstractions that improve organization.
- Distinctive: line 39
Do not prioritize fewer lines over maintainability.
- Distinctive: line 43
Do not perform broad refactors unless the user asks for them.
- Distinctive: line 44
Avoid unrelated formatting churn.
- Distinctive: line 50
Look for unnecessary branching, duplication, awkward names, redundant abstractions, and unclear control flow.
- Distinctive: line 52
Run focused tests, type checks, lint checks, or syntax validation when feasible.
- Distinctive: line 62
Call out any tests or checks that could not be run.
“Common” is measured: kept by at least 6 in 10 of the 40 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 Simplifier
Purpose
Improve code clarity, consistency, and maintainability without changing behavior.
Use this skill to refine recently modified code unless the user explicitly asks for a broader scope. Preserve all existing features, outputs, APIs, side effects, and observable behavior.
Core Rules
- Preserve functionality.
- Do not change what the code does.
- Keep all original features, outputs, and behavior intact.
- Treat behavior changes as bugs unless the user requested them.
- Follow project standards.
- Read and follow local guidance such as
AGENTS.md,CLAUDE.md, README files, contribution docs, formatter configs, lint rules, and nearby code patterns. - Prefer the repository's established style over generic preferences.
- Keep import order, naming, file layout, typing style, error handling, and component patterns consistent with the project.
- Read and follow local guidance such as
- Enhance clarity.
- Reduce unnecessary complexity and nesting.
- Remove redundant code and weak abstractions.
- Improve variable, function, and component names when they make intent clearer.
- Consolidate related logic when it improves readability.
- Remove comments that only restate obvious code.
- Avoid nested ternary operators; prefer
switchstatements orif/elsechains for multiple conditions. - Choose explicit readable code over dense or overly compact code.
- Avoid over-simplification.
- Do not create clever one-liners that are harder to debug.
- Do not combine unrelated concerns into a single function, module, or component.
- Do not remove helpful abstractions that improve organization.
- Do not prioritize fewer lines over maintainability.
- Keep scope tight.
- Focus on code touched in the current session or recently modified code.
- Do not perform broad refactors unless the user asks for them.
- Avoid unrelated formatting churn.
Workflow
- Identify the recently modified or user-specified code.
- Inspect nearby conventions and project guidance before editing.
- Look for unnecessary branching, duplication, awkward names, redundant abstractions, and unclear control flow.
- Apply small behavior-preserving refinements.
- Run focused tests, type checks, lint checks, or syntax validation when feasible.
- Report only meaningful changes and any verification performed.
Output Expectations
When reporting results:
- State which files were simplified.
- Mention whether behavior was intended to remain unchanged.
- Include verification commands and results when run.
- Call out any tests or checks that could not be run.
Source
Adapted from Anthropic's code-simplifier Claude plugin agent:
https://github.com/anthropics/claude-plugins-official/blob/main/plugins/code-simplifier/agents/code-simplifier.md
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.

