ds-revive — скилл для Claude Code: обновление старых PR
Скилл ds-revive для Claude Code проверяет, подходит ли старый PR текущему коду. По запросу обновить или оживить PR он выбирает: ребейз, переработка или рекомендация закрыть.
MIT 534 установок ★ 320 обновлён 2026-10-28
npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-codeЧто делает ds-revive
ds-revive проверяет, решает ли старый PR всё ещё актуальную задачу и подходит ли его реализация текущему коду. Скилл изучает историю ветки, изменения в основной ветке, связанные PR и полный diff, затем выносит вердикт: REVIVE, REWORK или CLOSE.
Для REVIVE он обновляет базовую ветку, разрешает конфликты с учётом цели PR, сравнивает серии коммитов через git range-diff и запускает проверки затронутой области. При CLOSE скилл приводит факты, но сам PR не закрывает. Изменения отправляются с --force-with-lease; грязный worktree он не прячет и не очищает.
Если конфликт указывает на разногласие по продукту или дизайну, скилл останавливается и пересматривает вердикт. При повторном сбое lease он тоже прекращает работу и сообщает об этом.
Какие задачи решает
- проверить, не решена ли уже задача старого PR
- сопоставить изменения PR с текущими API и структурой кода
- обновить ветку PR относительно свежей базовой ветки
- найти потерянные или повторно внесённые изменения после ребейза
- отделить ошибки проверок от уже существовавших сбоев
Примеры запросов агенту
- Проверь, можно ли оживить этот старый PR, и обнови его ветку.
- Сверь цель PR с текущим кодом и реши, нужно ли его переработать или закрыть.
- Обнови этот PR относительно свежей базовой ветки через
/ds-revive.
Как установить ds-revive
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-code2Вручную: положить файлы
~/.claude/skills/ds-revive/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ds-revive/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a codex2Вручную: положить файлы
.agents/skills/ds-revive/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a cursor2Вручную: положить файлы
.cursor/skills/ds-revive/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-revive2Вручную: положить файлы
.github/skills/ds-revive/SKILL.md1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a gemini-cli2Командой платформы
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-reviveВручную: положить файлы
.devin/skills/ds-revive/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-revive -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ds-revive
Как установить ds-revive в Claude Code?
Выполни npx skills add aicodeking/deepseek-stack --skill ds-revive -a claude-code. Файл скилла находится по пути ~/.claude/skills/ds-revive/SKILL.md.
Что делает ds-revive?
Скилл проверяет, актуальна ли цель старого PR и соответствует ли реализация текущему коду. Он рекомендует оживить PR, переработать его или закрыть; закрывать PR самостоятельно он не будет.
Закрывает ли ds-revive PR сам?
Нет. При вердикте CLOSE он приводит подтверждающие факты и останавливается, не закрывая PR.
Исходный текст
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