audit-config
Audit Antigravity project configuration and documentation for drift, staleness, and broken references. Use when user asks for…
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.)
Claude Code
$ npx -y skills add mikeprasad/aria-knowledge --skill stats --agent claude-code
Codex
$ npx skills add mikeprasad/aria-knowledge --skill stats -a codex -y
Cursor
$ npx skills add mikeprasad/aria-knowledge --skill stats -a cursor -y
Gemini CLI
$ npx skills add mikeprasad/aria-knowledge --skill stats -a gemini-cli -y
GitHub Copilot
$ npx skills add mikeprasad/aria-knowledge --skill stats -a github-copilot -y
OpenCode
$ npx skills add mikeprasad/aria-knowledge --skill stats -a opencode -y
Windsurf
$ npx skills add mikeprasad/aria-knowledge --skill stats -a windsurf -y
description: "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.)"
Read-only dashboard showing the current state of the knowledge repository.
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.
Count `.md` files (excluding README.md) in each promoted folder:
Record counts per category and total.
For each backlog file, take its `live` count from `bash "${CLAUDE_PLUGIN_ROOT}/bin/count-backlog-entries.sh" {knowledge_folder}` — the same counter `/audit knowledge` and the SessionStart trigger use, which also sees entries written at `## ` or mis-levelled at `####`. If the script is unavailable, fall back to counting `### ` (h3) entries below the `---` separator and say the figure may under-report:
Also count `.md` files in `{knowledge_folder}/intake/pre-compact-captures/`.
Also count `.md` files in `{knowledge_folder}/intake/clippings/` (unreviewed clippings).
Extract the `**Date:**` from:
Calculate days since each. If a date is "(no audits yet)" or missing, note "never."
Use Glob to find CODEMAP.md files under cwd (up to 2 levels deep). Try these patterns:
For each file found: 1. Read the first 10 lines 2. Parse the `Last updated` date from the header. Expected pattern: `> Last updated: YYYY-MM-DD | Sections: N | Features: M` 3. Calculate days-since from today's date
If the header is missing or unparseable, show `(no date)` for that entry.
If no CODEMAP.md files are found under cwd, the section still renders with a single line noting absence.
**Presentation-only.** This step does not classify stale/current or run git-activity checks. Staleness classification with file-change detection belongs to `/audit knowledge` Step 5d — `/stats` just surfaces the raw date so the user can decide whether to run the audit.
In addition to the cwd-scoped Glob in Step 3a, iterate `KT_PROJECTS_LIST` (from config) to surface CODEMAP + STITCH dates across ALL configured projects — a dashboard view, not just the current working directory.
Skip this step entirely if `KT_PROJECTS_ENABLED != true` or `KT_PROJECTS_LIST` is empty.
For each `tag:path` entry in `projects_list`:
1. Resolve `project_root = $HOME/Projects/<path>`. If directory doesn't exist, note "(configured but missing)" and continue. 2. Stat `{project_root}/CODEMAP.md`:
3. Stat `{project_root}/STITCH.md`:
4. Classify against thresholds: `codemap_staleness_threshold_days` (default 14) and `stitch_staleness_threshold_days` (default 30). Status = fresh / STALE (>threshold) / REFUSAL-ZONE (>2× threshold).
**Presentation-only.** Same discipline as Step 3a — surfaces dates + status without auto-acting. Pairs with `/audit config` Step 5a, which produces actionable findings.
If `{knowledge_folder}/index.md` exists, read it and extract:
If `index.md` doesn't exist, note: "No index — run /index to build."
Check which promoted folders have zero `.md` files (excluding README.md):
These suggest areas where knowledge capture hasn't started yet.
Output in this format:
**Output policy:** emit every section defined in the format below with all fields, even when counts are zero. Zero counts are meaningful data points — "Pending insights: 0" confirms the backlog is clear, "Stale files: 0" confirms the index is current. Do not collapse the dashboard into prose or shorten sections for brevity — the structured format is the skill's value,
Agent Memory · Context Engineering · Planning & Reasoning · Human-in-the-Loop Governance ARIA is the missing infrastructure layer for production AI coding agents: persistent memory that survives context compaction, deliberate context engineering that loads
Audit Antigravity project configuration and documentation for drift, staleness, and broken references. Use when user asks for…
Scan Antigravity conversation transcript + artifact directory for extractable knowledge. Use when user asks for 'knowledge…
Save the current Antigravity transcript to the knowledge intake on demand. Use when user says '/snapshot', 'snapshot the…
Morning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review /…
Research a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate…
Mine your distilled knowledge corpus — memory feedback rows, rules backlogs, always-on indexes — for recurring corrections that…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.