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
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 -yInstalls 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
| Principle | Rule |
|---|---|
| SRP | Single Responsibility - each function/class does ONE thing |
| DRY | Don't Repeat Yourself - extract duplicates, reuse |
| KISS | Keep It Simple - simplest solution that works |
| YAGNI | You Aren't Gonna Need It - don't build unused features |
| Boy Scout | Leave code cleaner than you found it |
Naming Rules
| Element | Convention |
|---|---|
| Variables | Reveal intent: userCount not n |
| Functions | Verb + noun: getUserById() not user() |
| Booleans | Question form: isActive, hasPermission, canEdit |
| Constants | SCREAMING_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- Systematic Debugging298
- Game Development282
- Intelligent Routing274
- Database Design272
- Mcp Builder244
- App Builder243
- Red Team Tactics237
- Nodejs Best Practices235
- Architecture234
- Brainstorming229
- Bash Linux226
- I18n Localization226
- Vulnerability Scanner222
- Plan Writing219
- Testing Patterns218
- Tailwind Patterns216
- Api Patterns215
- Deployment Procedures214
- Performance Profiling214
- Behavioral Modes213
- Python Patterns207
- Parallel Agents204
- Documentation Templates200
- Seo Fundamentals200
Similar to Clean Code
More Code Review & Qualitycode-review-checklistvudovn/ag-kit339 installsStructured checklist that reviews code for correctness, security, performance, quality, testing, and documentation.
code-simplifierpproenca/dot-skills1.7K installsConcise guide that simplifies recently modified code while preserving exact behavior across 47 rules.
code-qualitymiles990/claude-software-skills787 installsClean code principles, SOLID patterns, and code review checklists with TypeScript examples for maintainable software.
thermo-nuclear-code-quality-reviewcursor/plugins26K installsStrict maintainability review that hunts for structural simplifications, oversized files, and spaghetti conditionals.
code-review-and-qualityaddyosmani/agent-skills98.9K installsMulti-axis code review with quality gates for any change before it enters the main branch.