agentleFS
DauQuangThanhDauQuangThanh/hanoi-rainbow/skills/code-quality-review/SKILL.md

code-quality-review

Skill17 starsChanged 10 months agoMITView on GitHub

Conducts comprehensive code quality reviews including code smells detection, maintainability assessment, complexity analysis, design pattern evaluation, naming conventions, code duplication, technical debt identification, and best practices validation. Produces detailed review reports with specific issues, severity ratings, metrics analysis, and actionable improvement recommendations. Use when reviewing code quality, analyzing code maintainability, detecting code smells, checking coding standards, measuring code complexity, identifying technical debt, or when users mention "code quality review", "code quality check", "maintainability analysis", "code smells", "clean code", "refactoring candidates", or "technical debt assessment".

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-cve-sweep, fastapi-route-change and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

  • berntpoppSkill

    fastapi-route-change

    Use when adding, renaming, or modifying this backend's FastAPI routes, dependencies, middleware, or response behavior.

    Also in 5 projects that use this

  • IgorGanapolskySkill

    ci-failure-triage

    Triage a CI / PR check failure by READING the failure body before forming any hypothesis. Triggered whenever a required check is red, a PR is BLOCKED, a merge won't land, or you're about to call a failure "transient", "flaky", "stale", or "orphaned". Prevents dismissing a real failure (e.g. real CodeQL security alerts) as noise.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    release-readiness

    Complete ODIN release documentation and validation checks before declaring user-visible work complete, preparing a release, or opening the Release-to-main pull request.

    Also in 5 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

  • +2 more from berntpopp

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for linter configuration files (.eslintrc, .pylintrc, checkstyle.xml, etc.)

    line 39
  2. Distinctive:

    Start with entry points (main files, index files)

    line 43
  3. Distinctive:

    Use the checklist to ensure comprehensive reviews:

    line 77
  4. Distinctive:

    Avoid these common review mistakes:

    line 91

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

For detailed analysis criteria and thresholds, see review-workflow.md

For quality metrics and thresholds, see quality-metrics-reference.md

Step 4: Document Findings

Structure the review report with:

  • Executive summary with scores and top priorities
  • Detailed findings with severity, location, description, and recommendations
  • Metrics summary with current vs. target values
  • Prioritized recommendations (P0-P3)
  • Positive observations acknowledging good practices
  • Technical debt summary with effort estimates

For complete report structure and output guidelines, see review-report-format.md

Quality Assurance

Use the checklist to ensure comprehensive reviews:

  • Code organization and structure
  • Naming conventions and clarity
  • Complexity thresholds
  • Error handling patterns
  • Testing and documentation
  • Security considerations
  • Performance implications

For complete checklist, see best-practices-checklist.md

Common Pitfalls

Avoid these common review mistakes:

  • Focusing only on style issues instead of substantive problems
  • Being overly critical without actionable suggestions
  • Ignoring context and business constraints
  • Overwhelming with too many issues at once
  • Using vague terms without explanation
  • Forgetting to acknowledge good practices

For detailed guidance, see common-pitfalls-to-avoid.md

Example Patterns

For reference when identifying critical issues in your review, see examples of common high-severity problems in critical-issues.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.