Skills
codeReviewer
Reviews diffs for bugs, security, style. Comments in PR-review format.
import { codeReviewer } from '@agentskit/skills'
import { github } from '@agentskit/tools'
const runtime = createRuntime({
adapter,
skills: [codeReviewer],
tools: [...github({ token: process.env.GITHUB_TOKEN! })],
})
await runtime.run('Review PR #123 on AgentsKit-io/agentskit')When to reach for it
- Automated PR review bot.
- Snippet review without a PR context (use with the forthcoming generic codeReviewerSkill).
- Pre-commit quality gate.
Behavior
- Reads diff hunk by hunk; comments inline-style with line refs.
- Flags bugs > security > style (priority order).
- Rejects drive-by nitpicks; prefers actionable suggestions.
- Returns
approve/request changes/commentwith rationale.
Pairs well with
githubtool (comment on PRs)lineartool (file follow-up tickets)- HITL approvals (gate the final "approve")
Related
- Skills overview · coder · critic
- Issue #310 — prReviewerSkill
- Issue #454 — securityAuditorSkill