Skip to content

simplify

Review changed code on the current branch for reuse, clarity, and dead complexity. Apply minimal cleanup.

Workflow

  1. List changed files: git diff origin/main...HEAD --stat.
  2. For each meaningful file, ask:
  3. Is there an existing helper that does this already?
  4. Are there abstractions or layers the change does not need yet?
  5. Error handling for cases that cannot occur?
  6. Comments restating what code already says?
  7. Unused variables, imports, or branches?
  8. Apply minimal, behavior-preserving cleanups.
  9. Re-run targeted tests for each touched module.

Constraints

  • No new abstractions during simplify (that's a separate refactor).
  • Preserve public APIs and observable behavior exactly.
  • Risky cleanups go in the report, not the diff.

Install

gh skill install s-hiraoku/claude-harnesses simplify --scope project

Part of review-pack.