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 slbug/claude-ruby-grape-rails --skill secrets-scangit clone --depth 1 https://github.com/slbug/claude-ruby-grape-railsWrote 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/slbug/claude-ruby-grape-rails/secrets-scan)<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/secrets-scan"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/secrets-scan/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/slbug/claude-ruby-grape-rails/secrets-scan"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/secrets-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00036 | $0.00483 |
| Opus 5.5 | $0.00014 | $0.00193 |
| Sonnet 5.5 | $0.00007 | $0.00097 |
| Haiku 4.5 | $0.00004 | $0.00048 |
Grade B, and why
rb:secrets scanned grade B with 1 finding 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 2mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Linux: `sudo dnf install betterleaks` What it actually says
Secrets Scan
Detect leaked secrets in your codebase using betterleaks.
Requirements
Requires betterleaks to be installed:
- macOS:
brew install betterleaks - Linux:
sudo dnf install betterleaks - Or download from the betterleaks releases page
Usage
/rb:secrets # Scan current directory
/rb:secrets app/ # Scan specific path
/rb:secrets --baseline leaks.json # Use baseline to ignore known issues
/rb:secrets --validate # Validate secrets against live APIs
/rb:secrets --git # Scan git history
What It Scans
- API keys (GitHub, AWS, Stripe, etc.)
- Database connection strings
- Passwords and tokens
- Private keys
- Environment files (.env)
- Configuration files
Iron Laws
- Never commit
.envfiles - Add to.gitignore - Use Rails credentials -
Rails.application.credentials - No secrets in code - Use environment variables
- Rotate exposed keys immediately - If found, rotate them
Output
Returns findings with severity:
## Secrets Scan Results
### Critical
- config/database.yml: Contains production password
- .env.staging: AWS access key exposed
### High
- app/services/stripe.rb: Hardcoded API key
### Recommendations
- Move secrets to Rails credentials
- Add .env* to .gitignore
- Rotate exposed API keys
Configuration
Create .betterleaks.toml in project root for custom rules:
[[rules]]
id = "custom-api-key"
description = "Custom API key pattern"
regex = '''api-key-[a-zA-Z0-9]{32}'''
keywords = ["api-key"]
[[allowlists]]
description = "Test fixtures"
paths = ['''test/fixtures/.*''']
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.
- 2mo ago First seen · 81 lines · 36 tokens per session scan B d6194089fb51
rb:secrets is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed yesterday), licensed MIT. It adds 36 tokens to every session and 483 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
rb:secrets compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rb:secretsslbug/claude-ruby-grape-rails | Skill | 7 | yesterday | MIT | B | 36 | Claude Code |
| omh-github-issue-intakerlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 25 | Claude Code |
| omh-commit-pr-authoringrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 19 | Claude Code |
| git-wrapupcyanheads/obsidian-mcp-server | Skill | 722 | 20d ago | Apache-2.0 | A | 109 | Claude Code |
| git-flowWrongStack/WrongStack | Skill | 446 | today | MIT | A | 110 | Claude Code, Codex |
| core-workflowtravisjneuman/.claude | Skill | 115 | 2d ago | MIT | A | 52 | Claude Code |
| pre-commit-auditflonat/flonat-research | Skill | 155 | 16d ago | MIT | A | 100 | Claude Code |