Code Review

VerifiedCaution

Reviews code for quality, security, and maintainability issues. Use after implementing features or completing significant work, or when the user asks for code review. Provides structured feedback organized by priority (critical, warning, suggestion).

Sby Skills Guide Bot
DevelopmentIntermediate
3/1/2026
Claude CodeCodex
#code-review#security#git-diff#python#code-quality

Recommended for

Automated summary

This skill inspects code changes with git diff and produces a severity-ordered review covering security, code quality, parameters, testing, and project standards.

Strengths

  • Explicit checklist spanning security, quality, parameters, Python specifics, and tests
  • Output grouped into Critical / Warnings / Suggestions with line numbers and suggested fixes
  • Encodes a single-source-of-truth rule for configuration defaults instead of scattered magic strings
  • Anchors the review on git diff so feedback targets actual changes rather than the whole codebase

Limitations

  • Assumes a Git repository with a usable diff to review
  • The Python section and ruff check are language-specific and add little value outside Python projects
  • Produces written feedback only, with no automated fixups or pass/fail gating
When to use it

Use it right after implementing a feature or finishing a chunk of work, before committing or opening a pull request.

When not to use it

Avoid relying on it as the sole CI quality gate, since it returns narrative feedback rather than deterministic pass/fail enforcement.

Security analysis

Caution
Quality score88/100

The skill is a standard code-review workflow with no destructive, exfiltration, obfuscated, or safety-disabling instructions. The only notable risk is the use of Bash for running git and lint commands, which is legitimate but powerful enough to warrant caution.

Findings
  • •Declares/uses Bash, allowing arbitrary shell commands; instructions only mention legitimate commands like `git diff` and `ruff`, but Bash execution is inherently powerful.
How this analysis is made

Examples

Review a finished feature
I just finished the user-export feature. Run a code review on my changes and organize the feedback by severity.
Security-focused pass
Review the staged changes with a focus on security: secrets, input validation, path traversal, and command injection.
Pre-commit check
Before I commit, review my working diff for quality issues, missing tests, and any ruff violations.

name: code-review description: Reviews code for quality, security, and maintainability. Use after implementing features, completing significant work, or when user asks for code review. targets: ["*"] claudecode: allowed-tools: ["Read", "Grep", "Glob", "Bash"] codexcli: allowed-tools: ["Read", "Grep", "Glob", "Bash"]

Code Review

Instructions

  1. Run git diff to identify changed files
  2. Read modified files to understand the intent of changes
  3. Review against the checklist below
  4. Provide structured feedback organized by priority

Review Checklist

Security

  • No exposed credentials, API keys, or secrets
  • Input validation implemented where needed
  • File paths are sanitized (no path traversal)
  • External commands are safely constructed (no injection)

Code Quality

  • Variables and functions are clearly named
  • Functions have single responsibility
  • No code duplication (DRY principle)
  • Complex logic has explanatory comments
  • Error handling is comprehensive
  • No unused imports or variables
  • Clean separation of concerns

Parameters

  • Use enums rather than bare strings for parameters
  • Do not spread "magic strings" throughout the code, use a single source of truth for parameter defaults (config.py)
  • Do not use the "if (check config) then (value = from config) else (value = default)" pattern - this breaks the single source of truth rule

Python Specific

  • Type hints used appropriately
  • Exceptions are specific (not bare except:)
  • Context managers used for resources
  • f-strings preferred over .format() or %

Testing

  • New functionality has test coverage
  • Edge cases are tested
  • Error conditions are tested
  • Tests are readable and maintainable

Project Standards

  • Code passes ruff linting
  • No legacy wrappers or thin compatibility layers
  • No "last updated" dates or copyright headers

Output Format

Organize feedback by severity:

Critical (must fix)

  • Security issues
  • Bugs that will cause failures
  • Include specific line numbers and suggested fixes

Warnings (should fix)

  • Code quality issues
  • Missing error handling
  • Potential edge cases
  • Include rationale and improvement suggestions

Suggestions (consider)

  • Style improvements
  • Minor optimizations
  • Include brief explanation of benefit

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/code-review-mm78noj7/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/code-review-mm78noj7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/code-review-mm78noj7/download' --output '.skill-downloads/code-review-mm78noj7/SKILL.md.part' && mv '.skill-downloads/code-review-mm78noj7/SKILL.md.part' '.skill-downloads/code-review-mm78noj7/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/code-review-mm78noj7/SKILL.md' && test -s '.skill-downloads/code-review-mm78noj7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/code-review' && cp -R '.skill-downloads/code-review-mm78noj7' '.claude/skills/code-review'

Codex
test -f '.skill-downloads/code-review-mm78noj7/SKILL.md' && test -s '.skill-downloads/code-review-mm78noj7/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/code-review' && cp -R '.skill-downloads/code-review-mm78noj7' '.agents/skills/code-review'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/code-review-mm78noj7'

openskills read 'code-review-mm78noj7'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/code-review-mm78noj7/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills