← ClaudeAtlas

statslisted

Show knowledge base health metrics — file counts, backlog depth, audit status, codemap dates, tag stats, and coverage gaps. Use when user says '/stats', 'knowledge stats', 'how is my knowledge base', 'show stats', 'knowledge health', 'dashboard'. (Code port — ADR-094.)
mikeprasad/aria-knowledge · ★ 16 · AI & Automation · score 64
Install: claude install-skill mikeprasad/aria-knowledge
# /stats — Knowledge Base Health Read-only dashboard showing the current state of the knowledge repository. ## Step 0: Resolve Config Read `~/.gemini/antigravity/aria-knowledge.local.md` and extract `knowledge_folder`. If the file doesn't exist, stop: "aria-knowledge is not configured. Run /setup to get started." Use `{knowledge_folder}` as the base path for all operations. ## Step 1: Count Promoted Files Count `.md` files (excluding README.md) in each promoted folder: - `{knowledge_folder}/rules/*.md` - `{knowledge_folder}/approaches/*.md` - `{knowledge_folder}/decisions/*.md` - `{knowledge_folder}/guides/**/*.md` (recursive — guides may have subdirectories) - `{knowledge_folder}/references/*.md` - `{knowledge_folder}/archive/*.md` Record counts per category and total. ## Step 2: Count Backlog Items For each backlog file, count the number of `### ` (h3) entries below the `---` separator: - `{knowledge_folder}/intake/insights-backlog.md` - `{knowledge_folder}/intake/decisions-backlog.md` - `{knowledge_folder}/intake/extraction-backlog.md` - `{knowledge_folder}/intake/rules-backlog.md` Also count `.md` files in `{knowledge_folder}/intake/pre-compact-captures/`. Also count `.md` files in `{knowledge_folder}/intake/clippings/` (unreviewed clippings). ## Step 3: Read Audit Dates Extract the `**Date:**` from: - `{knowledge_folder}/logs/knowledge-audit-log.md` - `{knowledge_folder}/logs/config-audit-log.md` - The `/setup on` date from `~/.gemini/antigravity/aria-know