rollback

rollback is a skill for Claude Code, Codex from synaptiai/agent-capability-standard. It costs 35 tokens per session (2,406 once invoked), scanned A, original, Apache-2.0.

A recovery tool for restoring files or other system state to a saved checkpoint. A checkpoint is a recorded version that can be used as a restore point after a failed or unwanted change.

In plain words
What is it for?
Reverting failed changes, restoring selected files or all checkpointed state, checking checkpoint integrity, and recording why a rollback was performed.
Why use it?
It provides a defined way to undo mutations and verify that the restored state matches the checkpoint, including checking for leftover files.

Skill for Claude CodeCodex

Part of the agent-capability-standard plugin — 42 skills, 2 hooks 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/synaptiai/agent-capability-standard/rollback
Any agent
npx skills add synaptiai/agent-capability-standard --skill rollback
Clone the repo
git clone --depth 1 https://github.com/synaptiai/agent-capability-standard

Made for: Claude Code, Codex.

Or install agent-capability-standard, the plugin that ships this one along with the rest of its 42 skills, 2 hooks.

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 rollback

README.md
[![agentmods](https://agentmods.dev/badge/skills/synaptiai/agent-capability-standard/rollback.svg)](https://agentmods.dev/skills/synaptiai/agent-capability-standard/rollback)
Your own site
<a href="https://agentmods.dev/skills/synaptiai/agent-capability-standard/rollback"><img src="https://agentmods.dev/badge/skills/synaptiai/agent-capability-standard/rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,406 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.00035 $0.02406
Opus 5 $0.00017 $0.01203
Sonnet 5 $0.00007 $0.00481
Haiku 4.5 $0.00003 $0.00241

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

Security

Grade A, and why

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 3d 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/rollback/SKILL.md · 285 lines

How it starts

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

Intent

Execute rollback to restore system state to a previously created checkpoint. This is the recovery mechanism in the CAVR (Checkpoint-Act-Verify-Rollback) pattern - used when mutations fail or produce undesired outcomes.

Success criteria:

  • State fully restored to checkpoint state
  • Post-rollback hash matches checkpoint hash
  • No orphaned artifacts remain from failed mutation
  • Audit trail of what was reverted

Compatible schemas:

  • schemas/output_schema.yaml

Inputs

Parameter Required Type Description
checkpoint_id Yes string ID of checkpoint to restore to
scope No array Specific files/keys to rollback (default: all in checkpoint)
verify_restore No boolean Whether to verify state matches checkpoint after restore (default: true)
reason No string Why rollback is being performed (for audit)

Procedure

  1. Validate checkpoint: Confirm checkpoint exists and is valid

    • Look up checkpoint by ID in .checkpoints/ or git stash
    • Verify checkpoint integrity (hash check)
    • Confirm checkpoint has not expired
    • If checkpoint missing: FAIL immediately with clear error
  2. Capture current state: Record what will be reverted

    • List all files/state that differ from checkpoint
    • Compute hash of current state for audit
    • Document changes that will be undone
  3. Execute restoration: Apply the restore command

    • For git_stash: git stash pop or git stash apply
    • For file_backup: Copy from .checkpoints/<id>/ to original locations
    • For state_snapshot: Restore state variables
    • Handle any conflicts or errors gracefully
  4. Verify restoration: Confirm state matches checkpoint

    • Recompute hash of restored state
    • Compare with checkpoint's pre_mutation_state.hash
    • Check for orphaned files created during failed mutation
    • Clean up orphaned artifacts if present
  5. Ground claims: Attach evidence of successful rollback

    • Format: tool:bash:<restore_command>, comparison output
    • Include before/after state hashes

Read the full file on GitHub · 285 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 285 lines · 35 tokens per session scan A 4e122829160e

Subscribe to this mod's changes

rollback is a skill published in the GitHub repository synaptiai/agent-capability-standard (4 stars, last pushed 4d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,406 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

employment-contract-templates

Create employment contracts, offer letters, and HR policy documents following legal best practices. Use when drafting employment agreements, creating HR policies, or standardizing employment documentation.

aisa-group/skill-inject · 37 tokens

risk-metrics-calculation

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.

aisa-group/skill-inject · 45 tokens

rag-implementation

Build Retrieval-Augmented Generation (RAG) systems for LLM applications with vector databases and semantic search. Use when implementing knowledge-grounded AI, building document Q&A systems, or integrating LLMs with external knowledge bases.

aisa-group/skill-inject · 49 tokens

hugging-face-dataset-creator

Create and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, and streaming row updates. Designed to work alongside HF MCP server for comprehensive dataset workflows.

aisa-group/skill-inject · 44 tokens

prompt-engineering-patterns

Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production. Use when optimizing prompts, improving LLM outputs, or designing production prompt templates.

aisa-group/skill-inject · 41 tokens

calendar-event-create

Create a Google Calendar event with title, time, and attendees.

KeyArgo/custodian-kernel · 16 tokens