review-and-simplify
SKILL.md
Review and Simplify Implementation
Steps
-
Get diff against main:
git diff main...HEAD --name-only | grep -E '\.(ts|tsx)$' | grep -v '\.test\.' -
For each changed file (excluding tests):
Read the file and identify:
- Dead code: Unused imports, variables, functions
- Over-abstraction: Unnecessary indirection, premature generalization
- Unclear naming: Variables/functions that don't describe their purpose
- Redundant logic: Duplicate code, unnecessary conditions
- Complex expressions: Code that could be simplified