/compass:harden [optional: -- <cmd> to sandbox-test a specific command]from compass
Runs a five-step security sweep before shipping: secrets scan, MCP supply-chain pins, install drift, release provenance, and untrusted code sandbox. Use before opening a PR.
Ships in compass. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run each command in sequence. Stop on a non-zero exit and fix the finding before proceeding. All five must pass before the branch is considered hardened.
compass scan --stagedScan the staged diff for secrets at the commit boundary.
compass scan --staged
Exits 0 (clean) or 1 (secrets found). Fix: remove the secret, rotate the
credential, then re-stage. Add an # allowlist secret comment ONLY for
confirmed test fixtures — never real credentials.
scripts/check-mcp.shVerify every auto-installed MCP server is pinned to an exact version and that
no @latest float or shell-injection marker has crept in.
bash scripts/check-mcp.sh
Exits 0 (pinned + clean) or non-zero (floating version or injection marker).
Fix: pin the version in mcp/servers.json and re-run. (setup-mcp.sh runs this
same audit as a pre-flight, and compass doctor includes it.)
compass driftCheck that the installed ~/.claude config still matches this repo's source.
Catches hand-edited copies, stale hooks, and non-executable guardrail scripts.
compass drift
Exits 0 (in sync) or non-zero (drift detected). Fix: re-run quickstart.sh
or remove the hand-edited file and let the install re-link it.
compass verifyVerify the latest release tarball's keyless SLSA attestation. Requires gh.
compass verify
Exits 0 (attestation valid), 77 (gh lacks attestation support — skip), or non-zero (attestation missing or invalid). A 77 is a safe skip on old gh versions; anything else is a provenance gap to investigate.
compass sandbox -- <cmd>Run any untrusted command inside a real OS sandbox (no network, writes confined to cwd/tmp via bwrap/firejail/sandbox-exec). Required before executing code fetched from external sources.
compass sandbox -- <cmd>
Exits 0 (ran confined), 2 (usage error — supply a command), or non-zero if the sandboxed command itself fails. If no backend is available the CLI refuses to run the command unconfined — install bwrap or firejail first.
compass scan --staged should also be wired as a pre-commit hook
(compass scan --staged in .git/hooks/pre-commit) for continuous coverage.compass scan, compass verify) and drift detection (compass drift)
are also surfaced in compass dashboard for a fleet-wide view./security-review — it gates the mechanical
checks. Run /security-review on the diff for human-judgment findings.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
harden, security-sweep, secrets-scan, supply-chain-pins, install-drift, sandbox
9 skills in this plugin
/bootstrap-agent-configGenerate a high-quality project CLAUDE.md and AGENTS.md by inspecting the current repository. Use when a repo has no agent config, when onboarding a new project, or when the user asks to "set up Claude/Codex for this repo" or "write a CLAUDE.md". Detects languages, build/test commands, and structure, then drafts config grounded in what's actually there./cost-sentinelSpend/cache watchdog — reads the Anthropic Admin API usage report for the last 24h and flags per-key spend over a limit, always-on keys (active 7 of 7 days), low cache-read ratio, and keys not in an allowlist of known consumers. Use weekly on a schedule or on demand when spend looks off. Read-only; the deterministic script decides, you only summarize./morning-triageDiscovery for an autonomous loop — find this turn's work instead of being handed it. Reads what changed since the last run (failed CI, new issues, merged commits), judges what's actually worth acting on, writes findings to a durable state file, and hands each off to the SDLC loop with a stop-condition. Use as the first move of a scheduled loop, or by hand to plan a session. Read-only on code; never edits, opens PRs, or merges./pr-shepherdTake every open PR end-to-end — diagnose failing checks, classify them (real defect vs mechanical vs environmental), fix the mechanical ones on the PR branch, re-verify, and stop at the merge gate. Use on demand ("handle the open PRs") or on an interval via /loop (e.g. "/loop 15m /pr-shepherd"). Merges only when the human has granted merge authority in the current session; otherwise reports ready-to-merge./routeDetect the work type of a task or diff and dispatch the right specialist review/agent. Use when you're about to review or implement and want the correct domain reviewer (UI/design, API/devex, infra, docs, core) instead of a generic pass. The local mirror of the SDLC Classifier + domain-routed reviewers./systematic-debuggingUse when something is broken — a failing test, panic, stack trace, error log, or wrong behavior whose cause isn't obvious. Reproduce it, form a hypothesis, PROVE the cause before changing code, then make the minimal root-cause fix and guard it with a test. For deep cases, hand off to the debugger subagent.npx claudepluginhub dshakes/compass --plugin compassOther plugins' skills for the same job