code-review
Review a diff, branch, PR, commit, or work-in-progress change along two separate axes: Standards (repo conventions, maintainability, safety) and Spec (does…
Skill by ivanrvpereira
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/ivanrvpereira-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
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 25, 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
- Review a diff, branch, PR, commit, or work-in-progress change along two separate axes: Standards (repo conventions, maintainability, safety) and Spec (does the change implement the originating issue/PRD/request?). Runs focused sub-agents in parallel and reports prioritized, actionable findings side by side. Use when the user wants to review a branch, PR, WIP changes, or asks to "review since X".
- License
- Apache-2.0
- Instructions
- 183 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
Review changes through two independent axes: - **Standards** — does the changed code follow this repo's documented standards and avoid introduced maintainability, reliability, security, or operational risks? - **Spec** — does the changed code faithfully implement the originating issue / PRD / request, without omissions or scope creep? The axes run as **parallel sub-agents** so conventions and product intent do not pollute each other. Aggregate them separately; do not merge them into one ranked list. ## Review discipline Apply these rules to every finding on both axes: - **Only changed behavior.** Flag issues introduced or exposed by this change, not pre-existing problems. - **Actionable and provable.** Only report issues the author would likely fix after seeing the evidence. Avoid speculative, preference-only, or purely stylistic comments unless a documented standard requires them. - **Diff-overlapping location.** Each finding must point to a changed line/hunk, or the smallest changed function/block when exact line numbers are unavailable. - **Evidence first.** Cite the changed code, the violated standard, and/or the spec line. If the evidence is weak, omit the finding. - **Short comments.** Keep each finding concise: title, location, why it matters, and the minimal fix direction. - **No tool-enforced noise.** Skip formatting/lint/type issues that project tooling already enforces unless the current diff clearly bypasses that tooling. Use these priorities inside each axis: - **[P0]** Release blocker: data loss, active exploit, total outage, irreversible destructive operation, or failed core requirement. - **[P1]** High impact: security/privacy issue, broken major workflow, incorrect persistence/API contract, migration risk, or missing required behavior. - **[P2]** Normal bug or maintainability problem: likely user-facing breakage, confusing design, fragile error handling, or significant code smell. - **[P3]** Minor: low-risk edge case, small cleanup, or optional improvement worth tracking. ## Mandatory risk checks Run these checks even when the repo has no review guidelines: ### Untrusted input and boundary checks Treat data from users, HTTP, files, env vars, databases, webhooks, subprocesses, LLM/tool output, CLI args, and third-party APIs as untrusted. Flag changed code that feeds untrusted data into: - authz/authn decisions, permission checks, tenant/account boundaries; - SQL/NoSQL queries, shell commands, filesystem paths, templates/HTML/Markdown, redirects, or deserializers; - money, billing, quotas, rate limits, feature flags, migrations, or destructive operations; - logging/telemetry where secrets or personal data could leak. ### Fail-fast error handling Scrutinize changed code that silently falls back, catches broadly, drops errors, retries indefinitely, or proceeds after partial failure. Prefer surfacing the failure for: - writes, migrations, billing, notifications, queue/cron jobs, and cache invalidation; - security, permissions, configuration, and dependency initialization; - API boundary changes where callers need deterministic failure semantics. ### Human callouts, not automatic blockers List these separately as **Human callouts** unless you found a concrete bug: - migrations/schema/data backfills; - dependency upgrades, lockfile churn, build tooling, or runtime version changes; - auth/permission, public API, SDK, CLI, or wire-format changes; - destructive operations, filesystem/network access, background jobs, cron, billing, or external integrations; - performance-sensitive paths, caching semantics, observability, or rollback concerns. ## Process ### 1. Pin the review target Prefer a fixed point the user supplies: commit SHA, branch name, tag, `main`, `HEAD~5`, etc. Use a three-dot range for branch-style reviews: ```bash git diff <fixed-point>...HEAD git log <fixed-point>..HEAD --oneline ``` Confirm the ref resolves (`git rev-parse <fixed-point>`) and the diff is non-empty before spawning sub-agents. If the user explicitly asks for another target, use the matching command instead: - **Uncommitted/WIP:** `git diff --cached` and `git diff`. - **Single commit:** `git show --format=fuller --stat --patch <commit>`. - **PR:** fetch/view the PR with the repo's GitHub/GitLab workflow, then review its merge-base diff. - **Folder snapshot:** only use when the user explicitly asks for a folder review; state that findings are not limited to a git diff. If the user did not identify a target and intent is ambiguous, ask one clarifying question. ### 2. Identify the spec source Look for the originating request, in this order: 1. Issue/PR references in branch names and commit messages (`#123`, `Closes #45`, GitLab `!67`, Linear IDs, etc.). Use the repo's documented issue-tracker workflow; for GitHub, prefer `gh`. 2. A path, issue, PR, ticket, or prompt the user passed as an argument. 3. A PRD/spec file under `docs/`, `specs/`, `.scratch/`, or project-specific planning directories matching the branch or feature. 4. If nothing is found, ask the user where the spec is. If they say there is no spec, skip the Spec sub-agent and report `No spec available`. ### 3. Identify standards sources Collect repo guidance that documents how code should be written or reviewed, for example: - `AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, `CODING_STANDARDS.md`, `REVIEW_GUIDELINES.md`; - framework/package-specific docs in the touched directories; - test, lint, typing, migration, API, security, or release guidance. When the review includes test changes, read [tdd](../tdd/SKILL.md) and its linked testing and mocking references. Apply the test-quality rules as review criteria, not as an instruction to start an implementation loop. Identify the agreed seams in the spec or project guidance. If no seam agreement is recorded, raise a Human callout rather than assume the existing tests were unauthorized. On top of repo documentation, the Standards axis always carries the **smell baseline** below. The repo overrides the baseline: if a documented local convention endorses something the baseline would flag, suppress the smell. Baseline smells are always judgement calls, not hard violations. ### Smell baseline - **Mysterious Name** — a function, variable, or type whose name does not reveal what it does or holds. → rename it; if no honest name comes, the design is murky. - **Duplicated Code** — the same logic shape appears in more than one hunk or file in the change. → extract the shared shape, call it from both. - **Feature Envy** — a method reaches into another object's data more than its own. → move the method onto the data it envies. - **Data Clumps** — the same fields or params keep travelling together. → bundle them into one type and pass that. - **Primitive Obsession** — a primitive/string stands in for a domain concept. → give the concept its own small type. - **Repeated Switches** — the same `switch`/`if` cascade on the same type recurs. → replace with polymorphism or one shared map. - **Shotgun Surgery** — one logical change forces scattered edits across many files. → gather what changes together into one module. - **Divergent Change** — one module is edited for unrelated reasons. → split so each module changes for one reason. - **Speculative Generality** — abstractions, parameters, hooks, or options added for needs the spec does not have. → delete or inline until a real need appears. - **Message Chains** — long `a.b().c().d()` navigation the caller should not depend on. → hide the walk behind one method on the first object. - **Middle Man** — a class/function mostly delegates onward. → cut it and call the real target directly. - **Refused Bequest** — a subclass/implementer ignores or overrides most inherited behavior. → drop inheritance and use composition. - **Reinvented Stdlib** — hand-rolled logic the standard library already ships. → name the exact stdlib function and replace. - **Needless Dependency** — a new dependency or custom code doing what the platform/runtime already provides. → name the native feature; prefer zero deps. ### 4. Spawn both sub-agents in parallel Launch both at once, each with a fresh context and read-only intent. In Claude Code, send one message with two `Agent` calls (`general-purpose` unless a repo-specific reviewer agent is clearly better). In Pi, run two parallel `reviewer` subagents.
From ivanrvpereira/.agents, Apache-2.0.
More from ivanrvpereira/.agents
- 0.642score
supervisor
ivanrvpereira
Act as the user's persistent conductor across independent assignments and features.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
i-have-adhd
ivanrvpereira
Shape output for a reader with ADHD.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
implementation-orchestrator
ivanrvpereira
Implements one approved feature or plan, including its multiple tasks, through delegated implementation, separate review and simplification, independent…
SkillAFreshness: A★ 18Claude Code +9 - 0.639score
pi-model-config
ivanrvpereira
Know how Pi model selection is configured and changed: default model, thinking level, one-off model switches, Ctrl+P scoped model cycling, and prompt-editor…
SkillAFreshness: A★ 18Claude Code +9 - 0.639score
tdd
ivanrvpereira
Behavior-focused testing and TDD.
SkillAFreshness: A★ 18Claude Code +9 - 0.638score
diagram-design
ivanrvpereira
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart…
SkillAFreshness: A★ 18Claude Code +9 - 0.607score
simple-english
ivanrvpereira
Write or rewrite technical prose (docs, READMEs, runbooks, procedures, error messages, release notes) with ASD-STE100 Simplified Technical English so it is…
SkillBFreshness: B★ 18Claude Code +9 - 0.606score
implement
ivanrvpereira
Implement a piece of work based on a spec or set of tickets.
SkillAFreshness: A★ 18Claude Code +9 - 0.602score
adr-writing
ivanrvpereira
Write and maintain high-signal, low-noise ADRs.
SkillBFreshness: B★ 18Claude Code +9 - 0.557score
liteparse
LlamaIndex
Use this skill whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out…
SkillCFreshness: C★ 18Claude Code +9 - 0.557score
marp
ivanrvpereira
Create slide presentations from Markdown using Marp.
SkillCFreshness: C★ 18Claude Code +9 - 0.554score
sentry
ivanrvpereira
Fetch and analyze Sentry issues, events, transactions, and logs.
SkillCFreshness: C★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 7, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/ivanrvpereira/.agents
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ivanrvpereira
- 0.642score
i-have-adhd
ivanrvpereira
Shape output for a reader with ADHD.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
supervisor
ivanrvpereira
Act as the user's persistent conductor across independent assignments and features.
SkillAFreshness: A★ 18Claude Code +9 - 0.642score
implementation-orchestrator
ivanrvpereira
Implements one approved feature or plan, including its multiple tasks, through delegated implementation, separate review and simplification, independent…
SkillAFreshness: A★ 18Claude Code +9 - 0.639score
tdd
ivanrvpereira
Behavior-focused testing and TDD.
SkillAFreshness: A★ 18Claude Code +9 - 0.639score
pi-model-config
ivanrvpereira
Know how Pi model selection is configured and changed: default model, thinking level, one-off model switches, Ctrl+P scoped model cycling, and prompt-editor…
SkillAFreshness: A★ 18Claude Code +9 - 0.638score
diagram-design
ivanrvpereira
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart…
SkillAFreshness: A★ 18Claude Code +9
Cite this page
code-review skill. Agent Mart. https://agentmart.dev/skills/ivanrvpereira-code-review (last updated 2026-10-24)