cige-environment-recovery

cige-environment-recovery is a skill for Claude Code from vivekkrishna/agentic-validation-skills. It costs 48 tokens per session (476 once invoked), scanned A, original, Apache-2.0.

A recovery step for CIGE tests when the failure comes from the test environment rather than the product. It restores setup conditions and then runs the full test again.

In plain words
What is it for?
Use it after a classified infrastructure failure to re-authenticate, seed data, reconnect services, or recreate the temporary environment, with escalation after three failed attempts.
Why use it?
It handles problems such as failed login, unreachable services, missing test data, or an unprepared temporary environment without changing the test itself.

Skill for Claude Code

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

Part of the agentic-validation-skills plugin — 5 skills shipped together

Good fit Use it after a classified infrastructure failure to re-authenticate, seed data, reconnect services, or recreate the temporary environment, with escalation after three failed attempts.

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

Made for: Claude Code.

Or install agentic-validation-skills, the plugin that ships this one along with the rest of its 5 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 cige-environment-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery/github.svg)](https://agentmods.dev/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery)
Your own site
<a href="https://agentmods.dev/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery"><img src="https://agentmods.dev/badge/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery/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 cige-environment-recovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery"><img src="https://agentmods.dev/badge/skills/vivekkrishna/agentic-validation-skills/cige-environment-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 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.00048 $0.00476
Opus 5 $0.00024 $0.00238
Sonnet 5 $0.00010 $0.00095
Haiku 4.5 $0.00005 $0.00048

Measured today against content hash b846bf179746, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cige-environment-recovery 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 today.

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/cige-environment-recovery/SKILL.md · 44 lines

What it actually says

CIGE: EnvironmentRecoveryAgent

Invoked by cige-failure-classification when a run is classified as an Infrastructure Failure. Restores the environment; never touches the test definition.

When to invoke

  • Execution failed before reaching the system under test: auth error, service unreachable, missing seed data, ephemeral environment not bootstrapped
  • You have already confirmed (via cige-failure-classification) that this is an environment problem, not a product defect or stale test

If you are not confident the failure is infrastructure-only, do not use this skill — go back to cige-failure-classification.


What it does

  1. Reads Context to identify what needs restoring: environment type, preconditions (seed data, auth state, feature flags), dependent services.
  2. Attempts recovery:
    • Re-authenticate
    • Re-seed data
    • Restart or reconnect dependencies
    • Re-provision the ephemeral environment if it wasn't bootstrapped
  3. Re-runs the test in full after recovery.
  4. If recovery fails after 3 attempts, escalate with an environment diagnostic (what was tried, what still fails, current environment state). Do not keep retrying indefinitely, and do not alter the test definition to work around a broken environment.

Field permissions

Field Permission
Context Read-only — used to know what to restore, never rewritten
Intent Never touch
Guardrails Never touch
Execution[] Never touch

The test is not the problem, so nothing about the test changes. The only output of this skill is either a restored environment (silent success, test re-run) or an escalation.

Human gate

Not required for recovery attempts themselves — environment restoration (re-auth, re-seed, restart) is reversible and routine. Required only when escalating a persistent failure after 3 attempts; the escalation should go to a human, not trigger a test-definition change on its own.

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. today Changed · +5 lines · +48 tokens per session b846bf179746
  2. 11d ago First seen · 39 lines · 0 tokens per session scan A 354877b7b7ac

Subscribe to this mod's changes

cige-environment-recovery is a skill published in the GitHub repository vivekkrishna/agentic-validation-skills (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 476 once invoked, about $0.0002 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

phx-work

Execute Elixir/Phoenix plan tasks with progress tracking. Use after phx-plan to implement features with mix compile and mix test verification after each step, or --continue to resume interrupted work.

oliver-kriska/claude-elixir-phoenix · 43 tokens

lab:autoresearch

Self-improving loop for plugin skills. Reads program.md, proposes one mutation per iteration, evaluates against deterministic scorer, keeps improvements via git, reverts failures. Targets weakest skill+dimension. Use with /loop for overnight runs.

oliver-kriska/claude-elixir-phoenix · 52 tokens

codex-loop

Fix Elixir/Phoenix code until Codex CLI review comes back clean — bounded review, fix, verify loop before opening a PR. Use when codex is installed and you want an external cross-model critic on your changes before pushing.

oliver-kriska/claude-elixir-phoenix · 52 tokens

verify

Verify Elixir/Phoenix changes — compile, format, and test in one loop. Use after implementation, before PRs, or after fixing bugs.

oliver-kriska/claude-elixir-phoenix · 33 tokens

codex-ab

Run an A/B codex review experiment — holistic codex review vs 3 focused dimension passes (security, ecto, liveview) on the branch diff, classify findings, report a panel-value verdict. Use when the branch is fresh, before any codex review runs.

oliver-kriska/claude-elixir-phoenix · 60 tokens

mix-compression

Reduce mix output noise (5-15% token savings) by installing rtk filters that compress mix test/credo/dialyzer/compile output before it reaches Claude. Use when long mix output floods context.

oliver-kriska/claude-elixir-phoenix · 48 tokens