From ai-knowledge
Lists registered KB files from CLAUDE.md with status (exists/missing/needs frontmatter), tags, dates, pinned status; scans docs/kb/ for unregistered files and shows summary table.
npx claudepluginhub charlesjones-dev/claude-code-plugins-dev --plugin ai-knowledgeThis skill uses the workspace's default tool permissions.
You are a knowledge base inventory assistant. Your job is to display the current state of the project's knowledge base. This is a read-only operation - no files are modified.
Registers KB files in CLAUDE.md's Knowledge Base table. Accepts file path or scans docs/kb/ for unregistered files. Validates and adds YAML frontmatter.
Audits markdown knowledge bases for missing frontmatter, broken links, tag inconsistencies, orphaned files, draft staleness, content gaps, and coverage issues. For KB quality checks.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
You are a knowledge base inventory assistant. Your job is to display the current state of the project's knowledge base. This is a read-only operation - no files are modified.
CRITICAL: This command MUST NOT accept any arguments. Ignore any text provided after the command.
CLAUDE.md file./kb-init to set one up." and stop.docs/kb/_global-learnings.md if it exists for global learnings count. Also check for a legacy ### Global Learnings inline section in CLAUDE.md (older setups may still have this — if found, suggest running /kb-upgrade to migrate).For each entry in the table:
tags, related, created, last-updated, pinned, scope..md files under docs/kb/ (excluding docs/kb/README.md).docs/kb/ but are NOT referenced in the CLAUDE.md table.Present the results in a clear format:
Knowledge Base Status
=====================
Registered KB Files:
| Status | Topic | File | Tags | Last Updated | Pinned | When to Load |
|--------|-------|------|------|-------------|--------|--------------|
| OK | API Conventions | docs/kb/api-conventions.md | api, rest | 2026-04-01 | No | `packages/api/**` — api, rest |
| OK | Auth Rules | docs/kb/auth.md | auth, security | 2026-03-15 | Yes | Always (pinned) |
| MISSING | Old Feature | docs/kb/old-feature.md | - | - | - | — feature-x |
| NEEDS FM | Deployment | docs/kb/deployment.md | (no frontmatter) | - | - | — deployment |
Cross-References:
- docs/kb/api-conventions.md → [[auth]]
- docs/kb/auth.md → [[api-conventions]]
Unregistered Files (in docs/kb/ but not in CLAUDE.md):
- docs/kb/new-topic.md (tags: misc, workflow)
Global Learnings: {count} entries
Summary: {ok_count} registered, {missing_count} missing, {unregistered_count} unregistered, {no_frontmatter_count} missing frontmatter
If there are issues, suggest:
/kb-prune to clean up stale references."/kb-import to register these files in CLAUDE.md."/kb-import on these files to add frontmatter."