id-rollback

id-rollback is a skill for Claude Code, Codex from lukasrepublic/agentic-foundry. It costs 398 tokens per session (4,013 once invoked), scanned A, original, MIT.

A procedure for safely undoing an infrastructure change by reverting its Git commit, reconciling the declared setup, and checking that the real environment matches it again.

In plain words
What is it for?
Use it during infrastructure incidents to restore the last known good configuration and verify that the revert succeeded.
Why use it?
It provides a defined response when a change fails, contains a defect, or leaves the environment different from the intended setup.

Skill for Claude CodeCodex

Part of the foundry plugin — 80 skills, 8 agents, 8 hooks, 1 MCP server shipped together

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/lukasrepublic/agentic-foundry/id-rollback
Any agent
npx skills add lukasrepublic/agentic-foundry --skill id-rollback
Clone the repo
git clone --depth 1 https://github.com/lukasrepublic/agentic-foundry

Made for: Claude Code, Codex.

Or install foundry, the plugin that ships this one along with the rest of its 80 skills, 8 agents, 8 hooks, 1 MCP server.

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 id-rollback

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/id-rollback.svg)](https://agentmods.dev/skills/lukasrepublic/agentic-foundry/id-rollback)
Your own site
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/id-rollback"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/id-rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 398 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,013 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00398 $0.04013
Opus 5 $0.00199 $0.02006
Sonnet 5 $0.00080 $0.00803
Haiku 4.5 $0.00040 $0.00401

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

Security

Grade A, and why

id-rollback 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 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.

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/id-rollback/SKILL.md · 191 lines

How it starts

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

id-rollback — the incident safe-revert procedure (git revert → reconcile → verify-landed)

The infra-delivery step sequence (a documented procedure this skill family forms — no workflow engine or state-machine file ships)'s incident path. When a delivered change did NOT land — a NOT-LANDED realization (the derive_realization_verdict consequence), an escaped defect, bad config — the operator runs this safe-revert PROCEDURE to restore the last-known-good IaC and prove reality matches it again. The shape is git revert → reconcile → verify-landed: revert the offending commit (restoring the prior authorized IaC via the governed /foundry:revert), drive the GitOps controller's idempotent reconcile toward the reverted IaC, then run the realization read through the post-deploy realization frame — ArgoCD Synced ∧ Healthy + post-revert tofu plan == ∅ against the reverted IaC ⇒ the revert LANDED (the incident is closed); a residual OutOfSync / non-empty plan ⇒ NOT-LANDED (the revert itself did not realize — escalate). It is a PROCEDURE skill the generic agent runs.

ADVISORY — observe-and-record, the floor re-derives, the skill self-certifies nothing

This skill is ADVISORY. The post-deploy realization frame is an observe-and-record path (the id-sync/id-verify discipline): id-rollback records the post-revert realization observation; the realization gate (derive_realization_verdict — a real, live function) + deploy-status adjudicate the recorded signals — the skill self-certifies NOTHING. The revert restores a previously authorized state through the governed /foundry:revert: it reuses the prior authorization (no new contract), is still subject to the merge floor, and is NOT a skip of the no-skip front-authorization gate — the revert's reused authorization + the realization observation are surfaced to the operator/reviewer at the merge floor (the adopter's branch protection + CI checks — see docs/merge-floor.md). The both-modes floor is unchanged: front-authorization, the merge floor, security review, typed contracts. Craft guidance FOR the trusted operator, not a defense against them.

Read the full file on GitHub · 191 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 · 191 lines · 398 tokens per session scan A 6867dce16155

Subscribe to this mod's changes

id-rollback is a skill published in the GitHub repository lukasrepublic/agentic-foundry (1 stars, last pushed 2d ago), licensed MIT. It adds 398 tokens to every session and 4,013 once invoked, about $0.0020 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.