simplify
Skill3 starsChanged 4 months agoMITView on GitHub
Optional pre-review quality pass — preserving fixes through the reuse, simplification, and efficiency lenses. Bug hunting is /review-gate's job.
73 other projects use a version of this.
Adopted by
Most recently taken up by
- Sayhi-bzb/CharDesktheir own version, first seen Oct 6, 2026
- 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
Used with
Projects with it also use clonedeps, deepwork 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.
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
- Sayhi-bzb/CharDesk★ 547same name
- brianlovin/agent-config★ 375same name
- akitaonrails/my-skills★ 205same name
- DeL-TaiseiOzaki/claude-code-orchestra★ 198same name
- sd0xdev/sd0x-harness★ 191same 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.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sync-upstreamSkill
- afkSkill
- codebase-designSkill
- commitSkill
- compound-refreshSkill
- compoundSkill
- diagnosing-bugsSkill
- grillingSkill
- handoffSkill
- implementSkill
- improve-codebase-architectureSkill
- prototypeSkill
- questionnaireSkill
- researchSkill
- resolving-merge-conflictsSkill
- review-gateSkill
- setup-cantrips-loopSkill
- setup-git-guardrailsSkill
- specSkill
- tddSkill
- teachSkill
- ticketsSkill
- wait-whatSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 71 edited versions we read keep these.
9
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 22
Never cut or weaken a sentence that directs an agent to act, forbids an action, gates a step behind a condition, or states how completion …
- Distinctive: line 35
If the scope comes up empty, stop and ask the user what to simplify.
- Distinctive: line 53
If there is nothing to flag, say so explicitly.
- Distinctive: line 65
Before applying each fix, confirm it satisfies the preservation contract for that material.
- Distinctive: line 66
If it can't clear that test, skip it.
- Distinctive: line 67
Write each fix from the line at the finding's location, read in place — never from the finding's description of it.
- Distinctive: line 78
Run the one whose material this pass touched, and both where it touched both — code checks cannot observe prose, and the prose re-read …
- Distinctive: line 84
No scoping mechanism → full suite.
- Distinctive: line 87
If no checks are configured, state that in the summary.
“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 recently changed material while preserving what it does. Prioritize readable, explicit results over compact ones — fewer lines is not the goal.
The contract below governs every step of this pass, and travels verbatim to each fixer dispatched in Step 2.
<preservation-contract>
Preserve what the material does.
Which test that is depends on the material, and a file is judged by its own kind — a diff holding both kinds is held to both:- Code — same output for every input, same error behavior, same side effects and ordering.
- Agent-facing prose (a skill, an
AGENTS.mdorCLAUDE.md, a rules file — anything an agent loads and acts on) — the instruction set is what is preserved. Cut text that repeats, rambles, or restates what another file already says. Never cut or weaken a sentence that directs an agent to act, forbids an action, gates a step behind a condition, or states how completion is judged — rewording one into a suggestion is weakening it. Where a sentence's kind is uncertain, it stays.</preservation-contract>
Step 1: Resolve the scope
- If the user named a scope (a file, a directory, "the function I just wrote"), use it as authoritative — do not widen it.
- Otherwise, use the diff between the current branch and its merge-base with the default branch (
git diff <default-branch>...) plus the uncommitted changes (git diff HEAD), which a merge-base diff leaves out. With no base ref, the uncommitted changes alone. Either way, add the files git does not track (git ls-files --others --exclude-standard): a file git does not track appears in no diff, so it joins the scope whole. Snapshot each of those untracked files before Step 3 edits anything — git holds no pre-pass state for them, and Step 4 verifies against pre-pass text. - Outside a git repository, use the files edited earlier in this conversation.
If the scope comes up empty, stop and ask the user what to simplify.
Step 2: Launch three fixers in parallel
Dispatch one subagent per lens — Reuse, Simplification, Efficiency — in parallel and in the background (Claude Code: do not use run_in_background: false) — a blocking dispatch freezes the session until the fixer returns.
Give each one:
- the preservation contract above and the fixer brief below, both verbatim;
- its single lens section from
../review-gate/QUALITY-LENSES.md— the lens text, the restraints printed under it, and the governing rules from that file's preamble; - the resolved scope (the full diff or file set).
Paraphrasing any of it from memory loses the restraints that keep the pass preserving. Where a dispatch fails for a reason that survives correcting the invocation, or the harness offers no way to make a dispatch at all, run that pass inline under the same preservation contract, lens and scope, and disclose the substitution.
<fixer-brief>
Propose fixes; the skill that dispatched you applies them. Edit nothing yourself.
Hunt only through the lens you were given, and for each thing you find, name the concrete fix — one that satisfies the preservation contract you were given, since a fix that cannot is one this pass will drop.
Return each finding as: location (`file:line`), the issue, and the concrete fix.
If there is nothing to flag, say so explicitly.
</fixer-brief>Model selection. Use the platform's balanced mid-tier model for these reviewers when the current harness exposes a known override. In Claude Code this is the Sonnet class. In Codex, apply this tier only when the active dispatch primitive exposes an explicit model or custom-agent selector; task wording alone does not select a different model. Otherwise omit the override and inherit the parent model -- a working pass on the parent model beats a broken dispatch.
Step 3: Apply fixes
Proceed once all three lens passes are complete, whether a dispatched fixer returned one or this context ran it, aggregate their findings, and fix each issue directly. A false positive or a fix not worth its churn: note it, skip it, move on — settle it yourself rather than raising it to the user.
Inspect beyond the resolved scope when needed to evaluate a finding, but edit only that scope and the import/export lines it needs. For a user-named file or directory scope, those import/export lines must also be inside it; skip any fix that would edit outside the mutation boundary.
Before applying each fix, confirm it satisfies the preservation contract for that material. If it can't clear that test, skip it. Write each fix from the line at the finding's location, read in place — never from the finding's description of it.
An interface or data shape that existed only in an earlier iteration of the current unshipped scope is not protected behavior once you verify it has no deployed, persisted, public, external, dependent-branch, or in-repo caller outside the resolved scope. Remove that compatibility path only when every required caller update fits the existing mutation boundary; otherwise preserve it.
Never simplify away a safety check. Input validation at trust boundaries, error handling that prevents data loss, security checks (authorization, escaping, sanitization), and accessibility affordances stay — even when a finding frames them as redundant. In agent-facing prose the equivalent is a gate or a prohibition: a sentence that stops an agent doing something, or makes it stop and check first.
Step 4: Verify what was preserved
Each verification below observes one kind of material. Run the one whose material this pass touched, and both where it touched both — code checks cannot observe prose, and the prose re-read cannot observe code.
Where the pass touched code:
- Typecheck and lint the full project — they catch the common simplification regressions: broken imports, dropped narrowings, dead code other modules still reference.
- Run tests scoped to the blast radius of the changes; broaden when shared or heavily-imported code was touched. No scoping mechanism → full suite.
On a failure, fix the underlying break or revert the specific simplification that caused it — a repair that would land outside the mutation boundary leaves revert the only route, and weakening assertions, types, or skipping tests defeats the preservation guarantee either way. If no checks are configured, state that in the summary.
Where the pass touched agent-facing prose, diff each changed file against its state before this pass and read every line the pass removed or reworded.
For a file git tracks that state is HEAD; for an untracked one it is the Step 1 snapshot, since git holds none.
That pre-pass text is the only place a cut instruction still exists, so re-reading the file as it now stands cannot find one.
For each removed or reworded line, confirm it carried no directive, prohibition, gate, or completion criterion — and restore it where it did.
Then reread every sentence the pass wrote in place, as its reader will meet it, and fix what that reading catches.
Step 5: Summarize
Report fixes applied per lens (reuse, simplification, efficiency), findings skipped (as false positives, as not worth the churn, or as fixes the mutation boundary put out of reach), and which verifications ran — the code checks with their results, the prose diff-read and reread, or both. The measure is what improved and that the contract held — many clarity and safety fixes preserve or add lines.
Close with a flow pointer (the message's final paragraph, a blockquote in full italics opening Next: — or Next steps: over one bullet per pointer — each pointer naming its skill the way this skill was itself invoked, same prefix and namespace, and ending in a one-clause rationale after an em dash): /review-gate [--fix | --loop] (user-invoked) — the gate that hunts for bugs and spec drift, in this session; suggest low for a trivial or mechanical diff, high for a large, cross-cutting, or risky one, medium otherwise; pair any level with --fix to apply the findings once, or with --loop to converge the gate to green.
Where a rendered pointer leads into /simplify or /review-gate, precede the blockquote with a paragraph of its own recommending that the user compact the conversation first, and give them the keep-list to compact with as a code block: what the steps ahead need from this session — the spec or ticket path, the intent behind the diff, the decisions still open.
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.

