Agent skill

Code Review

by SpecterOps in SpecterOps/skills

Security-focused code review of current git changes. An agent skill from SpecterOps/skills.

Apache-2.0Auto-check passedDevelopment

Install Code Review

skills CLI
$ npx skills add SpecterOps/skills --skill code-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SpecterOps/skills code-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SpecterOps/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/code-review-and-qa/skills/code-review .claude/skills/code-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-review
GitHub stars
702
Token cost
~609 tokens
SKILL.md length
279 words
Files
4 (incl. assets)
Skills in repo
38
Repo updated
First seen
Licence
Apache-2.0

At a glance

Security-focused code review of current git changes. An agent skill from SpecterOps/skills.

  • Works in 4 steps: Determine scope from user input… → Run git status for the full picture → Read the full content of each changed… → …
  • Reviewing code diffs
  • Calls git
  • Checking for vulnerabilities

What it does

Code Review is an agent skill from SpecterOps/skills. Security-focused code review of current git changes. Use when reviewing code diffs, checking for vulnerabilities, or before merging branches.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including assets (for example `agents/openai.yaml`).

It sits in Development, covering Code review and Web application vulnerabilities. It works with Git. The repository describes itself as: A marketplace for LLM skills. The licence is Apache-2.0.

When your agent uses it

  • Reviewing code diffs
  • Checking for vulnerabilities
  • Before merging branches

Example prompts

  • “/code-review”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Determine scope from user input (default: all)
  2. Run git status for the full picture
  3. Read the full content of each changed file for context (not just the diff)
  4. Analyze for

What it can do on your machine

Read from SKILL.md and the folder at commit e655f93. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Review loads about 609 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 279 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~609

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SpecterOps/skills at commit e655f93, republished under its Apache-2.0 licence (© SpecterOps). 279 words, ~609 tokens.

Download SKILL.mdSave it as .claude/skills/code-review/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
code-review
description
Security-focused code review of current git changes. Use when reviewing code diffs, checking for vulnerabilities, or before merging branches.
metadata.author
GhostWorks

Security-Focused Code Review

Review current git changes with a focus on security issues and code quality.

Parse the user's input to determine scope:

  • $code-review → review all changes (staged + unstaged)
  • $code-review staged → only staged changes
  • $code-review unstaged → only unstaged changes

Steps

  1. Determine scope from user input (default: all)

    • staged: git diff --staged
    • unstaged: git diff
    • all: both git diff and git diff --staged
  2. Run git status for the full picture

  3. Read the full content of each changed file for context (not just the diff)

  4. Analyze for:

Security Issues (Critical)
  • Injection: SQL injection, command injection, XSS, SSTI, LDAP injection
  • Hardcoded secrets: API keys, passwords, tokens, connection strings, private keys
  • Path traversal: unsanitized file path inputs, ../ patterns
  • Insecure deserialization: pickle, yaml.load without SafeLoader, json with custom decoders
  • Weak crypto: MD5/SHA1 for security, ECB mode, hardcoded IVs, insufficient key lengths
  • SSRF: unvalidated URLs in HTTP requests, DNS rebinding potential
  • Race conditions: TOCTOU, shared state without locks, async hazards
  • Auth issues: missing auth checks, privilege escalation, IDOR patterns
  • CORS misconfiguration: overly permissive Access-Control-Allow-Origin, credentials with wildcard
  • JWT issues: algorithm confusion (none/HS256 vs RS256), missing expiration, weak secrets
Logic & Correctness
  • Off-by-one errors, boundary conditions
  • Unhandled error cases that could crash or leak info
  • Resource leaks (unclosed files, connections, sockets)
  • Incorrect type handling
Code Quality
  • Overly complex logic that could hide bugs
  • Missing input validation at trust boundaries
  • Inconsistent error handling patterns
  1. Present findings by severity:

    • CRITICAL: Exploitable security vulnerabilities
    • HIGH: Security weaknesses, data exposure risks
    • MEDIUM: Logic bugs, error handling gaps
    • LOW: Style issues, minor improvements
  2. Each finding includes: file:line, issue, why it matters, suggested fix

  3. Summary: total by severity, verdict (safe to merge / needs fixes / needs rework)

© SpecterOps, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (assets) in plugins/code-review-and-qa/skills/code-review of SpecterOps/skills.

  • SKILL.md
  • agents/openai.yaml
  • assets/icon.png
  • assets/icon.svg

Open the folder on GitHubat commit e655f93

Compare with similar skills

Code Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review this skillSpecterOps/skills702—~609Automated safety check: PassApache-2.0
Code Reviewaiskillstore/marketplace430—~2.3kAutomated safety check: PassNone
Code Review ProOneWave-AI/claude-skills322—~1.2kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
Open Code Review CLIalibaba/open-code-review44k—~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Code Review

    aiskillstore/marketplace

    This skill should be used when the user requests a code review of changed files.

    430 GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Review Pro

    OneWave-AI/claude-skills

    Performs a deep code review of files, modules, a diff, or a branch - finding security vulnerabilities (mapped to OWASP Top 10:2025), correctness bugs, performance problems, and maintainability…

    322 GitHub stars~1.2k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Open Code Review CLI

    alibaba/open-code-review

    Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.

    44k GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Open Code Review Delegate

    alibaba/open-code-review

    Has the host agent do the code review itself while the ocr CLI handles file selection and rule lookup, covering workspace changes, branch ranges or single commits.

    44k GitHub stars~2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from SpecterOps/skills

All 38 skills in this repo
  • Codex Activity Report

    SpecterOps/skills

    Generate a normalized UTC timeline and evidence-based narrative from Codex activity artifacts.

    702 GitHub stars~805 tokensUpdated 14 days ago
    Auto-check passed
  • Com Proxy Triage

    SpecterOps/skills

    A skill your agent uses when the user wants to triage Windows COM proxy/hijack candidates by capturing HKCU\Software\Classes\CLSID\{...}\InProcServer32 NAME NOT FOUND lookups for a process, mapping…

    702 GitHub stars~1.5k tokensUpdated 14 days ago
    Auto-check passed
  • Cwe Code Review

    SpecterOps/skills

    Perform CWE-grounded security code reviews and precise weakness mapping using a locally derived MITRE CWE corpus, relationship graphs, mapping notes, detection methods, mitigations, and schema…

    702 GitHub stars~2.4k tokensUpdated 14 days ago
    Auto-check passed
  • Ghostwriter Oplog

    SpecterOps/skills

    A skill your agent uses for Ghostwriter operation log entries from Codex, including config guidance, quick notes, evidence-backed entries, and guided oplog capture through the Ghostwriter MCP tools.

    702 GitHub stars~665 tokensUpdated 14 days ago
    Auto-check passed
  • Nmap Parse

    SpecterOps/skills

    Parse nmap scan output and generate actionable recon notes. An agent skill from SpecterOps/skills.

    702 GitHub stars~738 tokensUpdated 14 days ago
    Auto-check passed
  • Osint Recon

    SpecterOps/skills

    Perform OSINT and external reconnaissance for approved targets.

    702 GitHub stars~813 tokensUpdated 14 days ago
    Auto-check passed

Works with

Categories

Questions about Code Review

What does Code Review do?

Security-focused code review of current git changes. An agent skill from SpecterOps/skills. Code Review is an agent skill from SpecterOps/skills. Security-focused code review of current git changes.

When should I use Code Review?

Code Review fits situations like: reviewing code diffs; checking for vulnerabilities; before merging branches.

How do I install Code Review in Claude Code?

Run `npx skills add SpecterOps/skills --skill code-review -a claude-code`. Or copy the skill folder (plugins/code-review-and-qa/skills/code-review in SpecterOps/skills) into .claude/skills/code-review in your project. Claude Code loads it when a task matches its description.

How do I install Code Review in Codex?

Run `npx skills add SpecterOps/skills --skill code-review -a codex`. Or copy the skill folder (plugins/code-review-and-qa/skills/code-review in SpecterOps/skills) into .agents/skills/code-review in your project. Codex loads it when a task matches its description.

Can I use Code Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SpecterOps/skills --skill code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-review, .gemini/skills/code-review, .github/skills/code-review and .opencode/skills/code-review in your project.

What does Code Review need to run?

Going by SKILL.md and its folder, Code Review needs the command-line tools its instructions call (git).

Does Code Review access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Review use?

Code Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Review use?

About 609 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Review?

Skills that share tags, products or a category with Code Review: Code Review (aiskillstore/marketplace, 430 stars), Code Review Pro (OneWave-AI/claude-skills, 322 stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review?

SpecterOps (a GitHub organization) maintains it in SpecterOps/skills, which has 702 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on September 23, 2026.

Source: SpecterOps/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.