Borrowing it
Nothing to install: this file belongs to moberghr/mtk-agent-toolkit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/moberghr/mtk-agent-toolkit/main/.claude/skills/code-review-and-quality/SKILL.mdgit clone --depth 1 https://github.com/moberghr/mtk-agent-toolkitWrote 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/moberghr/mtk-agent-toolkit/code-review-and-quality)<a href="https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/code-review-and-quality"><img src="https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/code-review-and-quality.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Agent Snooping · line 26 Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
- high Memory Poisoning · line 188 Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
- medium Agent Snooping · line 183 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
- medium Excessive Agency · line 189 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.1 | $0.00035 | $0.02953 |
| Opus 5 | $0.00017 | $0.01477 |
| Sonnet 5 | $0.00007 | $0.00591 |
| Haiku 4.5 | $0.00003 | $0.00295 |
Grade A, and why
code-review-and-quality scanned grade A with 1 finding 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 8d 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.
Reads agent configuration directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
cat .claude/tech-stack 2>/dev/null || echo "(not set)" Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Review And Quality
Model tier: the
compliance-revieweragent is pinned toopus(highest stakes);architecture-reviewer,test-reviewer, andsilent-failure-huntertosonnet. See.claude/references/model-routing.md.
Current Diff Context
echo "--- Branch ---"
git branch --show-current 2>/dev/null || echo "(detached)"
echo "--- Tech Stack ---"
cat .claude/tech-stack 2>/dev/null || echo "(not set)"
echo "--- Diff stat ---"
git diff --stat HEAD 2>/dev/null || git diff --stat --cached 2>/dev/null || echo "(no diff)"
Overview
Review changed code as an adversary, not a collaborator. The review must prioritize real risks over style and decide whether the change improves overall code health.
This skill is read-only except for workflow-artifact recording via scripts/workflow-artifact.sh — a deliberate exception to the S2.20 read-only guidance for review skills.
When To Use
- After implementation and verification
- For PR review or merge-safety checks
- When a change touches audited state, auth, data integrity, or infra
- After bug fixes, including review of the regression test
When NOT To Use
- Before the implementation has a coherent behavioral diff or verification story
Workflow
CI Context (if available)
If reviewing a PR or branch with CI runs, check CI status before starting the numbered steps:
- Run
bash hooks/ci-status.shto get check run results - If CI failed, note which checks failed — the review should focus on those areas
- If CI passed, note any warnings from the build output (
.mtk/analyzer-output.json) - If
hooks/ci-status.shis not available orghis not installed, proceed without CI context
Review Steps
- Load standards:
CLAUDE.md- The active stack via
bash scripts/resolve-tech-stack.sh --check <changed file paths>— polyglot-aware (subproject.claude/tech-stack→ root.claude/tech-stack.mapglob → root file), and--checkwarns when the resolved stack disagrees with the files under review, which would otherwise mean reviewing a subtree against the wrong guidelines. Then.claude/skills/tech-stack-{stack}/SKILL.mdfor stack-specific reference paths - The coding guidelines and other reference files listed in the tech stack's
## Reference Filessection .claude/references/security-checklist.md.claude/references/testing-patterns.md.claude/references/performance-checklist.md.claude/references/ai-failure-modes.md— the catalogue of researched LLM-specific failure modes (F1–F16). When a finding matches one, cite its F-code in the finding'sfailure_modefield (see step 5) so failure-mode patterns aggregate across reviews.- If a domain supplement exists (e.g.
.claude/references/domain-finance.md), load it for domain-specific rationalizations
- Read the behavioral diff if provided.
- Review across these axes:
- correctness — including stub detection per
.claude/references/stub-detection.md(empty bodies,NotImplementedException, suspectreturn null/[]/{}, mock data in production paths, unwired handlers) - readability and simplicity
- architectural fit
- security and compliance
- performance and scaling risk
- test quality and verification strength
- correctness — including stub detection per
- Route specialized review when needed:
compliance-reviewerfor security/compliance-sensitive worktest-reviewerfor coverage and verification qualityarchitecture-reviewerfor boundary and slice integrity concernssilent-failure-hunterwhen the diff touches error handling — dispatch whengit diffmatches any of\b(catch|except|finally)\b,\.catch\(,\?\?,\|\|, or adds// eslint-disable,# noqa,@ts-ignore,@ts-expect-error,Skip =,it\.skip,xit\(. Run in parallel withcompliance-reviewer; merge findings, dedupe by(file, line, rule). The hunter emitscategory: "error-handling"so dedupe is straightforward.context-minerwhen the rigor level is HIGH or MAX (perimplementRigor Score). This is the organizational-memory lane: it minesgit log/git blameof the touched paths, linked GitHub issues and PR-thread discussions (gh pr list/gh issue list/gh pr view), and prior lessons (scripts/learnings.sh query) for context the implementation may have missed — a prior revert of the same code, a related open issue, a decision recorded in a PR thread, a lesson that applies. Read-only. Dispatch it in parallel with the other Stage 2 reviewers (single message, multipleAgentcalls). It emitssource: "context"findings per the review-finding schema; merge and dedupe like the others. At LIGHT/STANDARD rigor it is skipped (the diff is small enough that organizational context rarely changes the verdict). 4b. Account for every dispatched lane before reading any findings. Build the roster first — one row per reviewer you dispatched in step 4, with its outcome:PASS,NEEDS_CHANGES,ABSTAINED, orNO_RESPONSE. See Lane Accounting in.claude/references/review-finding-schema.md.
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.
- 8d ago First seen · 207 lines · 35 tokens per session scan A ad623c252c84
code-review-and-quality is a skill published in the GitHub repository moberghr/mtk-agent-toolkit (7 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 2,953 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…