simplify-code
Skill2 starsChanged 56 days agoMITView on GitHub
Use when simplifying changed code and removing unnecessary complexity while preserving behavior.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- NousResearch/hermes-agenttheir own version, first seen Nov 13, 2026
- rakaarwaky/agents-arwakytheir own version, first seen Oct 6, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- wundercorp/lokitheir own version, first seen Sep 11, 2026
- abduznik/abduznik-skillstheir own version, first seen Sep 7, 2026
Used with
Projects with it also use weekly-review-planning, blocked-page-recovery 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.
aivrarSkillweekly-review-planning
Weekly reset: commitments, stalled work, next-week plan.
Also in 7 projects that use this
aivrarSkillblocked-page-recovery
Recover blocked/paywalled/WAF'd pages via fallbacks.
Also in 7 projects that use this
john-data-chenSkillteams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
Also in 8 projects that use this
kevinnftSkillpython-debugpy
Debug Python: pdb REPL + debugpy remote (DAP).
Also in 10 projects that use this
kevinnftSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 6 projects that use this
braxtonROSE4Skillp5js
Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems, flow fields, shaders (GLSL), pixel manipulation, kinetic typography, WebGL scenes, audio analysis, mouse/keyboard interaction, and headless high-res export. Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.
Also in 11 projects that use this
- +5 more from aivrar
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- NousResearch/hermes-agent★ 267ksame name
- aivrar/portable-hermes-agent★ 232same name
- nickvasilescu/korgo-bot★ 35same name
- wundercorp/loki★ 24same name
- delorenj/skills★ 15same name
- Samin12/skills★ 9same name
- alwalid-khllo/syriana-agent★ 3same name
- hassan-mohiddin/freeflow★ 3same name
- abduznik/abduznik-skills★ 2same name
- john-data-chen/hermes-agent-backup★ 2same name
9 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 repository34 other files it gives its agents.
- accessibilitySkill
- agent-instructionsSkill
- analyze-change-effectsSkill
- article-processingSkill
- ci-cd-automationSkill
- commitSkill
- communicate-clearlySkill
- compare-solutionsSkill
- create-project-instructionsSkill
- daily-meeting-updateSkill
- debugSkill
- design-code-structureSkill
- error-handlingSkill
- explain-codeSkill
- explain-decisionsSkill
- github-actionsSkill
- handoffSkill
- learning-planSkill
- people-memorySkill
- pr-followupSkill
- prototypeSkill
- prSkill
- report-work-activitySkill
- review-code-changesSkill
- stacked-prSkill
- tddSkill
- teachSkill
- typescript-best-practicesSkill
- verification-authoringSkill
- verifySkill
- workflow-to-skillSkill
- worktrunkSkill
- write-documentationSkill
- youtube-processingSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
8
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 15
Commit and publication follow the active task and repository rules.
- Distinctive: line 19
Use the caller's files, diff, commit, or current task boundary.
- Distinctive: line 38
Read the complete changed unit, its relevant contracts, and representative callers and tests.
- Distinctive: line 43
Remove comments that repeat the code.
- Distinctive: line 48
Check the actual producer, trust boundary, and lifetime before removing a validation or guard.
- Distinctive: line 57
Use the language's type and validation mechanisms to express the real domain contract.
- Distinctive: line 65
Keep helpers and abstractions that name a useful concept or isolate a cohesive responsibility.
- Very specific: line 74
When the reason for a consequential workaround remains unclear, use relevant history or the available explain-decisions skill by registered …
- Distinctive: line 91
Run the relevant existing behavior checks and the repository's required type, lint, build, and smoke checks against the final code.
“Common” is measured: kept by at least 6 in 10 of the 19 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
Make the requested change easier to read and maintain through focused edits that preserve its behavior. Apply the criteria using the project's language, runtime semantics, and conventions. Judge code against its purpose; its appearance does not establish who wrote it or whether it is wrong.
An explicit review-only request returns recommendations without edits. A cleanup request authorizes the cleanup, not new features or a repository-wide redesign. Commit and publication follow the active task and repository rules.
Fix the scope
Use the caller's files, diff, commit, or current task boundary. Read the relevant repository instructions and record existing staged, unstaged, and untracked work before editing. Inspect surrounding code and callers to understand the changed unit without making neighboring debt part of the cleanup.
For a branch or PR, resolve its actual target base from the supplied context or
repository/PR metadata. A branch's tracking upstream may be its own remote head,
not its target base. Use the merge-base for the branch's introduced changes;
include working-tree changes only when they belong to the requested scope. Do
not assume main, compare base tips as though their independent changes were
yours, or include earlier layers of a stack. For a commit, inspect its own patch.
For uncommitted work, inspect both git diff --cached and git diff, plus
relevant untracked files from git ls-files --others --exclude-standard. Preserve
unrelated edits and existing staging. If no scope can be established and the
plausible choices would change what gets edited, ask before making those edits.
Simplify from evidence
Read the complete changed unit, its relevant contracts, and representative callers and tests. Identify the knowledge a reader must retain and the work that adds no behavior or useful explanation. Make a simplification only when its benefit and behavioral equivalence are supported:
- Remove comments that repeat the code. Preserve non-obvious reasons, invariants, public contracts, external constraints, legal notices, and meaningful tooling directives. Clear names or a small refactor can replace narration; they do not automatically replace a reason. Encode a constraint when that fits the current scope and preserves it, then remove only the prose made redundant.
- Check the actual producer, trust boundary, and lifetime before removing a validation or guard. Static types alone do not validate external data. A guarantee about mutable state can expire when execution yields, calls other code, or shares that state with concurrent work. Keep necessary checks at the point where their guarantee is used.
- Inspect error handling for recovery, translation, cleanup, and logging. Preserve how and when callers receive failures, including failures delivered after execution has been deferred. Removing a wrapper or wait must preserve operation completion and resource-release timing, not just the eventual result.
- Use the language's type and validation mechanisms to express the real domain contract. Correct unsafe type escapes, unchecked conversions, or suppressions at their cause. Replacing one escape with another or hiding invalid data behind a fallback does not establish safety.
- Reduce nesting, duplicate decisions, dead code, and unnecessary indirection when the local flow becomes clearer. Preserve evaluation order, side effects, resource lifetime, public data representations, and distinctions among valid values. A shorter expression is not automatically simpler.
- Keep helpers and abstractions that name a useful concept or isolate a cohesive responsibility. Judge their value by what the reader must understand; line counts and numbers of callers do not decide whether to inline or extract them.
- Preserve relevant performance and resource constraints. If a simpler form could materially change cost on a sensitive path, measure against those constraints before adopting it.
- Match established formatting and naming. Keep broad reformatting, dependency changes, and unrelated renames outside a focused cleanup.
When the reason for a consequential workaround remains unclear, use relevant
history or the available explain-decisions skill by registered name. Check its present effect
as well as its original motivation. Missing evidence is a reason to retain the
uncertain part and explain the gap, not evidence that it is redundant.
A discovered bug is a separate behavioral decision. Repair it when the active task already authorizes that fix and verify it explicitly; otherwise report it and continue independent cleanup. Do not silently change failure behavior or product rules under a claim of equivalence. Stop when the scoped opportunities are resolved; no edit is a valid result when the code is already clear.
Check and finish
Review the resulting diff against the recorded starting state, including unrelated edits and staging. Confirm each edit has a concrete benefit and that no constraint disappeared merely to reduce lines or warnings.
Run the relevant existing behavior checks and the repository's required type,
lint, build, and smoke checks against the final code. Exercise the specific
invariant that justified removing a guard or error path. Add a test only when it
covers a meaningful risk that existing checks cannot establish. Do not rewrite
expectations or disable checks to make a cleanup pass. Use verify by registered
name when the task needs application-level evidence or its local recipe.
Report what was simplified, the scope, exact checks and outcomes, and anything retained because its necessity or verification remains unresolved. Keep the report proportionate. A passing typecheck alone is not evidence of unchanged runtime behavior; missing required checks keep the corresponding completion claim open.
For requested maintenance of this skill's sources, read references/upstream-updates.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.

