Skills for Real Engineers. Straight from my .agents directory.
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
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)
1# Safe Credentials Protocol23Many skills require API keys or other credentials to function or to access4higher rate limits. This skill defines the standard safe credentials protocol5for verifying and prompting for these credentials without leaking sensitive keys6into the agent context or the conversation history.78## Safe Verification (No Leaks)910As soon as a skill that requires a credential or API key looks relevant to the11user's request, you **MUST** immediately verify if the credential is present in12the `.env` file (typically located in your home directory `~/.env` or the13project root) — **before doing any other work** for that skill.1415**CRITICAL**: You must verify the presence of the credential *without* printing16its value to the terminal or reading it into your context.1718### How to verify:1920Use `grep` in quiet and suppress-errors mode (`-sq`) to check if the variable is21defined in `~/.env`. The `-s` flag ensures the command works cleanly even if22`~/.env` does not exist yet.2324```bash25grep -sq "^CREDENTIAL_NAME=" ~/.env26```2728Replace `CREDENTIAL_NAME` with the actual credential name required by the29calling skill (e.g., `ALPHAGENOME_API_KEY` or `USER_EMAIL`).3031- If the command **succeeds** (exit code 0), the credential is present. You32 can proceed.33- If the command **fails** (any non-zero exit code — whether the credential is34 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
Similar skill repositories
Public repository for Agent Skills
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
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.
