agent-audit
Audit agents spawned in the current/last run against the agent-selection taxonomy
Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection, and a keep/lengthen/delete recommendation.
> /plugin marketplace add heymegabyte/claude-skillsHow it fires
How this command gets triggered: by you, by Claude, or both.
/audit-cron-arcContext preview
What this command does when you run it.
Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection, and a keep/lengthen/delete recommendation.
name: audit-cron-arc description: Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection, and a keep/lengthen/delete recommendation.
Analyzes a completed or running `/loop` arc to determine whether it's still producing value or has hit saturation. Emits a markdown report with per-iteration table, ASCII trend chart, saturation verdict, and an actionable recommendation.
/audit-cron-arc /audit-cron-arc --cron-id=loop-1718643000
| Flag | Default | Description | |------|---------|-------------| | `--cron-id=<id>` | most recent CronCreate'd job | Loop job identifier to audit |
Scan files modified across all iterations via `git diff --name-only <start-sha>..<end-sha>`.
**Classify each modified file:**
| Bucket | File patterns | |--------|--------------| | DOCTRINAL | `rules/*.md`, `_router.md`, `prompt-cache.md`, `commands/*.md`, `skills/**/*.md` | | BUG-FIXING | `mcp-servers/*/src/index.ts`, `bin/validate*.mjs`, `rules/*-discipline.md` derived from incidents (check git log for "Principle #", "fix:", "patch:", "guard") | | META | `retrospectives/*.md`, `rules/audit-baselines/*.json`, `settings.json`, hook files |
**Assign arc type from file counts across ALL iterations:**
Emit arc type at report top. Example:
Arc type: BUG-FIXING (14 of 19 modified files match bug-fix patterns across iters 14–18)
---
1. **Resolve cron job** — if `--cron-id` omitted, read `~/.claude/loops/active.json`; pick highest `created_at`. 2. **Load task log** — call `TaskList` filtered by `cron_id` tag; sort by `iteration` asc. 3. **Compute per-iteration metrics:**
4. **Detect saturation curve — per arc type:**
**DOCTRINAL (LOC-based):**
**BUG-FIXING (seam-fork; LOC is NOT the primary signal):**
**MIXED:**
5. **Render report** (see Output format). 6. **Recommend — per arc type:**
**DOCTRINAL:**
**BUG-FIXING:**
**MIXED:**
# Cron Arc Audit — <cron-id> **Audited:** <timestamp> **Arc type:** <DOCTRINAL | BUG-FIXING | MIXED> ← always emit; gates thresholds below **Arc-type rationale:** <N of M modified files matched <pattern>; <brief reason>> **Iterations:** <N> **Total LOC delta:** <+X / -Y> **Total duration:** <HH:MM:SS> ## Per-Iteration Table <!-- For DOCTRINAL arcs: --> | Iter | Tasks | Files+ | LOC Δ | Tools | Duration | Trend | |------|-------|--------|-------|-------|----------|-------| | 1 | 4 | 3 | +210 | 7 | 2m14s | — | | 2 | 6 | 5 | +380 | 9 | 3m01s | ↑ | | 3 | 5 | 2 | +190 | 6 | 2m30s | ↓ | | 4 | 3 | 1 | +45 | 4 | 1m55s | ↓↓ | <!-- For BUG-FIXING arcs: add New Findings + Patched columns; LOC Trend column is informational only --> | Iter | Tasks | Files+ | LOC Δ | New Findings | Patched | Net | Seam | |------|-------|--------|-------|--------------|---------|-----|------| | 14 | 3 | 4 | +820 | 4 | 0 | +4 | fork | | 15 | 3 | 5 | +480 | 1134 | 0 | +1134| fork | | 16 | 3 | 3 | +170 | 581 | 1134 | -553| close| | 17 | 3 | 5 | +747 | 0 | 747 | -747| drain| | 18 | 3 | 6 | +310 | 0 | 0 | 0 | dry? | ## LOC-per-Iteration Trend (ASCII)
LOC 400 │ ██ 350 │ ██ 300 │ ██ ██ 250 │ ██ ██ 200 │ ██ ██ ██ 150 │ ██ ██ ██ 100 │ ██ ██ ██ 50 │ ██ ██ ██ ██ 0 └────────────────── I1 I2 I3 I4
## Verdict **<still-runway | converging | saturated>** <1-2 sentence rationale.> ## Recommendation **<keep-cron | lengthen-interval | delete-cron>** <What to do and why. If lengthen: suggest new interval. If delete: surface any remaining seam to tackle manually.>
CRON_ID="" for arg
14-category autonomous product-building OS for 32+ AI coding tools. One-line prompts → deployed products.
Repo: heymegabyte/claude-skills
Audit agents spawned in the current/last run against the agent-selection taxonomy
Run the Agent Diversity Review gate and emit the result table
Audit the rules/ directory for missing foundational principles; output gap list with priority and justification
Validate ~/.claude/settings.json hooks block — event names, file existence, executability, matcher syntax; --fix repairs common issues
Catch Resend-class bug (isError: false on HTTP 4xx/5xx) across all MCP server tool handlers
Healthcheck + drift detect + rotation-reminder across all MCP servers in ~/.claude/mcp-registry.json