360 Secure SkillHub
360 安全技能中心

clean-code

该 Skill 提供 Robert C. Martin 风格的整洁代码规则,用于在改进日常代码时处理可读性、命名、函数设计、职责划分、注释、错误处理与测试等问题。使用时先读取同目录的精简规则文件,必要时再参考更完整的规则文件作为深入依据。

ciembor
热度 0.00
最近更新 2026-10-18 23:16:19
分类:开发依赖:纯提示词应用场景:代码审查

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ciembor/agent-rules-books/clean-code
Metadata
name
clean-code
description
Apply Robert C. Martin-inspired clean code rules when improving readability, naming, function design, responsibilities, or testable everyday code.
license
MIT

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.