agentleFS
deghosal-2026deghosal-2026/sdlc-squad/skills/sde/pr-plan-and-rollback-notes/SKILL.md

pr-plan-and-rollback-notes

Skill1 starsChanged 8 days agoMITView on GitHub

Write a GitHub PR description — merge-order checklist, verification commands with expected outputs, migration order, rollback with its limits. Use when opening a PR for a risky change.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If this must be reverted after merge, what is the first step — and what does the revert *not* undo (data, flags, caches)?

    line 31
  2. Very specific:

    Write the checklist in merge order,: not authoring order: migrations → code → flags → tests.

    line 39
  3. Distinctive:

    Migration/backfill order: If data moves: the order, the verification per step (row-count/checksum), and reversibility — copied from the …

    line 44
  4. Distinctive:

    No data movement → the section says so.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

pr-plan-and-rollback-notes — GitHub PR description

What it produces

A PR description artifact: implementation checklist (ordered), verification steps (commands and expected outputs), migration/backfill order where relevant, and rollback/recovery steps — formatted to paste straight into a GitHub PR body.

RACI row

PR description & rollback notes — SDE A/R (shared/raci.md); PMT — · TPM C · SDM I.

Inputs required

  • The change being PR'd (design/diff summary)
  • The verification that proves it works (commands, fixtures, dashboards)
  • Migration/backfill steps if data moves
  • The rollback path (from the design's §Rollback if run)

Clarifying questions when inputs are missing

  1. What command shows this works, and what does its output look like when it does?
  2. If this must be reverted after merge, what is the first step — and what does the revert not undo (data, flags, caches)?
  3. What is the reviewer's shortest path to confidence?

Steps

  1. Pin the change. One line: what this PR does, which REQ-n/T-n it serves. A PR serving two concerns is two PRs — flagged here if so.
  2. Write the checklist in merge order, not authoring order: migrations → code → flags → tests. Each item is a T-n from the design, checked off only as merged.
  3. Verification = real commands + expected outputs. "Should work" is not verification. Each step: command, what its output looks like when the change is good (from the paste, or [CONFIRM: expected output]), and where it runs (local/CI/staging).
  4. Migration/backfill order. If data moves: the order, the verification per step (row-count/checksum), and reversibility — copied from the design, never re-derived here. No data movement → the section says so.
  5. Rollback, copied verbatim from the design's §Rollback (or [CONFIRM] if no design was run). Ordered, named steps — plus what rollback does not undo: emails sent, events emitted, external reads. That line is required; its absence is the classic drift.
  6. Out-of-scope block. What this PR deliberately does not contain, so the reviewer knows the boundary without asking.
  7. Read-back pass. Checklist merge-ordered; every verification a runnable command; rollback names its limits; paste-clean (no HTML, no emoji, tables only where schemas allow).
  8. Hand over. Emit the description ending with its Import-target block. Answer questions. Wait.

Output binding

PR body follows shared/system-conventions.md Markdown rules; the verification table reuses the TC-n rows of shared/output-schemas/test-plan-and-cases.md.

Import target

GitHub — the Pull Request description.

Worked example

tests/sde/pr-plan-and-rollback-notes/fixture.md — full input + expected artifact (synthetic). Recorded run: tests/results/run-2026-11-22-v0.1.0.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.