Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/carson-sweet-code-review
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-review
What's inside
- Skill name
code-review- Description
- Code, security, and compliance review.
- License
- AGPL-3.0
- Instructions
- 262 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: missing
Files (1)
- SKILL.md
SKILL.md (first lines)
!`bash ${CLAUDE_SKILL_DIR}/../../hooks/read-state.sh session-state`
<preflight-guard>
STOP. Before executing this skill, check: does .sweetclaude/state/sweetclaude.yaml or .sweetclaude/state/phase.yaml exist in the project directory? If NEITHER, do not proceed. Tell the user: "This project is not set up for SweetClaude. Running the pre-flight check now." Then invoke the sweetclaude master skill (Skill tool, skill: "sweetclaude:master") and run its pre-flight. Return here only after the pre-flight passes.
</preflight-guard>
# Code Review
## Step 1: Choose review type
If $ARGUMENTS specifies a type (e.g. `security`, `compliance`, `caucus`, `1 3`), use that and skip the menu.
Otherwise present via AskUserQuestion:
```
What do you want reviewed?
1. Code review — logic errors, edge cases, regressions, performance
2. Security review — auth, injection, secrets, OWASP Top 10
3. Compliance review — licenses, data handling, privacy, regulatory
4. Caucus review — 5 parallel specialty agents with consensus scoring (higher coverage, lower false positives)
```
Options 1–3 can be combined. Option 4 is standalone.
If options 1–3 selected: run chosen reviews in order: 1 → 2 → 3. Skip to Step 2.
If option 4 (caucus) selected: skip to **Caucus Review** section below.
## Step 2: Establish scope
If $ARGUMENTS specifies files or a PR number, use that.
Otherwise: review staged changes, or if nothing staged, the last commit.
## Step 2b: Run mode
For reviews involving multiple types (e.g. code + security) or large diffs (50+ files), proactively offer background execution:
Offer via AskUserQuestion:
- **Review now (inline)** — run in this conversation; findings appear as Claude works
- **Run in background** — dispatch as a background agent; continue working and get notified when findings are ready
If "Run in background":
Dispatch a background Agent with `run_in_background: true`. Pass:
- The review type(s) selected in Step 1
- The scope (files, diff, or PR number) from Step 2
- Any compliance context from `.sweetclaude/state/compliance-context.yaml` (for compliance reviews)
- Instruction: run the applicable review sections from this skill and produce the standard output format
Confirm: "Review running in background. Findings will appear when the agent completes."
Stop. Do not run the inline review sections below.
If "Review now (inline)": proceed to the review sections below.
For small focused reviews (single file, one type, short diff), skip the offer and run inline without asking.
---
## Code Review
**Focus areas:**
1. **Logic errors** — off-by-one, wrong operator, inverted condition, missing null check
2. **Edge cases** — empty input, boundary values, concurrent access, very large input
3. **Regressions** — does this change break existing behavior? Check callers and consumers.
4. **Missing error handling** — what happens when this fails? Network errors, invalid data, timeouts, disk full
5. **Performance** — N+1 queries, unbounded loops, missing pagination, unnecessary allocations, missing indexes
6. **Naming and contracts** — does the function do what its name says? Do types match reality?
**Do not flag:** style, formatting, naming conventions (linter handles that), or missing features not in scope.
**Output:**
```
Code Review: {scope}
════════════════════
✗ Critical (must fix):
- {finding} — {file}:{line}
Problem: {what is wrong}
Fix: {specific suggestion}
⚠ Warning (should fix):
- {finding} — {file}:{line}
Problem: {what could go wrong}
Fix: {specific suggestion}
→ Nit (consider):
- {finding} — {file}:{line}
{suggestion}
✓ Looks good:
- {area reviewed with no findings}
```
---
## Security Review
**Focus areas:**
1. **Authentication and authorization** — are endpoints protected? Can a user access another user's data? Missing permission checks?
2. **Injection** — SQL injection, command injection, XSS, SSTI, path traversal
3. **Secrets exposure** — hardcoded credentials, API keys in source, secrets in logs or error messages
4. **Tenant isolation** — multi-tenant systems: can data from one tenant leak to another?
5. **Input validation** — is untrusted input validated at system boundaries? Are file uploads restricted?
6. **Cryptography** — weak algorithms, hardcoded IVs, broken key management, insecure random
7. **Dependency risks** — known CVEs in direct dependencies (check `npm audit` / `pip audit` / equivalent)
8. **OWASP Top 10** — verify the change does not introduce any of the top 10 categories
**Output:**
```
Security Review: {scope}
════════════════════════
✗ Critical (must fix before merge):
- {finding} — {file}:{line}
Risk: {what an attacker could do}
Fix: {specific remediation}
⚠ Warning (should fix):From carson-sweet/sweetclaude, AGPL-3.0.
More from carson-sweet/sweetclaude
- 0.614score
code-testing
carson-sweet
Run any combination of test suite, mutation testing, security review, and PR pre-check.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
project-gh-sync-issues
carson-sweet
Bidirectional status sync between local issue files and GitHub Issues.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
code-tdd
carson-sweet
Internal TDD process skill — invoked by code-feature, code-issue, and code-debt.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
project-gh-import-issues
carson-sweet
Import open GitHub Issues into the local issue store as v4 story files.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
product-sprint-plan
carson-sweet
Plan a sprint by selecting stories from the backlog, estimating scope, and producing a sprint commitment.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
john-wick-checkin
carson-sweet
Internal John Wick phase check-in subagent.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
code-feature
carson-sweet
Build a new feature end-to-end.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
code-issue
carson-sweet
Implement a GitHub issue end-to-end.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
project-backlog-triage
carson-sweet
Structured backlog grooming session.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
code-verify
carson-sweet
Run verification before claiming work is complete.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
john-wick
carson-sweet
Fully autonomous, resumable, multi-session SDLC pipeline.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
product-user-tdd-tests
carson-sweet
Transition user stories into Gherkin .feature files.
SkillAFreshness: A★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 3
- Open issues
- 4
- Last commit (this folder)
- Oct 20, 2026 (9 days ago)
- Last release
- Oct 24, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/carson-sweet/sweetclaude
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from carson-sweet
- 0.614score
project-gh-sync-issues
carson-sweet
Bidirectional status sync between local issue files and GitHub Issues.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
code-testing
carson-sweet
Run any combination of test suite, mutation testing, security review, and PR pre-check.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
product-sprint-plan
carson-sweet
Plan a sprint by selecting stories from the backlog, estimating scope, and producing a sprint commitment.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
project-gh-import-issues
carson-sweet
Import open GitHub Issues into the local issue store as v4 story files.
SkillAFreshness: A★ 7Claude Code +9 - 0.614score
code-tdd
carson-sweet
Internal TDD process skill — invoked by code-feature, code-issue, and code-debt.
SkillAFreshness: A★ 7Claude Code +9 - 0.611score
code-issue
carson-sweet
Implement a GitHub issue end-to-end.
SkillAFreshness: A★ 7Claude Code +9
Cite this page
code-review skill. Agent Mart. https://agentmart.dev/skills/carson-sweet-code-review (last updated 2026-10-24)