rollback

rollback is a skill for Claude Code, Codex from ww-w-ai/bkit-claude-code. It costs 90 tokens per session (1,609 once invoked), scanned A, original, Apache-2.0.

Manage PDCA checkpoints and rollback — create, list, restore for safe recovery. Rollback events are recorded via lib/audit/audit-logger ACTIONTYPES.rollbackexecuted. For sprint-level recovery, individual feature rollbacks may be triggered from within sprint phases (sprint itself is forward-only — terminal state is…

Skill for Claude CodeCodex

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/ww-w-ai/bkit-claude-code/rollback
Any agent
npx skills add ww-w-ai/bkit-claude-code --skill rollback
Clone the repo
git clone --depth 1 https://github.com/ww-w-ai/bkit-claude-code

Made for: Claude Code, Codex.

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/ww-w-ai/bkit-claude-code/rollback.svg)](https://agentmods.dev/skills/ww-w-ai/bkit-claude-code/rollback)
Your own site
<a href="https://agentmods.dev/skills/ww-w-ai/bkit-claude-code/rollback"><img src="https://agentmods.dev/badge/skills/ww-w-ai/bkit-claude-code/rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00090 $0.01609
Opus 5 $0.00045 $0.00805
Sonnet 5 $0.00018 $0.00322
Haiku 4.5 $0.00009 $0.00161

Measured yesterday against content hash 320fb51b2852, 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 yesterday.

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 · 185 lines

How it starts

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

Rollback Skill

User-invocable skill for checkpoint management and PDCA state rollback.

Arguments

Argument Description Example
(none) List available checkpoints (same as list) /rollback
list List all available checkpoints /rollback list
to <checkpoint-id> Restore to a specific checkpoint /rollback to cp-1710842700000
phase Rollback to previous PDCA phase /rollback phase
reset <feature> Reset feature to initial (idle) state /rollback reset user-auth

Action Details

list (Default)

List all available checkpoints for the current or specified feature.

  1. Read checkpoint metadata from .bkit/checkpoints/
  2. Filter by current active feature (or show all if no active feature)
  3. Sort by timestamp (newest first)
  4. Display formatted checkpoint list

Checkpoint Metadata Schema:

{
  "id": "cp-1710842700000",
  "feature": "user-auth",
  "phase": "design",
  "type": "auto",
  "timestamp": "2026-03-19T10:30:00.000Z",
  "description": "Auto-checkpoint before Do phase",
  "pdcaStatus": { "phase": "design", "matchRate": 0, "iterationCount": 0 },
  "files": ["docs/02-design/features/user-auth.design.md"]
}

Output Format:

--- Checkpoints: user-auth ------------------------
ID                    Phase    Type   Date                Description
cp-1710842700000      design   auto   2026-03-19 10:30   Before Do phase
cp-1710839100000      plan     auto   2026-03-19 09:25   Before Design phase
cp-1710835500000      idle     manual 2026-03-19 08:15   Manual save point
---------------------------------------------------
Total: 3 checkpoints

Usage: /rollback to cp-1710842700000

to

Restore state to a specific checkpoint.

  1. Validate the checkpoint ID exists in .bkit/checkpoints/
  2. Read the checkpoint metadata and saved state
  3. Display what will be restored (phase, files, status)
  4. Require user confirmation via AskUserQuestion (always, regardless of automation level)
  5. On confirmation: a. Create a safety checkpoint of current state (before rollback) b. Restore pdca-status.json to the checkpoint's saved state c. Restore any saved file snapshots d. Write audit log: checkpoint_restored e. Display confirmation with restored state
  6. On rejection: Cancel and display current state

Read the full file on GitHub · 185 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. yesterday First seen · 185 lines · 90 tokens per session scan A 320fb51b2852

Subscribe to this mod's changes

rollback is a skill published in the GitHub repository ww-w-ai/bkit-claude-code (595 stars, last pushed 18d ago), licensed Apache-2.0. It adds 90 tokens to every session and 1,609 once invoked, about $0.0005 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-09-03.

Related

Other skills, from other repositories

deep-research

Professional deep research report generation — multi-agent collaboration with parallel chapter writing, automatic latest-data targeting, multilingual output, and built-in quality checks.

hoolulu/deep-research · 32 tokens

ai-native-sdlc

Run the AI-native SDLC loop — Plan, Design, Build, Test, Deploy, Maintain — with versioned artifacts and human approval gates at every handoff. Use when the user states a goal, idea, feature, or change request and expects the agent to scaffold and drive the project through the full lifecycle instead of jumping…

bashebr/ai-native-sdlc · 75 tokens

code-auditor

Independent pre-merge review of a git diff, PR, or named files. Use when the user asks to review a PR, inspect current git changes, or hunt functional regressions, missed scenarios, wrong assumptions, concurrency bugs, and test gaps as an independent reviewer who does not defend the author's approach /…

bahayonghang/my-ai-cli-toolkit · 176 tokens

三月七 Agent 角色扮演

让AI Agent以《崩坏:星穹铁道》看板娘「三月七」的语气、思维方式和人设完成所有任务—— 回答、思考、编写文档、写代码、分析数据等。三月七自称"本姑娘",称呼对话发起者为"开拓者"。 支持中文、英文、日文、韩文四种语言。 当用户明确要求"用三月七的风格"、"像三月七一样"、"按三月七人设"等指令时触发; 也可由用户通过 /march7 命令手动调用。.

denceee/march-7th-skill · 156 tokens

sast-horusec

Multi-language static application security testing using Horusec with support for 18+ programming languages and 20+ security analysis tools. Performs SAST scans, secret detection in git history, and provides vulnerability findings with severity classification. Use when: (1) Analyzing code for security vulnerabilities…

AgentSecOps/SecOpsAgentKit · 121 tokens

notebooklm-slides

This skill should be used when generating pedagogically-aligned slide decks from educational content using NotebookLM. It addresses the convergence toward generic, text-heavy slides by providing structured prompts that create engaging, proficiency-appropriate presentations aligned with specific educational frameworks.

mjunaidca/robolearn · 54 tokens