agent-audit
Audit agents spawned in the current/last run against the agent-selection taxonomy
Batch-migrate every hardened MCP server in mcp-servers/ from its original source to its hardened counterpart in one sweep
> /plugin marketplace add heymegabyte/claude-skillsHow it fires
How this command gets triggered: by you, by Claude, or both.
/migrate-all-to-hardenedContext preview
What this command does when you run it.
Batch-migrate every hardened MCP server in mcp-servers/ from its original source to its hardened counterpart in one sweep
description: Batch-migrate every hardened MCP server in mcp-servers/ from its original source to its hardened counterpart in one sweep argument-hint: [--dry-run] [--skip=<csv>] [--continue-on-failure]
<!-- <SUBAGENT-STOP>: skip this skill when running inside a subagent. Meta-skills must not leak into spawned subagent contexts. --> <SUBAGENT-STOP/>
Iterates over every `~/.claude/mcp-servers/*-hardened-mcp/` directory and runs `/migrate-to-hardened <base-name>` on each in sequence. Writes happen to `~/.claude.json` one server at a time — sequential execution avoids write collisions.
**When to use** — after `/prune-mcp-tools` + `/audit-tool-surface` have been run on multiple servers and you want to cut them all over in a single pass. Requires each `<base-name>-hardened-mcp/` directory to already be built and reviewed.
**Inputs**
---
Extract from the invocation arguments:
`--dry-run` and `--continue-on-failure` may be combined (dry-run always wins — no real work happens).
Glob `~/.claude/mcp-servers/*-hardened-mcp/`. Collect every matching directory. For each, derive the `BASE_NAME` by stripping the `-hardened-mcp` suffix.
If no directories match:
No hardened MCP servers found. Expected: ~/.claude/mcp-servers/*-hardened-mcp/ Run /prune-mcp-tools on a server first to create a hardened version.
Exit 0 (not an error — nothing to do).
Remove any server from the list whose `BASE_NAME` (lowercased) appears in `SKIP_LIST`.
If `SKIP_LIST` is non-empty, print before the batch begins:
Skipping: {skip-list joined by ", "}Always print the plan before executing anything:
migrate-all-to-hardened — {N} server(s) queued
{optional: "DRY RUN — no changes will be made"}
{optional: "Skipping: stripe, github"}
Server queue:
1. stripe
2. bitwarden
3. github
...
Processing sequentially (writes to ~/.claude.json require serial execution).If `N == 0` after skip filtering:
All discovered servers are in the skip list. Nothing to migrate.
Exit 0.
---
For each server in the queue (indexed 1..N), execute the following block **sequentially** — wait for each to complete before starting the next.
────────────────────────────────────────────────────────────
[{index}/{total}] Migrating: {BASE_NAME}
────────────────────────────────────────────────────────────Invoke `/migrate-to-hardened {BASE_NAME}` (append `--dry-run` if `DRY_RUN` is true).
Capture the outcome: **PASSED** (exit 0) or **FAILED** (exit 1 or smoke-test failure).
Record the per-server result for the summary table:
If the server FAILED and `CONTINUE_ON_FAILURE` is false:
✗ FAILED: {BASE_NAME}
Stopping batch — {BASE_NAME} failed its smoke-test (or a pre-flight check).
Fix the failure, then re-run:
/migrate-to-hardened {BASE_NAME} ← fix this one first
/migrate-all-to-hardened --skip={already-migrated-csv} ← resume the rest
To skip failures and continue anyway:
/migrate-all-to-hardened --continue-on-failurePrint the summary table (partial — servers not yet attempted show as PENDING). Exit 1.
If the server FAILED and `CONTINUE_ON_FAILURE` is true:
⚠ FAILED: {BASE_NAME} — continuing (--continue-on-failure is set)Add to the failure list; continue to the next server.
✓ PASSED: {BASE_NAME} ({HARDENED_TOOL_COUNT} tools)---
After all servers have been processed (or after a fail-fast stop), print the summary table:
══════════════════════════════════════════════════════════════════
migrate-all-to-hardened — Summary
══════════════════════════════════════════════════════════════════
Server Status Tools Entry
────────────── ──────── ───── ──────────────────────────────────────────────────────────
stripe PASSED 12 ~/.claude/mcp-servers/stripe-hardened-mcp/mcp-server/dist/index.js
bitwarden PASSED 8 ~/.claude/mcp-servers/bitwarden-hardened-mcp/mcp-server/dist/index.js
github FAILED — (smoke-test failed: no response within 5s)
sentry PENDING — (not reached — batch stopped after github)
Total: {passed} passed · {failed} failed · {skipped} skipped · {pending} not reached
{if all passed and not dry-run:}
All servers migrated. Restart Claude Code to activate the hardened fleet.
{if any failed:}
Fix failing servers, then re-run with --skip={passed-csv} to migrate the rest.
{if dry-run:}
DRY RUN complete — no files were written or moved.
Run without --dry-run to execute.Status values in the table:
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
Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection, and a keep/lengthen/delete recommendation.
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