Skip to content
Back to skills

475 Codereview

ASecurity

Privacy-conscious code review for Codex. Use when the user asks to review current branch changes, a Git diff, uncommitted workspace changes, pull-request readiness, merge risk, or a code-review report. Compares against origin/master or master by default, inspects each changed file and hunk, checks security, correctness, reliability, performance, maintainability, and tests, and produces a redacted Markdown report.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
securitygobashsqlcode-reviewgitapisecurityperformance

Works with

  • api

Security analysis

A100/100

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

Scanned November 29, 2026

npx -y skills add winlem2024/workbuddy-skills --skill 475-codereview --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 475 Codereview?

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

Security grade badge for 475 Codereview
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/winlem2024-475-codereview/badge)](https://www.skillsdirectory.com/skills/winlem2024-475-codereview)

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-review
description: Privacy-conscious code review for Codex. Use when the user asks to review current branch changes, a Git diff, uncommitted workspace changes, pull-request readiness, merge risk, or a code-review report. Compares against origin/master or master by default, inspects each changed file and hunk, checks security, correctness, reliability, performance, maintainability, and tests, and produces a redacted Markdown report.
---

# Code Review

Perform a strict, evidence-based review. Prioritize defects, regressions, security risks, data risks, and missing tests. Do not edit product code unless the user explicitly asks for fixes.

## Privacy Rules

- Treat the repository as private. Do not expose secrets, credentials, tokens, private keys, cookies, internal URLs, production hosts, real phone numbers, personal identifiers, customer names, or absolute local paths in final user-facing text.
- Redact sensitive values as `<REDACTED_SECRET>`, `<REDACTED_URL>`, `<REDACTED_PHONE>`, `<REDACTED_EMAIL>`, `<REDACTED_ID>`, or `<REDACTED_PATH>`.
- Prefer relative file paths and line numbers for evidence. If a path or symbol itself reveals sensitive business information, use a stable alias and explain that names were redacted.
- Never copy large config values, SQL data dumps, certificates, private endpoints, or sample personal data into the report.
- Before publishing or sharing the skill itself, scan the skill package for project names, company names, absolute paths, emails, URLs, phone numbers, tokens, and credentials.

## Workflow

1. Ask whether the user has a PRD, issue link, acceptance criteria, or short business goal. If none is provided, continue and mark the review as limited by missing requirements.
2. Inspect repository state:

```bash
git status --short --branch
git branch --show-current
git log --oneline --decorate -10
```

3. Choose the comparison base:

```bash
git diff --name-status origin/master...HEAD
git diff --name-status master...HEAD
```

Use `origin/master...HEAD` when available, otherwise use `master...HEAD`. Record the selected base in the report.

4. Build the coverage list:

```bash
git diff --name-status <base>...HEAD
git diff --stat <base>...HEAD
git diff --unified=80 <base>...HEAD
```

If the full diff is too large or truncated, review per file:

```bash
git diff --unified=80 <base>...HEAD -- <file>
```

5. If the user asks to include uncommitted work, or if committed branch diff is empty but the workspace has changes, review the workspace diff too:

```bash
git diff --name-status
git diff --stat
git diff --unified=80
```

6. Read surrounding code when needed. Use `rg` to find definitions, call sites, configuration keys, mapper SQL, tests, and related behavior.
7. Verify lightweight checks when feasible:

```bash
git diff --check <base>...HEAD
```

Run focused build or tests only when the project makes the relevant command clear and the command is safe in the local environment.

## Review Focus

Check every changed file and hunk for:

- Business correctness and requirement fit.
- Boundary conditions, null handling, type conversion, precision, time zone, encoding, and idempotency.
- Transaction consistency, partial success handling, retries, and concurrency.
- Authentication, authorization, injection, path traversal, unsafe deserialization, sensitive logging, and unsafe defaults.
- Data integrity, duplicate data, dirty data, migration compatibility, and rollback risks.
- Performance risks such as N+1 queries, unbounded loops, large object loading, memory growth, and blocking calls.
- API compatibility, serialization changes, backward compatibility, and configuration compatibility.
- Test coverage for happy paths, error paths, edge cases, and regressions.

Pay extra attention to catch blocks that only log and continue, finally blocks with irreversible side effects, batch jobs with partial failures, payment/order/accounting/refund flows, scheduled or retry jobs, and file upload/download/encryption/decompression code.

## Report

Create a Markdown report named `code-review-report-YYYYMMDD-HHmm.md` in the repository root unless the user asks for inline-only output.

Use this structure:

```markdown
# Code Review Report

**Branch:** {branch}
**Base:** {base}
**Range:** {base}...HEAD
**Reviewed at:** {timestamp}
**Changed files:** {count}
**Conclusion:** {Pass / Conditional pass / Do not merge}

## 1. Requirement Context
- Source: {provided / not provided}
- Goal: {summary or "not provided"}
- Limitation: {state uncertainty when requirements are missing}

## 2. Overall Assessment
- Overall: {score}/10
- Correctness: {score}/10
- Security: {score}/10
- Reliability: {score}/10
- Maintainability: {score}/10
- Tests: {score}/10

## 3. Scope
| Status | File |
| --- | --- |
| M | path/to/file.ext |

## 4. Findings
### {Severity}-{number}: {title}
- Severity: Critical / Major / Minor / Suggestion
- Location: `path/to/file.ext:Lx`
- Problem: ...
- Impact: ...
- Trigger: ...
- Recommendation: ...

## 5. Test Recommendations
- ...

## 6. Verification
| Command | Result | Notes |
| --- | --- | --- |
| `git diff --check ...` | pass/fail/not run | ... |

## 7. Uncommitted Changes
- State whether uncommitted and untracked files were reviewed, ignored, or only listed.

## 8. Coverage Log
### path/to/file.ext
- Hunks reviewed: {count}
- Changed lines covered: yes/no
- Notes: ...
```

Severity definitions:

- `Critical`: production outage, data loss/corruption, security vulnerability, or core flow unavailable.
- `Major`: clear business bug, broken error path, compatibility break, or reliability problem.
- `Minor`: maintainability, localized performance, logging, or test gap.
- `Suggestion`: improvement that should not block merge.

Final response to the user must summarize the report path, highest-risk findings, verification status, and whether merge is recommended. If no blocking issues are found, say that explicitly and mention residual risk.

Files in this skill

  • SKILL.md5.8 KB
  • _skillhub_meta.json817 B
  • agents/openai.yaml234 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 security →

Comments

Loading comments…

Newsletter

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