change-rollback

change-rollback is a skill for Claude Code from serac-labs/serac. It costs 51 tokens per session (4,978 once invoked), scanned A, original, Apache-2.0.

A procedure for restoring an earlier version of a configuration change in ServiceNow, a platform for managing IT services and workflows. It uses the older version saved by ServiceNow instead of recreating the code from memory.

In plain words
What is it for?
Use it to restore individual configuration records from saved version data and choose between version recovery, update-set back-out, Deleted Records, or no available reversal.
Why use it?
It helps recover from an overwritten Business Rule, widget script, or Script Include while avoiding further damage. It also explains when other ServiceNow recovery options are needed—or cannot undo the result.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skills plugin — 56 skills 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/serac-labs/serac/change-rollback
Any agent
npx skills add serac-labs/serac --skill change-rollback
Clone the repo
git clone --depth 1 https://github.com/serac-labs/serac

Made for: Claude Code.

Or install skills, the plugin that ships this one along with the rest of its 56 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/serac-labs/serac/change-rollback.svg)](https://agentmods.dev/skills/serac-labs/serac/change-rollback)
Your own site
<a href="https://agentmods.dev/skills/serac-labs/serac/change-rollback"><img src="https://agentmods.dev/badge/skills/serac-labs/serac/change-rollback.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,978 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.00051 $0.04978
Opus 5 $0.00026 $0.02489
Sonnet 5 $0.00010 $0.00996
Haiku 4.5 $0.00005 $0.00498

Measured 6d ago against content hash 89ae5a49c50e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

change-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 6d 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.

packages/skills/change-rollback/SKILL.md · 255 lines

How it starts

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

Undoing a Change on a ServiceNow Instance

You overwrote a Business Rule script, or a widget's server script, or a Script Include, and the new version is wrong. Do not reconstruct the old code from memory. The instance already kept a copy of the record as it was before you touched it, in the sys_update_version table. Recovering it is a read, a copy, and a write — no guessing.

The rest of this guide is about getting that read right, and about the three or four cases where no read will save you.

Which mechanism undoes what

Mechanism Undoes Driven from
Version records (sys_update_version) One configuration record, field by field This MCP (read the payload, write the field back), or the UI's Revert to this version
Back out an update set Every change captured in one committed update set, including dictionary changes ServiceNow UI only — there is no tool for it here
Deleted Records (System Definition > Deleted Records) One deleted record plus its cascaded deletes, on audited tables ServiceNow UI only
Nothing Emails already sent, flows already run, data destroyed by a dropped column

Pick the smallest one that covers the damage. Reverting one field of one record is safe and boring. Backing out an update set touches everything in it.

Step 0: delete nothing

Two instincts are wrong and both are expensive.

Deleting the update set does not undo anything. sys_update_set is a container; the changes themselves are rows in sp_widget, sys_script, sys_script_include and friends, and the record of each change is a sys_update_xml row pointing at the set. Deleting the set record leaves every changed artifact exactly as it is, and destroys the only inventory of what changed — the inventory a real back-out needs. You are strictly worse off than before.

Deleting the artifact is not a rollback either. If the record existed before your change, deleting it turns a bad script into a missing script, plus every reference to its sys_id now dangles.

Read the full file on GitHub · 255 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. 6d ago First seen · 255 lines · 51 tokens per session scan A 89ae5a49c50e

Subscribe to this mod's changes

change-rollback is a skill published in the GitHub repository serac-labs/serac (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 51 tokens to every session and 4,978 once invoked, about $0.0003 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-30.