Agent Skills: Code Review

Review code changes and provide structured feedback for merge/pull requests or diffs. Use when asked to review PR/MR changes, assess correctness, style, tests, performance, or security, and return actionable review notes.

UncategorizedID: srtab/daiv/code-review

Repository

srtabLicense: Apache-2.0
172

Install this agent skill to your local

pnpm dlx add-skill https://github.com/srtab/daiv/tree/HEAD/daiv/automation/agent/skills/code-review

Skill Files

Browse the full folder contents for code-review.

Download Skill

Loading file tree…

daiv/automation/agent/skills/code-review/SKILL.md

Skill Metadata

Name
code-review
Description
Review code changes and provide structured feedback for merge/pull requests or diffs. Use when asked to review PR/MR changes, assess correctness, style, tests, performance, or security, and return actionable review notes.

Code Review

Establish scope and inputs

  • Identify whether the request targets a merge/pull request, a local diff, or specific files.
  • If a merge/pull request is referenced:
    1. fetch merge/pull request to determine the source branch and target branch;
    2. fetch the diffs between source branch and target branch to review the changes;
  • If a diff is already provided, review that directly without re-fetching.
  • If the scope is ambiguous, infer it from the conversation history and available artifacts.
  • Otherwise, ask the user to provide more context.

Review checklist

  • Validate correctness, edge cases, and error handling.
  • Confirm adherence to project conventions and architecture.
  • Check performance implications or scalability risks.
  • Evaluate tests: coverage for new/changed behavior, missing tests, or flaky patterns.
  • Highlight security considerations (input validation, authz/authn, secrets, data handling).
  • Note documentation or changelog impacts when user-facing behavior changes.

Response format

  • Overview: 1-3 bullets on what changed.
  • Findings: concise bullets grouped by severity (High/Medium/Low) with actionable fixes.
  • Suggestions: optional improvements that are not blocking.
  • Tests: what was run, what should be run, or gaps to cover.