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
npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/ds-revive/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/ds-revive/
1Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a codex2Manually: put the files in place
.agents/skills/ds-revive/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a cursor2Manually: put the files in place
.cursor/skills/ds-revive/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-revive2Manually: put the files in place
.github/skills/ds-revive/SKILL.md1Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a gemini-cli2Platform CLI
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-reviveManually: put the files in place
.devin/skills/ds-revive/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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