← ClaudeAtlas

coding-quality-ruleslisted

Universal coding-quality discipline that fires on every code file — coding-style, patterns, reuse-first (rule of three), proper-fixes-first (no symptom-only patches), no-silent-drops (no orphan TODOs / suppression directives), no-silent-failures (every failure surfaces), no-discards (every value bound), no-ambient-globals (DI everywhere), no-local-fs, error-codes (stable codes), error-handling-with-context (operation + ids), log-levels (canonical FATAL/ERROR/WARN/INFO/DEBUG/TRACE), semver (Conventional Commits + Keep a Changelog), extreme-lint-policy (cognitive complexity ≤ 10, lines ≤ 80, params ≤ 5, zero per-line suppressions), updated-frameworks, performance, testing (90% touched / 80% project), local-testability (env-setup before write), local-dev-setup. Auto-fires on any code file across all supported languages.
Nmor/the-claude-council · ★ 9 · Code & Development · score 69
Install: claude install-skill Nmor/the-claude-council
# Coding Quality Rules — Universal Discipline > Migrated 2026-06-02 from 19 files in `~/.claude/rules/common/` as part of the lazy-rules-loading plan. Phase H will delete the originals to close the eager-load loop. Each section below preserves the full content of one source rule; section headings name the rule file of origin. This skill bundles 19 cross-cutting rules that apply to every code file. Loading is gated by `paths:` — when ANY code file is touched, this skill activates and the disciplines below apply. ## Section index 1. coding-style — naming, comments, file organisation, immutability, error handling 2. patterns — broader architectural patterns; repository / response envelope 3. reuse-first — sweep before write; rule of three 4. proper-fixes-first — root cause, never symptom; banned shortcut patterns 5. no-silent-drops — no orphan TODOs; no suppression directives; no meta-comments 6. no-silent-failures — every failure produces signal at user + server 7. no-discards — every value bound; every error wrapped with context 8. no-ambient-globals — DI everywhere; no module-level mutable state 9. no-local-fs — no local-FS state on ephemeral platforms 10. error-codes — stable snake_case codes; mapped to HTTP + UX + i18n + runbook 11. error-handling-with-context — operation + ids + wrapped cause chain 12. log-levels — FATAL/ERROR/WARN/INFO/DEBUG/TRACE canonical semantics 13. semver — Semantic Versioning 2.0.0 + Conventional Commits 1.0.0 + Keep a Changelog 1.1.0 14. extre