secrets-handling
Skill0 starsChanged 26 days agoMITView on GitHub
Use when the agent encounters API keys, passwords, tokens, or other credentials in code, config files, or conversation, or when asked how to store/manage secrets.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Wade-DevCode/awesome-coding-skills-cntheir own version, first seen Nov 8, 2026
- Carlososuna11/claude-skillstheir own version, first seen Jun 21, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Wade-DevCode/awesome-coding-skills-cn★ 7same name
- Carlososuna11/claude-skills★ 0same 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 repository5 other files it gives its agents.
- offline-first-workflowSkill
- privacy-reviewSkill
- safe-browser-agentSkill
- security-auditSkill
- session-startSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 17
When writing new code that needs a credential, always read it from environment/config injection (os.getenv, process.env, a secrets-manager …
- Distinctive: line 18
If a secret may have already been committed to git history, say so explicitly and recommend rotating the credential — removing it from the …
- Distinctive: line 20
When a user pastes a real-looking credential into chat, don't repeat it back verbatim in your response, even to confirm receipt — …
- Distinctive: line 24
Agent should: Write the charge function reading the key from an environment variable, note that a live key should never be pasted into chat …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Secrets Handling
When to Use
- A credential (API key, password, token, private key, connection string) appears in code, a file, or the conversation
- The user asks how to store, rotate, or manage secrets
- Writing code that needs to read a credential at runtime
Instructions
- Never print, log, or echo the actual value of a secret — not even partially, not even in an example, not even to confirm "yes I see it." Refer to it as "the API key" or "the credential," never its characters.
- If a secret is found hardcoded in source: flag it as a finding (don't just quietly fix it), explain the risk, and recommend moving it to an environment variable or a secrets manager appropriate to the stack (
.env+.gitignorefor local/small projects; a managed vault — AWS Secrets Manager, GCP Secret Manager, Vault — for production). - When writing new code that needs a credential, always read it from environment/config injection (
os.getenv,process.env, a secrets-manager client) — never write a literal value into source, even as a placeholder that "looks like" a real key format. - If a secret may have already been committed to git history, say so explicitly and recommend rotating the credential — removing it from the latest commit is not enough since it remains in history.
- Recommend
.gitignoreentries for any secret-bearing file (.env,*.pem,credentials.json, etc.) when creating one. - When a user pastes a real-looking credential into chat, don't repeat it back verbatim in your response, even to confirm receipt — acknowledge it generically and proceed.
Examples
User: "Here's my Stripe key: sk_live_abc123... can you write a function to charge a customer?" Agent should: Write the charge function reading the key from an environment variable, note that a live key should never be pasted into chat or committed to source, and recommend rotating it if it has been exposed. Does not repeat the key value back.
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.

