clean-code
This skill embodies the principles of "Clean Code" by Robert C.
Skill by PanPanFR
Chalk Labs
Need help deploying clean-code?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/panpanfr-clean-code
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/clean-code
What's inside
- Skill name
clean-code- Description
- This skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean." Trigger with "clean code", "code review", "review code quality", "refactor for readability", "naming conventions", "function size", or when reviewing code for quality, readability, and maintainability.
- License
- MIT
- Instructions
- 93 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Clean Code Skill This skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean." ## 🧠 Core Philosophy > "Code is clean if it can be read, and enhanced by a developer other than its original author." — Grady Booch ## When to Use Use this skill when: - **Writing new code**: To ensure high quality from the start. - **Reviewing Pull Requests**: To provide constructive, principle-based feedback. - **Refactoring legacy code**: To identify and remove code smells. - **Improving team standards**: To align on industry-standard best practices. ## 1. Meaningful Names - **Use Intention-Revealing Names**: `elapsedTimeInDays` instead of `d`. - **Avoid Disinformation**: Don't use `accountList` if it's actually a `Map`. - **Make Meaningful Distinctions**: Avoid `ProductData` vs `ProductInfo`. - **Use Pronounceable/Searchable Names**: Avoid `genymdhms`. - **Class Names**: Use nouns (`Customer`, `WikiPage`). Avoid `Manager`, `Data`. - **Method Names**: Use verbs (`postPayment`, `deletePage`). ## 2. Functions - **Small!**: Functions should be shorter than you think. - **Do One Thing**: A function should do only one thing, and do it well. - **One Level of Abstraction**: Don't mix high-level business logic with low-level details (like regex). - **Descriptive Names**: `isPasswordValid` is better than `check`. - **Arguments**: 0 is ideal, 1-2 is okay, 3+ requires a very strong justification. - **No Side Effects**: Functions shouldn't secretly change global state. ## 3. Comments - **Don't Comment Bad Code—Rewrite It**: Most comments are a sign of failure to express ourselves in code. - **Explain Yourself in Code**: ```python # Check if employee is eligible for full benefits if employee.flags & HOURLY and employee.age > 65: ``` vs ```python if employee.isEligibleForFullBenefits(): ``` - **Good Comments**: Legal, Informative (regex intent), Clarification (external libraries), TODOs. - **Bad Comments**: Mumbling, Redundant, Misleading, Mandated, Noise, Position Markers. ## 4. Formatting - **The Newspaper Metaphor**: High-level concepts at the top, details at the bottom. - **Vertical Density**: Related lines should be close to each other. - **Distance**: Variables should be declared near their usage. - **Indentation**: Essential for structural readability. ## 5. Objects and Data Structures - **Data Abstraction**: Hide the implementation behind interfaces. - **The Law of Demeter**: A module should not know about the innards of the objects it manipulates. Avoid `a.getB().getC().doSomething()`. - **Data Transfer Objects (DTO)**: Classes with public variables and no functions. ## 6. Error Handling - **Use Exceptions instead of Return Codes**: Keeps logic clean. - **Write Try-Catch-Finally First**: Defines the scope of the operation. - **Don't Return Null**: It forces the caller to check for null every time. - **Don't Pass Null**: Leads to `NullPointerException`. ## 7. Unit Tests - **The Three Laws of TDD**: 1. Don't write production code until you have a failing unit test. 2. Don't write more of a unit test than is sufficient to fail. 3. Don't write more production code than is sufficient to pass the failing test. - **F.I.R.S.T. Principles**: Fast, Independent, Repeatable, Self-Validating, Timely. ## 8. Classes - **Small!**: Classes should have a single responsibility (SRP). - **The Stepdown Rule**: We want the code to read like a top-down narrative. ## 9. Smells and Heuristics - **Rigidity**: Hard to change. - **Fragility**: Breaks in many places. - **Immobility**: Hard to reuse. - **Viscosity**: Hard to do the right thing. - **Needless Complexity/Repetition**. ## 🛠️ Implementation Checklist - [ ] Is this function smaller than 20 lines? - [ ] Does this function do exactly one thing? - [ ] Are all names searchable and intention-revealing? - [ ] Have I avoided comments by making the code clearer? - [ ] Am I passing too many arguments? - [ ] Is there a failing test for this change? ## Limitations - Use this skill only when the task clearly matches the scope described above. - Do not treat the output as a substitute for environment-specific validation, testing, or expert review. - Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
From PanPanFR/oh-my-kilo, MIT.
More from PanPanFR/oh-my-kilo
- 0.594score
caveman
PanPanFR
Ultra-compressed communication mode.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
documentation
PanPanFR
Write and maintain technical documentation.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ponytail-audit
PanPanFR
Whole-repo audit for over-engineering.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ponytail-review
PanPanFR
Code review focused exclusively on over-engineering.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ui-design
PanPanFR
UI/UX design intelligence for web and mobile.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
web-perf
PanPanFR
Deep Core Web Vitals and page speed audit using Chrome DevTools MCP.
SkillBFreshness: B★ 12Claude Code +9 - 0.591score
ponytail
PanPanFR
Lazy senior dev mode.
SkillBFreshness: B★ 12Claude Code +9 - 0.569score
codebase-design
PanPanFR
Shared vocabulary for designing deep modules.
SkillBFreshness: B★ 12Claude Code +9 - 0.569score
code-review
PanPanFR
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding…
SkillBFreshness: B★ 12Claude Code +9 - 0.568score
executing-plans
PanPanFR
Use when you have a written implementation plan to execute in a separate session with review checkpoints
SkillBFreshness: B★ 12Claude Code +9 - 0.568score
writing-plans
PanPanFR
Use when you have a spec or requirements for a multi-step task, before touching code
SkillBFreshness: B★ 12Claude Code +9 - 0.325score
cloudflare
PanPanFR
No description from the publisher yet.
SkillBFreshness: B★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 10, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/PanPanFR/oh-my-kilo
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from PanPanFR
- 0.594score
caveman
PanPanFR
Ultra-compressed communication mode.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
documentation
PanPanFR
Write and maintain technical documentation.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ponytail-audit
PanPanFR
Whole-repo audit for over-engineering.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ponytail-review
PanPanFR
Code review focused exclusively on over-engineering.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
ui-design
PanPanFR
UI/UX design intelligence for web and mobile.
SkillBFreshness: B★ 12Claude Code +9 - 0.594score
web-perf
PanPanFR
Deep Core Web Vitals and page speed audit using Chrome DevTools MCP.
SkillBFreshness: B★ 12Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get clean-code running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
clean-code skill. Agent Mart. https://agentmart.dev/skills/panpanfr-clean-code (last updated 2026-10-24)