agentskit.js
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 / comment with rationale.

Pairs well with

  • github tool (comment on PRs)
  • linear tool (file follow-up tickets)
  • HITL approvals (gate the final "approve")
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page