Skip to content
Back to skills

Independent Code Review

ASecurity

Independent code review standard — the reviewer works in a fresh context, two axes "Specification" and "Standards", severity calibration (blocker, major, suggestion), evidence as file:line and a failure scenario, handing over to security and privacy review, report and verdict. Use it before merging any change or when asked to review a PR, diff or branch (code review, PR review, pull request, diff review, reviewer).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgocode-reviewgitapisecurityperformancedocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill independent-code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Independent Code Review?

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

Security grade badge for Independent Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-independent-code-review/badge)](https://www.skillsdirectory.com/skills/vectora-os-independent-code-review)

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: independent-code-review
description: Independent code review standard — the reviewer works in a fresh context, two axes "Specification" and "Standards", severity calibration (blocker, major, suggestion), evidence as file:line and a failure scenario, handing over to security and privacy review, report and verdict. Use it before merging any change or when asked to review a PR, diff or branch (code review, PR review, pull request, diff review, reviewer).
metadata:
  category: quality
---

# Independent code review

## Purpose

This skill defines how to review a change before merging: what to read, which axes to check, how to rate a finding's severity and how to write the verdict. The reviewer is not the author of the change and works in a separate session without the author's history: it sees only the task, the acceptance criteria and the diff. Read-only: no code is changed, the result is a report.

The skill is a general frame. Domain checklists are in the "Checks" sections of the relevant skills (`test-strategy`, `privacy`, `performance`, `documentation` and the skills added by the project). Security review is done by `independent-security-review`.

## Inputs

- Diff, task card, acceptance criteria, ADRs.

## Outputs

- Review report (`templates/code-review-report.md`) with verdict.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "code review findings"` for prior decisions, patterns and lessons.
- [AGENTS.md](../../../AGENTS.md) — [invariants](../../../AGENTS.md#invariants) (a violation is a blocker) and the agents' working rules.
- [engineering standards](../../../standards/README.md) — rules for code, [documentation standard](../../../standards/documentation.md) and [agents and workflow](../../../docs/agents.md).
- [Agents and workflow](../../../docs/agents.md#workflow) — where review sits in a task and whom to hand over to next.
- [ADR index](../../../docs/adr/README.md); the ADRs the task links to.
- Code architecture, if the project has it (for example `docs/architecture.md`).
- The task: owner, allowed files, input, acceptance criteria. Diff: the whole `git diff <base>...<head>`. If there are no commits yet — the working tree: `git status`, `git diff`, `git diff --cached` and untracked files (`git ls-files --others --exclude-standard`), each read in full.
- Report template and severity scale — [../../../templates/code-review-report.md](../../../templates/code-review-report.md).

## Steps

1. **Fresh context.** Take only the task, acceptance criteria, the base and the reviewed commit (or a snapshot of the working tree). Do not read the author's conversation or conclusions. No task or acceptance criteria — stop and ask the owner ([agent task](../../../docs/agents.md#agent-task)).
   **Rule:** the reviewer is not the author of the change and does not approve its own PR.
   Done when the report records the base and head (or "working tree" and the snapshot time) and a link to the task.
2. **Change map.** List the affected areas: code modules, data schema and migrations, public contracts (API, events), authorization and secrets, configuration and dependencies, CI, `docs/`, agents and skills. Compare with the list of allowed files.
   Done when every file in the diff is assigned to an area and files outside the allowed ones are marked.
3. **"Specification" axis.** Every acceptance criterion is met, not met or not verifiable. For a met one, name the test or code line that proves it. Extra behaviour beyond the task is a finding too.
   Done when every criterion has a status and evidence.
4. **"Standards" axis.** Go through the [invariants](../../../AGENTS.md#invariants), the engineering standards and the related ADRs. For every affected area read the relevant skill's `SKILL.md` and go through its "Checks" section. For `docs/` — the "Checks" of the `documentation` skill and the [ADR rules](../../../docs/adr/README.md): an accepted ADR changes only by status, a link line, or a fix of a typo or broken link. Documents beat general habits: if the code follows an ADR and common practice says otherwise, there is no finding.
   **Rule:** a violation of an invariant from `AGENTS.md` or a documented rule (ADR, standard) is a blocker. No failure scenario is needed for it; a link to the violated document line is enough.
   Done when every area has the checklist that was applied.
5. **Tests.** New behaviour is covered by a test; the test fails without the change and passes with it. Concurrent access and data isolation are tested on real infrastructure, not mocks (`test-strategy`). Attach the output of `npm run check` and, for documentation, `npm run check:docs`, for agents and skills — `npm run agents:check` from the author or CI. Run them yourself only if [authority](../../../docs/agents.md#rules-and-authority) and the sandbox allow it.
   Done when the command output is attached or the report says "checks not provided", and uncovered behaviour is listed.
6. **Severity.** Every finding: file:line, what is wrong, a failure scenario (input → wrong result), a link to a document, a level on the scale from references.
   **Rule:** without a failure scenario a finding is no higher than "suggestion", except for a violation of a documented rule (step 4).
   Done when every finding has file:line, substance, a document link, a level, and a failure scenario or a violated rule.
7. **Handover to specialist reviewers.** Authorization, secrets, cryptography, external input, dependencies, sensitive invariants → `security-reviewer`. Personal data → `privacy-specialist`. Hot paths and load → `performance-engineer`. You do not approve these areas yourself.
   Done when the report states what was handed over and to whom, or "no handover needed" with a reason.
8. **Verdict.** "Ready to merge" — no blockers and no major findings without an accepted decision. "Changes needed" — otherwise. Open questions to the owner are not resolved by the reviewer.
   Done when the report is handed to the author (for example as a PR comment) and the code is unchanged.

## Best practices

- Review in a fresh session without the author's history.
- Every finding: severity, file:line, scenario or rule.
- Mark each criterion met / not met / not verifiable.

## Common mistakes

- Style nits as blockers.
- Findings without a failure scenario.
- "LGTM" without checking criteria.

## Example

Invitation PR: Blocker — non-constant-time token comparison and expired tokens accepted (`invite.service.ts:54`); Major — no reused-token test.

## Reusable prompt

```text
Apply the independent-code-review skill (.agents/skills/independent-code-review/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Review the diff against the task, criteria, ADRs and standards; report findings with severity, location and scenario, and a verdict.
Cite evidence for every claim; list open questions separately.
```

## Checks

- [ ] The review ran in a separate session; the reviewer is not the author of the change.
- [ ] Every acceptance criterion has a status and evidence.
- [ ] Every invariant from `AGENTS.md` is checked for the affected areas; the list is not copied into the report, a violated invariant is quoted with a link.
- [ ] The output of `npm run check` (and `npm run check:docs`, `npm run agents:check` for the corresponding edits) is attached, or "checks not provided" is recorded.
- [ ] Every finding has file:line, a document link, a level, and a failure scenario or a violated rule.
- [ ] When `docs/adr/` is edited, accepted ADRs are changed only in the allowed places.
- [ ] Security is handed to `security-reviewer`, personal data to `privacy-specialist`, if affected.

## Out of scope

- Fixing the code — the author of the change.
- Security review — `independent-security-review`; architecture decisions — `architecture-decisions`.
- The merge and release decision — a human.

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 ai-agents →

Comments

Loading comments…

Newsletter

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