一键导入
clean-code
Routes to Clean Code sub-skills for naming, functions, comments, and error handling based on Robert C. Martin's Clean Code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Routes to Clean Code sub-skills for naming, functions, comments, and error handling based on Robert C. Martin's Clean Code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | clean-code |
| description | Routes to Clean Code sub-skills for naming, functions, comments, and error handling based on Robert C. Martin's Clean Code |
Based on Robert C. Martin's Clean Code: A Handbook of Agile Software Craftsmanship.
Trigger on:
Do NOT trigger on:
| Topic | Skill | Use When |
|---|---|---|
| Naming | clean-code:naming | Variables, functions, classes, modules need clear names |
| Functions | clean-code:functions | Designing or reviewing function size, arguments, structure |
| Comments | clean-code:comments | Deciding when/how to comment code |
| Error Handling | clean-code:error-handling | Designing exception strategy and error boundaries |
Distilled from Clean Code by Robert C. Martin. Full extracted content: output/clean-code/SKILL.md.
Use when deciding whether, how, or where to write code comments — applies Clean Code comment principles
Use when designing or reviewing exception handling, error boundaries, or error propagation patterns — applies Clean Code error handling principles
Use when designing, reviewing, or refactoring functions — applies Clean Code function principles for small, focused, well-argumented functions
Use when choosing names for variables, functions, classes, or modules — applies Clean Code naming principles for clear, intention-revealing identifiers
Detects code smells and recommends specific refactorings. Covers the 22 canonical code smells from Fowler's Refactoring with Python examples.
Techniques for breaking down and reorganizing methods: Extract Method, Inline Method, Replace Temp with Query, Introduce Explaining Variable, Split Temporary Variable, Replace Method with Method Object, Substitute Algorithm. All with Python before/after examples.