handle-secrets

handle-secrets is a skill for Claude Code from cboone/agent-harness-plugins. It costs 53 tokens per session (711 once invoked), scanned A, original, MIT.

A set of guidelines for safely handling API keys, tokens, and passwords that users provide to command-line tools.

In plain words
What is it for?
Use it when building or reviewing CLI tools that accept credentials, choosing how users enter them, and separating secret storage from ordinary settings.
Why use it?
It helps prevent secrets from appearing in shell history, process listings, logs, or error messages.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the handle-secrets plugin — 1 skill shipped together

Good fit Use it when building or reviewing CLI tools that accept credentials, choosing how users enter them, and separating secret storage from ordinary settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cboone/agent-harness-plugins/handle-secrets
Install

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.

Any agent
npx skills add cboone/agent-harness-plugins --skill handle-secrets
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code.

Or install handle-secrets, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for handle-secrets

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/handle-secrets/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/handle-secrets)
Your own site
<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.

agentmods 80×15 button for handle-secrets

Your own site · 80×15
<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>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash d3fb6df1208a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/handle-secrets/skills/handle-secrets/SKILL.md · 69 lines

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

  1. Never accept secrets as command-line arguments - Arguments are visible via ps aux, recorded in shell history, and captured by audit logs
  2. Make the secure path the default - Users who do nothing special should get the safest behavior
  3. Separate config from credentials - Non-sensitive settings and secret material belong in different files
  4. Mask secrets in all output - Debug logs, error messages, HTTP traces, and verbose output must redact secret values
  5. 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

  1. Quick reviews: Check against references/checklist.md
  2. Choosing an input method: Read references/security-hierarchy.md
  3. Designing credential flows: Read references/design-patterns.md
  4. Avoiding known pitfalls: Read references/anti-patterns.md
  5. Language-specific code: Read references/language-libraries.md

Read the full file on GitHub · 69 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · +1 lines · +18 tokens per session d3fb6df1208a
  2. 2mo ago Changed · -5 lines · -62 tokens per session ff6f8b0f1c47
  3. 3mo ago First seen · 73 lines · 97 tokens per session scan A f1afe2c48b94

Subscribe to this mod's changes

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.

Related

handle-secrets compared with skills from other repositories

handle-secrets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
handle-secretscboone/agent-harness-pluginsSkill35d agoMITA53Claude Code
chat-complex-documentsvellum-ai/vellum-assistantSkill1.5k5d agoMITA90Claude Code, Codex
tui-migrate-setupwarpdotdev/warpSkill66k2d agoAGPL-3.0B75Claude Code, Codex
agent-qa-testingvibeeval/vibecosystemSkill55419d agoMITA58Claude Code, Codex
bootstrap-prdjoshukraine/dotfilesSkill4307d agoMITA25Claude Code
sync-local-reposvinta/hal-9000Skill144yesterdayMITA38Claude Code, Codex
talk-stage1-extractFlorianBruniaux/claude-code-pluginsSkill475d agoMITA64Claude Code