Single Responsibility - one thing per function/class
DRY
Don't Repeat Yourself
KISS
Keep It Simple
YAGNI
You Aren't Gonna Need It
Naming
Element
Convention
Example
Variables
Reveal intent
userCount not n
Functions
Verb + noun
getUserById()
Booleans
Question form
isActive, hasPermission
Constants
SCREAMING_SNAKE
MAX_RETRY_COUNT
Functions
Rule
Guideline
Small
Max 20 lines
One Thing
Single purpose
Few Args
Max 3 parameters
No Side Effects
Don't mutate inputs
Code Structure
Pattern
Apply
Guard Clauses
Early returns
Flat > Nested
Max 2 levels
Composition
Small functions together
Anti-Patterns
❌ Don't
✅ Do
Comment every line
Self-documenting names
Helper for one-liner
Inline the code
Factory for 2 objects
Direct instantiation
Deep nesting
Guard clauses
Magic numbers
Named constants
Before Editing
Question
Why
What imports this file?
They might break
What tests cover this?
Tests might fail
Is this shared?
Multiple places affected
Self-Check
Check
Question
✅ Goal met?
Did exactly what was asked?
✅ Code works?
Verified the change?
✅ No errors?
Lint and types pass?
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: tridentsof-antigravity-dev-kit-clean-code3description: ---4---5---6name: clean-code7description: Pragmatic coding standards - concise, direct, no over-engineering8priority: CRITICAL9---1011# Clean Code Standards1213> Be **concise, direct, and solution-focused**.1415---1617## Core Principles1819| Principle | Rule |20|-----------|------|21| SRP | Single Responsibility - one thing per function/class |22| DRY | Don't Repeat Yourself |23| KISS | Keep It Simple |24| YAGNI | You Aren't Gonna Need It |2526---2728## Naming2930| Element | Convention | Example |31|---------|------------|---------|32| Variables | Reveal intent | `userCount` not `n` |33| Functions | Verb + noun | `getUserById()` |34| Booleans | Question form | `isActive`, `hasPermission` |35| Constants | SCREAMING_SNAKE | `MAX_RETRY_COUNT` |3637---3839## Functions4041| Rule | Guideline |42|------|-----------|43| Small | Max 20 lines |44| One Thing | Single purpose |45| Few Args | Max 3 parameters |46| No Side Effects | Don't mutate inputs |4748---4950## Code Structure5152| Pattern | Apply |53|---------|-------|54| Guard Clauses | Early returns |55| Flat > Nested | Max 2 levels |56| Composition | Small functions together |5758---5960## Anti-Patterns6162| ❌ Don't | ✅ Do |63|----------|-------|64| Comment every line | Self-documenting names |65| Helper for one-liner | Inline the code |66| Factory for 2 objects | Direct instantiation |67| Deep nesting | Guard clauses |68| Magic numbers | Named constants |6970---7172## Before Editing7374| Question | Why |75|----------|-----|76| What imports this file? | They might break |77| What tests cover this? | Tests might fail |78| Is this shared? | Multiple places affected |7980---8182## Self-Check8384| Check | Question |85|-------|----------|86| ✅ Goal met? | Did exactly what was asked? |87| ✅ Code works? | Verified the change? |88| ✅ No errors? | Lint and types pass? |8990---91> Converted and distributed by [TomeVault](https://tomevault.io/claim/tridentsof) — claim your Tome and manage your conversions.92<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/tridentsof-antigravity-dev-kit-clean-code in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
--- It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.