agentleFS
Bossmann007Bossmann007/cursor-kit/skills/simplify/SKILL.md

simplify

Skill0 starsChanged 55 days agoMITView on GitHub

Reduce complexity while preserving exact behavior. Use after a feature works and tests pass, during review when readability is flagged, or when nested logic / long functions / unclear names need cleanup — and when the user says simplify, declutter, readability, or reduce complexity. Complements deslop (AI-slop cleanup) and ponytail (minimum code up front). Do not use before understanding the code, or on already-clear code.

119 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 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.
  • 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 3 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 3 projects that use this

  • mike22890Skill

    clonedeps

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

    Also in 3 projects that use this

  • devbrother2024Skill

    artifact-design

    단독 self-contained HTML 산출물(랜딩 페이지, 정적 문서·리포트, 독립 대시보드, 데모·게임, 개발 전 UX/UI 대안 비교 목업)을 만들 때 팔레트·타이포그래피·레이아웃을 의도적으로 설계하고 템플릿·AI스러운 디자인을 피하도록 돕는 디자인 가이드. HTML/CSS를 쓰기 전에 로드한다. "랜딩 만들어줘", "이 내용 단일 HTML로 예쁘게", "UX 대안 HTML로 비교해줘", "디자인 잡아줘"처럼 단독 HTML 아티팩트를 만들거나 비교하는 요청에 활성화하고, 기존 앱(React·Vue 등)의 인앱 컴포넌트 수정이나 순수 백엔드·로직 작업에는 쓰지 않는다.

    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

  • +3 more from gaebalai

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 111 edited versions we read keep these.

  • 1

    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:

    After merges that introduced inconsistency

    line 26

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

Goal is not fewer lines. Goal is code a new reader understands faster than the original — with identical behavior.

Inspired by common simplification playbooks (e.g. Osmani-style checklists); this skill is Bossmann/cursor-kit native, not a vendored third-party copy.

When to use

  • Feature works and checks pass, but the implementation feels heavy
  • Review flagged readability or complexity
  • Deep nesting, long functions, unclear names, scattered duplication
  • After merges that introduced inconsistency

When not to use

  • Code is already clear — do not simplify for its own sake
  • Behavior is not understood yet — comprehend first (CBM / callers)
  • Hot path where a simpler form would be measurably slower (prove with evidence)
  • Behavior still unproven — run /verification-planning (or existing tests) first

Principles

  1. Preserve behavior exactly — same inputs, outputs, errors, side effects, ordering. If unsure, do not change.
  2. Follow project conventions — match local naming, layering, and style.
  3. Reduce nesting and indirection — early returns; delete one-caller wrappers that add no meaning (ponytail / minimize reader load).
  4. Names over comments — rename; do not add narrating comments.
  5. Smallest useful diff — no drive-by rewrites outside the task scope.

Process

  1. Understand responsibility, callers/callees, edge cases, and existing tests (prefer codebase-memory over whole-file reads).
  2. List candidate simplifications; keep only those that preserve behavior.
  3. Apply one coherent pass; avoid mixed refactors + feature work.
  4. Re-run the evidence path / project checks from PROJECT.md or checkpoint tests. Do not claim done without fresh evidence.
  5. Optional /blindspot-pass if the touch touched trust boundaries.

Compose with

SkillRole
deslop (cursor-team-kit)Remove AI-generated slop on a branch diff
verification-planningProve behavior before / after simplify
blindspot-passMissed edges after cleanup
ponytail rulePrefer never writing the complexity initially

Done checklist

  • Existing tests / evidence path still pass without changing assertions for convenience
  • Build / typecheck / lint still pass when the project has them
  • Diff is scoped; no unrelated renames

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.