Skip to content

pr-comment-template

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

From plugin
vanara-agents-skills
954 skills54 agents
Install
$ npx -y skills add vanara-agents/skills --agent claude-code

How 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.

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

Agent definition

pr-comment-template.md

PR Comment Templates

Copy-paste templates for leaving review comments. Keep each comment to one finding: an anchor, the problem, and the fix.

Inline comment (single finding)

**[HIGH]** `path/to/file.js:88`

User-supplied `sort` is interpolated into the SQL string, allowing injection.

**Fix:** whitelist the sortable columns and bind the value:
\`\`\`js
const SORTABLE = { date: 'created_at', total: 'amount' };
const col = SORTABLE[sort] ?? 'created_at';
\`\`\`

Top-level summary comment

## Review summary

- **Verdict:** Request-changes
- **Blocking:** 1 HIGH (SQL injection at `repo.js:88`)
- **Non-blocking:** 2 MEDIUM, 1 LOW

Logic is sound and the tests are well structured. The one blocker is the dynamic sort column —
once that's whitelisted this is good to merge. Detailed findings are inline.

Approval comment (clean change)

## Review summary

**Verdict: Approve** — read the full diff. Security, correctness, and tests all check out; no
findings above LOW. Nice, focused change.

Nit prefix convention

Prefix optional comments with `nit:` so authors know they don't block:

nit: `const d` → `createdAt` reads more clearly here.
Ships withvanara-agents-skills

🐒 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.

Get the whole plugin, auto-invoked
Stats
9
Stars
0
Views
3
Forks
Active
Maintenance
JavaScript
Language
Apache-2.0
License
10d ago
Last commit
24d ago
Created

Repo: vanara-agents/skills

Other agents on vanara-agents-skills.