Code quality standards. Defines complexity management, modular design, code smell detection. Applied automatically when writing or reviewing code.
Complexity = Dependencies + Obscurity
| Symptom | Description | |---------|-------------| | Change Amplification | Small changes require modifications in many places | | Cognitive Load | Developers need excessive information to complete tasks | | Unknown Unknowns | Unclear what code needs modification (worst symptom) |
Design deep modules: a lot of behaviour behind a small interface, placed at a clean seam. Hide design decisions inside implementations; combat over-specialization and "classitis". For the full vocabulary (module, interface, seam, adapter, depth, leverage, locality) and design procedures, use the codebase-design skill.
Proactively identify and flag:
When identifying code smells:
DO comment: design decisions/trade-offs, non-obvious behavior, interface contracts, gotchas/edge cases, cross-module dependencies
DON'T comment: self-evident code, well-named variables/functions, standard patterns, implementation details visible in code
When modifying code:
When invoked directly with a file path (/code-quality <file>), clean up its comments per the Comment Standards above:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer