Claude Code skill for one source of truth across list settings
Trace multiple writers for one setting, assign a single owner, and derive all views from that value.
中文Install in Claude Code
Open a local configuration project in Claude Code. List all writers and displays for one value before reviewing it.
- Review `profiles/.claude/skills/single-source-of-truth/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/single-source-of-truth/` in your project and save the reviewed file as `.claude/skills/single-source-of-truth/SKILL.md`.
- Start Claude Code from that project's root, then select `/single-source-of-truth` in the slash menu.
Example task
Two lists independently store page sizes of 20 and 30. Change them to read a shared configuration value of 25.
`pageSize = 20` · `sidebarSize = 30` · `config.pageSize = 25`What to check
Setting `config.pageSize = 25` once makes both lists display `25`. One file owns the write.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can a derived cache accept independent writes?
The cache reads from the owner. Keep updates in that one configuration so the two views stay consistent.