clean-code

Enforce SRP, DRY, KISS, YAGNI, and anti-pattern avoidance in generated code.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/hoangminh46/mine-vibe --skill clean-code-hoangminh46
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/hoangminh46/mine-vibe/tree/main/skills/clean-code
Command: npx skills add https://github.com/hoangminh46/mine-vibe --skill clean-code-hoangminh46

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces pragmatic AI coding standards so that generated code remains concise, direct, and maintainable, reducing over-engineering and excessive comments.

Core Features & Use Cases

  • Enforces Single Responsibility Principle (SRP) and Don't Repeat Yourself (DRY) in generated code.
  • Promotes Keep It Simple (KISS), YAGNI, and readable naming conventions to improve maintainability.
  • Use Case: When teams need reliable, production-ready code generated by AI without unnecessary complexity or bloat.

Quick Start

Provide a small task like "write a function to fetch user data with input validation and guard clauses" and request a minimal, well-structured implementation.

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 when generating AI code?

To enforce clean code standards in AI-generated code, apply pragmatic rules like SRP and KISS to ensure concise, maintainable output. This prevents over-engineering and keeps functions focused on single responsibilities.

What is the best way to reduce boilerplate in AI-generated software engineering tasks?

The best way to reduce boilerplate is by applying DRY and KISS principles during generation. This approach minimizes repetition and unnecessary complexity, producing direct and readable code without bloat.

Can I use clean code principles for production-ready function generation?

Yes, you can use clean code principles for production-ready function generation. By requesting minimal implementations with guard clauses and input validation, you get reliable, maintainable functions without unnecessary comments.

Why does AI coding often produce over-engineered code and how do I avoid it?

AI coding often produces over-engineered code due to lack of strict constraints. Avoid this by applying YAGNI and SRP rules, which prevent unnecessary features and keep the codebase direct and maintainable.

Does applying SRP and DRY rules work for general software engineering code structure?

Applying SRP and DRY rules works effectively for general software engineering code structure. It enforces disciplined function boundaries and eliminates redundancy across projects, improving overall maintainability.

What are the limitations of using standard clean code guidelines for AI code generation?

A limitation of using standard clean code guidelines is they require explicit instruction for AI. Without encoded rules like anti-pattern avoidance, AI may still generate excessive comments or complex structures.