ccc-rollback

ccc-rollback is a skill for Claude Code from KevinZai/commander. It costs 63 tokens per session (2,012 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.

Good fit Use it to select a previous version, create revert commits, redeploy, and verify the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevinzai/commander/ccc-rollback
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 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/github.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/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 ccc-rollback

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevinzai/commander/ccc-rollback"><img src="https://agentmods.dev/badge/skills/kevinzai/commander/ccc-rollback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,012 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Excessive Agency · line 211
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00063 $0.02012
Opus 5.5 $0.00025 $0.00805
Sonnet 5.5 $0.00013 $0.00402
Haiku 4.5 $0.00006 $0.00201

Measured 7d ago against content hash 9cf9d442d569, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 7d 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 · 211 lines

How it starts

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

$ccc-rollback — Revert and redeploy

CC Commander · $ccc-rollback · pick target → revert commits → push → redeploy → verify

When to use / when not to

  • Use when production is bad and the safest fix is a revert commit followed by a fresh deploy. History is preserved; nothing is rewritten.
  • For an instant platform-level rollback with no git change (vercel rollback, fly releases rollback, wrangler rollback), use $ccc-ship rollback instead.
  • In Codex, ask each picker below as a plain-text question with the same options.

What happens

1. Read the current state

Run in one Bash call; a missing ref is not an error:

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 one line:

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

If dirty files are present, ask with AskUserQuestion before any rollback command: "🟢 Stop — I'll commit or stash first" or "Continue with a dirty tree" (the revert may mix with uncommitted work). Do not proceed without an answer.

2. Rollback target picker — AskUserQuestion

Skip this picker when $ARGUMENTS names the target type.

question: "What should I roll back to?"
header: "Rollback"
multiSelect: false
autocomplete: true
options:
  - label: "🟢 Last good commit"
    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"
    description: "Pick a release tag from the list shown in step 1."
    preview: "Reverts commits after the tag, pushes, then redeploys through $ccc-deploy."
  - label: "N versions back"
    description: "Choose how many release tags back to restore."
    preview: "Finds the older tag, warns about distance, reverts, then deploys."

3. Resolve and validate the target

Last good commit. Ask for the sha if it was not supplied. Validate:

Read the full file on GitHub · 211 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. 7d ago Changed · -9 lines · +24 tokens per session 9cf9d442d569
  2. 1mo 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 today), licensed MIT. It adds 63 tokens to every session and 2,012 once invoked, about $0.0003 per session on Opus 5.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

git-flow

Use when creating a branch, using worktrees for parallel work, committing, or wrapping up. Covers branch naming, conventional commits, short-lived branches, worktree isolation, and final merge/cleanup.

chipfighter/coding-discipline · 43 tokens

memstack-development-changelog-generator

Use when the user says 'generate changelog', 'update changelog', 'what changed', 'release notes', 'write changelog', or needs a formatted CHANGELOG.md from git commit history. Do NOT use for diary entries, git log viewing, or commit message writing.

cwinvestments/memstack · 63 tokens

gitflow

Branching, merging, versioning, and release conventions for the Gitflow workflow, covering main/develop branches, feature/release/hotfix branches, semantic versioning, and pull request rules. Use when creating a branch, naming a branch, planning a release or hotfix, writing a commit message, or setting up branch…

Mindrally/skills · 78 tokens

land-and-deploy

Merge PR, wait for CI, verify deploy, run canary. The complete landing pipeline.

FlorianBruniaux/claude-code-ultimate-guide · 24 tokens

release-notes-generator

Generate release notes in 3 formats (CHANGELOG.md, PR body, Slack announcement) from git commits. Automatically categorizes changes and converts technical language to user-friendly messaging. Use for releases, changelogs, version notes, what's new summaries, or ship announcements.

FlorianBruniaux/claude-code-ultimate-guide · 59 tokens

release-notes

Generate release notes in multiple formats from git commits.

FlorianBruniaux/claude-code-ultimate-guide · 13 tokens