Who it is forA knowledge base maintainer who edits filed documents by hand or with an agent and needs to catch broken structure before sharing.
The problemHand edits and moved files can break links, catalog entries, or TeX blocks without any visible error.
The outcomeA clear pass or a list of structure, link, archive, or TeX problems to fix before the workspace is shared.
What you need first
- Python 3.10+
- Node.js 20+
- Pandoc 3+
- An authenticated Claude Code or Codex CLI for model-assisted processing
- A downloaded or cloned copy of the knowledge-base-kit repository
Steps
cd my-kb(inferred, check the README)python kb.py check --backend codex- Read each reported problem and fix the file it names.
- Run
python kb.py check --backend codexagain until it passes.
Prompt for your agent
In the my-kb workspace, run `python kb.py check --backend codex`. List each reported structure, link, archive folding, or TeX problem with its file path, fix only those files, and confirm the check passes again.
Caveat. The checks cover structure, links, archive folding, and TeX validation only, not whether the summaries are factually correct.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Sixian-Li/knowledge-base-kit and "Validate a knowledge base before sharing it"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer