secrets-hygiene
Skill3 starsChanged 11 days agoMITView on GitHub
Use this skill whenever a task needs an API key, database URL, deploy token or any other credential. Covers where credentials live, how to ask for one without putting it in the chat, how to get it into the file the app reads, and what must never be printed or committed.
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- aymardkouakou/claude-gh-skillstheir own version, first seen Nov 8, 2026
- magia187/premium-agent-skillstheir own version, first seen Oct 20, 2026
- novahiz/novahiztheir own version, first seen Oct 11, 2026
- RiyanKothari/riyans-claude-skillstheir own version, first seen Oct 6, 2026
- SkillMedev/security-compliance-hardeningtheir own version, first seen Oct 5, 2026
- BUTTERGANG/CLAUDE-SKILLStheir own version, first seen Jul 30, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- aymardkouakou/claude-gh-skills★ 1same name
- novahiz/novahiz★ 1same name
- RiyanKothari/riyans-claude-skills★ 1same name
- BUTTERGANG/CLAUDE-SKILLS★ 0same name
- magia187/premium-agent-skills★ 0same name
- SkillMedev/security-compliance-hardening★ 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 repository72 other files it gives its agents.
- workflow/AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- ai-video-prompt-engineerSkill
- api-contract-designSkill
- api-hardeningSkill
- brainstormingSkill
- cavecrewSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-helpSkill
- caveman-reviewSkill
- cavemanSkill
- councilSkill
- database-migrationsSkill
- deep-researchSkill
- dependency-auditSkill
- deployment-patternsSkill
- e2e-testingSkill
- error-handlingSkill
- exa-searchSkill
- finishing-a-development-branchSkill
- frontend-securitySkill
- github-opsSkill
- graphifySkill
- graphyloop-wavesSkill
- graphyloop-workflowSkill
- gsap-coreSkill
- gsap-frameworksSkill
- gsap-performanceSkill
- gsap-pluginsSkill
- gsap-reactSkill
- gsap-scrolltriggerSkill
- gsap-timelineSkill
- gsap-utilsSkill
- high-end-visual-designSkill
- image-to-codeSkill
- last30daysSkill
- minimalist-uiSkill
- postgres-patternsSkill
- prisma-patternsSkill
- receiving-code-reviewSkill
- redesign-existing-projectsSkill
- remotion-video-creationSkill
- requesting-code-reviewSkill
- search-firstSkill
- security-reviewSkill
- security-scanSkill
- short-video-productionSkill
- story-engineeringSkill
- supabase-setupSkill
- swarm-memorySkill
- systematic-debuggingSkill
- tdd-workflowSkill
- terminal-opsSkill
- threejs-animationSkill
- threejs-fundamentalsSkill
- threejs-geometrySkill
- threejs-interactionSkill
- threejs-lightingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
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 16
Before any commit that touches .env*, config, or CI files.
- Very specific: line 24
Ask by NAME, never by paste: If a key is missing, tell the user the exact key name and where to obtain it (e.g.
- Distinctive: line 45
No credential in source: No literals, no "temporary" hardcoding, no keys in test files.
- Distinctive: line 49
Rotate, do not hide: If a real credential was committed or pasted, say so immediately and tell the user to rotate it.
- Distinctive: line 52
Least privilege: Prefer a project-scoped token over an account-wide one.
- Distinctive: line 59
Never include a value in the summary, even truncated.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Credential handling
A credential in a chat transcript is a leaked credential: transcripts are logged, summarized, and sometimes trained on. A credential in a committed file is worse — it is public and permanent. Both are avoidable with the same short procedure.
When to activate
- A task needs Supabase keys, a database URL, a Vercel/hosting token, or any API key.
- A tool call fails with "missing env var" / 401 / "invalid API key".
- Before any commit that touches
.env*, config, or CI files.
Procedure
- Check before asking.
secrets_status(orgraphyloop_secrets_status) reports, per provider, which keys exist, where each comes from (process env, graphyloop store,.envfile) and what is missing. It returns masks, never values. - Ask by NAME, never by paste. If a key is missing, tell the user the exact
key name and where to obtain it (e.g.
SUPABASE_SERVICE_ROLE_KEYfrom Settings → API). Then store it withsecrets_set— it lands in<project>/.graphyloop/secrets.json, chmod 600, git-ignored before the first write. Never ask them to paste it into the conversation. - Materialize it, do not read it.
env_synccopies stored values into the env file the framework actually reads (.env.localfor Next/Vite), adds the framework public alias for public keys only, and refreshes a values-free.env.example. Values move file-to-file; they never pass through your context. - Verify before using.
preflight(target=db|deploy|all) reports blockers and warnings. Clear the blockers first — a missing key found now costs nothing, found at integration it fails late and confusingly.
Hard rules
- Never print, echo, log or repeat a credential value — not in a report, not in a command you show the user, not in a test fixture, not in a commit message.
- Public vs secret is not cosmetic. A
SUPABASE_ANON_KEYmay reach the browser (RLS still applies). A service-role key bypasses RLS entirely: it must never appear in client code, and never behind aNEXT_PUBLIC_*/VITE_*name, because those are inlined into the browser bundle. - No credential in source. No literals, no "temporary" hardcoding, no keys in test files. Read from env; fail loudly with the key name when it is absent.
.env*must be git-ignored before it has content. If an env file exists and.gitignoredoes not cover it, fix that before any commit.- Rotate, do not hide. If a real credential was committed or pasted, say so immediately and tell the user to rotate it. Deleting the line does not un-leak it — the value stays in git history and in the transcript.
- Least privilege. Prefer a project-scoped token over an account-wide one; prefer anon + RLS over service-role; use service-role only in server-side code that needs it.
Reporting
Say which keys are present and which are missing, by name, with masks only. Never include a value in the summary, even truncated.
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.

