
Clean Code
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-codeInstalls into .claude/skills of the current project.
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
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- Scientific Brainstorming1.1K
- Mui1.1K
- Modal Serverless Gpu1.1K
- Ceo Advisor1.1K
- Plotly1.1K
- Conversation Memory1K
- Senior Prompt Engineer1K
- Agile Product Owner987
- Senior Security987
- Crewai Multi Agent985
- Frontend Design981
- Code Reviewer975
- Quality Documentation Manager971
- Langchain969
- Xlsx953
- Scikit Learn944
- Qdrant Vector Search922
- Mermaid Diagrams913
- Modal905
- Docker Expert899
- Pptx892
- Security Compliance848
- Draw Io843
- Pdf821