This is the coding standard that stops Claude from writing blog posts when you asked for a function. It enforces pragmatic rules like single responsibility, guard clauses over nesting, and a hard ban on obvious comments. The pre-edit checklist forces you to think about imports and dependencies before touching files, which prevents the classic "I fixed AuthService but broke three controllers" scenario. Most valuable for teams tired of AI agents that explain what they're about to do instead of just doing it. Ships with role-specific validation scripts so your frontend specialist runs accessibility checks and your backend dev runs API validators. Written for developers who want working code, not programming tutorials.

skills.sh installs
1.1K
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill clean-code --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Code Review & Quality
First seen
May 16, 2026

More from davila7/claude-code-templates

All 618
1davila7 avatarquality-documentation-managerdavila7/claude-code-templatesSenior Quality Documentation Manager for comprehensive documentation control and regulatory document review. Provides document management system design, change 971skills.sh installs
2alirezarezvani avatarquality-manager-qmralirezarezvani/claude-skillsSenior Quality Manager Responsible Person (QMR) for HealthTech and MedTech companies. Provides quality system governance, management review leadership, regulato755skills.sh installs
3google-labs-code avatartdd-red-green-refactorgoogle-labs-code/design.mdEnforces a disciplined Red-Green-Refactor (TDD) workflow in TypeScript/Node.js. Use this whenever creating new features, fixing bugs, or migrating logic to ensu732skills.sh installs
4alirezarezvani avatarpr-review-expertalirezarezvani/claude-skillsUse when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.701skills.sh installs
5galaxy-dawn avatarpaper-self-reviewgalaxy-dawn/claude-scholarThis skill should be used when the user asks to "review paper quality", "check paper completeness", "validate paper structure", "self-review before submission",700skills.sh installs
6mattbx avatarshadcn-component-reviewmattbx/shadcn-skillsReview custom components and layouts against shadcn design patterns, visual style conventions (Vega, Nova, Maia, Lyra, Mira), composition rules, design token us664skills.sh installs