🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 49 |
| ⭐ GitHub Stars | 172(fork 11) |
| 🗓️ 最近推送 | 2026-03-26 |
| 🌱 项目创建 | 2026-03-22 |
| 💻 语言 / License | 未标注 · MIT |
| 🐛 开放Issue | 0 |
📝 工具简介
Claude Code skills合集,强制编码纪律,防止常见AI编码反模式。
📖 怎么用
安装很简单,直接跑 `npx skills add luoling8192/ai-coding-principles` 就行。装完技能会自动注入到 Claude Code 的代码任务里,不用额外配置。开始用的时候正常写代码就行,它会自动加载那些强制规则,比如禁止静默回退、禁止滥用 try/catch、测试必须能验证代码坏了等。README 没写具体初始化步骤,装完即用。
📋 迷你测评
给Claude Code套上编码纪律的skill合集。亮点是专门针对AI常见编码反模式设防,让输出更规范。没提具体数据,适合受够AI乱写代码的团队。
📄 README 要点
这是一组给 Claude Code 用的技能,主要管编码纪律和系统设计知识。核心技能会在写代码时强制加载一些规则,防止常见 AI 编码反模式,比如不能用空值合并运算符掩盖本不该缺失的值、业务逻辑里别乱用 try/catch 捕获所有异常、测试要验证具体结果而不是只检查存在性、别硬编码查找表、要写红绿测试(先写失败测试再修复)、修 bug 时别急着删调试日志。另外还有个基于《数据密集型应用系统设计》的参考指南,设计数据库表结构或选存储引擎时会自动加载。适合想让 AI 写代码更规范、更少埋坑的场景。
查看英文原文
AI Coding Principles A collection of Claude Code skills for coding discipline and system design knowledge. 中文文档 Skills ai coding discipline Mandatory rules loaded during all code writing tasks that prevent common AI coding anti patterns. Rule Summary 1 No Silent Fallbacks Don't use ?? / to mask values that should never be missing 2 No Catch All try/catch Business logic lets errors propagate; catch only at API boundaries 3 Tests Must Fail When Code Breaks Verify specific outcomes, not just existence 4 No Hardcoded Lookup Tables Implement real logic, not test case fitting shims 5 Red Green Testing (TDD) Write failing test first, then fix 6 Don't Remove Debug Logs During Fix Logs stay until human confirms the fix works ddia principles Distilled reference guide based on Martin Kleppmann's Designing Data Intensive Applications . Loaded when designing database schemas, choosing storage engines, implementing replication/partitioning, handling distributed transactions, or building batch/stream processing pipelines. Part Topics I: Foundations Reliability, Scalability, Maintainability; Data Models & Query Languages; Storage & Retrieval (B tree vs LSM tree, OLTP vs OLAP); Encoding & Evolution II: Distributed Data Replication (single/multi leader, leaderless); Partitioning (key range, hash, compound); Transactions & Isolation Levels; Distributed System Challenges; Consistency & Consensus III: Derived Data Batch Processing (MapReduce, Spark, Flink); Stream Processing (Kafka, CDC, Event Sourcing); Data Integration Patterns Installation [安装/使用命令见下方] License MIT
💬 评论(0)
交流使用体验、避坑建议;违规内容将被删除