From atelier
This skill should be used when the user asks to "review this diff", "ai review", "security review my changes", "review before push", "check my code for issues", or wants an LLM-based security and correctness review of uncommitted or unpushed changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/atelier:ai-reviewsonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run an LLM-based security and correctness review of the current diff vs a base branch.
Run an LLM-based security and correctness review of the current diff vs a base branch.
Surfaces findings grouped by severity. Writes a markdown report to .ai-logs/.
Default base branch is main. Accept an explicit base if provided.
git diff main...HEAD
If HEAD is already on main or there is no diff, fall back to staged changes:
git diff --staged
If both are empty: inform the user there is nothing to review and stop.
git rev-parse --short HEAD
Use this as <sha> in the report filename.
Compose a prompt with the following structure:
You are a senior engineer performing a security and correctness review of a code diff.
Review the diff below and produce a structured report with findings grouped by severity:
- CRITICAL: security vulnerabilities, data loss, auth bypasses, path traversal, injection
- HIGH: correctness bugs, panics in production paths, missing error handling, race conditions
- MEDIUM: performance issues, missing cleanup, unclear invariants, incomplete implementations
- LOW: style issues, dead code, missing docs, minor inefficiencies
For each finding:
- Severity: CRITICAL | HIGH | MEDIUM | LOW
- File + line reference (if determinable from diff)
- Finding: one-sentence description
- Detail: 2-3 sentences of explanation
- Recommendation: concrete fix
If no findings at a severity level, omit that section.
End with a one-paragraph summary verdict.
DIFF:
<diff content>
Ensure .ai-logs/ directory exists, then write the report:
.ai-logs/ai-review-<sha>.md
Report format:
# AI Review — <sha>
**Base:** main **Date:** <date>
## CRITICAL
### <Finding title>
**File:** `path/to/file.rs:42`
**Finding:** ...
**Detail:** ...
**Recommendation:** ...
## HIGH
...
## Summary
<verdict paragraph>
If the directory does not exist, create it before writing.
Print the findings summary to the terminal grouped by severity with counts:
SEVERITY COUNT
CRITICAL 0
HIGH 2
MEDIUM 3
LOW 1
Report: .ai-logs/ai-review-<sha>.md
If CRITICAL or HIGH findings exist, highlight them inline before the summary table.
If the user specifies a different base (e.g. "review against next"), use that ref
instead of main for the diff command.
Run cargo-gate before ai-review on Rust projects to ensure the diff is clean first.
The review is most useful on a diff that already compiles and passes clippy.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub 89jobrien/bazaar --plugin atelier