Dot Release Rollback Check logo

Dot Release Rollback Check

Organization
dotCMS
dot-release-rollback-check

Check whether a dotCMS release can be safely rolled back to a previous version by inspecting all PRs merged between the two versions for rollback-safety labels. Use when the user asks whether a release or version can be safely rolled back, mentions rollback safety, or runs /check-release-rollback.

Overview

PublisherdotCMS
Repositorycore
Skill namedot-release-rollback-check
Stars
971
Forks
487
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dotCMS on GitHub. Read the source before you install it.

Installation

Install the Dot Release Rollback Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dotCMS/core/tree/main/.claude/skills/dot-release-rollback-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dotCMS/core.git /tmp/core
mkdir -p .claude/skills
cp -r /tmp/core/.claude/skills/dot-release-rollback-check .claude/skills/dot-release-rollback-check
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Dot Release Rollback Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Dot Release Rollback Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Dot Release Rollback Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Check whether a dotCMS release can be safely rolled back to a previous version by inspecting all PRs merged between the two versions for rollback safety labels.

Arguments:

Example: /check-release-rollback 26.04.28-02_7149dce 26.04.11-02_9650131

Version format: YY.MM.DD-patch_commitsha (short commit SHA after the underscore).


Step 0 — Validate inputs

Parse current-version (FROM) and target-version (TO) from the arguments.

Validate that both strings match the pattern \d{2}\.\d{2}\.\d{2}-\d+_[0-9a-f]+. If either is missing or malformed, stop and tell the user: "Version strings must be in the format YY.MM.DD-patch_commitsha (e.g. 26.04.28-02_7149dce)."

Extract the short SHA from each: everything after the last _.

  • current-sha = SHA from current-version
  • target-sha = SHA from target-version

If the two SHAs are identical, stop and report "Nothing to check — versions are identical."

Repo root: Use the current working directory — this command lives inside dotCMS/core and must be run from within the repo. Verify with:

bash
git rev-parse --show-toplevel 2>/dev/null || echo "NOT_A_REPO"

If the output is NOT_A_REPO, stop and tell the user to run this from inside a dotCMS/core checkout.


Step 1 — Get commits between versions

bash
git log --oneline <target-sha>..<current-sha>

If git cannot resolve the SHAs, fetch first:

bash
git fetch --all 2>&1 | tail -3
git log --oneline <target-sha>..<current-sha>

If the SHAs still cannot be resolved after fetching, stop and tell the user: "Could not resolve one or both SHAs. Please verify the version strings are correct and that this is the right repository."

If the log is empty, report "No commits found between these versions — nothing to check."


Step 2 — Extract merged PR numbers

Extract the last #NNNNN from each commit line. This is the actually-merged PR (backport commits carry both the original and backport number — the last is the backport). Revert commits (Revert "... (#X)" (#Y)) are handled correctly by this rule (Y is kept). Commits referencing only an issue number (e.g. fixes #36966) with no PR number are skipped.

bash
git log --oneline <target-sha>..<current-sha> | python3 -c "
import sys, re
prs = []
seen = set()
for line in sys.stdin:
    nums = re.findall(r'#(\d+)', line)
    if nums:
        pr = int(nums[-1])
        if pr not in seen:
            seen.add(pr)
            prs.append(pr)
print(' '.join(str(p) for p in sorted(prs)))
"

Store as PR_LIST. If empty after the python extraction, report "No PR numbers found in the commit range." and stop.


Step 3 — Batch-fetch PR metadata

Get the date range from the two boundary commits:

bash
TARGET_DATE=$(git log -1 --format="%aI" <target-sha>)
CURRENT_DATE=$(git log -1 --format="%aI" <current-sha>)

Fetch all merged PRs in that date range in ONE call (avoids per-PR rate limiting):

bash
gh pr list \
  --repo dotCMS/core \
  --state merged \
  --json number,title,labels \
  --limit 500 \
  --search "merged:>=${TARGET_DATE} merged:<=${CURRENT_DATE}"

Cross-reference the result against PR_LIST — keep only entries whose number appears in PR_LIST. Any number in PR_LIST not present in the API response gets classified as UNLABELED with note "(not found in API response — may be a cross-repo or draft PR)".


Step 4 — Classify each PR

Label constants (canonical source: .github/scripts/gather-release-data/src/categorize.ts):

ROLLBACK_UNSAFE_LABELS = ["AI: Not Safe To Rollback", "Human: Not Safe To Rollback"]
ROLLBACK_SAFE_LABELS   = ["AI: Safe To Rollback",     "Human: Safe To Rollback"]
INFRA_LABELS           = ["Area : CI/CD"]
INFRA_TITLE_PREFIXES   = ["ci:", "ci(", "chore:", "chore(", "build:"]

All label comparisons are case-insensitive (lowercase both sides before comparing).

Classification order (first match wins):

  1. CONFLICTING — has ≥1 ROLLBACK_UNSAFE label and ≥1 ROLLBACK_SAFE label
  2. NOT_SAFE — has ≥1 ROLLBACK_UNSAFE label
  3. SAFE — has ≥1 ROLLBACK_SAFE label
  4. UNLABELED — has neither

For UNLABELED PRs, also set a low_risk flag = true if the PR has an INFRA_LABELS label or its title starts with an INFRA_TITLE_PREFIXES prefix. These are noted separately in the report but do not block the YES verdict.


Step 5 — Generate the report

## Rollback Safety Report
From: <current-version>
To:   <target-version>
Total PRs: N | Safe: N | Not Safe: N | Conflicting: N | Unlabeled: N (N low-risk)

---

### NOT SAFE TO ROLLBACK
(omit section if empty)

| PR | Title | Risk note |
|----|-------|-----------|
| [#N](https://github.com/dotCMS/core/pull/N) | title | inferred risk, e.g. "DB migration", "ES index change" |

For each NOT_SAFE PR infer the risk type from the title:
- "migration" / "Task2…" / "db:" / "schema" → "DB schema migration"
- "reindex" / "opensearch" / "elasticsearch" / "ES" → "ES index change"
- "api:" / "REST" / "breaking" → "API contract change"
- Revert of another NOT_SAFE PR → "Revert of NOT_SAFE #X — both must be considered together"
- Otherwise → "Manual review required"

---

### CONFLICTING LABELS
(omit section if empty)

| PR | Title |
|----|-------|
| [#N](https://github.com/dotCMS/core/pull/N) | title |

---

### UNLABELED — Needs Assessment
(omit section if empty)

| PR | Title | Low-risk? |
|----|-------|-----------|
| [#N](https://github.com/dotCMS/core/pull/N) | title | Yes (CI/infra) / No |

---

### VERDICT

ROLLBACK SAFE: YES / NO / CONDITIONAL

- YES         — no NOT_SAFE, no CONFLICTING, and all UNLABELED are low-risk (CI/infra)
- NO          — one or more NOT_SAFE PRs
- CONDITIONAL — no NOT_SAFE, but CONFLICTING or non-trivial UNLABELED PRs require
                manual engineering review before proceeding

Followed by a 2-3 sentence plain-English summary of the main risks.

Step 6 — Offer to save the report

Ask: "Would you like me to save this as a .txt file?"

If yes, save to cwd as: rollback-safety-<current-version>-to-<target-version>.txt

Frequently asked questions

What does the Dot Release Rollback Check AI skill do?

Check whether a dotCMS release can be safely rolled back to a previous version by inspecting all PRs merged between the two versions for rollback-safety labels. Use when the user asks whether a release or version can be safely rolled back, mentions rollback safety, or runs /check-release-rollback.

Why use Dot Release Rollback Check on TypingMind?

Because you install it once and use it with any model. Dot Release Rollback Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Dot Release Rollback Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dotCMS/core/tree/main/.claude/skills/dot-release-rollback-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Dot Release Rollback Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Dot Release Rollback Check?

As many as you like. As long as a model supports skills, you can use Dot Release Rollback Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Dot Release Rollback Check AI skill free?

It is published on GitHub by dotCMS. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇