Simplify

From kdlbs/kandev · View interactive version

Simplify is an AI agent skill from the GitHub repository kdlbs/kandev. Simplify recently changed code — inline one-off abstractions, remove speculative code, reduce nesting, replace cleverness with clarity. Use only on explicit request or PR-review remediation.

How to use this skill

Skill file

Simplify

Post-implementation simplification pass. Review recently changed code and actively simplify it while preserving all behavior.

Planner Entry

Run /simplify only on explicit request or when an actionable PR finding calls

for it. It is not a default post-implementation or pre-PR pass.

The best code is code you don't have to write. The second best is code anyone can read.

Steps

1. Identify what to simplify

Run git diff --name-only (or git diff origin/<base>...HEAD --name-only for a branch) to get the changed files. Read each one.

2. Apply simplifications

Work through each changed file. Preserve behavior by inspection; defer broad

test suites, lint, typecheck, and full verification until after this pass.

Report any verification concerns and the focused task check to run next.

Inline one-off abstractions:

Remove speculative code:

Reduce nesting:

Replace cleverness with clarity:

Remove noise:

3. Validate

After the simplification pass, run the focused task check affected by the

change. If anything breaks, the simplification changed behavior and must be

corrected before continuing. Broad suites remain deferred unless the task or

user explicitly requires them.

4. Summary

Report what was simplified:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.