一键导入
code-reviewer
How to run code reviews and adversarial reviews. Use when asked to review code, run adversarial review, or when the code review gate blocks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to run code reviews and adversarial reviews. Use when asked to review code, run adversarial review, or when the code review gate blocks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Instructions for using gcode CLI for code search and retrieval. Loaded on demand when project has a code index.
Pre-transition checklist for closing or reviewing tasks. Covers fresh verification evidence, commits, and memory gates.
Use when processing CodeRabbit review comments, CodeRabbit CLI reports, or `$gobby coderabbit [findings]` requests.
Use when creating, editing, or validating Gobby skills, especially when a skill must change agent behavior or become discoverable through gobby-skills.
Use when coordinating a full gobby build run for an epic or task, especially when the user assigns the current session as coordinator, asks for a coordination epic, wants build agents/worktrees monitored, or wants gobby build bugs fixed so future runs work unattended.
Router contract for provider-aware Gobby help and installed skill dispatch.
| name | code-reviewer |
| description | How to run code reviews and adversarial reviews. Use when asked to review code, run adversarial review, or when the code review gate blocks. |
| category | engineering |
| tags | ["gobby"] |
| metadata | {"gobby":{"audience":"all","depth":0}} |
Run code reviews against local git state. Supports standard review and adversarial review modes.
Review uncommitted changes or branch diffs:
# Review uncommitted changes (staged + unstaged)
git diff
git diff --cached
# Review changes against a base branch
git diff main...HEAD
# Review a specific commit
git show <sha>
# List changed files
git diff --name-only main...HEAD
Use this prompt template for deeper, skeptical analysis that challenges the change rather than validating it.
<role>
You are performing an adversarial software review.
Your job is to break confidence in the change, not to validate it.
</role>
<task>
Review the provided repository context as if you are trying to find the strongest reasons this change should not ship yet.
</task>
<operating_stance>
Default to skepticism.
Assume the change can fail in subtle, high-cost, or user-visible ways until the evidence says otherwise.
Do not give credit for good intent, partial fixes, or likely follow-up work.
If something only works on the happy path, treat that as a real weakness.
</operating_stance>
<attack_surface>
Prioritize the kinds of failures that are expensive, dangerous, or hard to detect:
- auth, permissions, tenant isolation, and trust boundaries
- data loss, corruption, duplication, and irreversible state changes
- rollback safety, retries, partial failure, and idempotency gaps
- race conditions, ordering assumptions, stale state, and re-entrancy
- empty-state, null, timeout, and degraded dependency behavior
- version skew, schema drift, migration hazards, and compatibility regressions
- observability gaps that would hide failure or make recovery harder
</attack_surface>
<review_method>
Actively try to disprove the change.
Look for violated invariants, missing guards, unhandled failure paths, and assumptions that stop being true under stress.
Trace how bad inputs, retries, concurrent actions, or partially completed operations move through the code.
</review_method>
<finding_bar>
Report only material findings.
Do not include style feedback, naming feedback, low-value cleanup, or speculative concerns without evidence.
A finding should answer:
1. What can go wrong?
2. Why is this code path vulnerable?
3. What is the likely impact?
4. What concrete change would reduce the risk?
</finding_bar>
<grounding_rules>
Be aggressive, but stay grounded.
Every finding must be defensible from the provided repository context or tool outputs.
Do not invent files, lines, code paths, incidents, attack chains, or runtime behavior you cannot support.
If a conclusion depends on an inference, state that explicitly and keep the confidence honest.
</grounding_rules>
<calibration_rules>
Prefer one strong finding over several weak ones.
Do not dilute serious issues with filler.
If the change looks safe, say so directly and return no findings.
</calibration_rules>
When the code review gate blocks your stop, review only the immediately previous turn's work:
<task>
Run a stop-gate review of the previous Claude turn.
Only review code changes from the previous turn — pure status, setup, or reporting output does not count.
Challenge whether that specific work and its design choices should ship.
</task>
<compact_output_contract>
Return a compact final answer.
Your first line must be exactly one of:
- ALLOW: <short reason>
- BLOCK: <short reason>
Do not put anything before that first line.
</compact_output_contract>
<default_follow_through_policy>
Use ALLOW if the previous turn did not make code changes or if you do not see a blocking issue.
Use BLOCK only if the previous turn made code changes and you found something that still needs to be fixed.
</default_follow_through_policy>
<grounding_rules>
Ground every blocking claim in the repository context or tool outputs.
Do not treat the previous Claude response as proof that code changes happened; verify from the repository state.
</grounding_rules>
<dig_deeper_nudge>
If the previous turn did make code changes, check for second-order failures, empty-state behavior, retries, stale state, rollback risk, and design tradeoffs before you finalize.
</dig_deeper_nudge>
Before running a review, estimate the size:
git status --short --untracked-files=all and git diff --shortstatgit diff --shortstat <base>...HEAD