visual-pr — скилл для Claude Code: описание pull request за секунды
Скилл автоматизирует описание pull request: читает дифф, собирает контекст и оформляет PR по шаблону так, чтобы ревьюеру было понятно, зачем нужна перемена и как она устроена.
npx skills add humanlayer/skills --skill visual-pr -a claude-codeЧто делает visual-pr
visual-pr проходит по шести шагам: сначала находит или создаёт PR для текущей ветки, потом читает тикет и дифф, выбирает из них ровно то, что нужно ревьюеру, и заполняет готовый шаблон. Описание содержит одно предложение о причине изменения, 1–3 пункта особенностей (миграции, несовместимости, опасные решения), и структурный обзор вроде дерева файлов или граф-зависимостей — в зависимости от типа перемены.
Скилл работает с gh pr view и git status, чтобы разобраться в ветке, читает исходные артефакты через Read(), и сохраняет готовое описание в .humanlayer/tasks/ или .humanlayer/tasks/pr-{number}/. Язык намеренно простой: без жаргона, в один голос от человека к человеку.
Какие задачи решает
- Написать PR description, который объясняет причину изменения, не перефразируя дифф построчно
- Собрать из кода и тикета ровно те детали, которые важны ревьюеру
- Создать структурный обзор изменений — для больших PR с множеством файлов
- Сохранить описание в историю задачи в
.humanlayer/tasks/
Примеры запросов агенту
- Напиши PR description для текущей ветки
- Опиши pull request, который я только что запушил
- Сгенерируй PR description по шаблону
Как установить visual-pr
1Через Skills CLI (Vercel)
npx skills add humanlayer/skills --skill visual-pr -a claude-code2Вручную: положить файлы
~/.claude/skills/visual-pr/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/visual-pr/
1Через Skills CLI (Vercel)
npx skills add humanlayer/skills --skill visual-pr -a codex2Вручную: положить файлы
.agents/skills/visual-pr/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add humanlayer/skills --skill visual-pr -a cursor2Вручную: положить файлы
.cursor/skills/visual-pr/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install humanlayer/skills visual-pr2Вручную: положить файлы
.github/skills/visual-pr/SKILL.md1Через Skills CLI (Vercel)
npx skills add humanlayer/skills --skill visual-pr -a gemini-cli2Командой платформы
gemini skills install https://github.com/humanlayer/skills --path plugins/visual-pr/skills/visual-prВручную: положить файлы
.devin/skills/visual-pr/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add humanlayer/skills --skill visual-pr -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора6
Весь набор →Похожие
Вопросы о visual-pr
Как установить visual-pr в Claude Code?
Выполни команду npx skills add humanlayer/skills --skill visual-pr -a claude-code. Скилл установится в ~/.claude/skills/visual-pr/SKILL.md.
Что делает visual-pr?
Создаёт или обновляет PR description: читает дифф и контекст, выбирает главное для ревьюера и оформляет по готовому шаблону с одной причиной, несколькими замечаниями и структурным обзором.
Как visual-pr выбирает, что писать в описании?
Читает полный дифф и окружающий код, смотрит на тикет, потом включает только те детали, которые помогают понять, почему перемена нужна и как она устроена. Для каждого типа кода — разный формат: для SQL показывает схему, для React — граф компонентов, для логики — псевдокод.
Исходный текст
SKILL.md · MIT
---
name: visual-pr
description: Only use when the user explicitly invokes this skill by name.
---
# Describe a Pull Request
Create or update the pull request for the current task with a concise description that helps a reviewer understand why the change exists and the shape of the implementation.
## Workflow
1. Read the description template:
`Read({SKILLBASE}/references/pr_description_template.md)`
2. Identify or create the pull request:
- Check the current branch for a PR with `gh pr view --json url,number,title,state,baseRefName,headRefName 2>/dev/null`.
- If no PR exists, inspect `git status --short --branch` and the commits on the current branch.
- Commit task-related changes when needed, push the branch with an upstream, and create a PR for it. Follow the repository's git safety protocol.
- Ask the user to select a PR only when the current branch has no relevant work and there is no safe current-branch PR to create.
3. Gather only the context needed to explain the change:
- Read the ticket and any relevant task artifacts.
- Read the complete PR diff and enough surrounding code to understand behavior and ownership.
- Use `gh pr view` to collect PR metadata and changed files.
- Read `{SKILLBASE}/references/show-me.md` for the visual-outline conventions used in the PR body.
4. Write the PR description using the template:
- Keep **Why the change** to exactly one sentence.
- Keep **Special things to note** to 1-3 bullets. Prioritize reviewer warnings, migrations, compatibility constraints, deliberate omissions, or surprising decisions. Write `- None.` when there are no special considerations.
- Make **Change outline** a compact, `/show-me`-inspired structural view rather than prose or a file-by-file changelog.
- Include only the views that help explain this PR:
- SQL table and endpoint contract changes, plus pseudocode for business logic.
- key data structure / type changes
- A shallow file tree showing changed responsibilities.
- React component tree changes, including important hooks, state, and package boundaries.
- Call-tree, call-stack, control-flow, or data-flow changes.
- Prefer `diff` blocks when showing changes to an existing shape. Show the complete target shape when most of it is new or diff notation would obscure ownership or order.
- Keep each view focused on what a reviewer needs. Omit categories that did not change.
- optionaL: if you are aware of a ticket id/url, a humanlayer task url, or related plan/document urls, or other relevant links, include them in the header, otherwise omit the header
5. Save and publish the description:
- Use `.humanlayer/tasks/{task-slug}/pr-description.md` when the task directory exists; otherwise use `.humanlayer/tasks/pr-{number}/description.md`.
- Update the PR with `gh pr edit {number} --body-file {output-path}`.
- Confirm the update succeeded.
6. Report completion:
- Read `{SKILLBASE}/references/describe_pr_final_answer.md`.
- Respond using that final answer template with the PR URL, saved description URL, and concise list of changed files.
Always read and follow `{SKILLBASE}/references/pr_description_template.md`. Do not expand the PR body beyond that template.
Write as one human talking to another: avoid jargon and slang, and use simple, coherent, concise language.
© humanlayer · MIT · humanlayer/skills