Code review

From DangQuangSE/team-development-skills · View interactive version

Code review is an AI agent skill from the GitHub repository DangQuangSE/team-development-skills. Always use this skill before claiming any work is done, fixed, passing, or complete — even if it seems obvious. Also use when receiving code review feedback from any source (human or automated), when finishing a task or major feature, before committing or creating a PR, or when about to express sati

How to use this skill

Skill file

Code Review

Apply code review practices with technical rigor, evidence-based claims, and verification over performative responses.

References

| Practice | When to load | File |

| ------------------- | ----------------------------------------------------- | ---- |

| Receiving feedback | Unclear/questionable feedback, conflict with reviewer | references/code-review-reception.md |

| Requesting review | After each task, before merge — use /code-review | references/requesting-code-review.md |

| Verification gates | Before any completion/success claim | references/verification-before-completion.md |

Overview

Code review requires three distinct practices:

  1. Receiving feedback — Technical evaluation over performative agreement
  2. Requesting reviews — Systematic review via code-reviewer subagent
  3. Verification gates — Evidence before any completion claims

Core Principle

Technical correctness over social comfort. Verify before implementing. Ask before assuming. Evidence before claims.

When to Use This Skill

Receiving Feedback

Trigger when:

Requesting Review

Trigger when:

Use /code-review (local) or /code-review <PR> (PR mode). ck:cook, ck:quality, and ck:test remain separate gates; run final code review after their required artifacts are current.

Verification Gates

Trigger when:

Quick Decision Tree

SITUATION?
│
├─ Received feedback
│  ├─ Unclear items? → STOP, ask for clarification first
│  ├─ From human partner? → Understand, then implement
│  └─ From external reviewer? → Verify technically before implementing
│
├─ Completed work
│  ├─ Major feature/task? → Run /code-review (or it's automatic in cook/fix)
│  └─ Before merge? → Run /code-review <PR-number>
│
└─ About to claim status
   ├─ Have fresh verification? → State claim WITH evidence
   └─ No fresh verification? → RUN verification command first

Receiving Feedback Protocol

Response Pattern

READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT

Key Rules

Full protocol: references/code-review-reception.md

Verification Gates Protocol

The Iron Law

NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE

Gate Function

IDENTIFY command → RUN full command → READ output → VERIFY confirms claim → THEN claim

Red Flags — STOP

Using "should"/"probably"/"seems to", expressing satisfaction before verification, committing without verification, trusting agent reports.

Full protocol: references/verification-before-completion.md

Bottom Line

  1. Technical rigor over social performance — no performative agreement
  2. Systematic review processes — use code-reviewer subagent
  3. Evidence before claims — verification gates always

Verify. Question. Then implement. Evidence. Then claim.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.