clean-code

Enforce pragmatic coding standards with self-checks and verification scripts.

2|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/Ab-aswini/Agent-kit-P1 --skill clean-code-ab-aswini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-code
Source: https://github.com/Ab-aswini/Agent-kit-P1/tree/main/.agent-os/skills/clean-code
Command: npx skills add https://github.com/Ab-aswini/Agent-kit-P1 --skill clean-code-ab-aswini

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 free from over-engineering and unnecessary comments.

Core Features & Use Cases

  • Enforces SOLID principles: Promotes Single Responsibility, Don't Repeat Yourself, Keep It Simple, You Ain't Gonna Need It, and the Boy Scout Rule.
  • Standardizes Naming Conventions: Ensures clear and intent-revealing names for variables, functions, and constants.
  • Optimizes Function Design: Guides the creation of small, focused functions with minimal arguments and no side effects.
  • Promotes Clean Code Structure: Encourages guard clauses, flat nesting, composition, and colocation.
  • AI-Specific Guidelines: Provides rules for AI agents on how to respond to user requests, fix bugs, and handle unclear requirements.
  • Pre-Commit Checks: Includes mandatory self-checks and verification scripts to ensure code quality and adherence to standards before task completion.

Quick Start

Apply the clean-code skill to refactor the provided code snippet for improved 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 enforce clean code standards when using an AI agent to write or refactor code?

To enforce clean code standards with an AI agent, apply guidelines focusing on conciseness, directness, and maintainability. This skill uses mandatory self-checks and verification scripts to ensure generated code adheres to principles like SRP, DRY, and KISS before task completion.

What coding standards should I apply to improve code maintainability and developer productivity?

To improve maintainability and developer productivity, apply standards including Single Responsibility, Don't Repeat Yourself, Keep It Simple, and the Boy Scout Rule. These principles ensure concise, direct code free from over-engineering and unnecessary comments.

How do I refactor code to follow SOLID principles and improve naming conventions?

To refactor code following SOLID principles and improve naming conventions, optimize function design by creating small, focused functions with minimal arguments and no side effects. Ensure variables and constants use clear, intent-revealing names for better readability.

Does this clean code skill work without any external dependencies or libraries?

Yes, this clean code skill works without external dependencies or libraries. It relies entirely on internal scripts and references to provide pragmatic coding guidelines and execute verification checks for code quality and standards adherence.

How do I prevent over-engineering and unnecessary comments in AI-generated code?

To prevent over-engineering and unnecessary comments in AI-generated code, apply the You Ain't Gonna Need It principle and specific AI guidelines. This ensures agents respond directly to requests, handle unclear requirements properly, and produce maintainable code.

What is the best way to structure functions for clean code and high maintainability?

The best way to structure functions for clean code is to use guard clauses, flat nesting, and composition. Design small, focused functions with minimal arguments and no side effects to ensure high maintainability and clear, direct logic.