clean-code

Installation
SKILL.md

Clean Code — The Art of Readable Software


Mandatory Pre-Flight Context Inspection

Before refactoring code or evaluating clean code standards, you MUST inspect:

  1. Intent-Revealing Naming (Section 25) → Name variables/functions to reveal explicit intent; ban cryptic abbreviations (d, proc, u)
  2. Single-Purpose Functions (Section 95) → Ensure functions perform 1 single task; extract sub-operations if function exceeds ~30 lines
  3. Guard Clause Early Returns (Section 344) → Flatten nested logic (>3 levels) using guard clauses and fail-fast early returns
  4. Algorithmic Complexity & Lookups → Prefer Set / Map for O(1) membership lookups instead of repeated O(N) array scans

Activation Boundaries

  • Activate when: Refactoring existing codebases, establishing code quality standards, designing function boundaries, eliminating code smells, and writing logic-bearing business modules.
  • DO NOT activate when: Writing quick disposable test fixtures, raw low-level binary protocol buffers, or machine-generated artifacts where human maintainability is not an invariant.

2026 Code Performance & Logic Invariants

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026