store-secret

Solid

Store secrets shared in chat into the cs session secret store. PROACTIVE - invoke immediately when the user shares API keys, passwords, tokens, or other credentials in their message; do not wait to be asked.

AI & Automation 30 stars 5 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

The user's message may contain sensitive credentials. Your task is to store any real ones in the session secret store — but this skill fires proactively and can misfire on a docs snippet, a redacted example, or a key-shaped string that is not a secret, so confirm there is a real secret before storing anything. ## Prerequisites This skill only works in a `cs` session. Check if `$CLAUDE_SESSION_NAME` environment variable exists: ```bash echo $CLAUDE_SESSION_NAME ``` If empty, inform the user that secrets storage requires a cs session and skip storage. Then warn that the credential is now sitting in the conversation history, suggest they store it themselves in a secure secret store (a password manager or the OS credential store) and rotate it if it is sensitive. NEVER write the value to a project file as a fallback. ## Process 1. **Identify secrets** in the message that triggered this skill, or in the earlier message the user is pointing at ("store that key I pasted"). Look for: - API keys (patterns like `sk-...`, `AKIA...`, `ghp_...`, `xox...`) - Passwords or passphrases - Tokens (JWT, Bearer tokens, access tokens) - Database credentials or connection strings - Any key=value pairs where the key contains: key, secret, password, token, auth, credential 2. **Skip placeholders** - Do NOT store obvious placeholders like: - `YOUR_API_KEY`, `<token>`, `xxx`, `***`, `[redacted]` - Example values from documentation If nothing survives this filter — every ...

Details

Author
hex
Repository
hex/claude-sessions
Created
8 months ago
Last Updated
3 days ago
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

secret-capture

Capture a secret from the user via a hidden-input dialog (or pull it from an existing store with --from) and route it to exactly one destination (1Password, macOS Keychain, GitHub secret, Cloudflare Workers secret, Coolify env var, n8n credential, a local .env file, a remote SSH file, or an age-encrypted box keystore) without the value ever appearing in any tool result, log, or chat transcript. Auto-triggers whenever the agent needs a new credential, API key, token, password, or secret to configure a service, onboard an integration, set up an MCP, or rotate an existing credential. Use this every time you're about to say "paste your key here" — instead, invoke this skill.

1 Updated 1 weeks ago
D1DX
Data & Documents Listed

secret-hygiene

Keep credentials out of source code and out of git. Use this skill WHENEVER writing, editing, or generating code that touches secrets of any kind — API keys, passwords, tokens, JWTs, private keys, connection strings, database URLs, webhook URLs, or deploy/SSH credentials — even when the user hasn't asked about security. Trigger it when adding config, writing deploy or automation scripts, wiring up a new service or SDK, creating a CLAUDE.md or README, or before proposing a git commit. Also use it when the user says a secret leaked, asks to scan a repo for exposed credentials, or wants a pre-commit hook. If a value looks like it could authenticate to something, this skill applies.

0 Updated 1 weeks ago
dimaad5017-dotcom
Code & Development Listed

secrets-guard

Prevent secrets from leaking into code, git history, logs, or client bundles — API keys, database credentials, tokens, private keys, and connection strings. Detects hardcoded secrets, guides correct secret management (env vars, secret managers), and sets up prevention (gitignore, pre-commit scanning). Use this skill whenever the user is handling API keys or credentials, setting up environment variables, connecting to external services, committing config, or asks about keeping secrets safe — even a casual "where do I put my API key?". Defensive only.

0 Updated yesterday
AL-JANEF