clean-code

Enforce pragmatic coding standards for AI-assisted software development.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/DaytimeBlues/ADHD-CADDI --skill clean-code-daytimeblues
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/DaytimeBlues/ADHD-CADDI/tree/main/.agent/skills/clean-code
Command: npx skills add https://github.com/DaytimeBlues/ADHD-CADDI --skill clean-code-daytimeblues

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enforces pragmatic coding standards to ensure code is concise, direct, maintainable, and avoids over-engineering or unnecessary complexity.

Core Features & Use Cases

  • Adherence to Principles: Follows SOLID, DRY, KISS, YAGNI, and Boy Scout rules.
  • Clear Naming & Structure: Enforces conventions for variables, functions, and code organization.
  • Use Case: When tasked with refactoring a complex function, this Skill guides the AI to break it down into smaller, single-responsibility functions, rename variables for clarity, and remove redundant comments.

Quick Start

Apply the clean-code skill to refactor the provided function for better readability and maintainability.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I refactor a complex function into smaller, maintainable pieces?

To refactor complex functions for maintainability, break them down into smaller, single-responsibility functions, rename variables for clarity, and remove redundant comments to prioritize self-documenting code over excessive explanations.

What are the best coding standards to enforce for AI-assisted software development?

Pragmatic coding standards for AI-assisted software development enforce principles like SRP, DRY, KISS, and YAGNI. They prioritize conciseness, directness, and maintainability while avoiding over-engineering or unnecessary complexity in the generated code.

Does the clean-code approach require specific dependencies or frameworks to work?

No, the clean-code approach requires no specific dependencies or frameworks. It acts as a set of guidelines that can be applied directly to any AI-assisted software development workflow to enforce naming conventions, function size limits, and code structure.

How do I apply the Boy Scout Rule when writing new code?

To apply the Boy Scout Rule when writing new code, follow a rigorous self-check process before task completion. This ensures the code you leave behind is cleaner than what you found, adhering to pragmatic coding standards and clear structural conventions.

When should I avoid using self-documenting code instead of comments?

You should not avoid self-documenting code; pragmatic coding standards prioritize it over excessive comments. You should write clear naming and structure directly into the code, only removing redundant comments that simply restate what the code already shows.

How do I ensure my AI-generated code follows the DRY and KISS principles?

To ensure AI-generated code follows DRY and KISS principles, apply pragmatic coding standards that mandate a rigorous self-check process before task completion. This enforces conciseness, directness, and a strict adherence to these core maintainability rules.