clean-code-reviewer

Analyze code against Clean Code principles and return structured feedback with before/after examples.

35|10|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/booklib-ai/skills --skill clean-code-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code-reviewer
Source: https://github.com/booklib-ai/skills/tree/main/skills/clean-code-reviewer
Command: npx skills add https://github.com/booklib-ai/skills --skill clean-code-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Clean Code Reviewer skill helps AI agents perform rigorous, principled code reviews grounded in Robert C. Martin's Clean Code philosophy. It guides reviewers to identify readability, maintainability, and expressiveness issues, and to provide actionable feedback.

Core Features & Use Cases

  • Reviews code against Clean Code principles, producing structured feedback organized by principle with concrete before/after examples.
  • Helps teams enforce consistent coding standards and improve code quality across languages and domains.
  • Use cases include code reviews for pull requests, tutoring new engineers, and auditing legacy code for refactoring opportunities.

Quick Start

Provide a concise, actionable Clean Code review of the given code sample.

Frequently Asked Questions about clean-code-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform a clean code review on my source code?

To perform a clean code review, provide your source code for analysis. The reviewer evaluates naming, function size, boundaries, error handling, and duplication, returning structured feedback aligned with Clean Code principles.

What are the clean code principles for refactoring legacy code?

Clean code principles for refactoring focus on improving readability and maintainability by addressing naming conventions, reducing function size, enforcing boundaries, handling errors properly, and eliminating duplication.

Can I use clean code heuristics across different programming languages?

Yes, clean code heuristics apply across different programming languages. The review evaluates structural principles like naming, duplication, and error handling within the provided code's context, independent of specific syntax.

Does the clean code review provide before and after examples?

Yes, the clean code review provides concrete before and after examples. Feedback is structured around specific heuristic codes like N1, G30, and G28, delivering actionable improvements for each identified issue.

What is the best way to enforce consistent coding standards for pull requests?

The best way to enforce consistent coding standards is reviewing pull requests against Clean Code principles. This identifies readability and maintainability issues, providing structured feedback with actionable before and after examples.