Self-Review
Post-implementation reflection pass. Run after completing a task to catch loose ends before calling it done.
Instructions
- Determine scope - unless the user specifies otherwise, review committed branch work plus every staged and unstaged change:
git diff <base-branch>...HEAD --name-onlyfor commits on the branch your work targetsgit diff HEAD --name-onlyfor uncommitted work, staged and unstaged- Include new untracked files from
git status --short
- Read all changed files in full before reviewing.
- Answer each question below. For every finding, cite
file_path:line_numberand fix it directly. - If everything looks good, say so briefly - don’t invent busywork.
Questions
1. Anything left undone?
- Are there TODOs, FIXMEs, or HACKs introduced in this diff that should be resolved now?
- Did you skip something the user asked for?
- Are there commented-out code blocks or placeholder values that shouldn’t ship?
- Are there missing error cases, edge cases, or validations at system boundaries?
- Are there fallback/legacy code paths? If so, ask the user explicitly whether to keep, remove, or flag them - don’t assume backward compatibility is wanted.
2. More idiomatic?
- Does the code follow the language’s conventions and standard library patterns?
- Are there manual implementations of things the standard library or existing dependencies already provide?
- Does naming follow the project’s existing conventions (check surrounding files)?
- Are there language-specific antipatterns? (e.g., Python: bare
except, mutable default args; Go: exported names that shouldn’t be; JS/TS:anytypes that should be narrowed)
3. Obvious clutter?
- Is there duplicated logic, a dead branch, or an abstraction with one caller introduced in this diff? Collapse it if the fix stays inside the diff; otherwise note it for the user.
Output
For each question where you find something actionable:
- Show the finding with
file_path:line_number - Apply the fix directly
- One-line explanation of what changed and why
If nothing actionable is found, say: “Clean - nothing to follow up on.”