code-quality-review

code-quality-review is a skill for Claude Code, Codex from DauQuangThanh/hanoi-rainbow. It costs 127 tokens per session (936 once invoked), scanned A, original, MIT.

A code review guide that checks how readable, maintainable, and consistently designed a codebase is. It looks for duplicated code, overly complex sections, naming problems, design issues, and technical debt.

In plain words
What is it for?
Use it to review a change or codebase, assess complexity and maintainability, check design principles and coding conventions, and identify refactoring work.
Why use it?
It helps find code that may be difficult to change, understand, or maintain before those problems grow. Each finding includes a severity level and suggested improvement.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a change or codebase, assess complexity and maintainability, check design principles and coding conventions, and identify refactoring work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dauquangthanh/hanoi-rainbow/code-quality-review
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 DauQuangThanh/hanoi-rainbow --skill code-quality-review
Clone the repo
git clone --depth 1 https://github.com/DauQuangThanh/hanoi-rainbow

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-quality-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/dauquangthanh/hanoi-rainbow/code-quality-review/github.svg)](https://agentmods.dev/skills/dauquangthanh/hanoi-rainbow/code-quality-review)
Your own site
<a href="https://agentmods.dev/skills/dauquangthanh/hanoi-rainbow/code-quality-review"><img src="https://agentmods.dev/badge/skills/dauquangthanh/hanoi-rainbow/code-quality-review/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-quality-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/dauquangthanh/hanoi-rainbow/code-quality-review"><img src="https://agentmods.dev/badge/skills/dauquangthanh/hanoi-rainbow/code-quality-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 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.00127 $0.00936
Opus 5 $0.00063 $0.00468
Sonnet 5 $0.00025 $0.00187
Haiku 4.5 $0.00013 $0.00094

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

Security

Grade A, and why

code-quality-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 10d 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.

skills/code-quality-review/SKILL.md · 105 lines

How it starts

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

Code Quality Review

Overview

Conducts systematic code quality analysis across multiple dimensions: maintainability, readability, complexity, design patterns, naming conventions, code duplication, and adherence to best practices. Produces actionable feedback with severity ratings and specific improvement recommendations.

Core Capabilities

  1. Code Smells Detection - Identifies bloaters, object-orientation abusers, change preventers, dispensables, and couplers
  2. Complexity Analysis - Measures cyclomatic and cognitive complexity with risk assessment
  3. Maintainability Assessment - Evaluates code maintainability index and technical debt
  4. Design Pattern Evaluation - Reviews architectural patterns and SOLID principles
  5. Best Practices Validation - Checks adherence to language-specific standards and conventions

Review Workflow

Step 1: Scope Assessment

Determine review scope based on change size:

  • Small (<100 lines): Quick correctness check, 15-30 minutes
  • Medium (100-500 lines): Full quality analysis, 1-2 hours
  • Large (>500 lines): Architectural review, break into smaller reviews if possible, 2-4 hours

For scope-specific guidance, see review-scope-guidelines.md

Step 2: Initial Assessment

Gather Context:

  • Identify programming language and framework
  • Understand project type (web app, API, library, CLI, etc.)
  • Note existing coding standards or style guides
  • Check for linter configuration files (.eslintrc, .pylintrc, checkstyle.xml, etc.)

Read the Code:

  • Start with entry points (main files, index files)
  • Review module/package organization
  • Check dependency management
  • Examine test files if available

Step 3: Quality Analysis

Analyze code across key dimensions:

  • Code Smells: Long methods, large classes, duplicate code, dead code, etc.
  • Complexity: Cyclomatic complexity (target <15), cognitive complexity, nesting depth
  • Maintainability: Clear naming, proper abstraction, separation of concerns
  • Design Patterns: Appropriate pattern usage, SOLID principles adherence
  • Best Practices: Language idioms, error handling, resource management

Read the full file on GitHub · 105 lines

Files

What ships with it

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

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. 10d ago First seen · 105 lines · 127 tokens per session scan A bf810364e533

Subscribe to this mod's changes

code-quality-review is a skill published in the GitHub repository DauQuangThanh/hanoi-rainbow (16 stars, last pushed 7mo ago), licensed MIT. It adds 127 tokens to every session and 936 once invoked, about $0.0006 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-hardening

Use this skill for rigorous, structured code review with a self-repair loop. Applies change-type-aware strategies (feat, fix, hotfix, refactor, migrate, docs). Findings are severity-classified, then auto-fixed where possible. Triggers on PR reviews, code review requests, or when reviewing any change set.

lindoelio/spec-driven-steroids · 70 tokens

quality-grading

Use this skill to grade code, specifications, or design documents across four quality dimensions using a 1-5 scoring scale. In grade-and-fix mode, the skill auto-improves artifacts scoring below 5 without prompting. Invoke when you want consistent quality assessment on design, implementation, or specification with…

lindoelio/spec-driven-steroids · 73 tokens

agent-work-auditor

Unified auditing skill for AI agent workflows. Provides change-type-aware, artifact-adaptive auditing with self-fix capabilities. Works standalone or with spec-driven extensions. Three-layer architecture: core (always active), modules (per-type), extensions (auto-detected).

lindoelio/spec-driven-steroids · 57 tokens

spec-driven-development

Spec-first workflow where an executable, testable specification is written before code and becomes the single source of truth that tests verify against, flowing spec → acceptance criteria → tasks → implementation.

andreibesleaga/GABBE · 40 tokens

bmad-review-edge-case-hunter

Walk every branching path and boundary condition in content, report only unhandled edge cases. Orthogonal to adversarial review - method-driven not attitude-driven. Use when you need exhaustive edge-case analysis of code, specs, or diffs.

amalik/convoke-agents · 55 tokens

bmad-review-adversarial-general

Perform a Cynical Review and produce a findings report. Use when the user requests a critical review of something.

amalik/convoke-agents · 29 tokens