sops-secrets

sops-secrets is a skill for Claude Code, Codex from fmind/dot. It costs 19 tokens per session (1,212 once invoked), scanned A, original, MIT.

A way to store secrets in Git as encrypted files using SOPS and age, with plaintext kept only in memory when needed.

In plain words
What is it for?
Use it to encrypt YAML, JSON, or environment files, manage recipients, review safe diffs, and connect secrets to OpenTofu or Flux runtimes.
Why use it?
It lets teams version configuration beside code without committing readable passwords, keys, or tokens.

Skill for Claude CodeCodex

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

Good fit Use it to encrypt YAML, JSON, or environment files, manage recipients, review safe diffs, and connect secrets to OpenTofu or Flux runtimes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/sops-secrets
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 fmind/dot --skill sops-secrets
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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 sops-secrets

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/sops-secrets/github.svg)](https://agentmods.dev/skills/fmind/dot/sops-secrets)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/sops-secrets"><img src="https://agentmods.dev/badge/skills/fmind/dot/sops-secrets/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 sops-secrets

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/sops-secrets"><img src="https://agentmods.dev/badge/skills/fmind/dot/sops-secrets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00019 $0.01212
Opus 5.5 $0.00008 $0.00485
Sonnet 5.5 $0.00004 $0.00242
Haiku 4.5 $0.00002 $0.00121

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

Security

Grade A, and why

sops-secrets scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sops-secrets/SKILL.md · 62 lines

How it starts

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

Secrets with sops and age

Encrypted secrets live in git next to their configuration. Use environment variables or FIFOs for runtime delivery; interactive editing can write temporary plaintext. gitleaks scans for leaked credentials, and cloud-run owns runtime Secret Manager integration.

Model

  • age provides the key pair: one private key per machine or human, public recipients everywhere; prefer it for solo use. Choose cloud KMS when centrally managed access is required; adding a KMS recipient alongside age does not revoke the independent age decryption path.
  • Name encrypted files *.enc.*: encrypted files are committed as *.enc.yaml, *.enc.json, or *.enc.env; sops.yaml keys its rules off that suffix and plaintext siblings stay gitignored.
  • Declare encryption policy in .sops.yaml: .sops.yaml at the repo root (sops.yaml) declares which paths get encrypted and for which recipients, so no ad-hoc flags are needed.

Keys

Before the first encryption on a machine, and for any recipient change, follow key-lifecycle: preserve an existing SOPS_AGE_KEY_FILE or key, generate only when absent, distribute only public recipients, back up the private key outside Git, and rotate through updatekeys plus rotate.

Commands

sops edit secrets.enc.yaml                          # create or edit: decrypts to $EDITOR, re-encrypts on save
sops encrypt --filename-override config.enc.yaml --output config.enc.yaml config.yaml  # suffix selects the rule; --output preserves prior ciphertext if encryption fails
sops exec-env secrets.enc.env 'mise run watch'      # inject as env vars, memory-only (preferred)
sops exec-file secrets.enc.json 'tool --config {}'  # Unix tools get a FIFO by default, not a tmpfs guarantee
  • Prefer exec-env and exec-file for runtime delivery; keep values out of logs and inspect how child processes handle them. --no-fifo writes a regular temporary file.
  • Pipe decryption only to a reviewed consumer: bare sops decrypt prints plaintext secrets into captured output. Never display its stdout or redirect it to a plaintext file.
  • Wire integrations from their guide: read integrations.md before wiring CI decryption (age key versus gcp_kms through Workload Identity Federation), Flux, OpenTofu, or a runtime secret manager.

Read the full file on GitHub · 62 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago Changed 5fc6f299f61c
  2. 6d ago Changed 171e775d1dd1
  3. 12d ago Changed · -1 lines 0f373f9efe4c
  4. 14d ago Changed 706c78ceb562
  5. 15d ago Changed · +1 lines · -2 tokens per session 45189d618fa9
  6. 17d ago Changed c922ad1324f0
  7. 23d ago Changed 024099e932d6
  8. 26d ago Changed 3da5d963c00c
  9. 29d ago Changed · +1 lines b2e09209a6ce
  10. 1mo ago First seen · 61 lines · 21 tokens per session scan A d2c61ed68ca2

Subscribe to this mod's changes

sops-secrets is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,212 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

go-stack

Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.

fmind/dotfiles · 31 tokens

python-stack

Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.

fmind/dotfiles · 41 tokens

hugo

Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.

fmind/dotfiles · 46 tokens

k8s-local

Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.

fmind/dotfiles · 50 tokens