agent-audit
Audit agents spawned in the current/last run against the agent-selection taxonomy
Unified supply-chain audit. Checks GitHub Actions SHA-pinning (`sha-pin:check`), package.json git+https deps (per `no-gitlab-megabytelabs-deps` semgrep), gitleaks scan, and trufflehog verified-only sweep. Surfaces any tag-mutable, git-URL, or secret-exposed surface. Per
> /plugin marketplace add heymegabyte/claude-skillsHow it fires
How this command gets triggered: by you, by Claude, or both.
/security-supply-chainContext preview
What this command does when you run it.
Unified supply-chain audit. Checks GitHub Actions SHA-pinning (`sha-pin:check`), package.json git+https deps (per `no-gitlab-megabytelabs-deps` semgrep), gitleaks scan, and trufflehog verified-only sweep. Surfaces any tag-mutable, git-URL, or secret-exposed surface. Per
name: security-supply-chain description: Unified supply-chain audit. Checks GitHub Actions SHA-pinning (`sha-pin:check`), package.json git+https deps (per `no-gitlab-megabytelabs-deps` semgrep), gitleaks scan, and trufflehog verified-only sweep. Surfaces any tag-mutable, git-URL, or secret-exposed surface. Per rules/ai-agent-security.md § Supply chain. argument-hint: "[project-dir]" user-invocable: true
One-command supply-chain audit per `rules/ai-agent-security.md` § Supply chain.
1. **GitHub Actions SHA-pinning** — `node ~/.agentskills/scripts/sha-pin-actions.mjs --check .github/workflows/*.yml`
2. **`package.json` git+https deps** — grep for `git+https://` patterns in `package.json` and `package-lock.json`.
3. **Gitleaks (working tree)** — `gitleaks detect --redact --verbose`.
4. **Trufflehog (verified-only)** — `trufflehog git file://. --only-verified --fail`.
# Run audit (exits 0 if clean, 1 if any check fails)
bash <(cat <<'AUDIT'
set -eo pipefail
cd "${1:-$PWD}"
echo "▸ 1. GitHub Actions SHA-pinning"
if compgen -G ".github/workflows/*.yml" >/dev/null; then
node ~/.agentskills/scripts/sha-pin-actions.mjs --check .github/workflows/*.yml
fi
echo "▸ 2. package.json git+https deps"
if [ -f package.json ]; then
if grep -nE '"git\+https://' package.json package-lock.json 2>/dev/null; then
echo " ✗ git+https deps found — see lint-doctrine § Package philosophy"
exit 1
fi
echo " ✓ no git+https deps"
fi
echo "▸ 3. Gitleaks (working tree)"
if command -v gitleaks >/dev/null; then gitleaks detect --redact --verbose; fi
echo "▸ 4. Trufflehog (--only-verified)"
if command -v trufflehog >/dev/null; then trufflehog git file://. --only-verified --fail; fi
echo "✓ Supply chain audit clean."
AUDIT
)Pass `--json` to emit a single uniform envelope per `rules/uniform-json-output.md`:
# Full envelope bash ~/.agentskills/bin/security-supply-chain.sh . --json # Pretty-print bash ~/.agentskills/bin/security-supply-chain.sh . --json | jq # Just the summary line bash ~/.agentskills/bin/security-supply-chain.sh . --json | jq -r '"pass:\(.summary.pass) fail:\(.summary.fail) skip:\(.summary.skip)"' # Fail-only filter — list failing checks with details bash ~/.agentskills/bin/security-supply-chain.sh . --json | jq '.checks[] | select(.status=="fail")' # CI gate — exit non-zero if any check failed bash ~/.agentskills/bin/security-supply-chain.sh . --json | jq -e '.summary.fail == 0' >/dev/null
Envelope shape: `{meta:{skills_root,project,timestamp,generated_at,git_sha}, checks:[{name,status,details}], summary:{pass,fail,skip,exit}}`. Human-readable report still prints to stderr in JSON mode, so `2>/dev/null` silences it while keeping the JSON on stdout.
The agentskills-distributed pre-push lefthook gate (`sha-pin-check` step) runs `--check` mode automatically on every push. This slash command is for on-demand audits + when adding new dependencies.
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