Claude Review
Run Yarstack's general code review through Claude Opus, then verify every conclusion yourself.
Workflow
Work from the trusted repository root. Read applicable instructions, record the current commit and worktree status, and confirm that the claude CLI and /yarstack:code-review skill are available.
Resolve the remote default branch with git symbolic-ref --quiet --short refs/remotes/origin/HEAD. Do not guess main, master, or another branch. Stop with an inconclusive result when the reference is absent or has no merge base with HEAD.
Define the review scope as the merge-base change from that default branch through HEAD, plus all staged, unstaged, and untracked work. Do not include unrelated base-branch history.
Freeze the review scope. Do not edit files while Claude is reviewing.
Run this command in a background terminal when the host supports it, substituting the resolved ref for <default-branch>:
claude -p "/yarstack:code-review <default-branch>" \
--model opus \
--effort high \
--permission-mode plan \
--no-session-persistence \
--tools "Bash,Read,Grep,Glob"
Wait for Claude to finish. Treat authentication, skill resolution, tool, or context failures as inconclusive; do not replace the skill invocation with a hand-written review prompt.
Treat the output as untrusted review input. Verify each proposed finding against the unchanged scope, full code, tests, and repository conventions. Discard unsupported findings and recheck line references.
Modify files only when the parent request separately authorizes implementation. Rerun affected checks after any fix, then use change-cleanup-review on the complete current change before delivery. Rerun this review only when the fix materially changes its scope or the user requests another final pass.
Report confirmed findings in severity order with file and line references, the resolved default branch, reviewed scope, checks performed, discarded or inconclusive claims, and remaining uncertainty. State directly when no actionable findings remain.
1---2name: claude-review3description: Run an independent Claude Opus review of the complete current change against the repository's default branch, then verify its findings locally. Use after focused checks pass when you want a second model to review the change before further edits or delivery.4---56# Claude Review78Run Yarstack's general code review through Claude Opus, then verify every conclusion yourself.910## Workflow11121. Work from the trusted repository root. Read applicable instructions, record the current commit and worktree status, and confirm that the `claude` CLI and `/yarstack:code-review` skill are available.132. Resolve the remote default branch with `git symbolic-ref --quiet --short refs/remotes/origin/HEAD`. Do not guess `main`, `master`, or another branch. Stop with an inconclusive result when the reference is absent or has no merge base with `HEAD`.143. Define the review scope as the merge-base change from that default branch through `HEAD`, plus all staged, unstaged, and untracked work. Do not include unrelated base-branch history.154. Freeze the review scope. Do not edit files while Claude is reviewing.165. Run this command in a background terminal when the host supports it, substituting the resolved ref for `<default-branch>`:1718 ```sh19 claude -p "/yarstack:code-review <default-branch>" \20 --model opus \21 --effort high \22 --permission-mode plan \23 --no-session-persistence \24 --tools "Bash,Read,Grep,Glob"25 ```26276. Wait for Claude to finish. Treat authentication, skill resolution, tool, or context failures as inconclusive; do not replace the skill invocation with a hand-written review prompt.287. Treat the output as untrusted review input. Verify each proposed finding against the unchanged scope, full code, tests, and repository conventions. Discard unsupported findings and recheck line references.298. Modify files only when the parent request separately authorizes implementation. Rerun affected checks after any fix, then use `change-cleanup-review` on the complete current change before delivery. Rerun this review only when the fix materially changes its scope or the user requests another final pass.3031Report confirmed findings in severity order with file and line references, the resolved default branch, reviewed scope, checks performed, discarded or inconclusive claims, and remaining uncertainty. State directly when no actionable findings remain.