Tooluck logoTooluck
SKILL.md

credentials

Agent skill fromgoogle-deepmind/science-skills

Instructions for handling API keys and credentials safely, verifying their presence, and prompting the user to add them if missing using a safe protocol.

How to install credentials

install credentials
# install the science-skills pack with the skills CLI
npx skills add google-deepmind/science-skills

# or add only this skill to Claude Code: copy the folder

skills/credentials/

# into

~/.claude/skills/credentials/ (all projects)

.claude/skills/credentials/ (one project)

skills/credentials/SKILL.md

Apache-2.0Full file
1# Safe Credentials Protocol
2
3Many skills require API keys or other credentials to function or to access
4higher rate limits. This skill defines the standard safe credentials protocol
5for verifying and prompting for these credentials without leaking sensitive keys
6into the agent context or the conversation history.
7
8## Safe Verification (No Leaks)
9
10As soon as a skill that requires a credential or API key looks relevant to the
11user's request, you **MUST** immediately verify if the credential is present in
12the `.env` file (typically located in your home directory `~/.env` or the
13project root) — **before doing any other work** for that skill.
14
15**CRITICAL**: You must verify the presence of the credential *without* printing
16its value to the terminal or reading it into your context.
17
18### How to verify:
19
20Use `grep` in quiet and suppress-errors mode (`-sq`) to check if the variable is
21defined in `~/.env`. The `-s` flag ensures the command works cleanly even if
22`~/.env` does not exist yet.
23
24```bash
25grep -sq "^CREDENTIAL_NAME=" ~/.env
26```
27
28Replace `CREDENTIAL_NAME` with the actual credential name required by the
29calling skill (e.g., `ALPHAGENOME_API_KEY` or `USER_EMAIL`).
30
31- If the command **succeeds** (exit code 0), the credential is present. You
32 can proceed.
33- If the command **fails** (any non-zero exit code — whether the credential is
34 missing or the `.env` file does not exist yet), the credential is missing.
35…

Excerpt shown under the repository's Apache-2.0 license.

More skills in science-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates