Prompt file imported from Ragrawal2004/spendly (
.claude/commands/code-review-feature.md). Fill in{{arguments}}before use. Copyright stays with the author.
Review the Spendly changes on this branch. Step spec (optional): {{arguments}}
Pre-flight
Collect the review diff from three parts:
git diff main...HEAD— commits on this branchgit diff— unstaged workgit diff --staged— staged work
If all three are empty, reply "No changes detected" and stop. Untracked files appear in none of them; to include a new file, git add -N <file> it first.
Review
Launch the spendly-security-reviewer and spendly-quality-reviewer subagents at the same time, in one message, so they run in parallel. The reviewers have no shell, so do not tell them to run git. Paste the full text of the combined diff (all three parts, each under its own heading) into each reviewer's prompt, with the step spec (if given), and tell it to review the whole combined diff.
Verdict
Map the reviewers' groups (the quality reviewer's Worth improving counts as Should fix):
- any Blocking item → CHANGES REQUESTED
- Should fix items but no Blocking → APPROVED WITH SUGGESTIONS
- only Nit items, or none → APPROVED
Combined Action Plan
Under the verdict, list every finding in this order: Blocking, then Should fix, then Nit. Give each item its file:line and which reviewer raised it, and merge duplicates. Write "none" for an empty group.
Then stop and wait for me. Nothing is edited before I approve it.
Rules
- Never edit any file, and never commit, stage or stash anything.
- Never print
DATABASE_URL,SPENDLY_TEST_DATABASE_URL, passwords or secrets.
