simplify-code
Skill1 starsChanged 18 days agoMITView on GitHub
Simplify recently changed code without changing its behavior. Removes unnecessary wrappers, speculative abstractions, redundant checks, dead code, and narrating comments, one change at a time, rerunning the affected checks after each. Use after implementing a change, when a diff feels heavier than the problem, or when asked to simplify, clean up, or reduce complexity in a change.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- jabbott-iii/Grimoiretheir own version, first seen Nov 29, 2026
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- hybridlabor-api/aostheir own version, first seen Nov 29, 2026
- lyricat/agent-skillstheir own version, first seen Nov 29, 2026
- jabbott-iii/Doctrinatheir own version, first seen Nov 29, 2026
Used with
Projects with it also use blocked-page-recovery, document-to-action-items 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.
nobodyohm-webSkillblocked-page-recovery
Recover blocked/paywalled/WAF'd pages via fallbacks.
Also in 7 projects that use this
Samin12Skilldocument-to-action-items
Extract cited obligations, deadlines, tasks from documents.
Also in 7 projects that use this
Samin12Skillcompetitor-news-monitor
Watch named companies for material news; cited digests.
Also in 7 projects that use this
michaellam26Skillsdlc-review
Trigger stage-specific reviews for an SDLC project and save results to reviews/
Also in 5 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
mae616Skillp5js
p5.js(クリエイティブコーディング)のProcessing由来「コードでスケッチ」思想を軸に、setup/drawループ・座標系・インタラクション・パフォーマンス最適化を整理する。p5.js、Processing、クリエイティブコーディング、ジェネラティブアート、インタラクティブ表現、ビジュアルプログラミング、Canvas描画、パーティクル、フラクタル、ノイズ表現に関する相談で必ず使うこと。ユーザーが「コードでアート」「動くビジュアル」「インタラクティブな描画」と言った場合にも適用する。
Also in 11 projects that use this
- +1 more from Samin12
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- NousResearch/hermes-agent★ 267ksame name
- vudovn/ag-kit★ 8.2ksame name
- vudovn/antigravity-kit★ 8.2ksame name
- marin-community/marin★ 4.1ksame name
- Cosmian/kms★ 378same name
- wundercorp/loki★ 28same name
- delorenj/skills★ 17same name
- Samin12/skills★ 10same name
- hybridlabor-api/aos★ 9same name
- jabbott-iii/Doctrina★ 5same name
27 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 repository11 other files it gives its agents.
- catch-upSkill
- hungry-jackSkill
- implement-featureSkill
- init-authSkill
- init-backendSkill
- init-databaseSkill
- plan-changeSkill
- reflectSkill
- review-changesSkill
- smart-pushSkill
- verify-workSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 36 edited versions we read keep these.
6
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
- Very specific: line 10
Read references/operating-rules.md and references/code-quality.md first.
- Distinctive: line 28
Apply one at a time: After each, rerun the checks that cover it.
- Distinctive: line 29
Stop: when no candidate remains that makes the code clearer.
- Distinctive: line 34
Remove an interface, factory, or option with one implementation or caller
- Distinctive: line 35
Delete validation that earlier validation or the types already guarantee
- Distinctive: line 38
Remove dead code, unused exports, debug output, and narrating comments
- Distinctive: line 66
Every applied simplification has passing checks rerun after it, no behavior or interface changed, and nothing outside the scope was touched.
“Common” is measured: kept by at least 6 in 10 of the 36 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 a change as plain as the problem allows, so that another engineer can read it quickly and trust it. Behavior stays identical. Fewer lines is a side effect, never the goal; clarity beats brevity.
Read references/operating-rules.md and references/code-quality.md first.
Use when
- A change is implemented and its checks pass
- The diff shows complexity signals: new wrappers or layers, single-use helpers or interfaces, options nobody passes, defensive checks for impossible states, duplicated logic, deep nesting, or comments that narrate
Skip it when the diff is small and already plain.
Inputs
- Scope: the change against a base commit (default: the uncommitted change plus the current branch's commits). Never the whole repository unless the user asks.
- Checks: the commands that cover the changed code, from
verify-workor the project. Without passing checks, there is nothing to preserve behavior against; get them first.
Procedure
- Read the whole change with its surrounding code and the project's patterns. Simplification means fitting the codebase, not a personal style.
- List the candidates. For each, name the signal from
references/code-quality.mdand the simpler form. Drop any candidate that would change behavior, a public interface, or code outside the scope. - Apply one at a time. After each, rerun the checks that cover it. If any fails, revert that simplification, and do not retry it.
- Stop when no candidate remains that makes the code clearer. Do not cycle on taste.
Typical simplifications:
- Inline a wrapper or single-use helper that only moves code around
- Remove an interface, factory, or option with one implementation or caller
- Delete validation that earlier validation or the types already guarantee
- Replace nested conditionals with guard clauses
- Reuse an existing helper instead of a new duplicate
- Remove dead code, unused exports, debug output, and narrating comments
Output
Simplified Inlined formatRefundPayload (one caller); removed RefundOptions (no caller passed options);
dropped a null check already guaranteed by the schema (refund-service.ts:31)
Kept RefundError subclass: matches the project's error-handling convention
Checks ✓ npm test -- refunds (23 passed) ✓ npm run typecheck rerun after the last editEscalate
- The clearest form needs a behavior or interface change: report it as a suggestion, and do not apply it
- The simplification would reach code outside the scope: report it, and do not apply it
Hand off
Return the simplified change, and the checks rerun, to the caller: hungry-jack, or the user. If the simplification touched code covered by browser or integration checks, say which ones should be rerun.
Before you finish, check your list of available skills for each skill named in this section. If any is missing, end your report with the missing names, this command, and the question "Should I install them for you, or will you install them yourself?" Follow "Missing companion skills" in references/operating-rules.md for the rest.
npx skills add akdevsaha-dev/factory-skills --skill hungry-jack plan-change implement-feature verify-work simplify-code review-changes reflectDone when
Every applied simplification has passing checks rerun after it, no behavior or interface changed, and nothing outside the scope was touched.
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.

