/panoply:secret-scanfrom panoply
Scans staged changes, working tree, git history, or remote repos for leaked secrets using betterleaks, then triages findings into concrete fixes: rotate, purge, or allowlist.
Ships in panoply. 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.
Use this before a commit or push, when a diff touches config or credentials, when the user asks whether a repo has leaked secrets, or when onboarding a repo you did not write. It drives the betterleaks CLI. It never reimplements detection with regexes of its own.
Run betterleaks --version. If it is missing, say so and give the install line for the platform. Do not install it unasked:
brew install betterleaksgo install github.com/betterleaks/betterleaks/v2@latestdocker run --rm -v "$PWD:/repo" ghcr.io/betterleaks/betterleaks:v2 fs /repoIf gitleaks is installed and betterleaks is not, offer it as the fallback (gitleaks git --redact) and say which one you ran.
| Situation | Command |
|---|---|
| About to commit | git diff --cached --no-ext-diff --no-textconv --no-color --src-prefix=a/ --dst-prefix=b/ | betterleaks stdin --git-diff --redact --exit-code=2 |
| Uncommitted edits | the same, with git diff in place of git diff --cached |
| Working tree | betterleaks fs . --redact |
| Full git history | betterleaks git . --redact |
| A remote repo | betterleaks <https-url> --redact (fetches full history into a temp bare repo; say so before running) |
Always pass --redact. A secret must never reach your output, a report file, an issue, or a commit message. For machine-readable output, add -o - (JSON on stdout) and read findings[]: rule_id, file, line, commit, and the redacted match.
Run the pipeline with set -o pipefail and pass --exit-code=2. By default, findings and fatal errors both exit 1, and this flag separates them: 0 means no findings, 2 means findings, and anything else is a scan error. Report an error as an error, never as clean. In JSON, a scan status of incomplete (skipped files, permission errors) is partial coverage, so say so.
-v / --validate contacts the credential's provider to check whether it is live. That is a network call carrying the secret, so ask first. Offer it when a finding looks real, and don't run it by default. -a / --analyze also resolves identity and permissions, so it needs the same consent.
Classify every finding into exactly one bucket:
git filter-repo) rewrites history and needs a force-push, which is the user's decision. Never run it yourself.betterleaks:allow inline comment, or a .betterleaksignore entry from betterleaks fingerprint. Never allowlist a value you could not confirm is fake.One line per finding: path:line — rule_id — bucket — action. The redacted match is optional; the raw secret is never shown. End with exactly one line:
[secret-scan: <target> — N findings (L live, H history, F fixture/false) — exit <code>]
If there were zero findings, say which target and command ran. A clean staged-diff scan says nothing about history.
--validate, --analyze, or betterleaks revoke without explicit consent.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fordaaaa/panoply --plugin panoply16 skills in this plugin
/brig-builderProportional executor. Small verified diffs, plan only when warranted. Use for simple implementation tasks./brig-investigatorRead-only explorer. Brig first, direct read as fallback. Locates symbols and impact without editing. Use for "where is this" questions./brig-reviewerProportional diff verifier. Checks correctness, scope, and verification evidence. Use for quick diff review./cavemanRewrite internal output (subagent reports, background status, scratch artifacts) into a compressed, telegraphic register that cuts token usage. Never applies to the end user's final message.Other plugins' skills for the same job