Handles API keys, tokens, and facility credentials (kerberos tickets, globus and scheduler tokens, ssh agents, netrc) before a tool needs one, after an auth error, when a new secret is supplied, or when one may have leaked. Not for provider connection configuration; use pancode auth and connection settings.
Ships in credentials. 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.
Work with secrets without ever seeing them. PanCode structurally blocks typed
reads and writes of secret-shaped paths (.env variants, ~/.ssh/, ~/.aws/,
key and pem files, netrc, kubeconfigs) by default. That net is on your side:
never attempt a shell workaround (cat, less, head, xxd, base64,
printenv, env, echo $VAR). Every attempt is audited, and any value that
slips into output lands permanently in the transcript and evidence bundles.
First identify the exact credential name the task actually needs: run the failing command or read its error output and docs. Error messages name the variable and often the issuer; never guess a name and never assume it matches an example. Then check presence, in strict preference order:
ask_user when
active). Zero file access.credential_present with the exact credential name and source. Prefer
source: "environment" for process variables and pass file: ".env" when
the task names an env file. It returns only present/absent and which source
was checked.grep -sq "^NAME=" <envfile> exactly, only if the typed tool is
unavailable. Quiet mode, no output flags. The exit code answers the
question; the value never enters context. The -q flag is the protocol,
not a style choice.Never ask the user to paste a secret into chat. Generate a fill-in command they run in their own terminal, and always say that typing is hidden:
printf "Enter STRESSLAB_API_KEY (typing hidden): " && read -s val && echo \
&& echo "STRESSLAB_API_KEY=$val" >> .env && echo Saved.
Always include where to obtain the value (issuer registration link or
instructions). After the user confirms, re-check presence with grep -sq.
Use credential_present for that re-check when it is available.
pancode auth and connection settings, not env files.klist -s checks ticket presence by exit code only.ssh-add -l lists fingerprints, not keys; that is safe. Never copy
private keys between machines as part of a task..netrc for data transfer is zero-access by default; leave it that way.If a secret value appears in output or context anyway:
All names below are illustrative; use the credential name, env file, and issuer that your task actually reports.
Task: run fetch_data.py. Running it fails with "missing STRESSLAB_API_KEY
(register at https://stresslab.example/keys)", which names the credential.
credential_present with name: "STRESSLAB_API_KEY"
and file: ".env"; it reports absent.read -s fill-in command above plus the issuer link
("create a key at https://stresslab.example/keys"). User runs it, confirms.credential_present reports present from .env. Run the script;
it loads the key via dotenv. The value never appeared in chat, argv, or
logs.grep VAR file without -q prints the matching line. That is a leak.echo $KEY for debugging is permanent in the transcript.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/credentials:credentialsfrom credentials
npx claudepluginhub panstudio/pancode --plugin credentials