credentials
Skill0 starsChanged 23 days agoMITView on GitHub
Instructions for handling API keys and credentials safely, verifying their presence, and prompting the user to add them if missing using a safe protocol.
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- MiguelSavignano/claude-code-systemtheir own version, first seen Nov 1, 2026
- lawless-m/claude-skillstheir own version, first seen Nov 1, 2026
- aibtcdev/skillstheir own version, first seen Oct 26, 2026
- Marvellbrazil/my-agentic-skillsword for word, first seen Oct 17, 2026
- sammasak/skillstheir own version, first seen Oct 17, 2026
- sammasak/claude-code-skillstheir own version, first seen Oct 15, 2026
Other versions12 projects use a version of this.
Word for word · 4
- google-deepmind/science-skills★ 3.4k100% same
- BeyondTheProtocol/polaris★ 47100% same
- Marvellbrazil/my-agentic-skills★ 4100% same
- Osmosy/vector-gene★ 0100% same
Edited · 0
None found.
Wrote their own version · 8
- alinaqi/maggy★ 711same name
- alinaqi/claude-bootstrap★ 708same name
- aibtcdev/skills★ 11same name
- lawless-m/claude-skills★ 6same name
- MiguelSavignano/claude-code-system★ 6same name
- D1DX/n8n-skill★ 4same name
- sammasak/claude-code-skills★ 1same name
- sammasak/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- autoskillSkill
- data-mlSkill
- devSkill
- docs-figuresSkill
- docxSkill
- find-skillsSkill
- generate-imageSkill
- grill-meSkill
- grill-with-docsSkill
- omc-referenceSkill
- pdfSkill
- pptxSkill
- product-self-knowledgeSkill
- referencesSkill
- researchSkill
- scientificSkill
- skill-creatorSkill
- teamSkill
- uvSkill
- workflow-skill-creatorSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Use grep in quiet and suppress-errors mode (-sq) to check if the variable is defined in ~/.env.
- Distinctive: line 38
If the command succeeds (exit code 0), the credential is present.
- Very specific: line 40
If the command fails (any non-zero exit code — whether the credential is missing or the .env file does not exist yet), the credential is …
- Very specific: line 55
NEVER: run cat ~/.env, grep "VAR" ~/.env (without -q), echo $VAR, or printenv to check for credentials.
- Distinctive: line 60
If a credential is missing, do NOT ask the user to paste it into the chat.
- Distinctive: line 63
Instead, you MUST generate a specific command for the user to run in their terminal by replacing the placeholders in one of the templates …
- Distinctive: line 66
CRITICAL: Before presenting the command to the user, you MUST replace:
- Very specific: line 75
All credentials are treated as sensitive.
- Distinctive: line 78
CRITICAL: When requesting a credential, you MUST also provide the user with the appropriate registration link or instructions provided by …
- Very specific: line 88
All helper scripts inside the calling skills load these credentials automatically from the .env file using dotenv.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Safe Credentials Protocol
Many skills require API keys or other credentials to function or to access higher rate limits. This skill defines the standard safe credentials protocol for verifying and prompting for these credentials without leaking sensitive keys into the agent context or the conversation history.
Safe Verification (No Leaks)
As soon as a skill that requires a credential or API key looks relevant to the
user's request, you MUST immediately verify if the credential is present in
the .env file (typically located in your home directory ~/.env or the
project root) — before doing any other work for that skill.
CRITICAL: You must verify the presence of the credential without printing its value to the terminal or reading it into your context.
How to verify:
Use grep in quiet and suppress-errors mode (-sq) to check if the variable is
defined in ~/.env. The -s flag ensures the command works cleanly even if
~/.env does not exist yet.
grep -sq "^CREDENTIAL_NAME=" ~/.envReplace CREDENTIAL_NAME with the actual credential name required by the
calling skill (e.g., ALPHAGENOME_API_KEY or USER_EMAIL).
- If the command succeeds (exit code 0), the credential is present. You can proceed.
- If the command fails (any non-zero exit code — whether the credential is
missing or the
.envfile does not exist yet), the credential is missing. You MUST IMMEDIATELY stop and prompt the user to add it using the instructions in Prompting the User to Add Credentials before attempting to run any scripts or tools. Do not conclude the turn by simply stating that the key is missing.
[!CRITICAL] If verification fails (any non-zero exit code), you MUST NOT attempt to execute any tools or scripts from the calling skill, nor should you conclude the turn by simply reporting the missing key. You MUST IMMEDIATELY generate the appropriate terminal command from the templates below and prompt the user to run it. The template command will create the
.envfile if it does not already exist.
NEVER run cat ~/.env, grep "VAR" ~/.env (without -q), echo $VAR, or
printenv to check for credentials.
Prompting the User to Add Credentials
If a credential is missing, do NOT ask the user to paste it into the chat. This would leak the value into the agent's context and the conversation history.
Instead, you MUST generate a specific command for the user to run in their terminal by replacing the placeholders in one of the templates below.
CRITICAL: Before presenting the command to the user, you MUST replace:
CREDENTIAL_NAMEwith the actual variable name needed (e.g.,ALPHAGENOME_API_KEY,USER_EMAIL).ENV_FILEwith the resolved literal path to the.envfile (usually~/.env).
Template
All credentials are treated as sensitive. The read -s flag hides the user's
typing. You MUST inform the user that their typing will be hidden.
CRITICAL: When requesting a credential, you MUST also provide the user with the appropriate registration link or instructions provided by the calling skill so they know how to obtain the value if they do not have one.
printf "Enter CREDENTIAL_NAME (typing hidden): " && read -s val && echo && echo "CREDENTIAL_NAME=$val" >> "ENV_FILE" && echo "Saved."Running scripts requiring credentials
All helper scripts inside the calling skills load these credentials
automatically from the .env file using dotenv.
You do NOT need to manually read the keys, export them to the shell
environment, or pass them as CLI arguments, when calling the helper scripts that
require them. As long as you have verified the key is present in .env using
the safe protocol above, simply run the script directly — the script will load
the credential automatically.
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.

