env-setup

env-setup is a skill for Claude Code from mgiovani/cc-arsenal. It costs 125 tokens per session (1,954 once invoked), scanned A, original, MIT.

A codebase utility for managing environment variables, which are settings supplied outside the source code. It can create or update a sample `.env.example` file, check whether required settings are present, and look for exposed secrets.

In plain words
What is it for?
Use it to scan supported codebases, sync `.env.example`, check `.env` completeness, verify `.gitignore` handling, and report leaked variable names with file locations.
Why use it?
It helps keep configuration documentation aligned with what the code actually reads. It also helps identify credentials that may have been placed in environment files or version history.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the cc-arsenal-dev plugin — 19 skills shipped together , and of cc-arsenal

Good fit Use it to scan supported codebases, sync .env.example, check .env completeness, verify .gitignore handling, and report leaked variable names with file locations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mgiovani/cc-arsenal/env-setup
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 mgiovani/cc-arsenal --skill env-setup
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code.

Or install cc-arsenal-dev, the plugin that ships this one along with the rest of its 19 skills.

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 env-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/env-setup/github.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/env-setup)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/env-setup"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/env-setup/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 env-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/env-setup"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/env-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,954 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.00125 $0.01954
Opus 5.5 $0.00050 $0.00782
Sonnet 5.5 $0.00025 $0.00391
Haiku 4.5 $0.00013 $0.00195

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

Security

Grade A, and why

env-setup 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 22d 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/env-setup/SKILL.md · 157 lines

How it starts

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

Env Setup

Scan the codebase for environment variable usage, generate or update .env.example, validate .env completeness, and detect leaked secrets.

Anti-hallucination guidelines

Only report variables that are actually found in the code:

  1. Grep before reporting: never invent variable names, only list what grep actually returns.
  2. Read .env.example before writing: preserve existing entries, only add/update what changed.
  3. No actual secrets: .env.example must only contain placeholder values (e.g., your_api_key_here).
  4. Verify .gitignore: actually read the file before claiming .env is ignored.
  5. Never echo a found secret value: when Phase 6 flags a leaked secret, report the variable name and file:line only. Never print, quote, or write the actual value into chat output, a report file, or anywhere else: the scan's job is to locate leaks, not to create a second one.

Workflow

Phase 1: Scan Codebase

Grep for environment variable usage matching the project's actual language/framework: see references/scan-patterns.md for the ready-to-run pattern per language (Node/TS, Python, Ruby, Rust, Java/Kotlin, Docker Compose, client-exposed prefixes). Only run the pattern(s) for stacks present in the repo.

Also scan:

  • .env.example (existing entries to preserve)
  • config/ directory for config files referencing env vars
  • Framework config files (next.config.js, vite.config.ts, etc.)

Phase 2: Categorize Variables

Group discovered variables by prefix/service: see the service prefix table in references/scan-patterns.md for the standard groupings (Database, Cache, Auth, OAuth, Stripe, AWS, Email, App config, Client vars).

Classify each variable:

  • Required vs optional: required if no default/fallback in code.
  • Secret vs config: secret if it contains key/secret/password/token in the name.
  • Client-exposed: NEXT_PUBLIC_*, VITE_*; flag if it contains secrets.

Phase 3: Compare with .env.example

Read existing .env.example (if it exists):

Read the full file on GitHub · 157 lines

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. 22d ago Changed · +5 lines 2c055e3fde41
  2. 1mo ago Changed · +2 lines 86c9a7afcc29
  3. 1mo ago Changed · +1 lines 7819d6814cf3
  4. 1mo ago First seen · 149 lines · 125 tokens per session scan A 4b4d56167bc5

Subscribe to this mod's changes

env-setup is a skill published in the GitHub repository mgiovani/cc-arsenal (8 stars, last pushed 2d ago), licensed MIT. It adds 125 tokens to every session and 1,954 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

basic-skill

Summarize small CSV files and identify the highest revenue month.

darkrishabh/agent-skills-eval · 17 tokens

trace-and-isolate

Applies systematic tracing and isolation techniques to pinpoint exactly where a bug originates in code. Use when a bug is hard to locate, code is not working as expected, an error or crash appears with unclear cause, a regression was introduced between recent commits, or you need to narrow down which component…

rohitg00/skillkit · 120 tokens

verification-gates

Creates explicit validation checkpoints (verification gates) between project phases to catch errors early and ensure quality before proceeding. Use when the user asks about quality gates, milestone checks, phase transitions, approval steps, go/no-go decision points, or preventing cascading errors across a multi-step…

rohitg00/skillkit · 94 tokens

testing-anti-patterns

Reviews test code to identify and fix common testing anti-patterns including flaky tests, over-mocking, brittle assertions, test interdependency, and hidden test logic. Flags bad patterns, explains the specific defect, and provides corrected implementations. Use when reviewing test code, debugging intermittent or…

rohitg00/skillkit · 95 tokens

test-patterns

Applies proven testing patterns — Arrange-Act-Assert (AAA), Given-When-Then, Test Data Builders, Object Mother, parameterized tests, fixtures, spies, and test doubles — to help write maintainable, reliable, and readable test suites. Use when the user asks about writing unit tests, integration tests, or end-to-end…

rohitg00/skillkit · 138 tokens

handoff-protocols

Manages work transitions between team members or agents by creating structured handoff documents, summarizing project status, documenting key decisions, blockers, and open questions, and generating onboarding briefs. Use when someone needs to hand off, hand over, or transition a project; pass work to another person or…

rohitg00/skillkit · 116 tokens