agent-diversity-review
CommandRun the Agent Diversity Review gate and emit the result table
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/agent-skills
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.
Agent Skills — agent-neutral autonomous product-building OS for 32+ AI coding tools. 23 skill categories · 28 agents · 149 reference docs · 37 platform variants. One-line prompts → deployed products on Cloudflare Workers.
Run the Agent Diversity Review gate and emit the result table
Report the Claude control-plane environment (auth mode, tooling, connectors, resolved target). Fires when you need to confirm the…
Bring ANY repo into compliance with the shared Claude control plane so Claude Code on the web can run /ship autonomously.
Reconcile the Cloudflare agent fabric: official skills, API MCP, MCP Portal candidates, AI Search, Secrets Store, Dynamic Routes,…
Scaffold a new spawnable specialist agent def and register it in the agent taxonomy
Audit whether user-visible changes in the current session have matching CHANGELOG.md entries; report MISSING with suggested…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.