Skip to main content
skill CX Codex

ds-revive — Claude Code skill for stale PRs

The ds-revive Claude Code skill checks whether an old PR still fits the current code. When asked to refresh or revive one, it recommends a rebase, a rewrite, or closure.

MIT 534 installs ★ 320 updated 2026-10-28

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-code
Open on GitHub

What ds-revive does

ds-revive checks whether an old PR still addresses a live problem and whether its implementation fits the current code. It reviews branch history, changes on the base branch, related PRs, and the full diff, then returns one verdict: REVIVE, REWORK, or CLOSE.

For REVIVE, it rebases onto the fresh base, resolves conflicts against the PR’s goal, compares the old and new commit series with git range-diff, and runs focused checks. A CLOSE verdict comes with evidence; the skill does not close the PR. It pushes with --force-with-lease and leaves a dirty worktree untouched.

A conflict that exposes a product or design disagreement stops the process and prompts a fresh verdict. If the lease fails a second time, the skill stops and reports the failure.

What it helps with

  • check whether an old PR’s issue has already been solved
  • compare a PR’s assumptions with current APIs and code structure
  • rebase a stale branch onto the latest base
  • catch changes lost or reintroduced during a rebase
  • classify check failures as real, pre-existing, or infrastructure-related

Example prompts for the agent

  • Check whether this old PR still fits the code and update its branch.
  • Compare this PR’s goal with the current implementation; decide whether to rework or close it.
  • Refresh this PR against the latest base with /ds-revive.

How to install ds-revive

1Skills CLI (Vercel)

npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-code

2Manually: put the files in place

~/.claude/skills/ds-revive/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ds-revive/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ds-revive

How do I install ds-revive in Claude Code?

Run npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-code. The skill file is at ~/.claude/skills/ds-revive/SKILL.md.

What does ds-revive do?

It checks whether an old PR still makes sense against the current code, then recommends reviving, reworking, or closing it. It does not close PRs itself.

Will ds-revive close a PR when it recommends closure?

No. It reports the evidence for a CLOSE verdict and stops without closing the PR.

Source text

SKILL.md · MIT
---
name: ds-revive
description: "Brings an old PR up to date by checking if its idea still fits the current code, then rebasing, reworking or recommending it be closed. Use when asked to rebase, refresh, update or revive a stale PR, or /ds-revive."
---

Update the idea, not only the branch. A clean rebase does not prove the PR still belongs.

## Steps

1. Fetch the latest base, the PR head and any related branches.
2. Record the PR URL, state, base, head branch, head SHA, author, checks and review state. Read the title, body, linked issues, commits, threads and full diff.
3. Write the PR's goal in one sentence.
4. Find the merge base. Read what landed on the base branch since then. Search merged and open PRs for the same problem.
5. Answer each question with evidence (commit, PR or file path):
   - Has this problem already been solved?
   - Did the APIs, types, schemas or structure it relies on change?
   - Was the code it edits moved, deleted or simplified?
   - Would landing it bring back old behavior or make two ways to do one thing?
   - Is the benefit still worth the upkeep?
6. Pick one verdict:
   - **REVIVE**: goal and shape still fit. Go to step 7.
   - **REWORK**: goal fits, shape does not. Describe the smallest rewrite and stop, unless the user also asked for the rework.
   - **CLOSE**: superseded or no longer worth it. Cite the evidence and stop. Do not close it yourself.
7. For REVIVE: work in a clean worktree at the recorded head. Rebase onto the fresh base. Resolve conflicts by the PR's goal and the base's newer rules.
8. Run `git range-diff` on the old and new series. Confirm no intended change was lost and nothing already landed came back.
9. Run the focused checks for the touched area. Mark each failure as real, pre-existing or infrastructure.
10. Push with `--force-with-lease=<branch>:<old head SHA>`.
11. Report the verdict first, then base changes, conflicts, push result, checks and the remaining decision with the PR link.

## Stop when

- The report is written after any of the three verdicts.
- A conflict shows a product or design disagreement. Stop and reconsider the verdict.
- The lease fails. Fetch again and redo steps 4 to 6 once. If it fails again, report.

## Rules

- Treat a dirty worktree as the user's. Never stash or discard it.
- Never merge, close or change the base branch. Never force-push without a lease.
- No conflicts in Git does not mean the PR is current.
- Separate facts you checked from your judgment.
- Post PR comments only when asked, through `ds-pr-comments`.

© aicodeking · MIT · aicodeking/deepseek-stack

Similar skills

SKILL.md skills catalog →

From the same set29

The whole set →
ds-best-of-n The ds-best-of-n Claude Code skill creates several independent versions of a task and combines the strongest result with selected parts from the others. It runs for substantial work where a single attempt may take the wrong direction. CX Codex +1 539installs ds-swarm Claude Code skill splits broad tasks across parallel workers and merges their verified outputs into a single report. Triggers on /ds-swarm during audits or multi-branch races. CX Codex +1 537installs ds-watch-pr ds-watch-pr is a Claude Code skill that follows a pull request through CI and review, fixes real findings, and stops when it is ready, merged, or blocked. CX Codex +1 536installs ds-adopt ds-adopt — a Claude Code skill takes over an existing PR, branch, or agent thread and completes its original goal. It activates when asked to adopt or finish someone else’s work. CX Codex +1 534installs ds-ready ds-ready is a Claude Code skill that automates the delivery workflow through opening a pull request, then stops before merging. CX Codex +1 534installs ds-pr ds-pr — a skill for Claude Code and other platforms that files a concise pull request for the current branch when asked to open a PR. CX Codex +1 534installs ds-ship A Claude Code skill takes a code change through checks and review to a merged pull request. It starts when asked to ship the work, merge once green, or run /ds-ship. CX Codex +1 534installs ds-pr-comments The ds-pr-comments Claude Code skill formats and posts agent-written GitHub PR comments. It runs for PR comments, review replies, and dismissal reasons. CX Codex +1 531installs

Project sponsors

Companies that keep this analytics open