wire-secrets
Skill1 starsChanged 10 days agoMITView on GitHub
Use when the user wants to connect a project to their central secret vault — phrasings like "wire up secrets", "set up secrets for this project", "use the vault here", "get this project off .env", or "push these secrets to Vercel/GitHub/AWS". Covers the bundled `secret` CLI (a macOS Keychain vault for API keys).
- Reads credentials
In this repository14 other files it gives its agents.
- ai-text-detectorSkill
- code-demo-videoSkill
- course-videoSkill
- humanizerSkill
- react-router-reviewerSkill
- roastSkill
- security-scannerSkill
- seo-auditSkill
- sonarqube-triageSkill
- storm-researchSkill
- talking-head-motionSkill
- technical-reviewSkill
- update-docsSkill
- watchSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 15
If command -v secret finds nothing, install it from this skill's folder:
- Very specific: line 69
Before generating any new key, secret ensure <service>.
- Very specific: line 70
Never commit .env with live values.
- Very specific: line 71
After importing/rotating, run secret doctor to refresh live/dead status.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wiring a project to the secret vault
The secret CLI (bundled in this skill's bin/) centralizes API keys in the macOS Keychain,
with non-secret metadata in ~/.config/claude-secrets/registry.toml. This skill connects a
project to it. Core principle: reuse before regenerate — never create a new key for a
service that's already in the vault.
One-time install (macOS only — it uses the Keychain via security)
If command -v secret finds nothing, install it from this skill's folder:
mkdir -p ~/.local/bin ~/.config/claude-secrets
cp bin/secret ~/.local/bin/secret && chmod +x ~/.local/bin/secret # ~/.local/bin must be on PATH
cp bin/doctor.sh ~/.config/claude-secrets/doctor.sh
[ -f ~/.config/claude-secrets/registry.toml ] || cp registry.example.toml ~/.config/claude-secrets/registry.tomlSet CLAUDE_SECRETS_DIR to use a different config folder. Run secret help for every command.
Steps
- Scaffold the map. From the project directory:
It scanssecret init.env/.env.example, and for each secret-like var either (a) reuses an existing vault entry if the value already matches one, (b) imports a genuinely new value, or (c) maps a placeholder to the conventional vault name without importing junk. It writes a committable.secrets.map(var → vault-name). - Review the generated
.secrets.map. Fix any wrong guesses. Naming conventions: shared services get a bare name (resend,elevenlabs,firecrawl); per-project services get a namespace (openrouter/<project>,aws/<project>,clerk/<project>). AWS pairs are oneid:secretblob split viaaws/<project>|idand|secret. - Fill any gaps. For each var
secret initflagged as placeholder/missing, runsecret ensure <name>— it prints the vendor's create-URL if the key isn't stored yet. Store real values withsecret set <name>. Add the service toregistry.tomlsosecret ensureknows its create-URL andsecret doctorcan probe it. Confirm withsecret doctorthensecret list. - Run through the vault (no plaintext on disk):
Maps written bysecret run -- <the project's dev/build command>secret initare trusted automatically. Any other.secrets.map(one that came with a cloned repo, or one edited since you approved it) is refused until you review the vault names it requests and runsecret approve(it prompts on a terminal;--yesfor non-interactive use). Show the user the requested names before approving on their behalf — a map can ask for any entry in the vault and hand it to the repo's scripts. Exception: Vite/Next auto-load.envthemselves — for those, generate it from the vault withsecret env > .env(keep.envgitignored). - Deploying? Push to the platform's own store (the Keychain is local-only and cloud
runtimes can't read it). DRY-RUN first, then add
--yes:secret push github # -> gh secret set, repo from git remote secret push vercel # -> Vercel env API, token from the vault entry "vercel" secret push aws # -> AWS Secrets Manager, named <project>/<VAR>
Rules
- Real key values go ONLY in the Keychain.
.secrets.mapandregistry.tomlhold names and metadata, never values — both are safe to commit. - Before generating any new key,
secret ensure <service>; reuse what exists. - Never commit
.envwith live values; prefersecret run --. - After importing/rotating, run
secret doctorto refresh live/dead status.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

