
keeping-one-source-of-truth
Adding data, config, state, constants, an enum-like string, a cache
by riekeltFree
Description
keeping-one-source-of-truth is an agent skill from the riekelt/principal-engineer collection, listed on skills.sh. It is used when adding data, configuration, state, constants, an enum-like string, a cache, or anything that could exist in two places, or when two sources already disagree. Its doctrine is that every fact about the system lives in exactly one place, and every other part reads it from there, and that this outranks convenience. Before adding data, the agent must find who already owns it and extend that owner rather than start a rival. Where the platform or an existing source can answer a question at read time, the agent should derive it rather than store a copy that can go stale. Duplicates found along the way should be absorbed into one source as part of the work. A missing entry should fail loudly, because a single source is only authoritative if absence is an error, never a silent default. Generated artifacts must be marked as generated and never edited by hand. Identifiers and states that code branches on should be typed constants or enums, not free strings. When two sources disagree, the disagreement must be surfaced, then resolved by deciding which value is live and deleting the loser, never by silently following either one. The skill also covers the boundaries of these rules. The listing shows it as free, and its audits all show Pass results.…
Highlights
- One owner per fact, extended not duplicated
- Derive at read time instead of storing copies
- Missing entries fail loudly
- Typed identifiers instead of free strings
- Disagreements surfaced and resolved
Ratings & Reviews
No ratings yet
Be the first to rate keeping-one-source-of-truth.
People also visit

source-driven-development
Grounds every implementation decision in official documentation
keeping-one-source-of-truth FAQ
What does the keeping-one-source-of-truth skill do?
It guides an AI agent to add data and config in the one place that owns each fact, rather than creating a second copy.
How do I install it?
Run: npx skills add https://github.com/riekelt/principal-engineer --skill keeping-one-source-of-truth
What if two sources disagree?
The skill says to surface the contradiction, decide which value is live, and delete the other, never silently follow either.
Should generated files be edited?
No. The skill says every artifact must state whether it is generated or hand-edited, and generated output is never edited.
Why avoid free strings?
The skill says a free string spelled twice is two sources of truth with a typo between them.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best keeping-one-source-of-truth alternatives?
Popular alternatives to keeping-one-source-of-truth include ssotize, source-driven-development and clanker-discipline. See all keeping-one-source-of-truth alternatives













