One Fact One Place — AI skill for Claude Code
A git pre-commit hook for repos AI agents write to: it stops an agent's commit when a line repeats a fact the repo already holds or links to a file or heading that does not exist.
How to install One Fact One Place
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open zucchini-chat/one-fact-one-place and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What One Fact One Place does
A git pre-commit hook for repos AI agents write to: it stops an agent's commit when a line repeats a fact the repo already holds or links to a file or heading that does not exist. Storage rules for CLAUDE.md and AGENTS.md, typed YAML check, Python standard library.
Alternatives in AI
- Fact Checker — Verify claims and facts with sources 653 ★
- Memory Lancedb Pro — Production-grade long-term memory system (v1.1.0-beta.8) for OpenClaw AI agents 222 ★
- Awareness Local — Local-first AI agent memory — one command, works offline, no account needed 199 ★
README
one-fact-one-place
A git pre-commit hook for repos that AI agents write to. It stops an agent's commit when a line it adds repeats a fact that already lives elsewhere in the repo's markdown, or links to a file or heading that does not exist. A person committing sees the same list and the commit goes through. Python 3.9+ standard library; the optional `.tyaml` type check also needs PyYAML.
Tools that keep an agent's memory in git mostly help the agent find and read it. This one checks what gets written: an agent that writes a fact a second time, in another file or further down the same one, leaves two copies that drift apart, and by the time anyone notices, that agent has moved on. It fits any repo whose notes, docs, `CLAUDE.md` or `AGENTS.md` agents keep editing, code repos included.
It is the memory part of [personal-agent-scaffold](https://github.com/zucchini-chat/personal-agent-scaffold) (a full personal-agent setup), on its own.
Why it stops the commit
On a personal notes repo that several Claude Code agents write to in parallel, agents fixed at most 1 in 10 of the real duplicates the check showed them after the commit, and about 41-73% once it stopped the commit. In the stop's first week there: 283 stops on 214 commits, a median 8 s from the first stop to the commit going through, no `--no-verify`. The cost is noise: about a third of the lines it shows are real duplicates. Numbers, sample sizes and what is untested: [RESULTS.md](RESULTS.md).
What it checks
For each `.md` and `.tyaml` line a commit adds or edits:
- Duplicate. Each new sentence (of an edited line, only the sentences holding new words; an edit that only deletes words or changes case, end punctuation or emphasis is skipped) against the most similar line in another file and in the rest of its own file, outside its own paragraph (in a
.tyaml, its record; values are compared without their keys). BM25 word matching, rebuilt on each commit, no model and no index on disk. A hit shows f
Related Skills
Portfolio Skill
An agent skill that turns a resume, a few repos and some links into a personal portfolio site that doesn't loo
We Can Use
Awesome links for the AI coding ecosystem — agent skills, plugins, MCP servers, CLI tools, and 12,000+ auto-co
Mem Compress
rtk-style pre-storage compression — collapses 3+ adjacent identical lines + merges adjacent key: value runs sh
Agent Roast
Stops AI coding agents from making the build green by weakening tests, coverage gates or CI. Stop hook for Cla
Verify Before Blocking
A portable discipline that stops AI agents from turning unverified assumptions into stop-work instructions. Si
Entryplug
Governance layer for AI coding agents (Claude Code, Codex): Git pre-commit + deny rules protect one person's r
Related Agents
The Clerk
Housekeeping auditor for your git repos and your notes repo. Checks that nothing is uncommitted, unpushed or s
Tracker Integrator
Creates epics/tasks in the team's issue tracker (currently Jira, via the Atlassian MCP) from an already-approv
Mobile Dynamic Agent
Drive Frida (iOS+Android) and adb (Android) on operator's host. Bypass SSL pinning + root/JB detection, hook c