Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/sundegan/agent-skills/code-reviewnpx skills add sundegan/agent-skills --skill code-reviewgit clone --depth 1 https://github.com/sundegan/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sundegan/agent-skills/code-review)<a href="https://agentmods.dev/skills/sundegan/agent-skills/code-review"><img src="https://agentmods.dev/badge/skills/sundegan/agent-skills/code-review.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00089 | $0.01460 |
| Opus 5 | $0.00044 | $0.00730 |
| Sonnet 5 | $0.00018 | $0.00292 |
| Haiku 4.5 | $0.00009 | $0.00146 |
Grade A, and why
code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Review
Goal
Review the code-file changes related to the current task, identify meaningful issues, and clean up dead or unused code when it is safe to do so. Focus on problems that could affect correctness, existing behavior, performance, consistency, readability, or long-term maintenance. Ignore changes that do not affect code behavior, such as documentation-only edits, dependency directories, vendored code, generated artifacts, and formatting output unless they directly affect the current code change. Ensure the change's impact is understood, intentional, and controlled. Avoid spending user attention on low-impact speculation.
Workflow
- Determine the review scope:
- Use the current conversation, user request, and files Agent changed as the primary boundary.
- Run
git status --shortand inspect staged, unstaged, and untracked task-related files. - Focus review on source code, tests, build scripts, runtime configuration, schema or migration files, and other files that can change runtime, build, deployment, or developer workflow behavior.
- Exclude documentation-only changes, examples that do not execute, formatting-only generated output, dependency caches, vendored dependency trees, and external code directories such as
node_modules/,vendor/,third_party/,.venv/,dist/,build/, and generated lockstep artifacts unless the user explicitly asks to review them or they directly affect the code change. - If unrelated user changes exist, leave them untouched and exclude them from review unless they affect the current task.
- Understand the intended behavior:
- Re-read the user's request and any implementation notes.
- Inspect nearby existing code to learn local patterns, naming, error handling, tests, and architecture.
- Prefer repository conventions over generic style preferences.
- Review the diff and relevant surrounding code:
- Use
git diff,git diff --cached, and targeted file reads. - Filter the diff to review code-relevant files first; mention skipped non-code paths only when useful for transparency.
- Trace call sites, imports, exports, tests, configuration, and public interfaces touched by the task.
- For frontend or UI changes, check state, rendering conditions, layout assumptions, accessibility basics, and interaction flow.
- Use
- Assess impact on existing functionality:
- Identify existing workflows, APIs, commands, data flows, schemas, persisted data, configs, and integrations touched by the change.
- Check whether behavior changes are intentional, documented by the user's request, and limited to the expected scope.
- Look for compatibility issues, changed defaults, altered error handling, changed ordering, changed timing, or changed side effects.
- Verify tests or call sites cover the important existing behavior that could regress.
- If the impact is broader than the task requires, narrow the implementation or report the risk clearly.
- Prioritize findings:
- Correctness bugs, regressions, data loss, security exposure, broken API contracts, and failing edge cases.
- Serious performance problems such as new repeated expensive work, accidental N+1 behavior, unbounded loops, avoidable re-renders in hot paths, or large synchronous work on critical paths.
- Uncontrolled or unnecessary impact on existing functionality.
- Code style inconsistency that makes the change harder to maintain or contradicts clear local conventions.
- Readability and maintainability problems such as unclear control flow, duplicated logic, leaky abstractions, or overly broad changes.
- Dead or unused code, including unused imports, variables, functions, components, files, branches, feature flags, stale comments, and unreachable logic.
- Ignore low-value issues:
- Ignore changes that are unrelated to code behavior, including docs-only updates and dependency/vendor directories, unless they introduce a release, build, packaging, or runtime risk.
- Do not raise speculative null-pointer or undefined-value concerns when the surrounding code or data flow makes them unrealistic.
- Do not nitpick formatting that the repository's formatter will handle.
- Do not ask for abstractions, renames, or micro-optimizations unless they materially improve maintainability or correctness.
- Do not report issues unrelated to the current task unless they are severe and directly block the change.
- Clean up safe dead code:
- Remove unused imports, variables, functions, branches, stale comments, and unused files introduced by the current task.
- Remove pre-existing dead code only when it is clearly made obsolete by the current task or is directly adjacent and safe to clean.
- If removal could change public API, migrations, generated files, or external behavior, report it instead of deleting it unless the user explicitly asks.
- Apply fixes for clear issues within scope:
- Fix bugs and serious maintainability problems discovered in the current task's code.
- Reduce unintended impact on existing behavior when the implementation is broader than necessary.
- Keep edits narrow and aligned with existing patterns.
- Do not rewrite unrelated code while reviewing.
- Verify:
- Identify relevant test commands from package scripts, Makefiles, CI configs, project docs, or nearby test conventions.
- If the repository has unit tests relevant to the changed area, run them after review and cleanup.
- If the repository has performance tests or benchmarks relevant to the changed area, run them when the change could affect performance or hot paths.
- Run the smallest relevant tests, type checks, linters, builds, or targeted commands available for the changed area.
- If no automated check exists, perform a focused manual verification by re-reading the final diff.
- Re-run
git diffafter cleanup to ensure the final patch contains only intentional changes.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 87 lines · 89 tokens per session scan A bd24ba976023
code-review is a skill published in the GitHub repository sundegan/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 1,460 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…