tp-revert

tp-revert is a skill for Claude Code from CurtisThe/three-pillars-plugin. It costs 44 tokens per session (3,310 once invoked), scanned A, original, Apache-2.0.

A controlled way to undo a previously merged design change in Git, the version-control system. It checks the target first, predicts the reversal, preserves selected living documents, and sends the result through the usual pull-request checks.

In plain words
What is it for?
Use it to inspect and revert a design merge commit, keep relevant documents, regenerate related amendments, and prepare the reversal as a single-commit pull request.
Why use it?
It reduces the risk of losing useful documentation or reversing the wrong merge when backing out an earlier design.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the three-pillars plugin — 40 skills, 58 agents shipped together

Good fit Use it to inspect and revert a design merge commit, keep relevant documents, regenerate related amendments, and prepare the reversal as a single-commit pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curtisthe/three-pillars-plugin/tp-revert
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 CurtisThe/three-pillars-plugin --skill tp-revert
Clone the repo
git clone --depth 1 https://github.com/CurtisThe/three-pillars-plugin

Made for: Claude Code.

Or install three-pillars, the plugin that ships this one along with the rest of its 40 skills, 58 agents.

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 tp-revert

README.md
[![agentmods](https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-revert/github.svg)](https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-revert)
Your own site
<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-revert"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-revert/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 tp-revert

Your own site · 80×15
<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-revert"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-revert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,310 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.
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.00044 $0.03310
Opus 5.5 $0.00018 $0.01324
Sonnet 5.5 $0.00009 $0.00662
Haiku 4.5 $0.00004 $0.00331

Measured 1mo ago against content hash 5a23e51de4de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tp-revert 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 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/_probe_fixtures.py, scripts/revert_probe.py, scripts/test_revert_probe_base.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/tp-revert/SKILL.md · 291 lines

How it starts

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

tp-revert — Safe Design Revert

Reverts a previously-landed design merge commit. The skill is depth-gated (newest landing, probe depth 0 only), runs a dry-run forecast, applies git revert -m 1, preserves living docs via carve-out, regenerates amendments, and lands the result through the standard gate.

Not lock-enforcing. The target design's lock is already archived; nothing to claim.


Steps

  1. Run first-run preflight per skills/_shared/first-run.md. Resolve $TP_ROOT with the canonical form:
TP_ROOT="$(bash <skill-dir>/../../skills/_shared/resolve_root.sh --skill-dir <skill-dir>)"

The {pr#} argument requires no design-name validation (it is a PR number or merge sha, not a design slug). Any slug extracted from the PR's headRefName is expected to match [a-z0-9-]+ per skills/_shared/validate-name.md — print a warning if it does not but continue (the slug is used for labeling, not enforcement here).

Step 1 — Probe

python3 "$TP_ROOT"/skills/tp-revert/scripts/revert_probe.py \
    --repo . (--pr {pr#} | --sha {merge-sha}) [--base {default-branch}] --json

--base defaults to the repo's resolved default branch (via skills/_shared/default_branch.py) when omitted — pass it explicitly only to override.

On error field non-null: print the error and stop.

Step 2 — Depth gate (hard line)

  • depth > 0 → REFUSE with reality. Print the forecast conflicted[] set, the documented recipe below, and stop. Proceeding past newest landing (probe depth 0) is manual-only by the operator using the recipe. The skill never automates past newest landing (probe depth 0).
  • depth == 0 but clean == false (unexpected) → same refusal path. Never pretend it is safe.

The depth caveat: a revert is clean only while newest (probe depth 0). Once any later merge lands, the probability of a clean revert drops sharply (probe result: 1/12 merged PRs reverted clean overall — the one clean WAS the newest landing (probe depth 0); past it, zero clean).

Read the full file on GitHub · 291 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. 1mo ago Changed · +12 lines 5a23e51de4de
  2. 1mo ago Changed · +9 lines d56abec61bef
  3. 2mo ago Changed · +1 lines a1eaf485bbb6
  4. 3mo ago First seen · 269 lines · 44 tokens per session scan A d471743f38d0

Subscribe to this mod's changes

tp-revert is a skill published in the GitHub repository CurtisThe/three-pillars-plugin (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 3,310 once invoked, about $0.0002 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-08-31.

Related

tp-revert compared with skills from other repositories

tp-revert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tp-revertCurtisThe/three-pillars-pluginSkill51mo agoApache-2.0A44Claude Code
workflow-patternswshobson/agentsSkill43k2d agoMITA35Claude Code
nw-quality-frameworknWave-ai/nWaveSkill63713d agoMITA23Claude Code
nw-finalizenWave-ai/nWaveSkill63713d agoMITA39Claude Code
nw-swarmnWave-ai/nWaveSkill63713d agoMITA43Claude Code
nw-hotspotnWave-ai/nWaveSkill63713d agoMITA20Claude Code
nw-mikadonWave-ai/nWaveSkill63713d agoMITA19Claude Code