pr-threads-address — скилл для Claude Code: что делает и установка
Скилл находит все неразрешённые треды ревью в пулреквесте текущей ветки, вносит правки в код с тестами и помогает ответить рецензенту.
npx skills add posit-dev/skills --skill pr-threads-address -a claude-codeЧто делает pr-threads-address
Скилл автоматизирует обработку замечаний к пулреквесту текущей ветки. Сначала он получает номер PR через gh pr view и слаг репозитория через gh repo view. Затем утилита gh pr-review запрашивает открытые треды обсуждения. Для каждого комментария модель разбирает суть замечания, редактирует файлы и по возможности пишет юнит-тесты.
Все коммиты оформляются по стандарту Conventional Commits. После правок скилл готовит сводный отчёт и спрашивает, нужно ли закрывать обсуждения. Если подтвердить действие, помощник сам отправляет ответы с описанием изменений и закрывает треды по их идентификаторам PRRT_....
Для запуска обязательно нужны консольный клиент gh и расширение agynio/gh-pr-review. Без этого расширения инструмент бесполезен, поэтому окружение придётся настроить до старта. Каждому вызову gh pr-review строго требуются аргументы --pr и --repo.
Какие задачи решает
- Внести правки в код по открытым замечаниям из ревью
- Написать юнит-тесты для проверки запрошенных изменений
- Оформить коммиты по спецификации Conventional Commits
- Ответить рецензентам в тредах и закрыть решённые вопросы
Примеры запросов агенту
- Проверь открытые треды в пулреквесте этой ветки и исправь замечания
- Исправь код по комментариям ревьюера, напиши тесты и подготовь ответы в тредах
- Разбери замечания в PR, сделай коммиты по Conventional Commits и закрой треды после подтверждения
Как установить pr-threads-address
1Через Skills CLI (Vercel)
npx skills add posit-dev/skills --skill pr-threads-address -a claude-code2Вручную: положить файлы
~/.claude/skills/pr-threads-address/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/pr-threads-address/
1Через Skills CLI (Vercel)
npx skills add posit-dev/skills --skill pr-threads-address -a codex2Вручную: положить файлы
.agents/skills/pr-threads-address/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add posit-dev/skills --skill pr-threads-address -a cursor2Вручную: положить файлы
.cursor/skills/pr-threads-address/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install posit-dev/skills pr-threads-address2Вручную: положить файлы
.github/skills/pr-threads-address/SKILL.md1Через Skills CLI (Vercel)
npx skills add posit-dev/skills --skill pr-threads-address -a gemini-cli2Командой платформы
gemini skills install https://github.com/posit-dev/skills --path github/pr-threads-addressВручную: положить файлы
.devin/skills/pr-threads-address/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add posit-dev/skills --skill pr-threads-address -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о pr-threads-address
Как установить pr-threads-address в Claude Code?
Установите скилл командой npx skills add posit-dev/skills --skill pr-threads-address -a claude-code.
Что делает скилл pr-threads-address?
Он последовательно разбирает незакрытые треды ревью в текущем PR, меняет код, добавляет юнит-тесты, создаёт коммиты и при подтверждении закрывает треды с ответом.
Какие утилиты нужны для работы скилла?
Требуются CLI-клиент gh и расширение agynio/gh-pr-review. Расширение устанавливается командой gh extension install agynio/gh-pr-review.
Исходный текст
SKILL.md · MIT
--- name: pr-threads-address description: "Address PR review feedback by systematically working through every unresolved PR review thread on the current branch's PR - analyze each comment, make the requested code changes (with tests where useful), commit, and optionally reply and resolve." compatibility: Requires gh CLI and the gh-pr-review extension metadata: author: Barret Schloerke (@schloerke) version: "1.0" license: MIT --- ## Prerequisites ### gh pr-review extension Before using this command, check if the gh pr-review extension is installed: ```bash gh extension list | grep -q pr-review || gh extension install agynio/gh-pr-review ``` ### Resolve PR context Every `gh pr-review` subcommand requires both `--pr <number>` and `--repo <owner/repo>` — do not omit either. Look the values up once at the start of the workflow and substitute the literal numbers and slugs into every later command. Get the PR number for the current branch: ```bash gh pr view --json number -q .number ``` Get the repository slug: ```bash gh repo view --json nameWithOwner -q .nameWithOwner ``` Then pass the resulting values directly — e.g. `--pr 42 --repo posit-dev/skills` — on every subsequent `gh pr-review` call in this workflow (review view, comments reply, threads resolve, etc.). ## Workflow 1. Fetch and display all unresolved PR review threads 2. Analyze each thread to understand the requested changes 3. For each thread: 1. Make the necessary code modifications 2. (When possible) Add unit tests to verify the change 3. Commit the changes with descriptive commit messages using conventional commit specification 4. Report back with a summary of addressed threads 5. Ask if the user wants to resolve the threads. If so, reply to each thread indicating what was done and then resolve the thread. ## CLI Reference ### View PR Reviews and Comments Display all reviews, inline comments, and replies for a pull request: ```bash gh pr-review review view --pr <number> --repo <owner/repo> ``` **Common filters:** - `--reviewer <login>` — Filter by specific reviewer - `--states <list>` — Comma-separated review states (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED) - `--unresolved` — Show only unresolved threads - `--tail <n>` — Show only the last n replies per thread - `--include-comment-node-id` — Include GraphQL node IDs for replies ### Reply to Review Threads ```bash gh pr-review comments reply --thread-id <PRRT_...> --body "<reply-text>" --repo <owner/repo> --pr <number> ``` For multi-line replies, pass `--body "$(cat <<'EOF' ... EOF\n)"` heredoc syntax. ### Resolve a Thread ```bash gh pr-review threads resolve --thread-id <PRRT_...> --pr <number> --repo <owner/repo> ``` Thread IDs (format `PRRT_...`) come from `review view --include-comment-node-id`.
© Barret Schloerke (@schloerke) · MIT · posit-dev/skills