detailed-pr-description — скилл для Claude Code
Пишет тело GitHub PR с контекстом, рисками и результатами проверок или оценивает, хватает ли тестов в ветке.
npx skills add biw/skills --skill detailed-pr-description -a claude-codeЧто делает detailed-pr-description
Скилл работает в трёх режимах. Оценка отвечает на вопрос, достаточно ли сильные тесты в ветке, и тело PR при этом не трогает. Черновик собирает описание локально или прямо в ответе. Обновление и публикация правят PR на GitHub, но только если вы прямо попросили обновить, отредактировать или опубликовать. Доступ к gh сам по себе разрешением на правку не считается.
Сначала скилл определяет PR и базовую ветку через gh pr view --json number,title,body,baseRefName,headRefName,url, затем собирает доказательства из git status --short, статистики диффа, коммитов, изменённых файлов, тестов, миграций и конфигов. Для черновика подгружается шаблон assets/pr-body.md.tmpl, если в репозитории нет своего. В теле обязателен один фрагмент реально изменённого кода в блоке с ограничением в 15 строк — раздела со ссылками недостаточно.
Тесты скилл инвентаризирует и запускает самые узкие надёжные проверки, а затем более широкие, если они описаны. Покрытие получает одну из трёх оценок: достаточное, частично достаточное, недостаточное. Уверенность из непроведённых или нерелевантных тестов не выводится. Правки в коде скилл не делает, если об этом не попросили отдельно.
Какие задачи решает
- собрать тело PR с контекстом, рисками и планом доработок
- понять, хватает ли тестов в ветке перед ревью
- зафиксировать упавшие и пропущенные проверки с причинами
- дать ревьюеру точные ссылки на файл и строку
- обновить описание существующего PR через
gh pr edit
Примеры запросов агенту
- Оцени, достаточно ли тестов в этой ветке, тело PR не трогай
- Собери черновик описания PR по изменениям в ветке
- Обнови описание PR номер 42 на GitHub
Как установить detailed-pr-description
1Через Skills CLI (Vercel)
npx skills add biw/skills --skill detailed-pr-description -a claude-code2Вручную: положить файлы
~/.claude/skills/detailed-pr-description/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/detailed-pr-description/
1Через Skills CLI (Vercel)
npx skills add biw/skills --skill detailed-pr-description -a codex2Вручную: положить файлы
.agents/skills/detailed-pr-description/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add biw/skills --skill detailed-pr-description -a cursor2Вручную: положить файлы
.cursor/skills/detailed-pr-description/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install biw/skills detailed-pr-description2Вручную: положить файлы
.github/skills/detailed-pr-description/SKILL.md1Через Skills CLI (Vercel)
npx skills add biw/skills --skill detailed-pr-description -a gemini-cli2Командой платформы
gemini skills install https://github.com/biw/skills --path skills/detailed-pr-descriptionВручную: положить файлы
.devin/skills/detailed-pr-description/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add biw/skills --skill detailed-pr-description -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о detailed-pr-description
Как установить detailed-pr-description в Claude Code?
Выполните npx skills add biw/skills --skill detailed-pr-description -a claude-code. Файл скилла окажется по пути ~/.claude/skills/detailed-pr-description/SKILL.md.
Что делает detailed-pr-description?
Оценивает покрытие тестами в ветке либо готовит и обновляет описание GitHub PR: контекст, риски, доработки, ссылки на код и результаты проверок.
Скилл сам правит PR на GitHub?
Только когда вы явно просите обновить, отредактировать или опубликовать. В режиме черновика он пишет .context/pr-description.md и gh pr edit не вызывает.
Исходный текст
SKILL.md · MIT
--- name: detailed-pr-description description: Assess test coverage or draft/update GitHub PR descriptions with self-contained context, risks, follow-up work, focused code references, and validation results. --- # Detailed PR Description ## Resolve the outcome - **Assessment:** judge whether branch tests are strong enough; do not draft or update a PR body. - **Draft:** produce a proposed body locally or in the response; do not mutate GitHub. - **Update/post:** draft and update GitHub only when explicitly asked to update, edit, post, or publish. Perform each requested outcome when combined. CLI access is never authorization to mutate a PR. ## Workflow 1. Identify the PR and base. Prefer `gh pr view --json number,title,body,baseRefName,headRefName,url`; without a PR, compare against the user-provided or repository default base. Fetch before relying on stale refs. 2. Establish evidence from `git status --short`, diff stats and names, relevant commits, changed files, tests, docs, migrations, config, and generated artifacts. Treat `.context/` as scratch and restate any useful fact because it is untracked. Do not rely on chat or memory for behavioral claims. 3. Determine the problem, approach, outcome, deliberate exclusions, risk, compatibility, edge cases, operational gotchas, migrations, flags, cleanup, and reviewer focus. For close-review items, give a precise file/line reference and explanation. Every PR body must include one fenced excerpt of actual changed code, configuration, or documentation from the most review-critical hunk, capped at 15 lines; a link-only review section is insufficient. 4. Inventory affected and added tests. Run the narrowest reliable checks, then documented broader validation when feasible. Classify coverage as sufficient, partially sufficient, or insufficient; name regressions it catches, important gaps, and concrete follow-up tests. Never claim confidence from unrun or irrelevant tests. 5. Deliver only the authorized outcome: - Assessment: report evidence and coverage judgment without creating a body. - Draft: return the body or write `.context/pr-description.md`; never call `gh pr edit`. - Update/post: write `.context/pr-description.md`, then use `gh pr edit <number> --body-file .context/pr-description.md`. If posting fails, preserve the draft and explain why. ## PR body For draft/update work, load `assets/pr-body.md.tmpl` unless the repository has a stronger template. The body must stand alone without chat or local notes. Prefer high-signal context; add screenshots, rollout, migrations, flags, performance, accessibility, security, or release notes only when relevant. Remove an empty section only when it genuinely does not apply; use `Not applicable` when omitting it could hide an important review dimension. ## Quality bar - Ground claims in code, tests, docs, commits, or command output; distinguish facts from assumptions and judgment. - Preserve the existing title and useful body content unless replacement is clearer. - Name behavior instead of saying “various fixes” or “improves behavior.” - Cite precise file/line references for close-review items. Include one actual changed excerpt in a fenced code block; it must be materially helpful and at most 15 lines. - Include failed, skipped, and unavailable validation with reasons. - Do not make unrelated code changes unless explicitly asked. ## Final response Report the PR URL when one exists, whether the outcome was an assessment, local draft, or posted update, validation commands/results, and the bottom-line coverage assessment. If an authorized post failed, report the draft path.
© biw · MIT · biw/skills