Clean Code Coach
Overview
Provide structured, actionable Clean Code guidance using rule files and a compiled AGENTS guide. Use this skill for reviews, refactor plans, or code generation that prioritizes clarity and maintainability.
Quick start
- •Identify the language and scope (files, constraints, tests).
- •Scan for the top 3-5 issues using rule categories.
- •Propose small, safe refactors with rationale.
- •Suggest or run tests to protect behavior.
Structure
- •
AGENTS.mdis the compiled guide with section summaries and rule index. - •
rules/contains one file per rule with incorrect vs. correct examples. - •
references/clean-code-heuristics.mdcontains an extended heuristic checklist. - •
references/clean-code-summary.mdcontains a chapter-level summary and workflow tips.
How to use rules
- •Start with the relevant section in
AGENTS.md. - •Read the specific rule file under
rules/for details and examples. - •Tag review findings by rule title or file name for consistency.
Output format
- •Provide a short list of prioritized findings (3-5).
- •For each finding: impact, suggested refactor, and test notes.
- •Offer an optional refactor sequence if changes are interdependent.