ds-watch-pr — скилл для Claude Code: что делает и как установить
Скилл ds-watch-pr для Claude Code следит за PR через CI и ревью, исправляет реальные проблемы и останавливается после готовности, merge или блокировки.
MIT 536 установок ★ 320 обновлён 2026-10-28
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a claude-codeЧто делает ds-watch-pr
Скилл ds-watch-pr ведёт один pull request через проверки CI и ревью. Он отслеживает новые падения, завершённые проверки, комментарии и ревью, а затем предлагает агенту разобрать событие. Работа заканчивается, когда PR готов, смёржен или заблокирован.
Внутри есть скрипт scripts/watch_pr.py, который запускается по абсолютному пути через python3. Для работы нужен авторизованный gh. При реальной ошибке агент читает исходный код, делает небольшой фикс, запускает упавшую проверку локально, отправляет изменения и перезапускает watcher. Пять циклов исправления и push без успешного завершения останавливают процесс с отчётом о проблемах.
Скилл различает сбой инфраструктуры и тестовую ошибку, повторяя flaky-проверку один раз. При отставании ветки он делает rebase и отправляет изменения с --force-with-lease; при rate limit проверяет gh api rate_limit и ждёт сброса один раз.
Какие задачи решает
- следить за одним PR до зелёных проверок и ревью
- разбирать новые падения CI и комментарии ревью
- исправлять реальные проблемы и отправлять изменения
- отличать flaky-проверку от настоящего сбоя
- проверять, что ветка не имеет статуса BEHIND или DIRTY
Примеры запросов агенту
- Запусти
/ds-watch-prи следи за PR до зелёных проверок и готового ревью. - Проследи за PR до merge, исправляя реальные ошибки CI и замечания ревью.
- Следи за PR и остановись, если он заблокирован или стал неактуальным из-за другого PR.
Как установить ds-watch-pr
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/ds-watch-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ds-watch-pr/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a codex2Вручную: положить файлы
.agents/skills/ds-watch-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a cursor2Вручную: положить файлы
.cursor/skills/ds-watch-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-watch-pr2Вручную: положить файлы
.github/skills/ds-watch-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-watch-prВручную: положить файлы
.devin/skills/ds-watch-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ds-watch-pr
Как установить ds-watch-pr в Claude Code?
Выполни npx skills add aicodeking/deepseek-stack --skill ds-watch-pr -a claude-code, затем используй файл ~/.claude/skills/ds-watch-pr/SKILL.md.
Что делает ds-watch-pr?
Скилл наблюдает за CI и ревью одного PR, сообщает о новых событиях и помогает исправлять реальные проблемы. Он останавливается после готовности, merge или блокировки PR.
Что нужно для работы ds-watch-pr?
Нужны python3 и авторизованный gh. Скрипт watcher запускается по абсолютному пути: scripts/watch_pr.py.
Исходный текст
SKILL.md · MIT
--- name: ds-watch-pr description: "Watches a pull request through CI and review, fixes real findings and stops when it is ready, merged or blocked. Use when the user asks to watch, monitor or babysit a PR, or /ds-watch-pr." --- Keep one PR moving until it is green and reviewed, with as little noise as possible. The watcher is `scripts/watch_pr.py` in this skill's folder. Call it by absolute path. It needs `python3` and a logged-in `gh`. ```bash python3 <skill>/scripts/watch_pr.py <pr> [--repo owner/name] [--until ready|green|any] [--interval 30] [--max-minutes 60] ``` It prints one line per new check failure, finished check run, comment or review, then a final `stop:` line. Exit 0 means the condition is met or the PR merged. Exit 1 means you must act. Exit 2 means bad input. `ready` waits for green checks, a mergeable branch and no change request. `green` waits for checks only. ## Steps 1. Handle what already exists: failed checks and comments newer than the last push. 2. Start the watcher. Run it in the harness's background or monitor tool if it has one, so each line wakes you. Otherwise run it as one long foreground command. 3. On each event, read the source before you change code. Decide if the finding is real. 4. For a real bug or CI failure: make the smallest fix, run the failing check locally, push, then restart the watcher. 5. For a false positive or out-of-scope request: reply with a short reason through `ds-pr-comments`, resolve the thread and list it as a follow-up. 6. Tell real test failures apart from infrastructure flakes. Re-run a flake once before you call it a flake. 7. If the base branch moved or the branch is behind, rebase, push with `--force-with-lease` and restart. 8. Before you call the PR ready, `git fetch` and read the PR again. It must not be BEHIND or DIRTY. ## Stop when - The watcher exits 0. Report the PR as ready, or merged. - Five fix-and-push cycles pass without exit 0. Report what still fails. - Another PR makes this one obsolete. Stop and ask before closing it. - `gh` reports a rate limit. Check `gh api rate_limit` and wait for the reset once. Do not loop. ## Rules - One watcher per PR. Never write your own sleep or polling loop. - When an event needs no action, say nothing. No "still waiting" messages. - Merge only if the user asked for it. Otherwise report ready. - Keep the PR small. Prefer fixes that delete or narrow code.
© aicodeking · MIT · aicodeking/deepseek-stack