pr-description · minimax-ai — скилл для Claude Code: что делает и как установить
Скилл pr-description для Claude Code составляет и проверяет описания pull request по фиксированной структуре для GitHub и GitLab. Запускается при открытии PR или по замечаниям MCode Review.
MIT ★ 741 обновлён 2026-11-11
/plugin marketplace add MiniMax-AI/mcode-stack
/plugin install jiachen@mcode-stackЧто делает pr-description
Скилл pr-description формирует текст описания PR или проверяет уже готовый по диффу ветки. Шаблон включает контекст задачи, изменения, проверки, план отката и список невыполненных тестов. Если в репозитории задан .github/pull_request_template.md или шаблон GitLab, скилл сохраняет его заголовки и встраивает нужные разделы внутрь.
При проверке скилл сверяет текст с диффом, выявляя неучтённые изменения логики и пропущенные шаги миграций. Сгенерированное описание сначала выводится пользователю. Публикация в репозиторий выполняется через утилиты gh или glab строго по отдельной команде, не меняя заголовки, метки и ветки без спроса.
Какие задачи решает
- оформить описание pull request с планом отката и тестами
- проверить соответствие описания PR реальному диффу кода
- заполнить репозиторный шаблон pull request без потери разделов
- опубликовать готовое описание через GitHub CLI или GitLab CLI
Примеры запросов агенту
- Составь описание для нового PR по текущей ветке
- Проверь описание pull request и найди расхождения с диффом
- Обнови описание MR через glab и добавь шаги проверки
Как установить pr-description
1Через маркетплейс плагинов
/plugin marketplace add MiniMax-AI/mcode-stack/plugin install jiachen@mcode-stackКоманда ставит плагин jiachen целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add MiniMax-AI/mcode-stack --skill pr-description -a claude-code3Вручную: положить файлы
~/.claude/skills/pr-description/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/pr-description/
1Через Skills CLI (Vercel)
npx skills add MiniMax-AI/mcode-stack --skill pr-description -a codex2Вручную: положить файлы
.agents/skills/pr-description/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add MiniMax-AI/mcode-stack --skill pr-description -a cursor2Вручную: положить файлы
.cursor/skills/pr-description/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install MiniMax-AI/mcode-stack stacks/jiachen/skills/pr-description2Вручную: положить файлы
.github/skills/pr-description/SKILL.md1Через Skills CLI (Vercel)
npx skills add MiniMax-AI/mcode-stack --skill pr-description -a gemini-cli2Командой платформы
gemini skills install https://github.com/MiniMax-AI/mcode-stack --path stacks/jiachen/skills/pr-descriptionВручную: положить файлы
.devin/skills/pr-description/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о pr-description
Как установить pr-description в Claude Code?
Выполните в консоли /plugin marketplace add MiniMax-AI/mcode-stack, затем установите плагин командой /plugin install jiachen@mcode-stack.
Что делает pr-description?
Генерирует структурированное описание pull request или merge request, сверяет существующий текст с диффом и находит пропущенные разделы.
Что нужно для работы pr-description?
Для подготовки текста дополнительных программ не требуется. Для публикации PR или MR через консоль понадобятся утилиты gh или glab.
Исходный текст
SKILL.md · MIT
--- name: pr-description description: Draft or check a pull request description in a fixed format (background, changes, behavior changes, out of scope, verification, rollback, not done, related) for GitHub or GitLab. Use when opening a PR, when the MCode Review summary reports missing description sections, or when the user asks for a PR description. --- # PR description On GitLab a PR is a merge request; the format is the same on both hosts. Write the description in the user's language, or in the output language a prompt names. A PR opened through a CLI or an API does not get the repository's PR template, so write every section yourself. When the repository has a template (`.github/pull_request_template.md` on GitHub, `.gitlab/merge_request_templates/` on GitLab), keep its headings and checklists and fit the sections below into it. ## When it is required MCode Review asks for the verification and rollback sections on L and XL PRs and on PRs that touch risk paths. Write all sections for every PR anyway; they cost little and answer the reviewer's first questions. ## Template ```markdown ## Background <the problem, who hits it, how it shows up; link the ticket or discussion> ## Changes <what changed, by mechanism, not by file list> Behavior changes: - <each user-visible or caller-visible change; write "None" when there is none> ## Out of scope - <things a reviewer might expect but this PR leaves alone, and why> ## Verification - <the test that failed before the fix and passes after it, with its name> - <commands run and their result> ## Rollback <how to revert, and what happens to data, config or clients written by the new version> ## Not done - <checks not done, such as manual testing on a platform> ## Related - <related PRs and how they interact> ``` In Chinese, keep the same sections in the same order with these headings: 背景, 改动 (with 行为变化:, and 无 when there is none), 明确不改的, 验证, 回滚方式, 未执行, 关联. ## Rules 1. Every claim must be checkable. Write "behavior unchanged" (行为不变) only after checking it, and say how. 2. List deployment prerequisites (DDL, config center changes, publish steps) under Changes and name who runs them. 3. Put UI changes' before/after screenshots or recordings under Verification. 4. Keep Not done honest; the reviewer treats missing checks as open questions, not as failures. ## Checking a description Read the PR's diff as well as its description, then report each missing or empty section, each claim the diff does not support, each behavior change in the diff that the description leaves out, and a missing rollback plan for changes to stored data or config. Suggest the missing text; leave sections that are fine alone. ## Posting Show the text first, and post it only when the user asks. Write it to a file, then: - GitHub: `gh pr create --title "<title>" --body-file <file>` for a new PR, `gh pr edit <n> --body-file <file>` for an existing one. - GitLab: `glab mr create --title "<title>" --description-file <file>`, or `glab mr update <n> --description-file <file>`. Older `glab` versions without `--description-file` take `--description "$(cat <file>)"`. Do not change a PR's title, labels, reviewers or target branch unless the user asks.
© Jiachen (MiniMax Code team) · MIT · MiniMax-AI/mcode-stack
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — pr-description от других авторов.