Install
$ agentstack add skill-mikefluff-skills-skills-keys ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Provide a thin CLI on top of ~/.skills.env (the runner's key store) so users can manage keys WITHOUT editing dotfiles by hand. Values are stored plaintext but chmod 600. Each runner reads the file at startup, merging entries into os.environ without overriding explicit shell exports.
This skill does NOT:
- Store keys in macOS Keychain / Linux Secret Service (cross-platform parity matters more than OS-native vault for v1).
- Encrypt the file at rest (chmod 600 is the v1 posture).
- Manage non-runner keys (database creds, SSH keys, etc.).
- Validate every provider — only the 9 that have lightweight public verify endpoints.
Use when the user wants to add a new API key, swap one, see what's set, or check whether a key is actually valid against the vendor.
ROLE
Read the user's intent (add/update/remove/list/verify/enable/disable/path/export) → call the matching common/runners/cli/keys.py subcommand → relay the result. Mask values when displaying. Prompt for value silently if not provided on the command line. Never write keys to stdout in full unless export is explicitly requested.
PIPELINE
- Parse intent: which subcommand and which arg(s).
- Run
python3 scripts/run.py [args]. - Relay the output — already masked / colorized by the CLI.
- Optional follow-up: if user added a new key, suggest running
skills-keys verifyto confirm it works.
MODES
Inspection
skills-keys list— show all keys with masked values + gate-flag indicatorskills-keys path— print the keys-file path (default~/.skills.env; override viaSKILLS_KEYS_FILEenv var)skills-keys verify— ping every supported provider's endpoint, report valid/invalid/unknown/unsupported per keyskills-keys verify OPENAI_API_KEY GEMINI_API_KEY— verify specific keys only
Mutation
skills-keys add OPENAI_API_KEY sk-proj-...— add or updateskills-keys add OPENAI_API_KEY— interactive (silent stdin read; not echoed)skills-keys update OPENAI_API_KEY sk-new-...— alias foraddskills-keys remove OPENAI_API_KEY— delete the entry
Gate flags
Three keys are NOT API tokens but on/off gates for paid premium endpoints:
OPENAI_SORA_API_ENABLED— required to call Sora 2 (anti-accidental-spend gate)LYRIA_API_ENABLED— required to call Lyria 3 ProSUNO_API_ENABLED— required to call Suno
Shortcut commands:
skills-keys enable SUNO_API_ENABLED— equivalent toadd SUNO_API_ENABLED 1skills-keys disable SUNO_API_ENABLED— equivalent toremove SUNO_API_ENABLED
Export
skills-keys export— print eval-ready lines:
`` export OPENAI_API_KEY="sk-..." export GEMINI_API_KEY="..." ` Use to apply file changes to the CURRENT shell: eval "$(skills-keys export)"`. Plaintext output — only pipe to eval, don't share.
skills-keys export --mask— same shape but values masked, for inspection.
REFERENCES (load on demand)
| File | When to load | |---|---| | [references/usage.md](references/usage.md) | Detailed UX reference — what each subcommand prints, exit codes, interactive prompts, file format, precedence rules |
EXAMPLES
See [examples/before-after.md](examples/before-after.md) — 4 example sessions covering: first-time setup of OpenAI + Gemini, rotating a leaked Suno key, verifying a freshly-pasted key, enabling Lyria gate.
CONSTRAINTS
- Values are masked in every output EXCEPT
exportwithout--mask. Logs / list / add confirmation printsk-pr…WXYZstyle only. - The file is chmod 600. Skill enforces after every write.
- Explicit shell exports win. If the user has
export OPENAI_API_KEY=...in their.zshrc, the file entry is ignored — by design. - Interactive
addreads viagetpass— value not echoed to terminal or shell history. - Don't print full key in error messages. Errors reference env var NAMES, not values.
verifyuses lightweight HTTP probes — costs $0, no generation. Only 9 providers covered (OpenAI, Gemini, Anthropic, BFL, Ideogram, Replicate, FAL, Runway, ElevenLabs). Suno / Kling / Lyria gate flags / S3 / SKILLS_* don't have verify — they showunsupported.- Network errors in verify show as
unknown— not a key problem. - Don't auto-purge invalid keys. If verify reports invalid, the skill flags it but doesn't delete — the user might have just rotated the key in the vendor dashboard.
- gate flags are NOT API keys. Use
enable / disablefor them, notadd / remove. The skill warns when you try to misuse. ~/.skills.envlocation is overrideable viaSKILLS_KEYS_FILE=/custom/path. Useful for CI (where home dir might be ephemeral) or multi-profile setups.- Never commit
~/.skills.envto git. The home-dir location avoids accidental commits. If someone wants the file elsewhere (project root), they MUST add it to.gitignore. - For CI / GitHub Actions: don't use this skill. Use the platform's native secret management (
secrets.OPENAI_API_KEY) which propagates to env vars. This skill is for local dev.
INVOCATION HINTS
When the user says any of:
- "add my key", "store my OpenAI key", "save the Gemini key"
- "rotate the key", "update / change / swap the X key"
- "remove / delete the X key", "I leaked my Suno key, take it out"
- "list keys", "what keys do I have set", "which providers are configured"
- "verify my key", "test the OpenAI key", "is my key still valid"
- "enable Suno", "turn on Lyria", "disable Sora"
- "where do I put my keys", "where is the keys file"
RU triggers:
- «добавь ключ OpenAI», «сохрани Gemini-ключ»
- «обнови / поменяй / ротируй ключ X»
- «удали ключ X», «утёк Suno-ключ, убери»
- «покажи ключи», «какие ключи у меня заданы»
- «проверь ключ X», «работает ли OpenAI-ключ»
- «включи Suno», «выключи Lyria»
- «где хранятся ключи», «куда вставлять ключи»
Default subcommand if intent is ambiguous: list (safe — masks everything).
This is a meta-skill, sibling to skills-update. Both wrap common/runners/cli/... plumbing. Their outputs are not Claude-produced text — they're tool outputs to be relayed honestly.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Mikefluff
- Source: Mikefluff/skills
- License: MIT
- Homepage: https://www.npmjs.com/package/@mikefluff/skills
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.