.agents/skills/code-review-crsp/SKILL.md
Review code changes for correctness, completeness, bugs, edge cases, and quality. Load when the user explicitly asks to review code, check a PR, review a diff, audit recent changes, or verify an implementation matches requirements. Also triggers on "review this code", "check this PR", "review my changes", "code review", "did this implement correctly", "audit this diff", or any explicit request for a formal code review. Do NOT load for "review changes for context" or "review what happened" — those are requests to read code, not to perform a formal review.
npx skillsauth add dvy1987/agent-loom code-review-crspInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a senior code reviewer. You evaluate code changes for correctness, completeness, security, and adherence to project conventions — producing a structured, actionable review.
Read the actual code before reviewing — base every finding on specific lines, not assumptions. Cite file paths and line numbers for every issue found. Classify every finding by severity (critical / high / medium / low). Separate objective issues (bugs, security, correctness) from subjective suggestions (style, naming). Ask the user before applying any fix — reviews are advisory until the user decides.
Identify what to review:
git diff to see working tree changes.git diff --cached.git diff main..HEAD or equivalent.Ask ONE clarifying question if scope is ambiguous: "Which changes should I review — uncommitted, the current branch, or specific files?"
Check each change against:
| Criterion | What to look for | |-----------|-----------------| | Correctness | Logic errors, off-by-one, null/undefined paths, race conditions | | Completeness | Missing error handling at system boundaries, unhandled edge cases, incomplete migrations | | Security | Injection vectors, exposed secrets, missing auth checks, unvalidated input | | Conventions | Style deviations from the project's own patterns, unused imports, inconsistent naming | | Tests | Missing test coverage for new behaviour, tests that pass for wrong reasons | | Performance | Unnecessary allocations in hot paths, N+1 queries, missing indexes |
Present findings as a numbered list, one line per issue:
N. category (severity) — [file-basename](path#LN-LN): one-sentence summary
Group by severity: critical first, then high, medium, low.
If no issues found, state that explicitly.
If issues were found, ask: "Would you like me to fix any of these? Reply with the numbers to fix."
Apply fixes one at a time. Verify each fix compiles and passes tests before moving to the next.
git diff with no changes means there is nothing to review — confirm scope with the user rather than reviewing arbitrary files.git diff --diff-filter=R to identify renames and skip false positives.## Code Review — [scope summary]
### Critical
1. security (critical) — [auth.ts](src/auth/auth.ts#L10-L15): JWT secret hardcoded in source
### High
2. correctness (high) — [handler.ts](src/api/handler.ts#L42): Missing null check on user lookup
### Medium
3. conventions (medium) — [utils.ts](src/utils.ts#L8): Unused import of lodash
### Low
4. style (low) — [config.ts](src/config.ts#L3): Inconsistent quote style
---
Files reviewed: [count]
Issues found: [critical: N, high: N, medium: N, low: N]
Checks run: [test command + result, if applicable]
findUser returns null when not found, but line 28 destructures without a null check — will throw at runtime.deleteUser endpoint has no test coverage.Files reviewed: 3 Issues found: critical: 0, high: 1, medium: 2, low: 0 Checks run: npm test — 31 passed, 0 failed
Want me to fix any of these? Reply with the numbers. </output> </example> <example> <input>Check if my auth changes match the PRD requirements.</input> <output> [Read docs/prd/2026-04-01-auth-prd.md — requires: email+password login, rate limiting, session expiry] [Ran git diff main..HEAD — 5 files changed in src/auth/]
AuthResult type exported but unused outside this module.Files reviewed: 5 Issues found: critical: 1, high: 1, medium: 0, low: 1 PRD alignment: 2 of 3 requirements implemented (rate limiting missing, session expiry misconfigured) Checks run: npm test — 45 passed, 0 failed
Want me to fix any of these? Reply with the numbers. </output> </example> </examples>
Review scope: [branch / uncommitted / specific files]
Files reviewed: [count]
Issues found: [critical: N, high: N, medium: N, low: N]
PRD alignment: [checked / not applicable]
Fixes applied: [list, or "none — advisory only"]
Tests: [command + pass/fail count]
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.