Code Review Sensei

Code Review Sensei is a skill for Claude Code, Codex from demo112/yunqu-ai-skills. It costs 26 tokens per session (1,081 once invoked), scanned A, original, MIT.

A code-review guide that checks code for bugs, security risks, slow operations, design problems, and confusing parts.

In plain words
What is it for?
Use it to review code changes for logic errors, unsafe input handling, exposed secrets, inefficient database or memory use, weak structure, and readability problems.
Why use it?
It helps find issues before they reach users and turns them into specific suggestions for fixing the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Use it to review code changes for logic errors, unsafe input handling, exposed secrets, inefficient database or memory use, weak structure, and readability problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/demo112/yunqu-ai-skills/02-code-review-sensei
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.

Any agent
npx skills add demo112/yunqu-ai-skills --skill 02-code-review-sensei
Clone the repo
git clone --depth 1 https://github.com/demo112/yunqu-ai-skills

Made for: Claude Code, Codex.

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 Sensei

README.md
[![agentmods](https://agentmods.dev/badge/skills/demo112/yunqu-ai-skills/02-code-review-sensei/github.svg)](https://agentmods.dev/skills/demo112/yunqu-ai-skills/02-code-review-sensei)
Your own site
<a href="https://agentmods.dev/skills/demo112/yunqu-ai-skills/02-code-review-sensei"><img src="https://agentmods.dev/badge/skills/demo112/yunqu-ai-skills/02-code-review-sensei/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Code Review Sensei

Your own site · 80×15
<a href="https://agentmods.dev/skills/demo112/yunqu-ai-skills/02-code-review-sensei"><img src="https://agentmods.dev/badge/skills/demo112/yunqu-ai-skills/02-code-review-sensei.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00026 $0.01081
Opus 5 $0.00013 $0.00541
Sonnet 5 $0.00005 $0.00216
Haiku 4.5 $0.00003 $0.00108

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

Security

Grade A, and why

Code Review Sensei 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 12d 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.

02-code-review-sensei/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Review Sensei

You are a senior code reviewer with 15+ years of experience across multiple languages and domains. You review code like a mentor — firm on quality, clear in feedback, and always educational.

Review Framework

For every code review, evaluate across 5 dimensions:

1. 🐛 Correctness

  • Logic errors
  • Off-by-one errors
  • Null/undefined handling
  • Race conditions
  • State management bugs
  • Error handling completeness

2. 🔒 Security

  • Input validation and sanitization
  • SQL injection / XSS / CSRF risks
  • Authentication/authorization gaps
  • Secret exposure (hardcoded keys, tokens in logs)
  • Dependency vulnerabilities
  • Data exposure (over-fetching, missing field-level auth)

3. ⚡ Performance

  • Algorithmic complexity (O(n²) where O(n) suffices?)
  • Unnecessary allocations/copies
  • Missing indexes or N+1 queries
  • Blocking I/O in async contexts
  • Memory leaks (unclosed connections, event listeners)
  • Caching opportunities

4. 🏗️ Design

  • Single Responsibility Principle
  • Coupling between components
  • API contract clarity
  • Error propagation strategy
  • Testability
  • Extensibility without modification

5. 📖 Readability

  • Naming clarity
  • Function/method length
  • Nesting depth
  • Comment quality (why, not what)
  • Consistent style

Review Output Format

## Code Review: [File/Component Name]

### Summary
[1-2 sentence overall assessment]

### Critical Issues 🔴
[Issues that MUST be fixed before merge]

**Issue 1: [Title]**
- **Dimension**: Security / Correctness / Performance
- **Location**: Line X-Y
- **Problem**: [What's wrong]
- **Impact**: [What could go wrong]
- **Fix**: 
```language
// Fixed code here

Warnings 🟡

[Issues that should be addressed soon]

Issue 2: [Title]

  • Dimension: Performance / Design
  • Location: Line X-Y
  • Problem: [What's suboptimal]
  • Suggestion: [How to improve]

Suggestions 🟢

[Nice-to-have improvements]

Positive Notes ✅

[What's done well — always include at least one]

Metrics

Dimension Score (1-5) Notes
Correctness
Security
Performance
Design
Readability

Read the full file on GitHub · 151 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. 12d ago First seen · 151 lines · 26 tokens per session scan A a0528b471643

Subscribe to this mod's changes

Code Review Sensei is a skill published in the GitHub repository demo112/yunqu-ai-skills (3 stars, last pushed 4mo ago), licensed MIT. It adds 26 tokens to every session and 1,081 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-31.

Related

Other skills, from other repositories

code-review

Performs thorough code reviews with focus on best practices, security, performance, and maintainability. Use this skill when reviewing pull requests, auditing code quality, or getting feedback on implementations.

femto/minion · 40 tokens

code-review-checklist

Guide an AI agent through a structured code review — correctness, security, performance, readability, and test coverage — producing a summary with actionable, prioritized feedback. Triggers on pull-request review, diff review, or "review this code" requests.

organvm-iv-taxis/a-i--skills · 54 tokens

apple-patterns-check

Validate iOS code against Apple's best practices. Run during /ship, before commits, or when reviewing code for Apple-specific compliance. Triggers on "check patterns", "apple check", "pre-commit check", or "validate swift code".

markdavidgan/apple-dev-skills · 54 tokens

architecture-fit-check

Audit a design or subsystem for primitive/problem fit — catch the wrong-primitive trap where a powerful or opaque Apple framework (CloudKit sharing/CKShare, NSPersistentCloudKitContainer mirroring, NSFileCoordinator, App Intents graphs, widget timelines) is adopted to enforce an elegant invariant instead of fitting…

markdavidgan/apple-dev-skills · 146 tokens

code-review-and-quality

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch.

vanja-emichi/a0_agent_skills · 51 tokens

Code Review

Use this skill when reviewing a PR or a set of changes and you want a consistent, production-grade review pass: security first, then correctness, then performance, then style.

AmariahAK/atlarix-skills · 2 tokens