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 cboone/agent-harness-plugins --skill handle-secretsgit clone --depth 1 https://github.com/cboone/agent-harness-pluginsWrote 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/cboone/agent-harness-plugins/handle-secrets)<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/handle-secrets"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/handle-secrets/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/cboone/agent-harness-plugins/handle-secrets"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/handle-secrets.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.00053 | $0.00711 |
| Opus 5.5 | $0.00021 | $0.00284 |
| Sonnet 5.5 | $0.00011 | $0.00142 |
| Haiku 4.5 | $0.00005 | $0.00071 |
Grade A, and why
handle-secrets 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Handle Secrets
Best practices for handling secrets that users pass to your CLI tool (API keys, tokens, passwords), not secrets used during development.
Core Principles
- Never accept secrets as command-line arguments - Arguments are visible via
ps aux, recorded in shell history, and captured by audit logs - Make the secure path the default - Users who do nothing special should get the safest behavior
- Separate config from credentials - Non-sensitive settings and secret material belong in different files
- Mask secrets in all output - Debug logs, error messages, HTTP traces, and verbose output must redact secret values
- Warn loudly about insecure behavior - If users opt into something dangerous, tell them explicitly
Security Hierarchy (Safest to Most Dangerous)
| Method | Safety | Use when |
|---|---|---|
| OS keychain / credential helper | Safest | Persistent storage for interactive users |
Secret references (op://, vault URIs) |
Safe | Storing pointers instead of secrets |
| Stdin / pipes / file descriptors | Safe | Automation and scripting |
| Interactive TTY prompt | Safe | Human users at a terminal |
| Config files (0600 permissions) | Acceptable | Persistent storage without keychain |
| Environment variables | Acceptable | CI/CD pipelines and containers |
| Command-line arguments | Never | - |
Workflow
- Quick reviews: Check against
references/checklist.md - Choosing an input method: Read
references/security-hierarchy.md - Designing credential flows: Read
references/design-patterns.md - Avoiding known pitfalls: Read
references/anti-patterns.md - Language-specific code: Read
references/language-libraries.md
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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 · +1 lines · +18 tokens per session d3fb6df1208a
- 2mo ago Changed · -5 lines · -62 tokens per session ff6f8b0f1c47
- 3mo ago First seen · 73 lines · 97 tokens per session scan A f1afe2c48b94
handle-secrets is a skill published in the GitHub repository cboone/agent-harness-plugins (3 stars, last pushed 5d ago), licensed MIT. It adds 53 tokens to every session and 711 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-31.
handle-secrets compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| handle-secretscboone/agent-harness-plugins | Skill | 3 | 5d ago | MIT | A | 53 | Claude Code |
| chat-complex-documentsvellum-ai/vellum-assistant | Skill | 1.5k | 5d ago | MIT | A | 90 | Claude Code, Codex |
| tui-migrate-setupwarpdotdev/warp | Skill | 66k | 2d ago | AGPL-3.0 | B | 75 | Claude Code, Codex |
| agent-qa-testingvibeeval/vibecosystem | Skill | 554 | 19d ago | MIT | A | 58 | Claude Code, Codex |
| bootstrap-prdjoshukraine/dotfiles | Skill | 430 | 7d ago | MIT | A | 25 | Claude Code |
| sync-local-reposvinta/hal-9000 | Skill | 144 | yesterday | MIT | A | 38 | Claude Code, Codex |
| talk-stage1-extractFlorianBruniaux/claude-code-plugins | Skill | 47 | 5d ago | MIT | A | 64 | Claude Code |