simplify
Skill547 starsChanged 57 days agoMITView on GitHub
Simplify code and reduce repository-wide redundancy while preserving behavior. Use after implementation or when asked to refactor, remove dead or duplicate code, reduce code volume, flatten complexity, or audit a repository for unnecessary abstractions and compatibility paths.
73 other projects use a version of this.
Adopted by
Most recently taken up by
- hmjBill/skillstheir own version, first seen Oct 5, 2026
- duncanmorris/agent-skillstheir own version, first seen Oct 5, 2026
- HMBSbige/skillstheir own version, first seen Oct 3, 2026
- LegendApp/legend-skillstheir own version, first seen Oct 2, 2026
- bex-co/bextheir own version, first seen Sep 29, 2026
- venhdev/skillstheir own version, first seen Sep 28, 2026
Used with
Projects with it also use clonedeps, deepwork 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.
hbollonSkillclonedeps
Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @librarian is enough.
Also in 3 projects that use this
hbollonSkilldeepwork
Orchestrator-only workflow for heavy coding sessions, multi-phase implementation, and risky refactors. Use for complex work that needs planning, review gates, and persistent progress tracking.
Also in 3 projects that use this
JordanCoinSkillcodemap
Analyze codebase structure, dependencies, changes, cross-agent handoffs, and get code-aware intelligence. Use when user asks about project structure, where code is located, how files connect, what changed, how to resume work, before starting any coding task, when you need risk analysis and skill guidance, or when Codemap should tune project config before analysis.
Also in 4 projects that use this
llama-farmSkillcommit-push-pr
Commit changes, push to GitHub, and open a PR. Includes quality checks (security, patterns, simplification). Use --quick to skip checks.
Also in 3 projects that use this
nicolasestremSkillfinalize
Complete project finalization with quality gates and git workflow automation.
Also in 3 projects that use this
PostHogSkillreact-doctor
Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.
Also in 3 projects that use this
Other versions73 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 73
- huggingface/OpenEnv★ 2.6ksame name
- kdlbs/kandev★ 899same name
- Archive228/loopkit★ 756same name
- truffle-ai/dexto★ 650same name
- bex-co/bex★ 569same name
- brianlovin/agent-config★ 375same name
- akitaonrails/my-skills★ 205same name
- DeL-TaiseiOzaki/claude-code-orchestra★ 198same name
- sd0xdev/sd0x-harness★ 191same name
- bholmesdev/skills★ 177same name
63 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.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 71 edited versions we read keep these.
12
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
Read the repository's AGENTS.md, CLAUDE.md, and relevant nested instructions before analyzing code.
- Distinctive: line 29
Do not collapse distinct responsibilities, remove useful boundaries, introduce nested ternaries or dense one-liners, or trade debuggability …
- Distinctive: line 33
Use the repository's configured tools when available, and confirm their findings in source and tests:
- Very specific: line 35
Use ast-grep --lang <language> -p '<pattern>' for syntax-shaped searches, repeated structures, and structural transformations.
- Distinctive: line 36
Use Serena for symbol declarations, implementations, semantic references, file overviews, and language-server diagnostics.
- Distinctive: line 37
Use GitNexus for dependency and execution-flow questions.
- Distinctive: line 38
Use text search only for non-semantic evidence such as strings, comments, configuration keys, registries, URLs, reflection, dynamic …
- Distinctive: line 40
Treat graph and language-server results as navigation evidence, not proof by absence.
- Distinctive: line 56
Leave high-risk or insufficiently understood code unchanged.
- Distinctive: line 58
Never delete or alter an export, public API, protocol field, plugin or framework entry point, configuration-driven path, migration, …
- Distinctive: line 64
Run focused tests and diagnostics for the changed code, then the broadest practical repository checks defined by project-owned scripts.
- Distinctive: line 65
Run GitNexus change detection when available and confirm that affected symbols and execution flows match the intended scope.
- Distinctive: line 78
Document only decisions that help a reviewer understand the safety or intent of the simplification.
“Common” is measured: kept by at least 6 in 10 of the 71 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 Safely
Improve clarity and reduce unnecessary code. Treat fewer lines as a useful outcome, not the objective: prefer explicit, maintainable code over dense or clever code.
Establish the constraints
- Read the repository's
AGENTS.md,CLAUDE.md, and relevant nested instructions before analyzing code. Treat those files as the source of project conventions; do not assume generic style rules override them. - Inspect
git statusand preserve unrelated or pre-existing worktree changes. - Audit the whole repository by default. If the user supplies a narrower scope, honor it.
- Identify the public contracts, tests, build commands, and package boundaries relevant to each candidate. Do not infer that repository-local usage is the complete contract surface.
Find simplification candidates
Look for:
- unreachable or unused private code;
- duplicated branches, helpers, types, and transformations;
- redundant conditions, state, wrappers, adapters, and intermediate representations;
- abstractions with no independent responsibility;
- comments that only restate the code;
- nesting or control flow that can be expressed more directly;
- compatibility or defensive paths whose original consumer may no longer exist.
Do not collapse distinct responsibilities, remove useful boundaries, introduce nested ternaries or dense one-liners, or trade debuggability for a lower line count.
Build an evidence chain
Use the repository's configured tools when available, and confirm their findings in source and tests:
- Use
ast-grep --lang <language> -p '<pattern>'for syntax-shaped searches, repeated structures, and structural transformations. - Use Serena for symbol declarations, implementations, semantic references, file overviews, and language-server diagnostics. Read Serena's initial instructions and activate the project before using its semantic tools.
- Use GitNexus for dependency and execution-flow questions. Resolve the indexed repository first, run upstream impact analysis before changing a shared symbol, and run change detection after editing to check the affected scope.
- Use text search only for non-semantic evidence such as strings, comments, configuration keys, registries, URLs, reflection, dynamic imports, and generated-code references.
Treat graph and language-server results as navigation evidence, not proof by absence. If an index is stale, follow the repository's re-indexing instructions. If Serena or GitNexus is unavailable or incomplete, continue conservatively and do not interpret missing references as proof that deletion is safe.
Classify before editing
Assign every candidate to one class:
Proven equivalent
Apply the cleanup directly only when source, references, contracts, and tests support preserving all observable behavior. Typical examples include exact duplicate logic, unreachable private branches, and unused private symbols with no dynamic or generated references.
Approval required
Do not edit candidates that appear low risk but may change edge behavior. Report the evidence, uncertainty, affected surface, proposed deletion, and expected reduction, then wait for explicit user approval. This includes obsolete-looking compatibility paths, defensive fallbacks, lifecycle hooks, and symbols that might have external consumers.
Keep
Leave high-risk or insufficiently understood code unchanged. Record the evidence needed to reconsider it when that is useful.
Never delete or alter an export, public API, protocol field, plugin or framework entry point, configuration-driven path, migration, compatibility shim, or reflection/dynamic-loading target solely because no local semantic reference is found.
Refine and verify
- Apply only proven-equivalent changes and any approval-required changes the user explicitly accepts.
- Re-read the result and remove accidental complexity introduced by the refactor.
- Run focused tests and diagnostics for the changed code, then the broadest practical repository checks defined by project-owned scripts.
- Run GitNexus change detection when available and confirm that affected symbols and execution flows match the intended scope.
- Revert or revise any simplification that changes behavior, weakens a contract, obscures intent, or lacks adequate verification.
Report the result
Summarize:
- proven-equivalent code removed or simplified;
- approval-required candidates left unchanged;
- high-risk candidates intentionally kept;
- tests, diagnostics, and impact checks run;
- meaningful reduction in files, symbols, branches, or lines when measurable.
Document only decisions that help a reviewer understand the safety or intent of the simplification.
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.

