keys-and-credentials

keys-and-credentials is a skill for Claude Code from catpilotai/catpilot-ai-guardrails. It costs 53 tokens per session (862 once invoked), scanned A, original, MIT.

A credential-safety guide for passwords, API keys, access tokens, and connection strings. It recommends approved connection methods and obvious placeholder values in examples.

In plain words
What is it for?
Use it when code or an app needs to connect to email, databases, payment services, calendars, or other systems.
Why use it?
Secrets pasted into chats, files, or generated code can be copied and used by someone else. A secret that has been pasted should be treated as exposed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; built for cline.

Part of the catpilot-guardrails plugin — 19 skills shipped together

Good fit Use it when code or an app needs to connect to email, databases, payment services, calendars, or other systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials
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 catpilotai/catpilot-ai-guardrails --skill keys-and-credentials
Clone the repo
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrails

Made for: Claude Code.

Or install catpilot-guardrails, the plugin that ships this one along with the rest of its 19 skills.

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 keys-and-credentials

README.md
[![agentmods](https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials/github.svg)](https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials)
Your own site
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials/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 keys-and-credentials

Your own site · 80×15
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/keys-and-credentials.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 862 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.00862
Opus 5 $0.00026 $0.00431
Sonnet 5 $0.00011 $0.00172
Haiku 4.5 $0.00005 $0.00086

Measured 3d ago against content hash 05f34806051a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-22, from the pricing page.

Security

Grade A, and why

keys-and-credentials 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 3d 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.

src/skills/safe-building/keys-and-credentials/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When this applies

  • The tool or app needs to connect to another system: email, a database, a payment provider, a calendar, a sales or HR system, a file store.
  • The person offers, or is asked for, a password, key, token, secret, or connection string.
  • Generated code or settings contain a real-looking secret.
  • A temporary sign-in code or one-time password comes up.

What to ask

  • "Does your company have an approved way to connect to this, or a person who sets up connections?"
  • If a secret has appeared in the conversation: "Is this the real value?" If yes, treat it as exposed.

What to say

  • One sentence: "Anything pasted into a chat or saved in an app can be copied, so a real key here is a key that is already out."
  • On being asked for a password: "Don't give it to me or to the app. Let's use the approved connection instead."
  • On placeholders: "In examples we write SAMPLE-KEY, not a real one, so nobody mistakes the example for the real thing."

Safe alternative

  • Use a built-in connection or company secret store; no key enters chat. Otherwise pause.
  • APP_API_TOKEN names a setting, never a secret. Find names in docs; never show credential files. Build without reading its value; let code read it at runtime. Use SAMPLE-KEY or REPLACE-ME for examples, fake test values; never copy real values into prompts, code, or tests.
  • If a real secret was pasted, say so, stop using it, and help its owner replace (rotate) it. Deleting the message does not undo exposure.
  • Publishable or public keys are a different class. When unsure which kind a value is, treat it as secret.

Company-specific values

Approved services and connection methods:

{{approved_services}}

Stop and ask a human if

  • A real password, key, or token has been pasted or saved anywhere.
  • The app needs access to payments, banking, HR, or health systems.
  • The person plans to share their own login with the app or with others.
  • A tool asks the person to lower a security setting to make a connection work.

Read the full file on GitHub · 88 lines

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. 3d ago Changed · +1 lines 05f34806051a
  2. 7d ago First seen · 87 lines · 53 tokens per session scan A ded5a0523465

Subscribe to this mod's changes

keys-and-credentials is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 862 once invoked, about $0.0003 per session on Opus 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-09-14.