env-check

env-check is a skill for Claude Code from atretyak1985/swarmery. It costs 54 tokens per session (885 once invoked), scanned A, original, Apache-2.0.

A static audit of environment variables across a project's code repositories and documentation. Environment variables are named settings supplied outside the code, often used for configuration and secrets.

In plain words
What is it for?
It is for checking environment-variable usage before a release and flagging risky configuration patterns.
Why use it?
It finds variables that are missing, unused, undocumented, inconsistent, or accidentally exposed without inspecting their secret values.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 37 skills, 8 commands, 13 agents shipped together

Good fit It is for checking environment-variable usage before a release and flagging risky configuration patterns.

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

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 13 agents.

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-check

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/env-check"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/env-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 885 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.00054 $0.00885
Opus 5.5 $0.00022 $0.00354
Sonnet 5.5 $0.00011 $0.00177
Haiku 4.5 $0.00005 $0.00089

Measured 1mo ago against content hash d6752343bd8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

env-check 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 1mo 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.

plugins/core/skills/env-check/SKILL.md · 68 lines

How it starts

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

Purpose

Audit environment variables across all of the project's repositories (.claude/project.json → repos) to find missing, unused, undocumented, or inconsistent env vars and flag security issues. Produces a structured markdown report with file:line citations. Static analysis only — no write access, no live-cluster introspection.

Rules (never violate)

  • NEVER print actual secret values — flag only presence and file:line location.
  • Every finding carries a file:line citation; the report stays within 150 lines and states a confidence level (HIGH, or MEDIUM when dynamic access patterns were seen).
  • Exclude node_modules/, .next/, __pycache__/, venv/, and test fixtures — fixture placeholders are not "missing" vars.
  • process.env[dynamicKey] / os.environ[...] bracket access is a low-confidence finding, never a definitive one.
  • NEXT_PUBLIC_* vars are client-exposed, never treated as server-side.
  • Stop and ask on: an apparent-secret *.populated.yaml outside .gitignore, more than 5 undocumented in-use vars, or dynamic access above 30% of usage.

Resources

  • Read resources/audit-procedure.md when running an audit — the 6-step procedure with per-stack grep patterns, known-variable baseline, self-check, common mistakes, escalation, failure modes.
  • Read resources/output-template.md when compiling results — the report template and a full cross-repo worked example.

How to use

What it does

Audits environment variables across every repository in your project. It reads code, config, and example files without writing anything, then reports which variables are used but undocumented, documented but unused, named inconsistently across repos, or look like hardcoded secrets — each finding with a file:line citation.

When to use it

  • You added, removed, or renamed an env var and want every repo to agree on name and default.
  • You are cutting a release and need proof all required variables appear in env.example.
  • You are reviewing a PR touching service config, env.example, or a typed env accessor.
  • A deployment failed and you suspect a missing or misspelled variable.

Read the full file on GitHub · 68 lines

Files

What ships with it

2 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. 1mo ago First seen · 68 lines · 54 tokens per session scan A d6752343bd8a

Subscribe to this mod's changes

env-check is a skill published in the GitHub repository atretyak1985/swarmery (7 stars, last pushed today), licensed Apache-2.0. It adds 54 tokens to every session and 885 once invoked, about $0.0002 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.