clean-code-guard

Review code against clean coding, SOLID, DRY, KISS, YAGNI, and LLM failure modes.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill clean-code-guard-apothecaryman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code-guard
Source: https://github.com/ApothecaryMan/pharmaflow-ai/tree/main/.agents/skills/clean-code-guard
Command: npx skills add https://github.com/ApothecaryMan/pharmaflow-ai --skill clean-code-guard-apothecaryman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides code quality reviews that ensure clean, efficient, and AI-safe coding practices.

Core Features & Use Cases

  • Code Quality Checks: Reviews generated code for adherence to Clean Code, SOLID principles, DRY, KISS, and LLM-specific fail modes.
  • Real-Time Code Guidance: Offers real-time code suggestions to maintain high code standards.
  • Automated Refactoring Recommendations: Recommends code refactorings for improvement without changing functionality.
  • Use Case: A developer has implemented an endpoint. The Skill is invoked to check for clean code and LLM-generated code issues before the code is committed.

Quick Start

Use the clean-code-guard skill to review the code changes in your current PR.

Frequently Asked Questions about clean-code-guard

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

FAQPage Schema
How do I review code for LLM-specific failure modes and clean code principles?

To review code for LLM-specific failure modes and clean code principles, use this Skill to check generated code against SOLID, DRY, KISS, YAGNI, and 14 documented LLM failure modes. It provides real-time suggestions and automated refactoring recommendations.

What is the best way to check AI-generated code for clean coding standards before committing?

The best way to check AI-generated code for clean coding standards is to invoke this Skill during your code review stage. It evaluates your code changes against clean coding principles and identifies LLM-specific code quality issues before you commit.

Does this clean code review tool check for SOLID principles and DRY violations?

Yes, this clean code review tool checks for SOLID principles and DRY violations. It reviews code to ensure adherence to clean, efficient, and AI-safe coding practices by analyzing your codebase against these specific software engineering rules.

How do I get automated refactoring recommendations for code quality issues?

To get automated refactoring recommendations for code quality issues, run this Skill to review your code. It recommends code refactorings for improvement without changing functionality, ensuring your code maintains high standards.

Can I use this Skill to review code changes in my current pull request?

Yes, you can use this Skill to review code changes in your current pull request. It is intended for use in code review and refactoring stages of the development lifecycle to perform comprehensive code quality checks.

When do I need to check code against LLM-specific failure modes?

You need to check code against LLM-specific failure modes whenever you use AI for code generation. This Skill performs code quality checks against 14 LLM failure modes documented in its references to ensure your AI-generated code is safe and clean.