environment-diagnostics

environment-diagnostics is a skill for Claude Code, Codex from vladkesler/initrunner. It costs 34 tokens per session (1,232 once invoked), scanned A, original, Apache-2.0.

A diagnostic checklist for verifying environment variables, configuration files, ports, and required software versions. These are the settings and system dependencies an application needs to run.

In plain words
What is it for?
It helps onboard developers and troubleshoot test, staging, or deployment problems by checking required settings and their basic formats.
Why use it?
It helps explain setup and deployment failures caused by missing credentials, invalid configuration, unavailable ports, or incompatible dependencies.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/vladkesler/initrunner/environment-diagnostics
Any agent
npx skills add vladkesler/initrunner --skill environment-diagnostics
Clone the repo
git clone --depth 1 https://github.com/vladkesler/initrunner

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 environment-diagnostics

README.md
[![agentmods](https://agentmods.dev/badge/skills/vladkesler/initrunner/environment-diagnostics.svg)](https://agentmods.dev/skills/vladkesler/initrunner/environment-diagnostics)
Your own site
<a href="https://agentmods.dev/skills/vladkesler/initrunner/environment-diagnostics"><img src="https://agentmods.dev/badge/skills/vladkesler/initrunner/environment-diagnostics.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,232 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00034 $0.01232
Opus 5 $0.00017 $0.00616
Sonnet 5 $0.00007 $0.00246
Haiku 4.5 $0.00003 $0.00123

Measured 4d ago against content hash 1081c4b6f528, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

environment-diagnostics scanned grade A 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w '%{http_code}' --max-time 5 https://api.example.com/health
examples/roles/integration-tester/skills/environment-diagnostics/SKILL.md · 170 lines

How it starts

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

Environment diagnostics skill for validating configuration and system state.

When to activate

Use this skill when tests fail with configuration or environment errors, when setting up a new development or staging environment, when a deployment fails with missing config or dependency issues, or when onboarding a new developer who needs to verify their local setup.

Environment variables

Check that required variables are set and non-empty:

python -c "
import os, sys
required = ['DATABASE_URL', 'API_KEY', 'SECRET_KEY']
missing = [v for v in required if not os.environ.get(v)]
if missing:
    print('Missing or empty:', ', '.join(missing))
    sys.exit(1)
print('All required variables present')
"

Common patterns to check:

  • DATABASE_URL -- connection string for the primary database
  • API_KEY / API_SECRET -- external service credentials
  • SECRET_KEY / JWT_SECRET -- application signing keys
  • REDIS_URL / CACHE_URL -- cache connection strings
  • LOG_LEVEL -- logging configuration
  • NODE_ENV / FLASK_ENV / RAILS_ENV -- runtime environment designation

For each variable, verify not just presence but also basic format validity (e.g., DATABASE_URL starts with a known scheme like postgres:// or mysql://).

Config files

Verify expected configuration files exist and parse correctly:

  1. Existence -- check that each expected config file is present.
  2. Syntax -- attempt to parse the file in its format:
python -c "import json; json.load(open('config.json'))"      # JSON
python -c "import yaml; yaml.safe_load(open('config.yaml'))"  # YAML
python -c "import tomllib; tomllib.load(open('pyproject.toml','rb'))"  # TOML
  1. Required fields -- after parsing, verify that mandatory keys exist in the config structure.
  2. Value validation -- check that numeric values are in expected ranges, URLs are well-formed, and enum values match allowed options.

Port conflicts

Check if expected ports are available or already bound:

Read the full file on GitHub · 170 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. 4d ago First seen · 170 lines · 34 tokens per session scan A 1081c4b6f528

Subscribe to this mod's changes

environment-diagnostics is a skill published in the GitHub repository vladkesler/initrunner (41 stars, last pushed 6d ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,232 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.