ds-pr — скилл для Claude Code: что делает и как установить
Скилл ds-pr для Claude Code и других платформ создаёт лаконичный пул-реквест для текущей ветки по запросу на открытие PR.
MIT 534 установок ★ 320 обновлён 2026-10-28
npx skills add aicodeking/deepseek-stack --skill ds-pr -a claude-codeЧто делает ds-pr
Агент проверяет существующие пул-реквесты, сравнивает ветку с базой вроде origin/main и проверяет формат недавних слияний. Заголовок описывает пользу для пользователя, а описание строится из проблемы, решения и проверки. Перед отправкой агент вычищает секреты и персональные данные, а после создания выводит ссылку на GitHub.
Шаги включают проверку через gh pr list --head <branch> и создание через gh pr create. При лимите GraphQL запросов агент повторяет запрос через REST-интерфейс gh api repos/<owner>/<repo>/pulls. Для работы требуется установленный интерфейс командной строки gh.
Скилл запускается, когда пользователь просит открыть или создать PR либо произносит фразу /ds-pr.
Какие задачи решает
- создать лаконичный пул-реквест для ветки
- проверить ветку на наличие открытых PR
- очистить описание от секретов и токенов
- повторить запрос через REST при лимите GraphQL
Примеры запросов агенту
- создай пул-реквест для этой ветки
- /ds-pr
- открой PR для текущих изменений
Как установить ds-pr
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/ds-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ds-pr/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-pr -a codex2Вручную: положить файлы
.agents/skills/ds-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-pr -a cursor2Вручную: положить файлы
.cursor/skills/ds-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aicodeking/deepseek-stack skills/ds-pr2Вручную: положить файлы
.github/skills/ds-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/aicodeking/deepseek-stack --path skills/ds-prВручную: положить файлы
.devin/skills/ds-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aicodeking/deepseek-stack --skill ds-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ds-pr
Как установить ds-pr в Claude Code?
Выполните команду npx skills add aicodeking/deepseek-stack --skill ds-pr -a claude-code, затем обратитесь к файлу ~/.claude/skills/ds-pr/SKILL.md.
Что делает ds-pr?
Скилл формирует и отправляет на GitHub короткий пул-реквест для текущей ветки, проверяя diff и очищая текст от секретов.
Что нужно для работы ds-pr?
Для работы требуется утилита командной строки GitHub CLI (gh).
Исходный текст
SKILL.md · MIT
--- name: ds-pr description: "Files a short, clear pull request for the current branch. Use when the user asks to open, file or create a PR, or says /ds-pr." --- Open one real PR whose title and description a busy reviewer can read in ten seconds. ## Steps 1. Check if a PR already exists for this branch (`gh pr list --head <branch>`). If it does, update it. 2. Diff the branch against its base, usually `origin/main`. Confirm the diff matches the goal and holds nothing unrelated. 3. Read the titles of a few recently merged PRs and copy their format. 4. Write a title that says what changed for the user and why it matters, not which function moved. Example: "Cut websocket frames by 70% with compression" beats "Negotiate permessage-deflate". 5. Write the description in this order: - The problem, in one or two plain sentences taken from the user's request. - The fix, in one or two sentences. - One line on how it was proven, if you have proof. - A closing line: `Created with <model> in <harness>.` Use the model name the harness reports. If it reports none, name only the harness. 6. Scan the title, body and any attachments for secrets, tokens, private paths and personal data. Remove them. 7. Create the PR as ready for review, not a draft, so review bots run. 8. Print the PR URL that GitHub returned. ## Stop when - GitHub returned a PR URL. Hand off to `ds-watch-pr` if the user asked for watching. - `gh pr create` fails twice. If the error is a GraphQL rate limit, retry once through REST: `gh api repos/<owner>/<repo>/pulls -f title=... -f head=... -f base=... -F [email protected]`. If that fails too, report the error. ## Rules - No file-by-file change lists in the description. - Do not post follow-up comments unless the request needs one. Use `ds-pr-comments` when it does. - Never guess a model name.
© aicodeking · MIT · aicodeking/deepseek-stack