/aria-knowledge:audit-configfrom aria-knowledge
Scans CLAUDE.md files, .claude/settings.local.json, plugin manifests, and knowledge files for drift, broken references, and staleness. Invoke via /audit config.
Ships in aria-knowledge. 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.
None: SKILL.md is the whole skill.
Canonical invocation: /audit config. The direct /audit-config form is retained for compatibility and is not advertised.
Scan all CLAUDE.md files, .claude/settings.local.json configs, plugin manifests, and knowledge files for drift, broken references, and staleness.
Canonical resolution: This is the Claude Code variant. When both plugin-claude-code and plugin-claude-cowork are loaded in the same session (most common in Claude Desktop), bare /audit config resolves to this skill — aria-knowledge (Code) is the canonical owner of all 24 dual-port skills per ADR-094 §Part 1. The Cowork variant is namespaced-only: /aria-cowork:audit-config.
Before Step 0 — runtime self-correction. Check whether the Bash tool is available in this session. If Bash is NOT available (you are running in Claude Cowork or another non-Code runtime), this invocation reached the wrong variant for the runtime. Do not ask — redirect. Announce it in one line, then use the Skill tool to invoke aria-cowork:audit-config with the same arguments the user provided, and do not run this skill's steps:
↪️ Redirecting to
/aria-cowork:audit-config— you invoked the aria-knowledge (Code) variant, but you are running in Claude Cowork or another non-Code runtime.This variant scans local files via Bash + Agent for sub-audits and stats
.claude/settings.local.json, none of which are reachable here. For the Cowork-native variant (audits CLAUDE.md + CONFIG.md + plugin manifests reachable from the attached knowledge folder), use/aria-cowork:audit-config.
⛔ The redirect is unconditional — every mode including auto, and no opt-out. Reaching this variant under that condition is always a mis-invocation, so there is nothing for the user to decide. Design record: docs/superpowers/specs/2026-08-28-runtime-gate-auto-redirect-design.md (D2 auto-redirect, D3 no escape hatch, D6 announce-don't-swap-silently).
If Bash is available, proceed to Step 0.
Read ~/.claude/aria-knowledge.local.md and extract knowledge_folder and audit_cadence_config. 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 knowledge file operations in subsequent steps.
Read {knowledge_folder}/logs/config-audit-log.md.
Note the "Last Audit" date and calculate days since.
Determine how this skill was invoked:
/audit config, "audit configs", "check setup", etc.): Always run the full audit, regardless of how recently the last audit was. Skip directly to Step 2.Use agents in parallel to scan these areas:
Find all .claude/settings.local.json files in the current working directory. For each:
Bash(...) permission paths exist on diskmcp__* references against currently available MCP toolsnode_modules/)For each plugin referenced in settings files:
Check .claude/*.local.md files:
Find all CLAUDE.md files recursively in the current working directory.
Expand via Glob first, then issue Read calls for all found CLAUDE.md files in a single parallel tool-use block. Validation checks run in the main thread after reads complete.
For each file, check:
Two specific cascade shapes are common enough to warrant dedicated detection. Both follow the same structural pattern: one source-of-truth surface changes (a version bump, an enabled flag), and N downstream surfaces fail to update.
After a plugin/package release, version references typically touch 5+ surfaces: the manifest itself, the project's CLAUDE.md status header, any parent container CLAUDE.md table row, the project memory file's description + body + version-row, and the MEMORY.md index entry. Each is small; skipping any creates documentation drift.
Detection:
plugin.json) or package.json found, extract the canonical version string (e.g., v2.14.4).~/.claude/projects/.../memory/project_*.md files referencing the project's slug.v?\d+\.\d+\.\d+ near a mention of the project name.Report shape:
Version-stamp drift for {project-slug}:
Canonical: v{manifest-version} (from {manifest-path})
Stale surfaces:
- {surface-path} — stated v{stale-version}
- {surface-path} — stated v{stale-version}
When a binary config value flips (e.g., enabled=0 → enabled=1 in a deploy script, or a placeholder folder becomes a built artifact), N referenced docs may still describe the prior state.
Detection patterns to grep against CLAUDE.md / README.md / memory files:
| Phrase pattern (case-insensitive) | Inverse-state check |
|---|---|
| "currently disabled in {flag-name}" | Read the named flag/script; flag drift if value is now enabled |
| "NOT YET BUILT" / "(placeholder)" / "spec drafted, not yet built" | Check for plugin.json / package.json with non-zero version, or built artifact (e.g., *.plugin package) in the referenced folder |
| "pipeline built but not yet adopted" | Check whether the pipeline is enabled in the canonical config |
"still has older prototype" / "render-broken dist/ not regenerated" | Check git status / file mtimes of the referenced folder |
| "deferred to v{X.Y.Z}+" where X.Y.Z is now in the past | Check current manifest version against X.Y.Z |
Surfaces to scan are the same as 3a.1: CLAUDE.md files in the working tree, README.md files, and project memory files in ~/.claude/projects/.../memory/.
Conservative reporting: Both 3a.1 and 3a.2 are pattern-based heuristics, so false positives are possible. Report under Should Fix (not Critical) and present the specific surface + the specific contradicting phrase + the underlying state — let the user judge whether each is real drift or intentional historical note.
After 3a's pattern-based drift checks, run a structural check for config-schema gaps: any user-facing field documented in ${CLAUDE_PLUGIN_ROOT}/scripts/config.sh but missing from ~/.claude/aria-knowledge.local.md. This catches /setup discipline failures retroactively — if the wizard ever silently skipped surfacing a new field (e.g., the active_knowledge_surfacing gap that bit v2.15.1's first users), this audit cadence picks it up at the configured audit_cadence_config cadence (default 14 days).
Algorithm:
Enumerate known user-facing field names by parsing ${CLAUDE_PLUGIN_ROOT}/scripts/config.sh. Each known field is encoded as:
KT_FIELDNAME=$(sed -n '/^---$/,/^---$/p' "$KT_CONFIG" | grep '^fieldname:' | sed 's/^fieldname: *//')
Extract fieldname from each grep '^FIELDNAME:' literal. These are the canonical fields the user's config should contain. This enumeration is derived from config.sh at audit time, not a hardcoded list here — so it self-updates as new fields are added. For example, style_lookback_days, style_max_sessions, and style_audit_log (the /audit style sub-audit's tuning keys — default 90 days / 50 sessions / {knowledge_folder}/logs/style-audit-log.md) are already parsed in this shape, so a config missing any of them is flagged by this cascade without any change to this file.
For each known field, grep ~/.claude/aria-knowledge.local.md for ^{fieldname}:. Zero hits → missing.
Report: under a new Missing config fields subsection in Step 6's findings, list each missing field with:
KT_FIELDNAME=${KT_FIELDNAME:-default} line in config.sh; "empty" if no default)/setup to re-surface this field with [NEW] marker, OR hand-add {fieldname}: {default} to the config's frontmatter between hook-parsed entries."Classification: report under Should Fix (consistent with 3a.1/3a.2 conservative reporting). Missing-field detection has effectively zero false-positive rate (deterministic grep) but the FIX is user judgment — a missing field might be intentional (e.g., user removed it to fall back to default behavior).
Why this check exists (v2.15.2 Origin): the /setup wizard's Step 6 Advanced Options bundle is a soft instruction to Claude — it's not hook-enforced, so a fast/quiet /setup run can silently skip surfacing new fields. Step 3b runs against the canonical scripts/config.sh source-of-truth at audit cadence, surfacing gaps regardless of how the wizard got there. Pairs with /setup Step 7e (Self-Validation Audit) as the setup-time safety net.
Presence-only check: the field can be present with an empty value (e.g., critical_paths: with no value is valid). Step 3b checks for key presence, not non-empty value — empty fields are intentional in this schema (per CONFIG.md "Empty values: bare key: only").
Read the {knowledge_folder} directory structure and verify:
{knowledge_folder}/README.md tree matches actual file structure{knowledge_folder}/decisions/ — check if pending decisions in backlog have been waiting more than 2 audit cycles{knowledge_folder}/guides/ — verify subdirectory READMEs exist if subdirectories are presentResolve the knowledge-folder glob patterns via Glob first, then issue Read calls for all resolved files in a single parallel tool-use block. Structural verification runs in the main thread after reads complete.
Glob for PROGRESS.md files first, then Read all found files in a single parallel tool-use block.
For each PROGRESS.md file found in the current working directory:
For each configured project in KT_PROJECTS_LIST (from config), stat {project_root}/CODEMAP.md and {project_root}/STITCH.md. Compute age = (today - mtime).days. Classify per the v2.16.0 thresholds:
2 × codemap_staleness_threshold_days (default 14, so refusal zone = 28d). STITCH age > 2 × stitch_staleness_threshold_days (default 30, so refusal zone = 60d). Flag with "REFUSAL ZONE: {N} days; trigger-based loading (T-1/T-2/T-3/T-5/T-6) refuses this artifact until updated. Run /codemap update / /stitch verify {tag}."projects_list but no CODEMAP.md found. Flag with "no CODEMAP for {tag} — consider /codemap create."Skip projects whose project_root directory doesn't exist (stale projects_list entries — surface as a separate config-drift finding under "Should Fix").
Present results organized by severity:
Output policy: emit every severity section defined in the format below, even when all sections resolve to "None". Zero-finding audits are informational signals that the audit actually ran the checks — do not collapse the structured report into a one-line "no issues" summary. "Healthy (no issues)" should always list the areas that passed cleanly, not be omitted even when all four severity sections are empty.
## Config & Docs Audit Results (YYYY-MM-DD)
**Last audit:** YYYY-MM-DD (N days ago)
**Files scanned:** X config files, Y CLAUDE.md files, Z knowledge files
### Critical (blocks work or causes errors)
- [list items or "None"]
### Should Fix (drift that will cause confusion)
- [list items or "None"]
### Low Priority (cleanup, nice-to-have)
- [list items or "None"]
### Healthy (no issues)
- [list areas that passed cleanly]
STOP here. Do NOT fix anything automatically.
Present findings and ask the user which items to fix. Only proceed with fixes after explicit approval. For each approved fix, apply the change and confirm.
If there are no issues, say so clearly:
"All configs and docs are healthy. No drift detected."
After completing any approved fixes:
{knowledge_folder}/logs/config-audit-log.md:## Last Audit
- **Date:** YYYY-MM-DD
- **Result:** [describe outcome — e.g., "No issues found" or "Fixed N items — brief description"]
Move the previous "Last Audit" entry to "Previous Audits".
{knowledge_folder}/.| Category | Examples |
|---|---|
| Config drift | Broken paths, stale permissions, ghost configs, outdated MCP refs |
| Doc staleness | Version mismatches, missing file references, line number rot |
| Context drift | Team roster changes, project status gaps, PROGRESS.md staleness |
| Structure issues | README not matching actual files, orphaned docs, missing cross-refs |
| Release-state cascade | Version-stamp ripple (one surface bumped, siblings stale); adoption-state phrases that contradict the underlying flag/manifest/artifact state |
What SKILL.md sets; muted values are Claude Code's defaults
40 skills in this plugin
/aria-assistMorning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I do today across my products", or when the launchd job fires it headless. Two modes - `generate` (headless: read facts, deep-review ACTIVE projects, apply logged light writes, write the dated digest + per-project PM-REVIEW.md) and `review` (interactive: load today's digest, walk proposals, execute approved ones). Roster comes from projects_list; settings from pm_* keys in aria-knowledge.local.md. (Claude Code variant — full scheduler path. Other ports run manual-only generate/review.)/ask/ask — Query-Driven Knowledge CreationResearch a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says '/ask', 'ask about', 'research and save', 'I want to learn about', 'what is the pattern for'. Skips backlogs — the user reviews the answer in real-time before saving. (Code port — ADR-094.)/audit/audit — Audit Family DispatcherUmbrella for the audit family — the canonical way to run every sub-audit: '/audit knowledge' (scan memory and plans for extractable knowledge, backlog-to-promotion review), '/audit config' (CLAUDE.md/settings/docs drift and staleness), '/audit style' (mine session-log history for revealed working-style rules), '/audit usage' (value/ROI report over your own corpus), '/audit rules' (mine your distilled corrections for promotable standing rules), or '/audit share' (batch-review personal knowledge for promotion to the team-shared tier). Trigger: '/audit', 'run an audit', 'knowledge audit', 'config audit', 'audit my style', 'audit my rules', 'usage report', 'share knowledge', 'promote to team'./audit-knowledge/audit knowledge — Knowledge Repository AuditInternal facet of the audit family — invoke via '/audit knowledge'. Scans Claude memory and plans for extractable knowledge (backlog-to-promotion review). (Code port — ADR-094.)/audit-rules/audit rules — User-Rule Mining Sub-AuditMine your distilled knowledge corpus — memory feedback rows, rules backlogs, always-on indexes — for recurring corrections that deserve promotion to numbered standing rules. Clusters by theme, verifies every quote at its source file, ranks by cross-session recurrence (at least 2 distinct sessions), and writes a rule ONLY on explicit approval. Opt-in. Trigger: '/audit rules', 'mine my corrections', 'promote my rules', 'audit my rules'./audit-share/audit share — Batch-Review Personal Knowledge for Team SharingInternal facet of the audit family — invoke via '/audit share'. Batch-reviews personal knowledge for promotion to the team-shared _project-knowledge/ tier; per-item opt-in, requires the shared-knowledge config.npx claudepluginhub mikeprasad/aria-knowledge --plugin aria-knowledgeOther plugins' skills for the same job