/toolbox:knowledge-base-builder [create|update|refresh] [--scope=...] [--domain=...] [--sources=...] [--dry-run]from toolbox
Creates and maintains a knowledge base for multi-repository projects — architecture, data model, integrations, glossary, and business rules — by analyzing code, migrations, tests, Jira, Confluence, and the database. Identifies implicit business rules in the code, rates the confidence of each one, and flags inconsistencies. Supports full creation, incremental updates, and full refresh (re-fetch everything and add/update/remove entries). Use when the user asks to "create the knowledge base", "map the project", "document business rules", "extract rules from the code", "update" or "refresh the knowledge base", or invokes /knowledge-base-builder.
Ships in toolbox. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Builds the project's "memory": a versioned knowledge/ folder and a root CLAUDE.md,
so any future session understands the system before changing it.
file:line, migration, test,
Jira issue, or Confluence page. Without evidence, it stays out, or goes in
as an open question.knowledge/ and the root/repo CLAUDE.md files.Arguments received: $ARGUMENTS
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
mode (1st, positional) | enum: create | update | refresh | no | create if knowledge/ is missing, else update | create builds from scratch (all phases); update re-analyzes only what changed since the last run (Phase 7A); refresh re-fetches everything from all sources and adds, updates or removes entries (Phase 7B) |
--scope | enum[] (comma-separated): all | architecture | data-model | integrations | rules | glossary | decisions | no | all | Areas to (re)analyze |
--domain | string (business domain name, e.g. users, orders) | no | all domains | Limits business-rule analysis to one domain |
--sources | enum[] (comma-separated): code | db | jira | confluence | no | all available | Sources to read |
--dry-run | boolean flag | no | false | Produces the change report without writing to knowledge/ |
Examples:
/knowledge-base-builder create/knowledge-base-builder update --scope=data-model/knowledge-base-builder refresh/knowledge-base-builder refresh --scope=rules --domain=users/knowledge-base-builder refresh --sources=jira,confluence --dry-runIf no arguments are given, choose create or update based on whether
knowledge/ exists, and say which mode was chosen at the start.
If an argument is invalid, list the valid values and stop.
| Mode | Phases |
|---|---|
create | 0 → 1 → 2 → 3 → 4 → 5 → 6 → 8 (and record run state, 7.0) |
update | 0 (quick check) → 7A → 6 (only if critical rules changed) → 8 |
refresh | 0 → 7B (re-runs 2–5 for the scope) → 6 (only if critical rules changed) → 8 |
This file is the orchestrator: principles, parameters and the order of phases.
Each phase and each shared rule set lives in its own file under references/.
Read a reference file right before running its phase, not all upfront, to keep
context small. Paths are relative to this skill's directory.
| Phase | File | Responsibility |
|---|---|---|
| 0 | phase-0-discovery.md | Find repos, stacks and available sources; write _inventory.md |
| 1 | phase-1-structure.md | Create the knowledge/ layout, file headers and <!-- manual --> protection |
| 2 | phase-2-architecture-and-integrations.md | Entry points, modules, repo communication, external integrations |
| 3 | phase-3-data-model.md | Tables, relationships, enums, readers/writers, DB vs migrations |
| 4 | phase-4-business-rules.md | Where to look for rules, consistency check, critical rules |
| 5 | phase-5-jira-and-confluence.md | Cross-check rules and decisions against Jira/Confluence |
| 6 | phase-6-claude-md.md | Root and per-repo CLAUDE.md |
| 7 | phase-7-update-and-refresh.md | Run state (7.0), update (7A) and refresh (7B) flows |
| 8 | phase-8-final-report.md | _review.md contents and the reply to the user |
| File | Responsibility | Used by |
|---|---|---|
| rule-confidence-levels.md | Confidence levels (✅ 🟢 🟡 🔵 🔴) and their criteria | Phases 4, 5, 7 |
| rule-entry-format.md | Format of a BR-xxx entry in business-rules.md | Phases 4, 7 |
| reconciliation-rules.md | Matching, add/update/remove and protected content (7C) | Phase 7 |
| change-report.md | _changelog.md report format (7D) | Phase 7 |
| checklist.md | Final checks before reporting | End of every run |
Before finishing any run, read checklist.md and confirm every item.
references/change-report.md (opens in a new tab)references/checklist.md (opens in a new tab)references/phase-0-discovery.md (opens in a new tab)references/phase-1-structure.md (opens in a new tab)references/phase-2-architecture-and-integrations.md (opens in a new tab)references/phase-3-data-model.md (opens in a new tab)references/phase-4-business-rules.md (opens in a new tab)references/phase-5-jira-and-confluence.md (opens in a new tab)references/phase-6-claude-md.md (opens in a new tab)references/phase-7-update-and-refresh.md (opens in a new tab)references/phase-8-final-report.md (opens in a new tab)references/reconciliation-rules.md (opens in a new tab)references/rule-confidence-levels.md (opens in a new tab)references/rule-entry-format.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub stdioh321/claude-toolbox --plugin toolbox2 skills in this plugin