Skip to content
vudovn avatar

Clean Code

Pragmatic coding standards that enforce concise, direct code with small functions and no over-engineering or needless comments.

CCM score
42 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
317
GitHub stars
8.2K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers naming rules, function size and argument limits, code structure, and anti-patterns to avoid during writing
  • Includes a pre-edit dependency check that lists importers and tests before changing a file, plus a self-check before completion
  • Enforces guard clauses, flat nesting capped at two levels, named constants, and a rule to ask rather than assume when requirements are unclear
  • Designed for always-on use during all code writing, with a script-handling workflow that summarizes validator output before fixing anything

Install

$ npx -y skills add vudovn/ag-kit --skill clean-code -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Clean Code - Pragmatic AI Coding Standards

CRITICAL SKILL - Be concise, direct, and solution-focused.


Core Principles

PrincipleRule
SRPSingle Responsibility - each function/class does ONE thing
DRYDon't Repeat Yourself - extract duplicates, reuse
KISSKeep It Simple - simplest solution that works
YAGNIYou Aren't Gonna Need It - don't build unused features
Boy ScoutLeave code cleaner than you found it

Naming Rules

ElementConvention
VariablesReveal intent: userCount not n
FunctionsVerb + noun: getUserById() not user()
BooleansQuestion form: isActive, hasPermission, canEdit
ConstantsSCREAMING_SNAKE: MAX_RETRY_COUNT

Rule: If you need a comment to explain a name, rename it.


Function Rules

Details

Repository
github.com/vudovn/ag-kit
Category
Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the clean-code skill do for Claude Code?

The clean-code skill enforces pragmatic coding standards: concise, direct code, the SRP, DRY, KISS and YAGNI principles, clear naming rules, small functions, and guard clauses. It is always active when the agent writes code, and it tells the agent to skip unnecessary comments and over-engineering.

How do I install the clean-code skill?

Run npx -y skills add vudovn/ag-kit --skill clean-code -y in your project. That installs the skill, and then the agent applies its coding standards whenever it writes or edits code.

Which skills lead the Code Review & Quality category, and where does clean-code stand?

The clean-code skill sits in the Code Review & Quality category alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Where clean-code differs is its focus on how the agent writes code itself, rather than reviewing code after it is written.

Does clean-code need any tools, accounts or API keys?

The skill declares only Read, Write and Edit as allowed tools. Its instructions also reference Python validation scripts in other skill folders, which the agent runs only when those skills are installed.

More from vudovn/ag-kit

All 30

Similar to Clean Code

More Code Review & Quality