Skip to content
Back to skills

Review

ASecurity

Thorough code review of current branch against the default branch

  • 2 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added September 29, 2026
developmentpythonrustgophpkotlinbashreactnodedockertesting

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add abnegate/claudes --skill review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review?

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

Security grade badge for Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abnegate-review/badge)](https://www.skillsdirectory.com/skills/abnegate-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: review
description: Thorough code review of current branch against the default branch
---

# Code Review

Perform a thorough code review of the current branch against the base branch using parallel agents for speed.

## Workflow

### 1. Gather Context

Detect the base branch and collect the commit history and the diff in one Bash call:

```bash
BASE_BRANCH=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null || git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
: "${BASE_BRANCH:?no base branch found: ask the user which branch to review against}"
git fetch -q origin "$BASE_BRANCH"
echo "Reviewing $(git branch --show-current) against origin/$BASE_BRANCH"
git log --oneline "origin/$BASE_BRANCH"..HEAD
git diff --stat "origin/$BASE_BRANCH"...HEAD
git diff "origin/$BASE_BRANCH"...HEAD
```

### 2. Parallel Code Review

Launch these **reviewer** agents in parallel, each reviewing the same diff but focused on a different dimension:

**Agent A — Security & Data Integrity:**
- Security vulnerabilities (injection, auth bypass, data exposure)
- Data corruption risks
- Breaking changes to public APIs
- Resource leaks

**Agent B — Logic & Correctness:**
- Logic errors and edge cases
- Error handling gaps
- Race conditions
- Proper naming conventions
- DRY violations

**Agent C — Performance & Testing:**
- N+1 queries
- Unnecessary allocations
- Missing indexes (for DB changes)
- Inefficient algorithms
- Missing test coverage
- Inadequate edge case testing
- Flaky test patterns

**Agent D — Project Standards:**
- Compliance with the detected stack's lint and format config
- The rules of the matching house skill, loaded with the Skill tool (for example `Skill(skill="skills:php-expert")`)
- The user's and the project's CLAUDE.md rules
- Correct serialization annotations
- Code clarity and readability

Detect the stacks the diff touches from the manifests at the repository root and the changed file types, and give Agent D each stack's config files and house skill. Examples:

| Stack | Lint and format config | House skill |
|---|---|---|
| Gradle | ktlint through Spotless or the ktlint plugin (`.editorconfig`), detekt (`detekt.yml`) | kotlin-expert; android-expert for Android and Compose code |
| Maven | Checkstyle, PMD or Spotless configured in `pom.xml` | kotlin-expert for Kotlin code |
| PHP | Pint (`pint.json`) or PHP-CS-Fixer, PHPStan (`phpstan.neon`) | php-expert; swoole-expert for Swoole code |
| Node | ESLint (`eslint.config.*`), Prettier (`.prettierrc`), `tsconfig.json` | react-best-practices for React code |
| Rust | `rustfmt.toml`, Clippy (`clippy.toml`, `[lints]` in `Cargo.toml`) | — |
| Go | gofmt, golangci-lint (`.golangci.yml`) | — |
| Python | Ruff and mypy (`[tool.ruff]` and `[tool.mypy]` in `pyproject.toml`) | — |
| Docker | hadolint (`.hadolint.yaml`) if configured | docker-expert |

### 3. Merge & Report

Combine findings from all agents into a single structured report:

```
## Review Summary
- Files reviewed: X
- Issues found: Y (X critical, Y warnings, Z suggestions)

## Critical Issues (Must Fix)
1. [file:line] Description of issue
   - Why it's critical
   - Suggested fix

## Warnings (Should Fix)
1. [file:line] Description
   - Impact
   - Suggested fix

## Suggestions (Consider)
1. [file:line] Description
   - Rationale

## Positive Notes
- Things done well
```

Deduplicate findings across agents. Prioritize by severity.

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.

Comments

Loading comments…