Agent Skills
› ciembor/agent-rules-books
› clean-code
clean-code
GitHub应用整洁代码规范,优化日常代码的可读性、命名、函数设计及职责划分,提升代码质量。
Trigger Scenarios
重构代码以提升可读性
优化变量或函数命名
拆分过大函数以明确职责
改进控制流逻辑
增强代码可测试性
Install
npx skills add ciembor/agent-rules-books --skill clean-code -g -y
SKILL.md
Frontmatter
{
"name": "clean-code",
"license": "MIT",
"description": "Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities, or testable everyday code."
}
Clean Code Skill
Use this skill when a task involves everyday implementation quality, naming, small functions, readable control flow, responsibilities, comments, errors, or tests.
Before making design or code decisions, read and apply clean-code.mini.md. Use clean-code.md only as a deeper reference when the mini rules are not enough for the current code-quality tradeoff.
Version History
- 893a88a Current 2026-09-11 20:34


