Skip to main content

single-source-of-truth

Language-agnostic engineering philosophy for eliminating drift and double-apply bugs — one authoritative home per fact, derive/generate the rest, declare desired state over imperative steps, idempotent convergence, make illegal states unrepresentable, colocate truth with the thing, gate unavoidable hand-sync, and extract proven-reused logic into a shared package (earning the abstraction via the Rule of Three). Each rule carries its root-cause rationale. Use when designing config/schemas/DSLs/codegen/migrations/build-systems/shared libraries, when reviewing code with copy-pasted constants, hand-synced docs, name-keyed side tables, read-modify-write counters, run-once-only operations, or the same logic copied across repos/teams, and when user mentions 幂等 idempotent, 声明式 declarative, single source of truth, DRY, drift, convergence, derive, extract a reusable package, premature/wrong abstraction, Rule of Three.

跳到安装

来源信息

仓库
sunfmin/single-source-of-truth
最近来源活动
2026年6月8日 01:30
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。