Skip to content
/simplifyStable

Post-implementation cleanup pass. Finds reuse opportunities, improves quality, reduces complexity.

QualityRefactoringΒ· 1 min read

Quick import: Download the .md file and save it to .claude/commands/ (Claude Code), .cursorrules (Cursor), or paste as a system prompt in ChatGPT, Gemini, or any LLM API.

#What it does

The /simplify skill is a post-implementation cleanup pass. It reviews your recent changes and simplifies them β€” finding reuse opportunities, reducing complexity, and improving readability.

#How to use

bash
/simplify

Run this after completing a feature or making significant changes.

#What it looks for

  • Duplication β€” Code that could share a helper or utility
  • Over-engineering β€” Abstractions that aren't earning their complexity
  • Dead code β€” Unused variables, unreachable branches, stale imports
  • Naming β€” Variables or functions that could be clearer
  • Structure β€” Functions that do too many things, deeply nested logic

#Philosophy

The skill follows the principle: the best code is the code you don't write. It prefers:

  • Fewer files over more files
  • Inline logic over premature abstractions
  • Standard library over custom utilities
  • Three similar lines over a premature helper

#Example

diff
- const isValid = value !== null && value !== undefined && value !== '';
+ const isValid = Boolean(value);
Orel OhayonΒ·
View all skills