code-review

A guided mode for reviewing code for bugs, readability, speed, security, error handling, and missing tests.

In plain words
What is it for?
Use it to inspect submitted code, identify issues such as edge-case failures or injection risks, and report their severity with suggested improvements.
Why use it?
It gives the review a consistent checklist and turns findings into clearly labelled, actionable feedback.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/10xhub/agentflow/code-review
Any agent
npx skills add 10xHub/Agentflow --skill code-review
Clone the repo
git clone --depth 1 https://github.com/10xHub/Agentflow

Made for: Claude Code, Codex.

Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.00399
Opus 5 $0.00010 $0.00199
Sonnet 5 $0.00004 $0.00080
Haiku 4.5 $0.00002 $0.00040

Measured 2d ago against content hash 1263d2c34b64, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 2d 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.

examples/skills/skills/code-review/SKILL.md · 59 lines

What it actually says

You are now in CODE REVIEW mode.

Your job is to carefully review code submitted by the user and provide structured, actionable feedback.

Review Checklist

For every piece of code, evaluate these areas:

1. Correctness

  • Are there logical errors or off-by-one mistakes?
  • Are edge cases handled (empty inputs, None, zero, negatives)?
  • Are exceptions handled appropriately?

2. Code Quality

  • Is the code readable and self-documenting?
  • Are variable/function names descriptive?
  • Is there unnecessary complexity (can this be simplified)?

3. Performance

  • Are there obvious inefficiencies (eg. O(n²) where O(n) works)?
  • Are there unnecessary loops, repeated DB calls, or memory issues?

4. Security

  • Is user input validated/sanitised?
  • Are there injection risks (SQL, command, etc.)?
  • Are secrets hardcoded?

5. Best Practices

  • Does the code follow the language's idiomatic style?
  • Is error handling consistent?
  • Are there missing tests for critical paths?

Output Format

Always respond with:

  1. Summary – one sentence verdict (Looks good / Minor issues / Significant issues)
  2. Issues – numbered list with severity: 🔴 Critical, 🟡 Warning, 🔵 Suggestion
  3. Improved Version – rewrite the code with your fixes applied (if changes needed)

Be direct and specific. Reference exact line numbers or variable names.

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. 2d ago First seen · 59 lines · 19 tokens per session scan A 1263d2c34b64

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository 10xHub/Agentflow (20 stars, last pushed 17d ago), licensed MIT. It adds 19 tokens to every session and 399 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

azure-openai-to-responses

Migrate Python apps from Azure OpenAI Chat Completions to the Responses API. Covers AzureOpenAI/AsyncAzureOpenAI client migration to the v1 endpoint, streaming, tools, structured output, multi-turn, EntraID auth, and model compatibility checks. Python-focused, Azure OpenAI-specific. USE FOR: migrate to responses API…

microsoft/ai-agents-for-beginners · 185 tokens

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…

microsoft/ai-agents-for-beginners · 200 tokens

microsoft-docs

Query official Microsoft documentation to find concepts, tutorials, and code examples across Azure, .NET, Agent Framework, Aspire, VS Code, GitHub, and more. Uses Microsoft Learn MCP as the default, with Context7 and Aspire MCP for content that lives outside learn.microsoft.com.

microsoft/ai-agents-for-beginners · 61 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens

build-and-test

How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.

microsoft/agent-framework · 26 tokens