clean-code

Enforce coding standards like SRP, DRY, KISS, and YAGNI before file edits.

1|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/devopstales/aiskillgrid --skill clean-code-devopstales
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/devopstales/aiskillgrid/tree/main/.agents/skills_back/clean-code
Command: npx skills add https://github.com/devopstales/aiskillgrid --skill clean-code-devopstales

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill assists in enforcing coding standards and best practices to create clean, efficient, and maintainable code.

Core Features & Use Cases

  • Enforce Coding Standards: Enforce pragmatic coding principles like Single Responsibility, Don't Repeat Yourself, and Keep It Simple.
  • Code Quality Checks: Provides naming and function rules, structure patterns, and anti-patterns.
  • Verification and Validation: Before editing files, performs a check for dependencies, imports, tests, and shared components.

Quick Start

Before making changes to a file, run 'think-first-checks.md' to ensure proper handling of dependencies and imports.

Frequently Asked Questions about clean-code

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

FAQPage Schema
How do I enforce clean code standards and pragmatic programming principles in my project?

Clean code standards are enforced by applying principles like SRP, DRY, KISS, and YAGNI to ensure efficient, maintainable code. This Skill provides specific naming rules, function rules, and structural patterns to guide development and verify code quality before file edits.

What are the best practices for checking dependencies before modifying a codebase?

Checking dependencies before modifying a codebase involves verifying imports, tests, and shared components. Running pre-edit checks ensures proper handling of structural relationships, preventing broken dependencies and maintaining code quality during file modifications.

How does the Boy Scout rule apply to maintaining code structure?

The Boy Scout rule applies to code structure by ensuring developers leave code cleaner than they found it. It works alongside anti-pattern checks and naming rules to enforce coding standards, resulting in maintainable and efficient codebases over time.

Can I use these coding standards guidelines for AI coding style enforcement?

Yes, these coding standards guidelines include specific AI coding style guidance. They enforce pragmatic programming principles and structural patterns, ensuring AI-assisted code adheres to quality rules like DRY, KISS, and Single Responsibility.

Why does my code break when editing files without checking shared components?

Code breaks when editing files without checking shared components because dependencies and imports become misaligned. Performing verification checks before edits prevents breaking these dependencies, ensuring clean code and maintaining structural integrity.

What is the best way to prevent anti-patterns in function design?

The best way to prevent anti-patterns in function design is to apply strict function rules and the Single Responsibility principle. Verifying code structure against established coding standards ensures functions remain simple, maintainable, and free of redundant logic.