# Code review

> Code review is an open-source agent skill for developer tools. Reviews pull requests for defects and conflicts with recorded architecture decisions. It is available on GitHub Copilot.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** GitHub Copilot
- **Website:** https://github.com/mbeacom/adrkit/tree/main/.github/skills/code-review
- **Repository:** https://github.com/mbeacom/adrkit
- **GitHub stars:** 26
- **License:** Apache-2.0
- **Skill name:** code-review
- **Collection:** https://github.com/mbeacom/adrkit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an AI agent through a read-only review of a pull request in the adrkit repository. It focuses on correctness, security, reliability and compatibility, and on whether the changes conflict with accepted architecture decision records. The agent is told to enumerate every changed path, trace behavior through callers and tests, and avoid praise, style-only remarks and speculative concerns.

When the adrkit MCP server is available, the workflow pulls governing decisions for the changed paths, follows paginated results to completion, and checks rejected or superseded records when a change appears to revive an old approach. Accepted decisions are treated as binding, proposed ones as non-binding context. If the server is unavailable, the skill tells the agent to disclose that decision compliance was not verified rather than parsing ADR files by hand.

Findings are only reported when they are demonstrable from the diff, tied to a changed line and resolvable within the pull request. Comments cite the affected path and any ADR id, and suggest the smallest correction. The skill is written for Copilot code review and needs the adrkit MCP server for its decision lookups.

## When your agent uses it

> Review pull requests in adrkit for actionable defects and conflicts with governing architecture decisions. Use during Copilot code review to inspect changed paths, retrieve relevant ADR context through the adrkit MCP server, and produce evidence-backed inline findings.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mbeacom/adrkit/tree/HEAD/.github/skills/code-review)
- [License: Apache-2.0](https://github.com/mbeacom/adrkit/tree/HEAD/.github/skills/code-review)

## Features

- **Changed path enumeration:** Lists every added, modified and deleted file and traces each behavior through its callers and tests.
- **ADR context retrieval:** Queries the adrkit MCP server for governing, proposed, rejected and superseded decisions tied to the changed files.
- **Paginated result handling:** Walks both cursor channels of MCP responses until they are exhausted before drawing conclusions.
- **Evidence-backed inline findings:** Reports only concrete bugs, vulnerabilities or decision conflicts that can be attached to a changed line.
- **Decision conflict checks:** Cites the ADR id and requirement a change departs from, and recommends a superseding proposal instead of editing records.
- **Compliance disclosure:** States when decision compliance could not be verified because the MCP server was unavailable.

## Good for

- Review a pull request for correctness and security problems
- Check whether a change conflicts with an accepted architecture decision
- Find out if a change reintroduces a previously rejected approach
- Produce inline review comments on changed lines in a Copilot review

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/code-review` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-review &&
cp -R "$tmp/.github/skills/code-review" ~/.claude/skills/code-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-review` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-review` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-review &&
cp -R "$tmp/.github/skills/code-review" ~/.agents/skills/code-review &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-review` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-review` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-review &&
cp -R "$tmp/.github/skills/code-review" ~/.cursor/skills/code-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-review` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mbeacom/adrkit.git --path .github/skills/code-review
```

Or copy the folder to `~/.gemini/skills/code-review` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-review`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mbeacom/adrkit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-review &&
cp -R "$tmp/.github/skills/code-review" ~/.copilot/skills/code-review &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-review` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mbeacom/adrkit.git
```

Then copy `adrkit/.github/skills/code-review` into your agent's skills folder as `code-review`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the adrkit MCP server configured in the repository for decision lookups. Without it, the review continues but decision compliance is reported as unverified.

### Does Code review modify code or ADR records?

No. The review is read-only, and the skill forbids editing, ratifying or marking ADRs as accepted.

### When does Code review trigger?

It is described for use during Copilot code review of pull requests in adrkit.

### How do I install Code review in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-review to use it in all your projects, or to .claude/skills/code-review in one project.

### Does Code review run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code review?

GitHub Copilot. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code review?

The closest alternatives to Code review are Code review, Code review loop, Improve codebase architecture, Harness review and Arch review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Code review](https://ai-powered.com/skills/code-review): Code review is an open-source agent skill for developer tools.
- [Code review loop](https://ai-powered.com/skills/code-review-loop): Code review loop is an open-source agent skill for developer tools.
- [Improve codebase architecture](https://ai-powered.com/skills/improve-codebase-architecture): Improve codebase architecture is an open-source agent skill for developer tools.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.
- [Arch review](https://ai-powered.com/skills/arch-review-ramboz): Arch review is an open-source agent skill for developer tools.
- [Architecture decision records](https://ai-powered.com/skills/architecture-decision-records): Architecture decision records is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Decision backfill](https://ai-powered.com/skills/decision-backfill): Decision backfill is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-review-mbeacom
