statslisted
Install: claude install-skill mikeprasad/aria-knowledge
# /stats — Knowledge Base Health
Read-only dashboard showing the current state of the knowledge repository.
## Runtime Gate (per ADR-094)
**Before Step 0:** Check that `Bash` is available. If `Bash` is NOT available (e.g., Cowork), surface:
> ⚠️ **Runtime mismatch — you invoked aria-knowledge's `/stats` from a non-Code runtime.**
>
> Behavior is largely the same in both runtimes; for the Cowork-native variant (reads from the attached knowledge folder), use `/aria-cowork:stats`.
>
> Proceed with the aria-knowledge variant anyway? (`y` / `n`)
Wait for `y` / `yes`. **Gate applies even in `auto`** (ADR-094 §Part 3). If `Bash` is available, proceed to Step 0.
## Step 0: Resolve Config
Read `~/.claude/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-ba