codex-skills-library: Skill for Codex

.agents/skills/secrets-env-management/SKILL.md

secrets-env-management is a skill for Codex from YankielDBC2/codex-skills-library. It costs 29 tokens per session (333 once invoked), scanned A, original, MIT.

A safety process for handling environment variables and credentials such as API keys, tokens, and private keys. It uses placeholder examples instead of exposing real secret values.

In plain words
What is it for?
Use it to document required variables, update .env.example files, check ignore rules, investigate possible leaks, and plan credential rotation.
Why use it?
It reduces the risk of committing credentials to source control or sharing them in documentation.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is YankielDBC2/codex-skills-library's own configuration. It tells Codex how to work on codex-skills-library itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-skills-library configures →

Reuse

Borrowing it

Nothing to install: this file belongs to YankielDBC2/codex-skills-library. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/YankielDBC2/codex-skills-library/main/.agents/skills/secrets-env-management/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/YankielDBC2/codex-skills-library

Made for: 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-env-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/yankieldbc2/codex-skills-library/secrets-env-management.svg)](https://agentmods.dev/skills/yankieldbc2/codex-skills-library/secrets-env-management)
Your own site
<a href="https://agentmods.dev/skills/yankieldbc2/codex-skills-library/secrets-env-management"><img src="https://agentmods.dev/badge/skills/yankieldbc2/codex-skills-library/secrets-env-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 333 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.00029 $0.00333
Opus 5 $0.00015 $0.00167
Sonnet 5 $0.00006 $0.00067
Haiku 4.5 $0.00003 $0.00033

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

Security

Grade A, and why

secrets-env-management 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 7d 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.

.agents/skills/secrets-env-management/SKILL.md · 51 lines

What it actually says

Secrets Env Management

Goal

Help projects use environment variables safely without exposing secrets.

When to use

Use when adding environment variables, reading .env.example, documenting credentials, configuring deployment secrets, or investigating leaked keys.

When not to use

Do not use to reveal, print, decode, test, or share secret values.

Inputs

Inspect .env.example, deployment docs, config files, required variable names, and .gitignore. Do not open real secret files unless the user explicitly asks for a safety review, and never reproduce values.

Workflow

  1. Identify required variable names without printing values.
  2. Ensure real env files are ignored by git.
  3. Create or update .env.example with placeholders only.
  4. Document where variables are configured locally and in deployment.
  5. Add validation for required variables when useful.
  6. Warn when production/live credentials appear exposed.
  7. Recommend rotation for any credential that may have been shared.

Safety rules

  • Never print full secrets.
  • Never commit .env, agent.env, PEM files, or private keys.
  • Never place live values in examples.
  • Prefer project-specific credentials with least privilege.

Validation

Run secret scan, git status, and any env validation script added to the project.

Final response

Report variable names only, files changed, validation commands, and rotation recommendations without revealing secret values.

Files

What ships with it

4 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. 7d ago First seen · 51 lines · 29 tokens per session scan A 769e5a62bbe9

Subscribe to this mod's changes

secrets-env-management is a skill published in the GitHub repository YankielDBC2/codex-skills-library (10 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 333 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens