/rsturla-skills:code-reviewfrom rsturla-skills
Comprehensive code review using multiple specialized agents. Checks architecture, error handling, naming, testing, and style against project conventions. Use when the user asks for a code review, says "review this", "check my code", or wants feedback on changes — even if they just say "what do you think?" about a diff.
Ships in rsturla-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Multi-agent code review that produces actionable findings aligned with project conventions.
# Check for staged changes first
if [ -n "$(git diff --cached --name-only)" ]; then
DIFF_CMD="git diff --cached"
TARGET="staged changes"
# Check for GitHub PR
elif gh pr view --json number &>/dev/null 2>&1; then
DIFF_CMD="gh pr diff"
TARGET="PR #$(gh pr view --json number -q .number)"
# Check for GitLab MR
elif glab mr view &>/dev/null 2>&1; then
DIFF_CMD="glab mr diff"
TARGET="MR !$(glab mr view --output json 2>/dev/null | jq -r .iid)"
# Fall back to branch diff vs main
else
BASE=$(git merge-base HEAD origin/main 2>/dev/null || echo "origin/main")
DIFF_CMD="git diff $BASE...HEAD"
TARGET="branch $(git branch --show-current) vs main"
fi
Detect from changed files:
.go → apply Go Coding Guidelines.rs → apply Rust Coding Guidelines.py → apply Python Coding Guidelines.tf, .hcl → apply OpenTofu + Terragrunt GuidelinesContainerfile → apply Containerfile Guidelines.yml, .yaml in .github/workflows/ → apply GitHub Actions GuidelinesRead the relevant guidelines by following the links in the Language Guides section of AGENTS.md (already in your context). Pass the guidelines content to each agent so they can check against project conventions.
Launch 3 agents in parallel using the Agent tool. Include the full diff output, changed file list, and relevant guidelines content in each agent's prompt.
Prompt:
Review this diff for architectural issues. Check for:
- Interface design: are interfaces defined at the consumer? Are they small (1-3 methods)?
- Dependency direction: do modules depend on abstractions, not concrete implementations?
- Package/module boundaries: is the change in the right place? Should it be extracted?
- Error handling: are errors wrapped with context? Are they handled at the right level?
- Missing abstractions: should a new interface be introduced for pluggability?
- Over-engineering: unnecessary abstractions, premature generalization, dead code
Reference the project conventions loaded in Step 2. For each finding: file, line, issue, suggestion.
Prompt:
Review this diff for bugs, correctness issues, and missing edge cases. Check for:
- Nil/null handling: unchecked returns, nil pointer dereferences, Option unwraps
- Concurrency: race conditions, missing locks, goroutine leaks, unsynchronized shared state
- Resource leaks: unclosed files, connections, HTTP bodies
- Off-by-one errors in loops, slices, pagination
- Missing error paths: what happens when this fails?
- Incomplete migrations: renamed function but callers not updated, partial refactors
For each finding: file, line, bug description, severity (BUG/RISK/NITPICK), and fix.
Prompt:
Review this diff against project coding conventions. Check for:
- Naming: follows language conventions? Consistent with existing codebase?
- File organization: code in the right file? Functions in logical order?
- Comments: unnecessary comments explaining what (not why)? Missing comments for non-obvious behavior?
- Testing: are new code paths tested? Are tests meaningful (not just coverage padding)?
- Commit hygiene: is this one logical change or multiple changes mixed together?
- API design: follows project API guidelines? Consistent with existing endpoints?
Reference the project conventions loaded in Step 2. For each finding: file, line, convention violated, suggestion.
Merge all agent results. Categorize and sort:
## Code Review: <target>
### Must Fix
- **[BUG]** `pkg/store/postgres.go:89` — Connection not closed on error path. Add `defer conn.Close()`.
- **[ARCH]** `internal/api/handler.go:15` — Handler directly imports Postgres package. Accept a `Repository` interface.
### Should Fix
- **[STYLE]** `internal/service/order.go:42` — Function `DoThing` doesn't follow naming conventions. Use `ProcessOrder`.
- **[EDGE-CASE]** `pkg/auth/token.go:67` — No check for expired token before database lookup. Add expiry check first.
### Consider
- **[NITPICK]** `cmd/server/main.go:23` — Unused import `log`. Remove.
- **[TEST]** `internal/service/order_test.go` — New `CancelOrder` path has no test coverage.
### Clean
- Error handling follows conventions
- Interface boundaries are well-defined
security-review, skip security-adjacent findings (secrets, auth, injection) and focus on
design, correctness, and conventions.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/build-agentBuild TypeScript AI agents with eval framework, provider abstraction, and production guardrails. Uses Vercel AI SDK for model-agnostic tool-use loops, Zod for structured outputs, Vitest for evals, and OpenTelemetry for observability. Covers prompt caching, extended thinking, RAG pipelines, structured output enforcement, tool annotations, seed tool calls, toolcall regression evals, and duplicate call detection. Use when the user wants to build an agent, create an AI assistant, implement tool-use, or scaffold an agentic system — even if they just say "build a bot", "add AI to this", or "make it agentic."
/commit-messageGenerate or improve git commit messages from staged changes using Claude on Vertex AI. Conventional Commits format, validates line lengths, retries on failure. Use when the user wants to write, generate, or improve a commit message, asks for help with git commits, or invokes /commit-message — even if they just say "commit this" or "what should the commit say."/dependency-auditAudit project dependencies for known vulnerabilities, license issues, and supply chain risks. Supports Go, Rust, and Python. Use when the user changes dependencies, asks about vulnerability scanning, mentions CVEs in deps, or wants a security check — even if they just say "are my deps safe?" or "check for vulnerabilities."
/investigate-cveInvestigate a CVE to find upstream fix commits, affected versions, severity, and backport status. Queries OSV.dev, NVD, and Red Hat Security APIs, then checks upstream git history. Use when the user mentions a CVE ID, asks about a vulnerability fix, or wants to know if a patch has been backported — even if they just say "is this CVE fixed?"
/new-worktreeCreate a git worktree with conventional-commit directory structure and standardized branch naming. Always creates relative to the repo root, not the current directory. Use when the user says "new worktree", "create worktree", "start working on", "new branch", or invokes /new-worktree — even if they just say "set up a branch for this work" or "I need to work on a fix."
/openshift-troubleshootDiagnose and troubleshoot OpenShift cluster and workload issues. Pod failures, networking, storage, operators, SCCs, and node problems. Use when the user has an OpenShift issue, mentions oc commands, pod crashes, CrashLoopBackOff, ImagePullBackOff, routes not working, or cluster problems — even if they just say "my pod won't start" or "the app is broken."
Generated from the plugin's indexed repository (rsturla/skills) — no native marketplace selected
npx claudepluginhub p/rsturla-rsturla-skills