secrets-hygiene

secrets-hygiene is a skill for Claude Code, Codex from chadixearth/graphyloop. It costs 64 tokens per session (821 once invoked), scanned B, original, MIT.

A workflow for handling API keys, database URLs, deployment tokens, and other credentials without exposing them in chat or source files.

In plain words
What is it for?
It helps check which credentials are available, request missing keys by name, store them securely, and place them where an application can read them.
Why use it?
It reduces the risk of leaking credentials through conversation logs, committed files, environment files, or command output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps check which credentials are available, request missing keys by name, store them securely, and place them where an application can read them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chadixearth/graphyloop/secrets-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chadixearth/graphyloop --skill secrets-hygiene
Clone the repo
git clone --depth 1 https://github.com/chadixearth/graphyloop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secrets-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/chadixearth/graphyloop/secrets-hygiene/github.svg)](https://agentmods.dev/skills/chadixearth/graphyloop/secrets-hygiene)
Your own site
<a href="https://agentmods.dev/skills/chadixearth/graphyloop/secrets-hygiene"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/secrets-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secrets-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/chadixearth/graphyloop/secrets-hygiene"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/secrets-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 821 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00821
Opus 5 $0.00032 $0.00411
Sonnet 5 $0.00013 $0.00164
Haiku 4.5 $0.00006 $0.00082

Measured 5d ago against content hash f20dbb87f5fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

secrets-hygiene scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`<project>/.graphyloop/secrets.json`, chmod 600, git-ignored before the first
skills/secrets-hygiene/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Check before asking. secrets_status (or graphyloop_secrets_status) reports, per provider, which keys exist, where each comes from (process env, graphyloop store, .env file) and what is missing. It returns masks, never values.
  2. 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_KEY from Settings → API). Then store it with secrets_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.
  3. Materialize it, do not read it. env_sync copies stored values into the env file the framework actually reads (.env.local for 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.
  4. 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_KEY may reach the browser (RLS still applies). A service-role key bypasses RLS entirely: it must never appear in client code, and never behind a NEXT_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 .gitignore does 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.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 60 lines · 64 tokens per session scan B f20dbb87f5fd

Subscribe to this mod's changes

secrets-hygiene is a skill published in the GitHub repository chadixearth/graphyloop (2 stars, last pushed 23d ago), licensed MIT. It adds 64 tokens to every session and 821 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories