К основному содержанию
скилл CX Codex

describe-pr — скилл для Claude Code: PR и установка

Готовит описание PR по локальному шаблону, изучая изменения и проверки. Нужен перед обновлением текста pull request через GitHub CLI.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add parcadei/Continuous-Claude-v3 --skill describe-pr -a claude-code
npx skills add parcadei/Continuous-Claude-v3 --skill describe_pr -a claude-code
Открыть на GitHub

Что делает describe-pr

Скилл ищет шаблон thoughts/shared/pr_description.md, затем определяет PR текущей ветки через gh. Если PR не связан с веткой или активна main либо master, он выводит открытые PR и просит выбрать нужный.

Для выбранного PR он читает diff, историю коммитов, базовую ветку и метаданные. Скилл заполняет разделы шаблона, выделяет изменения снаружи и в реализации, а также отмечает ломающие изменения или миграции. Если найдёт файлы рассуждений, добавит раздел Approaches Tried перед проверкой.

Команды из раздела проверки запускаются, когда это возможно: успешные пункты отмечаются, ошибки и ручные шаги остаются с пояснением. Готовый текст сохраняется в thoughts/shared/prs/{number}_description.md и передаётся в gh pr edit. Файл шаблона обязателен: если его нет, скилл попросит создать его.

Какие задачи решает

  • собрать описание PR по шаблону репозитория
  • найти pull request для текущей ветки
  • включить в описание diff и историю коммитов
  • отметить пройденные проверки в чек-листе
  • обновить текст PR через gh pr edit

Примеры запросов агенту

  • Подготовь описание для PR {number} по шаблону репозитория.
  • Проверь текущую ветку и составь описание связанного PR.
  • Обнови описание PR {number}, выполни доступные шаги проверки и запиши результат в файл.

Как установить describe-pr

1Через Skills CLI (Vercel)

npx skills add parcadei/Continuous-Claude-v3 --skill describe-pr -a claude-code
npx skills add parcadei/Continuous-Claude-v3 --skill describe_pr -a claude-code

2Вручную: положить файлы

~/.claude/skills/describe_pr/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/describe_pr/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора67

hook-developer Справочник по хукам Claude: схемы входных и выходных данных, регистрация в settings.json, тестирование. Пригодится, когда пишешь свой хук и не помнишь формат. CX Codex +1 504установок tldr-code Скилл для анализа кода через CLI tldr: дерево файлов, граф вызовов, потоки данных и мёртвый код. Экономит токены по сравнению с чтением файлов целиком. CX Codex +1 503установок research-external Скилл для поиска по внешней документации, библиотекам и практикам 2024–2025 годов без изучения локальной кодовой базы. Запускает поиск через Perplexity, Nia Docs и Firecrawl. CX Codex +1 501установок debug-hooks Пошаговый сценарий отладки хуков Claude Code, когда они молчат, падают без логов или отдают не те данные. CX Codex +1 499установок commit Скилл проводит git-коммиты через согласование с вами и не добавляет упоминаний Claude в сообщения. Пригодится, когда агент накопил правки за сессию. CX Codex +1 499установок braintrust-tracing Скилл объясняет трассировку сессий Claude Code в Braintrust и связь следов субагентов с родительской задачей. Нужен при разборе хуков и пропавших спанов. CX Codex +1 495установок workflow-router Определяет цель задачи и передаёт её нужному субагенту: исследование, план, реализация или отладка. Пригодится, когда непонятно, с какого агента начинать. CX Codex +1 495установок shapely-compute Выполняет вычислительную геометрию через Shapely: строит фигуры, проверяет пространственные предикаты и рассчитывает площади прямо в агенте. CX Codex +1 495установок

Похожие

gh-stack официальный github Управляет цепочками связанных пулл-реквестов через расширение gh stack. Помогает агенту делить крупные задачи на слои и не зависать в интерактивном TUI. CX Codex +1 18 800установок pr-writer getsentry Составляет и обновляет описания пулл-реквестов с фокусом на ревьюера. Пригодится перед открытием PR или при синхронизации описания с новым диффом ветки. CX Codex +1 4 500установок gh-issues openclaw Скилл находит GitHub issues, запускает фоновых агентов для исправлений и открывает PR. Подходит для потока от issue до готового pull request. CX Codex +1 5 000установок yeet официальный openai Проводит весь путь от git add до черновика пул-реквеста через gh. Вызывается только тогда, когда вы прямо об этом попросите. CX Codex +1 3 400установок gh-address-comments официальный openai Скилл помогает найти открытый pull request текущей ветки, разобрать комментарии ревью и применить выбранные исправления через gh. CX Codex +1 4 800установок github-triage code-yeongyu Читает все открытые issues и PR в репозитории и пишет отчёты с доказательствами. Ничего не комментирует и не закрывает. CX Codex +1 2 700установок

Рядом в теме «Git и GitHub»

Всё по теме «Git и GitHub» →

Вопросы о describe-pr

Как установить describe-pr в Claude Code?

Выполните npx skills add parcadei/Continuous-Claude-v3 --skill describe-pr -a claude-code в каталоге проекта.

Что делает describe-pr?

Скилл читает шаблон описания PR, собирает данные через gh, анализирует изменения и записывает готовый текст в файл. Затем он обновляет описание pull request командой gh pr edit.

Что делать, если gh pr diff сообщает об отсутствии репозитория по умолчанию?

Настройте репозиторий командой gh repo set-default и выберите нужный репозиторий. После этого скилл сможет получить diff PR.

Исходный текст

SKILL.md · MIT
---
name: describe-pr
description: Generate comprehensive PR descriptions following repository templates
---

# Generate PR Description

You are tasked with generating a comprehensive pull request description following the repository's standard template.

## Steps to follow:

1. **Read the PR description template:**
   - First, check if `thoughts/shared/pr_description.md` exists
   - If it doesn't exist, inform the user they need to create a PR description template at `thoughts/shared/pr_description.md`
   - Read the template carefully to understand all sections and requirements


2. **Identify the PR to describe:**
   - Check if the current branch has an associated PR: `gh pr view --json url,number,title,state 2>/dev/null`
   - If no PR exists for the current branch, or if on main/master, list open PRs: `gh pr list --limit 10 --json number,title,headRefName,author`
   - Ask the user which PR they want to describe

3. **Check for existing description:**
   - Check if `thoughts/shared/prs/{number}_description.md` already exists
   - If it exists, read it and inform the user you'll be updating it
   - Consider what has changed since the last description was written

4. **Gather comprehensive PR information:**
   - Get the full PR diff: `gh pr diff {number}`
   - If you get an error about no default remote repository, instruct the user to run `gh repo set-default` and select the appropriate repository
   - Get commit history: `gh pr view {number} --json commits`
   - Review the base branch: `gh pr view {number} --json baseRefName`
   - Get PR metadata: `gh pr view {number} --json url,title,number,state`

4b. **Gather reasoning history (if available):**
   - Check if reasoning files exist: `ls .git/claude/commits/*/reasoning.md 2>/dev/null`
   - If they exist, aggregate them: `bash "$CLAUDE_PROJECT_DIR/.claude/scripts/aggregate-reasoning.sh" main`
   - This shows what approaches were tried before the final solution
   - Save the output for inclusion in the PR description

5. **Analyze the changes thoroughly:** (ultrathink about the code changes, their architectural implications, and potential impacts)
   - Read through the entire diff carefully
   - For context, read any files that are referenced but not shown in the diff
   - Understand the purpose and impact of each change
   - Identify user-facing changes vs internal implementation details
   - Look for breaking changes or migration requirements

6. **Handle verification requirements:**
   - Look for any checklist items in the "How to verify it" section of the template
   - For each verification step:
     - If it's a command you can run (like `make check test`, `npm test`, etc.), run it
     - If it passes, mark the checkbox as checked: `- [x]`
     - If it fails, keep it unchecked and note what failed: `- [ ]` with explanation
     - If it requires manual testing (UI interactions, external services), leave unchecked and note for user
   - Document any verification steps you couldn't complete

7. **Generate the description:**
   - Fill out each section from the template thoroughly:
     - Answer each question/section based on your analysis
     - Be specific about problems solved and changes made
     - Focus on user impact where relevant
     - Include technical details in appropriate sections
     - Write a concise changelog entry
   - **If reasoning files were found (from step 4b):**
     - Add an "## Approaches Tried" section before "## How to verify it"
     - Include the aggregated reasoning showing failed attempts and what was learned
     - This helps reviewers understand the journey, not just the destination
   - Ensure all checklist items are addressed (checked or explained)

8. **Save the description:**
   - Write the completed description to `thoughts/shared/prs/{number}_description.md`
   - Show the user the generated description

9. **Update the PR:**
   - Update the PR description directly: `gh pr edit {number} --body-file thoughts/shared/prs/{number}_description.md`
   - Confirm the update was successful
   - If any verification steps remain unchecked, remind the user to complete them before merging

## Important notes:
- This command works across different repositories - always read the local template
- Be thorough but concise - descriptions should be scannable
- Focus on the "why" as much as the "what"
- Include any breaking changes or migration notes prominently
- If the PR touches multiple components, organize the description accordingly
- Always attempt to run verification commands when possible
- Clearly communicate which verification steps need manual testing

© parcadei · MIT · parcadei/Continuous-Claude-v3

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой