agentleFS
CsHengCsHeng/agent-skills/skills/simplify/SKILL.md

simplify

Skill3 starsChanged 21 days agoMITView on GitHub

Explicitly selected cleanup of a project or one named surface: remove the code, comments, tests, lint rules, and documents that no required outcome, consumer, or maintainer decision depends on, and verify what remains; also a requested read-only simplification audit or a refactor-versus-replace reassessment. Use only when the user names it or asks for this cleanup or audit; ordinary cleanup inside a task stays with implement-change, and judging a supplied diff belongs to review-change.

130 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use codex-system, design-tracker 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.
  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • mike22890Skill

    clonedeps

    将项目依赖的第三方库源码克隆到本地,便于深入阅读和调试。当需要查看库的实现细节、阅读源码、调试第三方依赖、理解 SDK/framework 内部机制、查看 node_modules 之外的原始代码、分析开源库架构、学习他人代码、查看依赖的 TypeScript 类型定义时使用。

    Also in 3 projects that use this

  • paulingramSkill

    verification-planning

    Use BEFORE verifying any claim -- fix, feature, deploy, diagnosis -- to choose HOW. Enumerate venues (local, dev, replay, seeded fixture, prod read-only), pick the cheapest faithful one, record a verification_plan. Adds cheaper-faithful-method-found; a gate needing a live environment makes the run PROVIDE one.

    Also in 3 projects that use this

  • codebycoreySkill

    batch

    Create multiple proposals from free-form feature descriptions. Use when planning several features at once, batch creating proposals, or setting up related changes.

    Also in 4 projects that use this

  • mehd-ioSkill

    dataviz

    Also in 3 projects that use this

  • +6 more from gaebalai

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 120 edited versions we read keep these.

  • 4

    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
  1. Distinctive:

    Read the project's own instructions for its source roots, protected paths, decision-record location, issue convention, and check commands, …

    line 23
  2. Distinctive:

    Keep a witness until what it witnesses is judged: a test stays while the code it verifies is under judgment, and a comment that holds the …

    line 52
  3. Distinctive:

    Tests are missing: Remove code where static evidence shows no reference or consumer.

    line 57
  4. Distinctive:

    Use consumer evidence to separate required semantics from incidental implementation details.

    line 65

“Common” is measured: kept by at least 6 in 10 of the 120 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Simplify

Reduce the total burden of delivering and maintaining the user's required outcome: code, comments, tests, fixtures, lint rules, documents, diagrams, dependencies, and workflow machinery all count. Decide first whether a responsibility is needed, then how small its implementation can be. development-standards owns the necessity test that every one of these artifacts passes when it is first written; this Skill applies the same test to what already exists.

Use This Skill When

  • the user names this Skill, or asks for a simplification cleanup or audit of a project, a path, or one surface such as comments or tests
  • the user asks to reassess an owned architecture, replace a bespoke mechanism, or compare refactoring with rewriting; read Structural Alternatives

Proceed on that request only. Ordinary cleanup inside another task stays with that task under implement-change; a review of only a supplied diff goes to review-change; a material unresolved product decision goes to design-change.

Scope And Authority

A cleanup request authorizes removing what the evidence supports inside the named scope; naming this Skill with no narrowing words is a cleanup request covering every layer below for the current repository. A request for an audit, an assessment, an opinion, or a structural comparison stays read-only and returns the supported cuts. Every cut rests on evidence independent of the material being cut; a candidate without that evidence stays and is reported. Apply through implement-change, which owns mutation, verification, conditional review, and repair.

Companion edits, such as removing a test with its code or moving a reason into a decision record, follow the request's scope and the project's write boundaries. When a needed companion edit lies outside them, keep the material and report it.

Read the project's own instructions for its source roots, protected paths, decision-record location, issue convention, and check commands, and use them as given.

Protect required outcomes, real public or persisted contracts, unique data, authorization, and current safety and recovery needs. An existing guard, audit field, parser quirk, provenance record, or compatibility branch earns protection from a consumer or boundary; general plan approval and prior test coverage leave model-invented methods revisable. Search silence alone does not prove an external consumer absent; resolve that specific uncertainty.

Judge Each Layer Against The One Above

flowchart TD
    A[Required outcome and current burden] --> B[Is this responsibility necessary?]
    B -->|No| C[Remove it and its supporting material in one cut]
    B -->|Yes| D[Find a smaller way to preserve it]
    B -->|Unclear| E[Use the layer's evidence below]
    E --> B
    D --> F[Reuse, collapse duplication, or compare alternatives]
    C --> G[Check required behavior and total maintenance cost]
    F --> G
    G --> H[Apply, or report for a read-only request]
LayerJudged againstEvidence when value is unclearMethod
1. Intent: user requirements, acceptance criteria, contracts, decision recordsThe user and project ownerA gap becomes an inferred record or one business question; see the next sectionorganize-docs for decision records
2. Tests and fixturesLayer 1: which required behavior does this check protect?Break the behavior it guards and observe which checks fail; a shared failure marks a duplicate only when both checks exercise the same boundarytesting-strategy for suite cuts, assertions, and shared fixtures
3. Code and configurationLayer 1 and actual consumers; layer 2 verifies the removalBounded ablation belowdevelopment-standards for necessity and reuse
4. Lint rules and gatesThe boundary the rule namesIntroduce the violation it targets and observe whether another check already reports itQuality Gates in development-standards
5. Source comments and explanatory documentsLayer 3 for restatement or staleness; layer 1 for a reason that already has an ownerNo execution signal exists: identify the reader, the decision the text supports, and any tool that consumes itSource Comments; organize-docs for documents
  • A lower layer shows what exists; the layer above decides whether it stays. Documents sit in two layers: those that state intent belong to layer 1, and those that restate the implementation belong to layer 5.
  • Cut by responsibility. When a layer 3 responsibility goes, the tests, lint exceptions, comments, and documents that exist only for it go in the same cut.
  • Keep a witness until what it witnesses is judged: a test stays while the code it verifies is under judgment, and a comment that holds the only stated reason for a choice stays until that reason has an owner.

When A Layer Is Missing

  • Intent is unrecorded. Agreement among code, tests, and comments shows a self-consistent implementation and serves as a working assumption about what is required. Remove exact duplicates and code that static evidence shows unreachable. Where a statement and the code contradict each other, decide which side the tests and consumers support before removing either, and report a contradiction that points at a code defect. Keep the rest, and when a non-obvious choice needs its reason preserved, record it in the project's decision owner marked as inferred from the implementation. Ask the user one business question, such as whether a behavior is still required, when that inference is the sole obstacle to a worthwhile cut.
  • Tests are missing. Remove code where static evidence shows no reference or consumer. Where layer 1 requires a behavior and a cut depends on it, add the narrow test first.
  • No gate holds the result. Proceed; whether a ratchet should hold a cleaned surface is the project's decision under Quality Gates in development-standards.

Each answered question and each inferred record enlarges what the next run can decide.

Make The Smaller Choice Concrete

  • Bound the candidate to the requested surface and name what disappears or replaces it. Inspect authored owners before generated copies.
  • Use consumer evidence to separate required semantics from incidental implementation details; require exact bytes only where a real consumer or protocol needs them.
  • Count replacement glue, tests, fixtures, dependencies, deployment, documentation, and maintenance to judge total system simplicity.
  • Synchronize affected explanations after the implementation changes. Retain history only when it has a current reference, operational, or decision value; deletion is a valid alternative to maintaining obsolete records.

Bounded Ablation When Value Is Unclear

Separate a concept from its representations: preserve required behavior when removing a duplicate document or generated form, and assess user value independently of helper reachability. For a read-only request, rely on existing evidence and name any experiment that would resolve remaining uncertainty. Under a cleanup request, when a candidate's value is uncertain: (1) state what user outcome or failure prevention the mechanism contributes and observe current behavior; (2) temporarily remove or bypass one coherent responsibility in a local reversible candidate using existing tests or simple commands; (3) compare required outcomes and relevant failures (and the same workload under comparable conditions when performance motivates the change); (4) keep the responsibility or choose a smaller implementation when a required result regresses, and reassess a changed incidental representation or a test of the removed mechanism against actual requirements; (5) remove temporary switches and scaffolding once their task purpose ends. Ablation supports a bounded causal conclusion under the exercised conditions; inspect rare failure modes, external clients, and trust boundaries when relevant, and obtain separate authority for destructive or production experiments. An obvious duplicated paragraph or redundant branch needs no experiment.

Report

Report at the level the user owns: the responsibilities removed and the requirement each cut preserves, the evidence that required behavior still holds, decisions recorded as inferred, business questions still open, and what stayed because its evidence is missing. For a read-only request, lead with the strongest supported cuts, the expected maintenance reduction, and any decisive uncertainty. A justified keep or no useful cut is a valid result.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.