writing-the-summary
The Summary section is 2-4 sentences that let a reviewer decide where to look *before* they open the diff. It is prose, not a bullet list, and it is a risk map, not a changelog. This reference is how to write it without drifting into the two failure modes: inventing behavior,
$ npx -y skills add vanara-agents/skills --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
Context preview
The summary Claude sees to decide when to auto-load this agent.
The Summary section is 2-4 sentences that let a reviewer decide where to look *before* they open the diff. It is prose, not a bullet list, and it is a risk map, not a changelog. This reference is how to write it without drifting into the two failure modes: inventing behavior,
Agent definition
writing-the-summary.mdWriting the Reviewer-Friendly Summary
The Summary section is 2-4 sentences that let a reviewer decide where to look *before* they open the diff. It is prose, not a bullet list, and it is a risk map, not a changelog. This reference is how to write it without drifting into the two failure modes: inventing behavior, and listing everything neutrally.
What the Summary must answer
1. **What changed** — the net effect at HEAD, in the reviewer's vocabulary (features, endpoints, tables), not a file-by-file recital. 2. **Why (probable intent)** — inferred from the code, hedged when uncertain. "Appears to..." is honest; stating intent as fact you can't see is not. 3. **Where to look first** — the single highest-consequence spot. This is the sentence that earns the summary its keep. 4. **Any mismatch** — where the diff and the PR description disagree. The mismatch is often the headline (a "no behavior change" PR that changes a default).
Anchor every claim to a changed line
The cardinal rule: **if it's not in the diff, you don't know it.** Concretely:
- Describe what the *changed lines* do, not what you assume the surrounding system does.
- If a function is *called* in the diff but its body isn't changed, say "now calls `charge()`," not
"charges the card twice" — you haven't seen `charge`'s body.
- Don't claim a test passes, a migration is safe, or an edge case is handled unless the diff shows
it. Absence of evidence is a *gap to flag*, not a fact to assert.
- Prefer `file:line` anchors in Risk areas so the reviewer can jump straight there.
Scale words to consequence
Collapse mechanical churn; expand judgment calls.
| Instead of | Write | |---|---| | One line per file for 30 renamed files | "Renames `oldApi`→`newApi` across 30 files (mechanical)." | | "Updated the auth file." | "Changes the session-ownership check in `auth/session.js:40` — the security-relevant line." | | "Various config changes." | "Raises the default rate limit 100→1000 in `config/limits.js:8` (unrelated to stated purpose)." |
Lines-changed is not importance. A 3-line auth change outranks a 400-line lockfile update.
Writing the Risk areas list
- One risk per line: `file:line` — the specific risk — why it matters.
- Order by consequence (security > migration > API break > config), not file order.
- Be specific about the failure, not the category: not "migration risk" but "adds NOT NULL column
with no default → fails on non-empty `accounts` table."
- If nothing is elevated, say so explicitly rather than padding with non-risks.
Tone
- **Neutral and precise**, not congratulatory or harsh. You inform; you don't approve or reject.
- **Reviewer's time is the budget.** Every sentence should change where they look or what they
verify. Cut anything that doesn't.
- **Name gaps without accusation.** "No test covers the 401 path" states a fact; it doesn't scold.
Quick self-check before emitting
- [ ] Did I read `base...HEAD`, not just the last commit?
- [ ] Can every sentence be traced to a changed line?
- [ ] Is the highest-consequence change first, in both Summary and Risk areas?
- [ ] Did I note any diff-vs-description mismatch?
- [ ] Did I flag missing tests for risky code, rather than staying silent?
Read more
Writing the Reviewer-Friendly Summary
The Summary section is 2-4 sentences that let a reviewer decide where to look *before* they open the diff. It is prose, not a bullet list, and it is a risk map, not a changelog. This reference is how to write it without drifting into the two failure modes: inventing behavior, and listing everything neutrally.
What the Summary must answer
1. **What changed** — the net effect at HEAD, in the reviewer's vocabulary (features, endpoints, tables), not a file-by-file recital. 2. **Why (probable intent)** — inferred from the code, hedged when uncertain. "Appears to..." is honest; stating intent as fact you can't see is not. 3. **Where to look first** — the single highest-consequence spot. This is the sentence that earns the summary its keep. 4. **Any mismatch** — where the diff and the PR description disagree. The mismatch is often the headline (a "no behavior change" PR that changes a default).
Anchor every claim to a changed line
The cardinal rule: **if it's not in the diff, you don't know it.** Concretely:
- Describe what the *changed lines* do, not what you assume the surrounding system does.
- If a function is *called* in the diff but its body isn't changed, say "now calls `charge()`," not
"charges the card twice" — you haven't seen `charge`'s body.
- Don't claim a test passes, a migration is safe, or an edge case is handled unless the diff shows
it. Absence of evidence is a *gap to flag*, not a fact to assert.
- Prefer `file:line` anchors in Risk areas so the reviewer can jump straight there.
Scale words to consequence
Collapse mechanical churn; expand judgment calls.
| Instead of | Write | |---|---| | One line per file for 30 renamed files | "Renames `oldApi`→`newApi` across 30 files (mechanical)." | | "Updated the auth file." | "Changes the session-ownership check in `auth/session.js:40` — the security-relevant line." | | "Various config changes." | "Raises the default rate limit 100→1000 in `config/limits.js:8` (unrelated to stated purpose)." |
Lines-changed is not importance. A 3-line auth change outranks a 400-line lockfile update.
Writing the Risk areas list
- One risk per line: `file:line` — the specific risk — why it matters.
- Order by consequence (security > migration > API break > config), not file order.
- Be specific about the failure, not the category: not "migration risk" but "adds NOT NULL column
with no default → fails on non-empty `accounts` table."
- If nothing is elevated, say so explicitly rather than padding with non-risks.
Tone
- **Neutral and precise**, not congratulatory or harsh. You inform; you don't approve or reject.
- **Reviewer's time is the budget.** Every sentence should change where they look or what they
verify. Cut anything that doesn't.
- **Name gaps without accusation.** "No test covers the 401 path" states a fact; it doesn't scold.
Quick self-check before emitting
- [ ] Did I read `base...HEAD`, not just the last commit?
- [ ] Can every sentence be traced to a changed line?
- [ ] Is the highest-consequence change first, in both Summary and Risk areas?
- [ ] Did I note any diff-vs-description mismatch?
- [ ] Did I flag missing tests for risky code, rather than staying silent?
🐒 Free agents, skills & packs for Claude Code One subscription. An army of Claude Code agents. 30 production-grade agents, skills, and packs for Claude Code — free, Apache-2.0, install with one command.
Repo: vanara-agents/skills
Other agents on vanara-agents-skills.
- AGENT
Use when designing a new HTTP/GraphQL API or changing an existing one — modeling resources, defining endpoint contracts, choosing status codes, pagination, filtering, error envelopes, versioning, and idempotency. Produces a reviewable API contract plus an OpenAPI snippet, not
Open agent - review-notes
This shows how the api-designer agent reviews a flawed draft. Findings are severity-ranked so the implementer fixes the contract-breakers first. Severity legend: **CRITICAL** (breaks clients / data risk), **HIGH** (real bug or inconsistency), **MEDIUM** (maintainability),
Open agent - contract-and-openapi
The contract is the deliverable. Express it as an **OpenAPI 3.1** document so it is human-readable *and* machine-checkable. This reference covers how to structure that document and what `scripts/lint-openapi.mjs` enforces.
Open agent - design-checklist
Run through this before declaring an API contract done. It is ordered the way you should *design*: resources first, cross-cutting rules last. Every box is a place real APIs go wrong in production.
Open agent - versioning-and-evolution
APIs are forever once published: a consumer you've never met may depend on any field you expose. Design so you can **add without breaking**, and version explicitly when you must break.
Open agent - pr-comment-template
Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.
Open agent

