Secret Capture Skill
Description
Claude Code skill: capture a secret via hidden-input dialog and route it to 1Password, macOS Keychain, GitHub secrets, Cloudflare Workers, Coolify, n8n, or a .env file without the value ever appearing in any tool result, log, or chat transcript.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
secret-capture
A Claude Code skill (and standalone CLI) that captures a secret from you via a hidden-input dialog and routes it to exactly one destination, **without the value ever appearing in any tool result, log, or chat transcript**.
The problem this solves: agents routinely need to configure services with API keys and tokens. If you paste a secret into the chat or the terminal, it ends up in history, logs, and — with AI agents — the conversation transcript. `secret-capture` lets the agent prompt you for a secret via a native hidden-input dialog, pipe the value directly to the destination in a single subshell, and only return a reference string the agent can use later. The agent never sees the value.
How it works
Agent: "I need to store an OpenAI key in 1Password"
│
▼
bash capture.sh --target 1password --vault Personal --item openai-new --field credential
│
▼
osascript hidden-input dialog ← you type the secret here
│
▼
┌──────────── single subshell, value never leaves the pipe ────────────┐
│ │
│ dialog_capture │ adapters/1password.sh → op item create --- >/dev/null │
│ │
└───────────────────────────────────────────────────────────────────────┘
│
▼
Stdout: "op://Personal/openai-new/credential"
│
▼
Agent receives: a reference. Never the value.
Destinations supported (v1)
| Target | What it writes to | Requires |
|---|---|---|
1password |
A 1Password item (create or edit) | op CLI signed in |
keychain |
macOS login keychain | Built into macOS |
gh-secret |
GitHub Actions secret (repo / org / env) | gh CLI authed |
wrangler |
Cloudflare Workers secret | wrangler + Cloudflare auth |
coolify |
Coolify application env var (via REST) | Coolify instance |
Related Skills
Docker
---
DevOps Kubernetes
---
DevOps AWS Skills
AWS development with CDK best practices, cost optimization MCP servers, and serverless/event-driven architectu
DevOps Composio Split
Manage Split feature flags and experiments
DevOps **claude-code-router**
(25.3k ⭐) - Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interac
DevOps CLAUDE.md CI/CD Wiki
Community patterns for CLAUDE.md configuration in CI/CD pipelines.
DevOps