optimize-approach
Installation
SKILL.md
Optimize approach
Answer one question: is this the best approach for what the change is trying to do — and if not, what is? Judge the shape of the solution, not its lines. Report only; never edit files.
Step 0 — Scope
- Target: the named files or
plan.md; else the branch diff (git diff <base>...HEAD, base defaultorigin/main). - Intent: one or two lines from the plan, the PR title and body, or the commit messages.
- Split the target into approach units — one cohesive way of solving one sub-goal. Judge each unit separately.
- Read every unit in full, plus its callers and any existing utility or pattern an alternative would reuse (
grepbefore you claim one exists).