Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sawrus/agent-guides --skill secret-detectiongit clone --depth 1 https://github.com/sawrus/agent-guidesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sawrus/agent-guides/secret-detection)<a href="https://agentmods.dev/skills/sawrus/agent-guides/secret-detection"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/secret-detection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sawrus/agent-guides/secret-detection"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/secret-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Tool Misuse · line 161 Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.00616 |
| Opus 5.5 | $0.00021 | $0.00246 |
| Sonnet 5.5 | $0.00010 | $0.00123 |
| Haiku 4.5 | $0.00005 | $0.00062 |
Grade A, and why
secret-detection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Secret detection and leak response
1. Scan
gitleaks dir . --redact --report-format json --report-path /tmp/gitleaks.json # working tree
gitleaks git . --redact --log-opts="--all" # full history
Use --redact so the output does not print the secret again.
2. Triage each hit
- Open the file and line. Decide: real secret, test fixture, or false positive.
- A test fixture or false positive goes into
.gitleaks.tomlas an allowlist entry with a path or a regex and a comment with the reason. Do not allowlist a whole directory of source code. - A real secret is a leak, even if the branch was never merged. Go to step 3.
3. Respond to a real leak
- Tell the user at once: which secret, where, and since which commit.
- Rotate first. Ask the user first, because revoking the old value can break running services. Create the new value in the secret store, deploy it, then revoke the old one.
- Check the provider audit log for use of the old value between the leak commit and the revocation.
- Remove the value from the code and read it from the environment or the secret store.
- Rewrite history only if the user asks:
git filter-repo --replace-text <file>needs a force push and every clone to re-clone. Rotation is required either way; history rewrite does not undo the leak.
4. Prevent the next leak
- Add the pre-commit hook:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
- Add a CI job that fails on a hit:
- GitLab: include the
Jobs/Secret-Detection.gitlab-ci.ymltemplate, or rungitleaks git . --redact --log-opts="$CI_MERGE_REQUEST_DIFF_BASE_SHA..HEAD"in a job. - GitHub: run
gitleaks git . --redactin a job, or enable push protection in the repository settings.
- GitLab: include the
- Add
.envand key file patterns (*.pem,*.key) to.gitignore.
5. Done
- The full-history scan has no untriaged hits.
- Every real secret is rotated, and the old value is revoked.
- Pre-commit and CI run the scan.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -135 lines · +21 tokens per session 3cd77e83abb1
- 3mo ago First seen · 191 lines · 31 tokens per session scan A 73c39680eea1
secret-detection is a skill published in the GitHub repository sawrus/agent-guides (21 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 616 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
secret-detection compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| secret-detectionsawrus/agent-guides | Skill | 21 | today | MIT | A | 52 | Claude Code, Codex |
| idea-refineaddyosmani/agent-skills | Skill | 122k | 7d ago | MIT | A | 75 | Claude Code |
| agent-framework-azure-ai-pysickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 24 | Claude Code |
| apify-integration-developmentsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 25 | Claude Code |
| ai-image-generation-studiosickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 30 | Claude Code |
| aws-cdk-developmentsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 24 | Claude Code |
| azd-deploymentsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 37 | Claude Code |