mtk-agent-toolkit: Skill for Claude Code

.claude/skills/code-review-and-quality/SKILL.md

code-review-and-quality is a skill for Claude Code from moberghr/mtk-agent-toolkit. It costs 35 tokens per session (2,953 once invoked), scanned A, original, MIT.

A code-review checklist for checking a completed change before it is merged. It examines correctness, security, design, and test quality against project standards.

In plain words
What is it for?
Use it for pull-request reviews, merge-safety checks, and final reviews after implementation and testing.
Why use it?
It helps catch serious problems before code reaches the shared project, including risks in authentication, data handling, infrastructure, and bug fixes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Codex.

This is moberghr/mtk-agent-toolkit's own configuration. It tells Claude Code how to work on mtk-agent-toolkit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mtk-agent-toolkit configures →

Part of the mtk plugin — 45 skills, 6 agents, 7 hooks, 1 MCP server shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/moberghr/mtk-agent-toolkit/main/.claude/skills/code-review-and-quality/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moberghr/mtk-agent-toolkit

Made for: Claude Code.

Or install mtk, the plugin that ships this one along with the rest of its 45 skills, 6 agents, 7 hooks, 1 MCP server.

Wrote 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.

agentmods badge for code-review-and-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/moberghr/mtk-agent-toolkit/code-review-and-quality.svg)](https://agentmods.dev/skills/moberghr/mtk-agent-toolkit/code-review-and-quality)
Your own site
<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>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash ad623c252c84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.claude/skills/code-review-and-quality/SKILL.md · 207 lines

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-reviewer agent is pinned to opus (highest stakes); architecture-reviewer, test-reviewer, and silent-failure-hunter to sonnet. 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:

  1. Run bash hooks/ci-status.sh to get check run results
  2. If CI failed, note which checks failed — the review should focus on those areas
  3. If CI passed, note any warnings from the build output (.mtk/analyzer-output.json)
  4. If hooks/ci-status.sh is not available or gh is not installed, proceed without CI context

Review Steps

  1. 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.map glob → root file), and --check warns 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.md for stack-specific reference paths
    • The coding guidelines and other reference files listed in the tech stack's ## Reference Files section
    • .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's failure_mode field (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
  2. Read the behavioral diff if provided.
  3. Review across these axes:
    • correctness — including stub detection per .claude/references/stub-detection.md (empty bodies, NotImplementedException, suspect return 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
  4. Route specialized review when needed:
    • compliance-reviewer for security/compliance-sensitive work
    • test-reviewer for coverage and verification quality
    • architecture-reviewer for boundary and slice integrity concerns
    • silent-failure-hunter when the diff touches error handling — dispatch when git diff matches 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 with compliance-reviewer; merge findings, dedupe by (file, line, rule). The hunter emits category: "error-handling" so dedupe is straightforward.
    • context-miner when the rigor level is HIGH or MAX (per implement Rigor Score). This is the organizational-memory lane: it mines git log / git blame of 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, multiple Agent calls). It emits source: "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, or NO_RESPONSE. See Lane Accounting in .claude/references/review-finding-schema.md.

Read the full file on GitHub · 207 lines

Changes

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.

  1. 8d ago First seen · 207 lines · 35 tokens per session scan A ad623c252c84

Subscribe to this mod's changes

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.