/toycrane-skills:add-env-keyfrom toycrane-skills
Adds an API key, token, or password to a project's .env file without exposing the value in chat. Opens the vendor's issuance page and collects the secret via a secure input pane or editor.
Ships in toycrane-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Put one key the user must bring from outside, such as an API key, access token, or password, into the dotenv file the project reads, and confirm it landed. The value never enters chat or your context: never ask for it, accept it pasted into chat, or print or read the line that holds it. If the user pastes one into chat anyway, do not repeat it; tell them it is now in the conversation and suggest rotating it.
A value you can decide yourself, such as PORT=3000, is not this skill's
work: write it directly.
Settle three things from the project before asking the user for anything:
STRIPE_SECRET_KEY. Prefer the name the code references; otherwise the
vendor's documented default..env.local for Next.js and Vite, .env otherwise). With no convention,
use .env at the project root.When several keys are needed, take them one at a time, in the order the work needs them.
Open the issuance page in the user's default browser, and also write its URL in chat, since a user following remotely cannot see a browser on this machine. Creating the key in their account is the user's step.
When the session offers the secret-env mod's tool (named
request_secret; it asks the user for a secret in a pane beside the chat,
writes it to a dotenv file, and hides the value from every tool result),
call it with the name, a one-line purpose that says what the key is for, and
the file relative to the project root. The tool returns once the user saves
or cancels. It warns about .gitignore and confirms overwriting an existing
key by itself.
Otherwise, use the editor path:
git check-ignore does not
match it, warn the user that the key would be committable and offer to add
the file to .gitignore before going on. Do not proceed with an
unignored file unless the user explicitly chooses to.node <this skill's folder>/scripts/env-key.mjs add <file> <NAME>. It
adds an empty NAME= line, creates the file when missing, and leaves an
existing NAME line and every other line untouched./plugin install secret-env@toycrane) keeps it hidden.Run node <this skill's folder>/scripts/env-key.mjs check <file> <NAME>. It
prints only set or empty. On empty, tell the user the line is still
empty and wait again. On the mod path, the tool's saved result is the
confirmation.
If the user cancels, change nothing further and ask whether the work can go on without the key.
Finish by reporting the key name, the file, and that it is set, then continue the work that needed it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub toy-crane/skills --plugin toycrane-skills28 skills in this plugin
/add-stack-contextAudit and establish current agent context for the technologies that define a project's stack. Use when setting up a project for agent work, after selecting or adding a framework, library, developer tool, or hosted service, or when entering an existing project whose agent context has not been audited./audit-evalsAudit a project's LLM eval regression suite from its committed cell history, report cells whose most recent 10 trials all passed, checks with identical recent histories, cells that flip after graduating, and cells that always fail, then propose demoting the recently always-passing cells to the lower tier and apply only the demotions the user approves. Use when the user asks which eval cells still earn their run, why a regression run costs so much, or to slim, prune, or demote a regression suite./