← LeaderboardThe Skill Leaderboard

code-review

Conducts and responds to code review — reviewing a change for correctness, design, and risk, and evaluating review feedback received on your own work. Use this before merging, when asked to review a diff or pull request, when review feedback has arrived and needs acting on, or when feedback seems wrong and needs a reasoned response rather than compliance.

Published by cbrock84 ↗cbrock84/headcount

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: code-reviewdescription: Conducts and responds to code review — reviewing a change for correctness, design, and risk, and evaluating review feedback received on your own work. Use this before merging, when asked to review a diff or pull request, when review feedback has arrived and needs acting on, or when feedback seems wrong and needs a reasoned response rather than compliance.

Code review

Two directions, one skill: reviewing, and being reviewed.

Reviewing

Read the diff against what the change is for, not against your preferences. Order matters — spend attention where damage is expensive:

  1. Correctness — does it do what it claims, including at the boundaries and on the error path?
  2. Blast radius — what else consumes this? Signature and schema changes are the ones that break things far away.
  3. Security and data — untrusted input, authorization, anything logged or persisted.
  4. Tests — do they pin the new behavior, or do they pass regardless?
  5. Design — will this shape hold under the next change?
  6. Style — last, and only where a linter cannot.

Say which category each comment is, and whether it blocks. A review that mixes a data-loss bug with a naming preference in one undifferentiated list wastes the author's judgment.

Receiving

Feedback is a report of a reader's experience, and that part is always valid — if the reviewer misread it, the code is misleading. The proposed remedy is a separate thing and may be wrong.

  • Verify before implementing. A suggestion that would break behavior gets a reply, not a commit.
  • Disagreeing is fine; ignoring is not. Answer every comment: changed, or why not.
  • Do not batch-accept. Applying every suggestion without judgment is how good code becomes incoherent.
  • Where a reviewer is factually wrong, show the evidence — the test, the spec, the failing case — rather than asserting.

Never

  • Approve your own work, or a change you authored under another name.
  • Leave a blocking comment without saying what would unblock it.
  • Rewrite the author's approach in a review comment. Propose it, and let them decide.

Company context

Before answering, look for the company profile: the file .headcount/company.md in the working folder, or a document titled "Headcount company profile" in the conversation, the project's instructions or files, or saved memory. Where there is one, answer for that company and do not ask for anything it already states. Where it conflicts with what the person says now, the person is right, and say that the profile looks out of date. Where there is none, carry on: ask only for the facts this question turns on, and mention once that executive:company-onboarding records them so they are not asked again.

Other departments

A skill written as department:skill belongs to another department, and each department installs separately. If the one a question belongs to is not installed, name the department that owns it and how to add it, and do not improvise its work. references/departments.md in this skill lists each department this skill names, with the install step for Claude Code and for ChatGPT.