Skip to content
Machine Learning
Skill

/revert-pr

Decide whether a merged PR should be reverted or fixed forward, before reverting anything. Use whenever you are about to revert a merged PR or commit, pull one out of a release, or are asked to — including "it isn't ready", "its preconditions aren't met" or "hold it for the next

From plugin
civitai
7.3k51 skills16 agents3 commands

Claude Code

$ npx -y skills add civitai/civitai --skill revert-pr --agent claude-code

SKILL.md

revert-pr.SKILL.md
name: revert-pr
description: Decide whether a merged PR should be reverted or fixed forward, before reverting anything. Use whenever you are about to revert a merged PR or commit, pull one out of a release, or are asked to — including "it isn't ready", "its preconditions aren't met" or "hold it for the next release".

Revert or fix forward

A revert undoes everything a PR did to fix one thing about it, and someone has to land it again later. Fixing that one thing is usually smaller. Revert only when it is the fastest safe option, and work that out before opening one.

1. What happens if it ships as it is?

Read the code and the deploy notes, and say what breaks. A revert is for real harm:

  • something is broken in production, or will be once it deploys;
  • data is lost or exposed, or will be once it deploys.

These are not harm on their own: a deploy step that has not run, a precondition that one more change would meet, a review concern, a release going out soon. A release deadline decides how fast the fix has to be, not whether to revert: if shipping the PR breaks nothing, the release ships with it.

2. What is the forward fix?

Name the smallest change that removes the problem: the missing backfill, the guard, the config value, an existing feature flag turned off, a step added to the deploy notes. Estimate it against the revert plus its re-land. When step 1 found no harm, the forward fix wins whatever it costs.

Check what a revert would not undo: an applied migration, data already written, a deploy step already run. Reverting the code over them can leave a worse state than either version.

3. Ask before reverting

Unless step 1 found harm that cannot wait, put both options to the person who asked for the revert and to the PR's author: what you found, the forward fix and its cost, and the revert. They decide.

4. If you still revert

The revert PR body says:

  • the harm the revert prevents, in one sentence (step 1);
  • the forward fix that was considered, and why it was not taken;
  • what has to be true to re-land it, and who checks.

If the first line cannot be filled in, do not open the revert.

Read more
@civitai
Ships withcivitai

A repository of models, textual inversions, and more

7.3k51 skills16 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7.3k
Star history of civitai/civitai on GitHub, a chart by star-history.com

Other skills on civitai.

add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

@civitai@civitaiInstall Skill
add-generation-support

add-generation-support

Wire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph and…

@civitai@civitaiInstall Skill
add-trainer-model

add-trainer-model

Add a new trainable base model to BOTH trainers end-to-end — the in-app trainer (main Next.js app, src/) and the Training Studio…

@civitai@civitaiInstall Skill
add-training-support

add-training-support

Wire an existing ecosystem into the LoRA training system so it appears as a trainable base model in the training form. Adds the…

@civitai@civitaiInstall Skill
app-capture

app-capture

Deterministically drive a first-party Civitai App Block in the operator's browser and produce store-ready screenshots,…

@civitai@civitaiInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow12d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast2w7.4k
@feast-dev@feast-devInstall Skill
accessing-mlflow

accessing-mlflow

Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…

@nvidia@nvidiaInstall Skill

Questions about revert-pr.

Which coding agents can use revert-pr?
revert-pr installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.