Write Review Comments
Purpose
Turn review observations into comments the author can act on without guessing severity or feeling attacked. Clear labels and reasons reduce back-and-forth, keep reviews about the code, and make it obvious what blocks the merge.
When to use
- A reviewer has findings and wants them written as PR comments.
- Draft comments are terse, sarcastic or ambiguous about whether they block.
- A review thread has become a debate and needs a constructive reply.
When not to use
- Finding the issues in the first place. Use
code-review.
- Feedback about a person's behavior or performance rather than code. Use
feedback-sbi.
Inputs
Required:
- The observations or draft comments, each with the code it refers to (or a description of it).
Optional, improves quality:
- The team's comment label convention and coding standards.
- Relationship context (new joiner, cross-team contributor, senior peer).
- The author's reply, if answering within a thread.
If a comment's code context is missing and the comment makes a technical claim, ask for the snippet or keep the claim as a question.
Process
- For each observation, decide the label:
Critical (blocks merge, state the risk), Required (the default, no prefix: must be addressed before merge), Nit (trivial, author may ignore), Optional (better alternative, author decides), FYI (information, no action), question (you do not know yet), praise (specific and genuine). Valid points outside this PR become Optional with "follow-up".
- Check that the claim is correct and specific. If you cannot prove it from the visible code, convert it to a question.
- Write the observation about the code, not the person: "this loop issues one query per item", not "you query in a loop".
- State the consequence or reason: bug, risk, cost, standard violated (link the rule if one exists).
- Propose the concrete fix, not only the problem: snippet, API to use, or pattern; offer it as an option when there are several valid fixes.
- Keep it short: one issue per comment, two to four sentences, no rhetorical questions, no sarcasm, no "just" or "obviously".
- Consolidate repeated issues: comment once and say "same applies to lines X, Y".
- For contested threads: restate the author's point fairly, name the actual disagreement, propose a decision rule (standard, data, tech lead call) or take it offline.
- Add at least one specific praise comment when something is genuinely well done.
- If the observations themselves are incomplete or unverified, suggest running
code-review first; for feedback about behavior rather than code, suggest feedback-sbi.
Output format
**[<label>]** <observation about the code, with location>
<reason / consequence, one or two sentences>
<proposed change or snippet> (optional: "Same applies to <locations>.")
For rewrites, show each original next to the rewritten version in a table:
| # |
Original |
Rewritten |
Label |
Quality checklist
Common pitfalls
- Unlabeled comments: the author treats every remark as blocking, and reviews stall. Label everything.
- Softening a real Critical issue into a vague "maybe consider". Be kind and clear: state that it blocks and why.
- Leading questions ("Did you test this?") that are criticism in disguise. Ask real questions or state the concern.
Example
Input: "this is wrong, why would you query in a loop?" on for (id in ids) repo.findById(id).
Weak (original): "this is wrong, why would you query in a loop?" — no severity, aimed at the person, no fix.
Strong (rewritten):
[Critical] OrderLoader.kt:31 issues one database query per order ID. For a 500-item cart this is 500 round trips on the checkout path.
Could we fetch them in one call, e.g. repo.findAllById(ids), and map the results by ID? Same pattern at InvoiceLoader.kt:58.
1---2name: review-comment-writing3description: "Writes or rewrites code review comments so they are specific, kind and actionable, labeled by severity and intent (Critical, Required, Nit, Optional, FYI, plus question and praise) and backed by a reason and a proposed change. Use when a reviewer has raw observations or blunt draft comments on a pull request and wants them phrased clearly, or when review threads are turning tense."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/review-comment-writing7 version: "1.0.0"8 language: en9 category: 05-engineering10 role: developer11 area: collaboration12 title: "Write review comments"13 related: "code-review, feedback-sbi, tone-rewrite, coding-standards, conflict-resolution"14 prompt: "Rewrite my review comments so they are clear but not harsh. First one is 'this is wrong, why would you query in a loop?'"15---1617# Write Review Comments1819## Purpose20Turn review observations into comments the author can act on without guessing severity or feeling attacked. Clear labels and reasons reduce back-and-forth, keep reviews about the code, and make it obvious what blocks the merge.2122## When to use23- A reviewer has findings and wants them written as PR comments.24- Draft comments are terse, sarcastic or ambiguous about whether they block.25- A review thread has become a debate and needs a constructive reply.2627## When not to use28- Finding the issues in the first place. Use `code-review`.29- Feedback about a person's behavior or performance rather than code. Use `feedback-sbi`.3031## Inputs32Required:33- The observations or draft comments, each with the code it refers to (or a description of it).3435Optional, improves quality:36- The team's comment label convention and coding standards.37- Relationship context (new joiner, cross-team contributor, senior peer).38- The author's reply, if answering within a thread.3940If a comment's code context is missing and the comment makes a technical claim, ask for the snippet or keep the claim as a question.4142## Process431. For each observation, decide the label: `Critical` (blocks merge, state the risk), Required (the default, no prefix: must be addressed before merge), `Nit` (trivial, author may ignore), `Optional` (better alternative, author decides), `FYI` (information, no action), `question` (you do not know yet), `praise` (specific and genuine). Valid points outside this PR become `Optional` with "follow-up".442. Check that the claim is correct and specific. If you cannot prove it from the visible code, convert it to a question.453. Write the observation about the code, not the person: "this loop issues one query per item", not "you query in a loop".464. State the consequence or reason: bug, risk, cost, standard violated (link the rule if one exists).475. Propose the concrete fix, not only the problem: snippet, API to use, or pattern; offer it as an option when there are several valid fixes.486. Keep it short: one issue per comment, two to four sentences, no rhetorical questions, no sarcasm, no "just" or "obviously".497. Consolidate repeated issues: comment once and say "same applies to lines X, Y".508. For contested threads: restate the author's point fairly, name the actual disagreement, propose a decision rule (standard, data, tech lead call) or take it offline.519. Add at least one specific praise comment when something is genuinely well done.5210. If the observations themselves are incomplete or unverified, suggest running `code-review` first; for feedback about behavior rather than code, suggest `feedback-sbi`.5354## Output format55```markdown56**[<label>]** <observation about the code, with location>57<reason / consequence, one or two sentences>58<proposed change or snippet> (optional: "Same applies to <locations>.")59```60For rewrites, show each original next to the rewritten version in a table:61| # | Original | Rewritten | Label |62|---|---|---|---|6364## Quality checklist65- [ ] Every comment's severity is unambiguous (one label, or no prefix meaning Required) and Critical comments explain the risk.66- [ ] No comment addresses the person ("you always...", "why would you...").67- [ ] Each non-question comment offers a concrete change.68- [ ] Claims that cannot be verified from the code are phrased as questions.69- [ ] Repeated issues are consolidated.70- [ ] Nits are few, and a linter or formatter rule is suggested when they recur.71- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.7273## Common pitfalls74- Unlabeled comments: the author treats every remark as blocking, and reviews stall. Label everything.75- Softening a real Critical issue into a vague "maybe consider". Be kind and clear: state that it blocks and why.76- Leading questions ("Did you test this?") that are criticism in disguise. Ask real questions or state the concern.7778## Example79Input: "this is wrong, why would you query in a loop?" on `for (id in ids) repo.findById(id)`.8081Weak (original): "this is wrong, why would you query in a loop?" — no severity, aimed at the person, no fix.8283Strong (rewritten):84**[Critical]** `OrderLoader.kt:31` issues one database query per order ID. For a 500-item cart this is 500 round trips on the checkout path.85Could we fetch them in one call, e.g. `repo.findAllById(ids)`, and map the results by ID? Same pattern at `InvoiceLoader.kt:58`.