← ClaudeAtlas

agentsauditlisted

Audit agent infrastructure — token overhead, rule triggers, AGENTS.md health, Capability-over-Structure adherence, stale references. Read-only, suggest-only, never auto-apply.
event4u-app/agent-config · ★ 7 · AI & Automation · score 84
Install: claude install-skill event4u-app/agent-config
# /agents audit Read-only health check of the **agent layer** — `AGENTS.md` (and tool stubs), rules, skills, and pointer/anchor integrity. Measures token overhead, surfaces duplicate triggers, verifies the Thin-Root contract, and flags stale references. **Suggest only — never auto-apply.** Fixes happen via `/agents optimize` (file refactor) or rule-/skill-level commands. **Source of truth:** `.agent-src.uncondensed/` — never read or edit `dist/agent-src/` or `.augment/` directly. ## Steps ### 1. Measure baseline Count lines affecting token consumption: ```bash # Always-loaded (per chat) for f in .agent-src.uncondensed/rules/*.md; do type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/') [ "$type" = "auto" ] && continue lines=$(wc -l < "$f"); echo "always | $lines | $(basename "$f")" done | sort -t'|' -k2 -rn agents=$(wc -l < AGENTS.md); echo "always | $agents | AGENTS.md" # Auto-loaded rules for f in .agent-src.uncondensed/rules/*.md; do type=$(head -5 "$f" | grep 'type:' | sed 's/.*"\(.*\)"/\1/') [ "$type" != "auto" ] && continue lines=$(wc -l < "$f"); echo "auto | $lines | $(basename "$f")" done | sort -t'|' -k2 -rn # Skills (top 20 by size) for f in .agent-src.uncondensed/skills/*/SKILL.md; do name=$(echo "$f" | sed 's|.agent-src.uncondensed/skills/||;s|/SKILL.md||') lines=$(wc -l < "$f"); echo "$lines | $name" done | sort -rn | head -20 ``` Report totals (always + auto + skills + AGENTS.md). ### 2. Check rules - **Frontmatter**: every rule