ccc-rollback

ccc-rollback is a skill for Claude Code from KevinZai/commander. It costs 39 tokens per session (1,483 once invoked), scanned A, original, MIT.

A workflow for reverting a deployed change with Git commits, deploying the reverted version, and checking that the system is healthy. A rollback returns software to an earlier known state after a bad release.

In plain words
What is it for?
Use it to select a previous version, create revert commits, redeploy, and verify the result.
Why use it?
It provides a defined response when a production deployment causes problems while preserving the project's history.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool; mentions Codex.

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/kevinzai/commander/ccc-rollback
Any agent
npx skills add KevinZai/commander --skill ccc-rollback
Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevinzai/commander/ccc-rollback.svg)](https://agentmods.dev/skills/kevinzai/commander/ccc-rollback)
Your own site
<a href="https://agentmods.dev/skills/kevinzai/commander/ccc-rollback"><img src="https://agentmods.dev/badge/skills/kevinzai/commander/ccc-rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,483 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.1 $0.00039 $0.01483
Opus 5 $0.00019 $0.00741
Sonnet 5 $0.00008 $0.00297
Haiku 4.5 $0.00004 $0.00148

Measured 2d ago against content hash 15330832cfbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

ccc-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 2d 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.

commander/cowork-plugin-codex/skills/ccc-rollback/SKILL.md · 220 lines

How it starts

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

$ccc-rollback — Revert + Redeploy

CC Commander · $ccc-rollback · Pick target → revert commits → deploy → verify

Use this when production is bad and the safest path is an atomic revert commit followed by a fresh deploy. This workflow preserves history and always redeploys through $ccc-deploy.

Response Shape

Always return these sections:

  1. Brand header:
**CC Commander** · $ccc-rollback · Revert + redeploy
  1. Current state strip:

Use Bash reads, silent on missing refs:

git rev-parse --abbrev-ref HEAD
git rev-parse --short HEAD
git status --short
git tag --sort=-creatordate | head -10
git log --oneline --decorate -12

Render:

Branch: `<branch>` · HEAD: `<short-sha>` · dirty files: `<N>` · latest tag: `<tag-or-none>`

If dirty files are present, warn before any rollback command. Do not proceed until the user confirms.

  1. Rollback target picker — AskUserQuestion
question: "What should I roll back to?"
header: "CC Commander Rollback"
multiSelect: false
autocomplete: true
options:
  - label: "Last good commit"
    value: "last-good"
    description: "You provide or confirm the last known good commit sha."
    preview: "Creates revert commits for everything after that commit, then deploys."
  - label: "Specific tag"
    value: "tag"
    description: "Pick a release tag such as v4.0.0-beta.10."
    preview: "Reverts commits after the tag, pushes, then runs $ccc-deploy."
  - label: "N versions back"
    value: "n-back"
    description: "Choose how many release tags back to restore."
    preview: "Finds the older tag, warns about distance, reverts, then deploys."

Target Resolution

Last Good Commit

Ask for the commit sha if it was not supplied in the prompt. Validate it:

git cat-file -e <target-sha>^{commit}
git merge-base --is-ancestor <target-sha> HEAD
git rev-list --count <target-sha>..HEAD

If HEAD is more than 5 commits ahead of the target, warn:

Warning: HEAD is <N> commits ahead of <target>. This may need a surgical rollback instead of reverting everything after the target.

Read the full file on GitHub · 220 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. 2d ago First seen · 220 lines · 39 tokens per session scan A 15330832cfbe

Subscribe to this mod's changes

ccc-rollback is a skill published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 1,483 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-09-03.