validate-infra

validate-infra is a skill for Claude Code from ivanhoinacki/team-exp-claude-config. It costs 61 tokens per session (3,193 once invoked), scanned C, original, MIT.

A check for consistency between infrastructure settings, environment variables, application configuration, and validation schemas. Infrastructure settings describe how the application is configured and deployed.

In plain words
What is it for?
Use it when adding environment variables, changing Pulumi deployment configuration, checking staging and production settings, or preparing for a deployment.
Why use it?
It catches mismatches that can leave a required setting missing, put a secret in the wrong place, or make a value undefined when the application runs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit Use it when adding environment variables, changing Pulumi deployment configuration, checking staging and production settings, or preparing for a deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivanhoinacki/team-exp-claude-config/validate-infra
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 ivanhoinacki/team-exp-claude-config --skill validate-infra
Clone the repo
git clone --depth 1 https://github.com/ivanhoinacki/team-exp-claude-config

Made for: Claude Code.

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 validate-infra

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanhoinacki/team-exp-claude-config/validate-infra/github.svg)](https://agentmods.dev/skills/ivanhoinacki/team-exp-claude-config/validate-infra)
Your own site
<a href="https://agentmods.dev/skills/ivanhoinacki/team-exp-claude-config/validate-infra"><img src="https://agentmods.dev/badge/skills/ivanhoinacki/team-exp-claude-config/validate-infra/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 validate-infra

Your own site · 80×15
<a href="https://agentmods.dev/skills/ivanhoinacki/team-exp-claude-config/validate-infra"><img src="https://agentmods.dev/badge/skills/ivanhoinacki/team-exp-claude-config/validate-infra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,193 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00061 $0.03193
Opus 5 $0.00030 $0.01597
Sonnet 5 $0.00012 $0.00639
Haiku 4.5 $0.00006 $0.00319

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

Security

Grade C, and why

validate-infra scanned grade C 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 10d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

- Extract all env var mappings
skills/validate-infra/SKILL.md · 357 lines

How it starts

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

Phase 0: Vault RAG (MANDATORY, BEFORE any Read/Grep)

You MUST call query_vault(query, service_filter) BEFORE reading codebase files or external sources. This is enforced by hook. No exceptions.


Validate Infrastructure, Config Consistency Check

Working Directories

  1. Obsidian workspace (docs, plans, features): __VAULT_ROOT__
  2. Codebase (all LE services): __CODEBASE_ROOT__

Validate that environment variables, Pulumi config, application config, and schema validation are consistent across all layers.


Common Agent Mistakes

  1. Single-environment check: Checking only staging Pulumi config and missing that prod is different. ALWAYS check BOTH Pulumi.staging.yaml and Pulumi.prod.yaml.
  2. Ignoring secretNames vs envVars: Putting a secret value in envVars[] instead of secretNames[]. Any key containing SECRET/KEY/TOKEN/PASSWORD/PRIVATE/CREDENTIAL must be in secretNames[].
  3. Missing schema.ts: Verifying env vars exist in Pulumi and environment-variables.ts but forgetting to check if schema.ts validates them. A missing schema entry means silent undefined at runtime.
  4. Config layer skip: Checking Layer 1 (Pulumi) and Layer 2 (env-vars) but not Layer 3 (config/*.ts). The config layer is where env vars get organized and typed.
  5. False positive on non-prod fallbacks: Reporting ?? '' fallbacks in test/spec/dev configs as issues. These are intentional and required for strummer validation.
  6. Not generating fix commands: Finding issues but not generating copy-paste ready fix commands. Every issue must have an actionable fix.

The 4-Layer Chain (all must be in sync)

Layer 1: Pulumi YAMLs          -> Defines env var values per environment
Layer 2: environment-variables.ts -> Maps process.env.* to named variables
Layer 3: config/*.ts            -> Organizes vars into config sections
Layer 4: schema.ts              -> Validates config shape at startup

If ANY layer is missing an env var, the service fails:

Read the full file on GitHub · 357 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. 10d ago First seen · 357 lines · 61 tokens per session scan C 2a2c948782c9

Subscribe to this mod's changes

validate-infra is a skill published in the GitHub repository ivanhoinacki/team-exp-claude-config (2 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 3,193 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). 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

cost-optimization

Optimize cloud costs across AWS, Azure, GCP, and OCI through resource rightsizing, tagging strategies, reserved instances, and spending analysis. Use when reducing cloud expenses, analyzing infrastructure costs, or implementing cost governance policies.

wshobson/agents · 48 tokens

istio-traffic-management

Configure Istio traffic management including routing, load balancing, circuit breakers, and canary deployments. Use when implementing service mesh traffic policies, progressive delivery, or resilience patterns.

wshobson/agents · 40 tokens

terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

wshobson/agents · 44 tokens

linkerd-patterns

Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

wshobson/agents · 41 tokens

ultralytics-platform

This skill should be used when user asks to "upload my model to Ultralytics Platform", "push this run to the platform", "upload a dataset to platform", "download a dataset from platform", "search platform datasets", "start cloud training", "train on platform GPUs", "export a model on platform", "deploy a model…

fcakyon/claude-codex-settings · 112 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens