Check the health of this project's knowledge base (CLAUDE.md, AGENTS.md and the topic files they name) - size, repeats, stale text, contradictions, dead references - and say whether to leave, tidy or split it. Read-only: writes only its report.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Forge Kb Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jzo001-forge-kb-check)
---
name: forge-kb-check
description: "Check the health of this project's knowledge base (CLAUDE.md, AGENTS.md and the topic files they name) - size, repeats, stale text, contradictions, dead references - and say whether to leave, tidy or split it. Read-only: writes only its report."
argument-hint: "[thorough] [model]"
allowed-tools: Read, Grep, Glob, Bash(node:*), Edit(./AI/.kb/**)
---
# Knowledge base check
Check the knowledge base of the project in the working directory: the instruction files Claude Code loads into every session (`CLAUDE.md` and its `@` imports, or `AGENTS.md` alone) and the topic files they name. Change none of them: you write only your answer, and the check's script only its report, both under `AI/.kb/`. Run no command but the script: it checks the `.gitignore` too.
Arguments: `$ARGUMENTS`. `thorough` also checks up to 10 statements against the code; `model` means you count the machine part yourself, without Node.
The script, KB below: `node "${CLAUDE_SKILL_DIR}/../../scripts/kb.mjs"`. If that path does not exist, find `scripts/kb.mjs` of the forge-agent-tree plugin with Glob.
1. Unless `model` was given, run `KB check prompt .` (with `--thorough` for `thorough`).
- If `node` is missing, or the script says Node is too old, tell the user why and offer the model mode (`model-mode.md` beside this file). Do not switch to it on your own: it costs tokens and is less exact. Stop there.
- If it says there is no knowledge base, tell the user, suggest the forge-kb-init skill, and stop.
2. Do what the printed instructions ask, and write the one JSON object they describe.
3. Write it with the Write tool to `AI/.kb/check-answer.json`, then run `KB check report . --answer AI/.kb/check-answer.json` (with `--thorough` if used); the script removes the file once used. If the script says the answer's form is wrong, fix what it names, write the file again and run the report again, once.
4. The script prints the report. Tell the user in their language, briefly: the verdict in its words, the main numbers, every contradiction, and the findings with `file:line`, so they can fix them by hand; then the report's path and the next step it names.