environment-management

environment-management is a skill for Claude Code from arjunprabhulal/devops-skills. It costs 114 tokens per session (1,234 once invoked), scanned A, original, MIT.

A way to keep development, staging, and production based on the same system while changing only values such as scale, data, and cost. Preview environments are temporary copies created for individual pull requests.

In plain words
What is it for?
Use it to structure shared infrastructure and deployment code, supply environment-specific values, create pull-request previews, and keep non-production environments useful without paying production-scale costs.
Why use it?
It makes staging a more trustworthy signal of what will happen in production and makes differences visible in configuration changes. It prevents separate environment branches or directories from quietly drifting apart.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the devops-skills plugin — 56 skills shipped together

Good fit Use it to structure shared infrastructure and deployment code, supply environment-specific values…

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

Made for: Claude Code.

Or install devops-skills, the plugin that ships this one along with the rest of its 56 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 environment-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/environment-management.svg)](https://agentmods.dev/skills/arjunprabhulal/devops-skills/environment-management)
Your own site
<a href="https://agentmods.dev/skills/arjunprabhulal/devops-skills/environment-management"><img src="https://agentmods.dev/badge/skills/arjunprabhulal/devops-skills/environment-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,234 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.00114 $0.01234
Opus 5 $0.00057 $0.00617
Sonnet 5 $0.00023 $0.00247
Haiku 4.5 $0.00011 $0.00123

Measured 6d ago against content hash 78d3432c2b61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

environment-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 6d 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/iac/environment-management/SKILL.md · 106 lines

How it starts

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

Environment Management

"It worked in staging" loses all meaning the moment staging is a different system than prod — different topology, different config format, a manually patched box nobody touched since it was built. Staging's entire job is to be a trustworthy predictor of what will happen in prod. Every divergence between them is a bug in that predictor, whether or not anyone notices it before the next incident.

The only differences that should exist between environments are the ones you'd defend out loud: scale, non-critical data, cost. Everything else — topology, versions, how config is structured — should be identical.

Environments should differ by the values you feed the same code, never by forking the code itself.

1. Make the difference a values file, not a branch

The moment staging and prod are separate directories or separate branches, they will diverge — someone fixes a bug in one and forgets the other, or adds a resource to prod under deadline pressure and never backports it. One codebase, one set of modules, environment-specific .tfvars or equivalent values files is the only structure that makes divergence visible in a diff instead of invisible until it breaks something.

See terraform-modules for the module-interface side of this and infrastructure-as-code for the state-isolation side — each environment still needs its own state file even though it shares code.

Done when: the diff between any two environments is fully expressed in their values files, with zero resource-definition files that exist in one environment's directory and not another's.

2. Give every pull request its own throwaway environment

A shared staging environment queues every team behind whoever's currently testing something in it, and a broken staging blocks everyone at once. Ephemeral, per-PR preview environments — spun up on open, torn down on merge or close — remove the queue and catch integration bugs before merge instead of after, when they're entangled with everyone else's changes.

Read the full file on GitHub · 106 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. 6d ago First seen · 106 lines · 114 tokens per session scan A 78d3432c2b61

Subscribe to this mod's changes

environment-management is a skill published in the GitHub repository arjunprabhulal/devops-skills (3 stars, last pushed 12d ago), licensed MIT. It adds 114 tokens to every session and 1,234 once invoked, about $0.0006 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

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-deploy

Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resources by undeploying models and deleting endpoints. Use when asked to actively deploy a model, list the Model Garden CATALOG of available models, check if a…

google/skills · 193 tokens

gke-alert-configuration

Configures alerting policies in Terraform for Google Kubernetes Engine (GKE) clusters, workloads, and services using PromQL and Google Cloud Managed Service for Prometheus. Use when writing, analyzing, validating, or deploying Terraform alerting policies to monitor GKE service latency, traffic, error rates using…

google/skills · 120 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

google-cloud-recipe-foundation-builder

Deploys a baseline landing zone foundation for a Google Cloud Organization, establishing security guardrails using Organization Policies, resource hierarchy folders and projects, billing association, and centralized logging and monitoring. Deploys Google Cloud's recommended security controls and architecture. Use when…

google/skills · 95 tokens