clean-code by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill clean-code此技能体现了 Robert C. Martin(鲍勃大叔)的“整洁代码”原则。用它来将“能工作的代码”转变为“整洁的代码”。
“如果代码能够被其原始作者之外的开发者阅读并增强,那么它就是整洁的代码。” — Grady Booch
在以下情况使用此技能:
elapsedTimeInDays 而不是 d。Map,就不要使用 accountList。ProductData 和 。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
ProductInfogenymdhms。Customer, WikiPage)。避免使用 Manager, Data。postPayment, deletePage)。isPasswordValid 比 check 更好。不要注释糟糕的代码——重写它:大多数注释是未能用代码表达自己的标志。
用代码解释自己:
# 检查员工是否有资格享受全额福利
if employee.flags & HOURLY and employee.age > 65:
对比
if employee.isEligibleForFullBenefits():
a.getB().getC().doSomething()。NullPointerException。每周安装量
3.9K
代码仓库
GitHub 星标数
27.1K
首次出现
Jan 20, 2026
安全审计
安装于
opencode3.3K
gemini-cli3.3K
codex3.2K
github-copilot3.1K
amp2.8K
kimi-cli2.8K
This skill embodies the principles of "Clean Code" by Robert C. Martin (Uncle Bob). Use it to transform "code that works" into "code that is clean."
"Code is clean if it can be read, and enhanced by a developer other than its original author." — Grady Booch
Use this skill when:
elapsedTimeInDays instead of d.accountList if it's actually a Map.ProductData vs ProductInfo.genymdhms.Customer, WikiPage). Avoid Manager, Data.postPayment, deletePage).isPasswordValid is better than check.Don't Comment Bad Code—Rewrite It : Most comments are a sign of failure to express ourselves in code.
Explain Yourself in Code :
# Check if employee is eligible for full benefits
if employee.flags & HOURLY and employee.age > 65:
vs
if employee.isEligibleForFullBenefits():
a.getB().getC().doSomething().NullPointerException.Weekly Installs
3.9K
Repository
GitHub Stars
27.1K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode3.3K
gemini-cli3.3K
codex3.2K
github-copilot3.1K
amp2.8K
kimi-cli2.8K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
SVG Logo Designer - AI 驱动的专业矢量标识设计工具,生成可缩放品牌标识
1,200 周安装