agentleFS
mo-cmykmo-cmyk/mazarbul/.claude/skills/simplify/SKILL.md

simplify

Skill2 starsChanged 34 days agoApache-2.0View on GitHub

Aggressive code-complexity audit. USE WHEN diff feels sprawling, after a feature lands, when /go-strict requests cleanup, or when user says 'scrap this and implement the elegant solution'. Audits across 4 dimensions (reuse, dead code, premature abstractions, oversize) and surfaces concrete cuts before applying. NOT FOR active development , only after a feature is functionally complete.

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

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 120 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
  1. Distinctive:

    After implementing a feature (before opening PR)

    line 12
  2. Distinctive:

    When a file feels long or the diff is sprawling

    line 13
  3. Distinctive:

    Before merging a refactor , to make sure it actually *reduced* complexity

    line 14
  4. Distinctive:

    When the user says "scrap this and implement the elegant solution"

    line 15
  5. Distinctive:

    Only after explicit "apply X, Y, Z" from the user.

    line 51
  6. Distinctive:

    The audit must be honest about no-ops: If the diff is already tight, say so , don't invent cuts to look productive.

    line 62
  7. Very specific:

    internal/api/v1/ has shared helpers most agents miss: Always check errors.go, pagination.go, fieldmask.go before flagging a "new" need.

    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 , Aggressive Complexity Audit

Inspired by Boris Cherny's parallel /simplify ("agents fan out to review for reuse, quality, efficiency in one pass") and Karpathy's Simplicity First principle.

When to invoke

  • After implementing a feature (before opening PR)
  • When a file feels long or the diff is sprawling
  • Before merging a refactor , to make sure it actually reduced complexity
  • When the user says "scrap this and implement the elegant solution"

How it runs

This is a read-and-report skill. It does NOT change code without explicit user approval.

Step 1 , Scope

Identify the changed files (default: git diff --name-only HEAD). If the user named a specific file or directory, use that instead.

Step 2 , Parallel audit (single message, multiple agents)

Spawn 4 parallel Explore agents covering these dimensions:

AgentLooks for
ReuseExisting helpers in internal/repository/base.go, internal/repository/enums.go, internal/api/v1/errors.go, internal/api/v1/pagination.go, internal/api/v1/fieldmask.go that the new code re-implements
Dead codeUnused exports, leftover commented-out blocks, types declared but never instantiated, error branches that can't be reached
Premature abstractionInterfaces with one implementation, generic helpers used in exactly one place, "Manager"/"Helper"/"Util" suffixes, options structs with default-only fields
OversizeFiles >400 LoC, functions >80 LoC, structs with >15 fields , and whether the long shape is essential or splittable

Step 3 , Report

Output a single table:

File                              | Concrete cut                                      | LoC saved
internal/cli/entity.go:142         | Reuse existing output helper instead of manual switch | -14
internal/tui/format/priority.go    | Inline into single call site                      | -22 (delete file)
internal/kernel/types.go:33-40     | Remove duplicate field, use existing Status        | -7

Sum the savings, then ask the user which cuts to apply.

Step 4 , Apply selected cuts surgically

Only after explicit "apply X, Y, Z" from the user. Each cut is a separate Edit. Do not bundle unrelated changes.

What this skill deliberately does NOT do

  • Refactor without showing the diff first
  • "Improve" adjacent code that wasn't flagged
  • Touch generated code (gen/, web/src/gen/)
  • Modify audit log code (append-only, compliance-protected)

Gotchas

  • The audit must be honest about no-ops. If the diff is already tight, say so , don't invent cuts to look productive.
  • Skip generated code unconditionally. gen/, web/src/gen/, and migrations/*.sql are out of scope.
  • Watch for "almost duplicate" code. Two near-identical 30-line blocks may intentionally differ on one branch , read both before suggesting a merge.
  • internal/api/v1/ has shared helpers most agents miss. Always check errors.go, pagination.go, fieldmask.go before flagging a "new" need.

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.