返回 Skill 列表
extension
分类: 开发与工程无需 API Key

core-coding-standards

通用的代码质量规则。不扩展任何内容——这是每个项目都应该包含的基础技能。在编写或审查任何代码时使用。

person作者: jakexiaohubgithub

Principles

  • Keep it simple (KISS) — prefer the simplest solution that works
  • Don't repeat yourself (DRY) — extract when you see three duplicates, not before
  • Single Responsibility — each module/function does one thing
  • Use descriptive, intention-revealing names
  • Use kebab-case for files and folders
  • Functions should have clear inputs and outputs with minimal side effects
  • Keep functions right-sized — extract when logic needs a comment to explain
  • Delete dead code — don't comment it out
  • Never swallow errors silently
  • Measure before optimizing — no premature performance work
  • No premature abstraction — wait for three concrete duplicates before extracting

Rules

See rules/ for detailed patterns.