Skip to content
Back to skills

Code Reviewer

ASecurity

Run isolated code reviews for core algorithm or production code changes. Use when the user asks for a fresh-context reviewer, writer/reviewer separation, Spark pre-review, code review, implementation audit, review bundle, independent review, or review artifacts under `.agent/code-reviews/`.

  • 225 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 4, 2026
code-qualitypythongobashcode-reviewapisecurity

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill code-reviewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Reviewer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Reviewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-code-reviewer-learn-skills-dev/badge)](https://www.skillsdirectory.com/skills/neversight-code-reviewer-learn-skills-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-reviewer
description: Run isolated code reviews for core algorithm or production code changes. Use when the user asks for a fresh-context reviewer, writer/reviewer separation, Spark pre-review, code review, implementation audit, review bundle, independent review, or review artifacts under `.agent/code-reviews/`.
allowed-tools: Read, Write, Edit, Bash, Glob
---

# Code Reviewer

Run code review as an isolated artifact-driven workflow. The reviewer should judge the implemented change from the task contract, diff, writer summary, tests, and relevant files, not from the writer's conversation history.

## Skill Directory Layout

```text
<installed-skill-dir>/
├── SKILL.md
├── scripts/
│   └── prepare_review_bundle.py
├── references/
│   └── isolation-protocol.md
└── templates/
    ├── review.md
    └── fix-log.md
```

## Core Rule

The reviewer must not inherit the writer's chat context. Use one of these patterns:

- Spark pre-review: run a bounded `gpt-5.3-codex-spark` sidecar as a fast first-pass scanner, then let the main agent triage its findings.
- Strong isolation: start a new Codex or Claude Code session and give it only the review bundle path.
- Cross-agent isolation: Codex writes and Claude Code reviews, or Claude Code writes and Codex reviews.
- Subagent isolation: use a fresh subagent only if it does not fork the current writer context.

The reviewer input is the bundle, not the writer conversation.

## Execution Contract

- Default runner: main agent prepares bundles, applies fixes, and owns merge decisions.
- Sidecar eligible: yes, for first-pass review, missing-test scans, diff summaries, and docs/code mismatch checks.
- Suggested sidecar model: `gpt-5.3-codex-spark` via `codex exec --ephemeral`.
- Sidecar permissions: `workspace-write` only to write review artifacts; otherwise `read-only` plus `-o`.
- Strong reviewer required: core algorithm changes, public API changes, security/privacy-sensitive code, broad refactors, or any Spark finding the main agent cannot confidently resolve.
- Required artifacts: `.agent/code-reviews/<change-id>/review.md` and `fix-log.md`; optional sidecar telemetry under `.agent/sidecars/<task-id>/`.

## Bundle Workflow

1. Create a review bundle after implementation:

```bash
python3 <installed-skill-dir>/scripts/prepare_review_bundle.py \
  --repo . \
  --base main \
  --request "Implement <feature> with <acceptance criteria>" \
  --writer-summary "Changed <files>; ran <tests>; known risks: <risks>"
```

2. For uncommitted work, include the working tree:

```bash
python3 <installed-skill-dir>/scripts/prepare_review_bundle.py \
  --repo . \
  --working-tree \
  --request-file .agent/code-reviews/<change-id>/request.md
```

3. Launch a fresh reviewer with only:

```text
Use code-reviewer.
Review the bundle at .agent/code-reviews/<change-id>/.
Do not modify production code.
Write findings to .agent/code-reviews/<change-id>/review.md.
```

For automated strong isolation, prefer a one-shot CLI session instead of an in-process subagent.

Spark pre-review:

```bash
codex exec --ephemeral \
  -m gpt-5.3-codex-spark \
  -C . \
  -s workspace-write \
  -o .agent/code-reviews/<change-id>/spark-output.md \
  "$(cat .agent/code-reviews/<change-id>/reviewer-prompt.md)"
```

Treat Spark output as a fast issue candidate list, not final approval. The main agent should copy accepted findings into `review.md` or record rejected findings in `fix-log.md` / `decision.md`. For high-risk changes, run a strong fresh reviewer after Spark and after fixes.

Codex:

```bash
codex exec --ephemeral \
  -C . \
  -s workspace-write \
  "$(cat .agent/code-reviews/<change-id>/reviewer-prompt.md)"
```

Claude Code:

```bash
claude -p "$(cat .agent/code-reviews/<change-id>/reviewer-prompt.md)" \
  --no-session-persistence \
  --permission-mode acceptEdits
```

For stricter Claude Code scripting, add `--bare` only when the prompt explicitly supplies every needed context path, because bare mode skips automatic project and skill discovery:

```bash
claude -p "$(cat .agent/code-reviews/<change-id>/reviewer-prompt.md)" \
  --no-session-persistence \
  --bare \
  --add-dir .
```

Do not use `claude --continue`, `claude --resume`, `codex resume`, or `codex fork` for a first-pass review. Those are useful for continuing work, but they weaken the reviewer/writer context boundary.

4. The writer then reads `review.md` and any `spark-output.md`, fixes the code, and records responses in `fix-log.md`.

5. For high-risk changes, run a second fresh review after fixes.

## Reviewer Behavior

Read `references/isolation-protocol.md` before reviewing.

Review only the change described by the bundle:

- `request.md`: task contract and acceptance criteria
- `writer-summary.md`: what changed, tests run, known risks
- `diff.patch`: stat and patch
- `test-output.md`: test commands and outputs
- `reviewer-prompt.md`: ready-to-use fresh reviewer prompt

Focus on:

- correctness and algorithmic assumptions
- edge cases, invariants, and data shape assumptions
- tests that would fail if the implementation were wrong
- maintainability and integration risk
- mismatch between request, writer summary, diff, and tests

Do not rewrite the implementation unless the user explicitly asks for reviewer-as-fixer mode. Default reviewer output is `review.md`.

## Findings Format

Use this severity order:

- `High`: likely correctness bug, data corruption, invalid experiment result, security/privacy issue, or broken public API
- `Medium`: edge-case bug, missing test for risky behavior, fragile design, or confusing integration
- `Low`: maintainability nit, naming issue, small docs mismatch

Each finding must include:

- file and line when possible
- problem
- why it matters
- required fix
- suggested test

End with one verdict:

- `request changes`
- `acceptable with nits`
- `approve`

## Handoff Back To Writer

The writer should update `fix-log.md` with:

- each review item
- action taken
- commit or file reference
- tests rerun
- items intentionally not fixed and why

If review findings change the task scope or algorithm contract, update the project memory or design docs before continuing — update `memory/claim-board.md` when correctness claims are affected, `memory/risk-board.md` for newly identified technical risks, and `memory/decision-log.md` when an algorithm contract or design decision changes as a result of review.

Files in this skill

  • SKILL.md6.3 KB
  • description_ar.txt560 B
  • description_cn.txt265 B
  • description_de.txt446 B
  • description_en.txt292 B
  • description_es.txt407 B
  • description_fr.txt426 B
  • description_it.txt408 B
  • description_ja.txt480 B
  • description_ko.txt367 B
  • description_ru.txt669 B
  • description_tw.txt277 B
  • stats.json68 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.