pr-author
БесплатноБез исполняемых скриптовНе проверенAct as the author of a Buddy pull request: open a PR from the current branch with `bdy pr create` (optionally after making and committing the change), or…
от buddy★ 20 звёзд на GitHubОб этом скилле
Authoring a Buddy pull request
You are the author. You work in the local working copy (read, edit, test, commit, push)
and talk to reviewers through bdy pr. Run bdy pr <command> --help for flags.
Before you start
Login. If
bdyanswersToken not provided/Not logged in, follow the auth section of thebuddyskill.Project. A pull request is opened between branches of this repository, so the project must be the one this clone belongs to. Both commands below are local (no network):
bdy context show git– workspace and project from theoriginremote. If it resolves (the remote is a Buddy repository), pass--context gitto everybdycommand – the active context may be a global default pointing somewhere else;- if it fails (the remote is not a Buddy repository),
bdy context showshows the active context: alink(.bdy/project.jsonin this directory) is fine; a global default, environment or nothing → do not guess: tell the user what you found and ask for the workspace and project; pass them as-w <ws> -p <project>.
Do not change the user's configuration (
bdy proj link,bdy context use) unless they ask.Automatic mode if the request says
--auto, "automatically", "CI", or you cannot ask the user: make the decisions below yourself and do not ask questions.
A. Open a pull request
What you may do depends on what the user asked for – the request is the consent, do not add more and do not ask for less:
| request | commit | push | open the PR |
|---|---|---|---|
| "open a PR" / "otwórz PR" | no | no | from what is already on the server |
| "commit everything and open a PR" | yes | yes | yes |
| "do X and open a PR" | yes (after implementing and testing X) | yes | yes |
Check the state (read only): current branch, base branch (the repository default unless the user names one), uncommitted changes (
git status), whether the branch exists on the remote and has unpushed commits (git status -sb,git log @{u}..). Never open a PR from the base branch – for "do X" create a branch first; for "open a PR" on the base branch, ask."Do X and open a PR": create a branch, implement X, run the project's tests / build for it, commit. "Commit everything": commit the current changes with a message from the diff.
Write the title and description from the changes that will be in the PR (
git diff <base>...HEAD, plus what is still to be pushed):- what and why, in a few sentences
- intended behaviour changes listed explicitly (reviewers should not flag them as bugs)
- how it was tested, and anything the reviewer should look at closely
Ask once before opening (skip in automatic mode – then open it):
- open the PR now
- show me the title, description and the list of commits / files first
- open it as a draft
For "open a PR" with something missing on the server (the branch is not pushed, commits are not pushed, changes are not committed), say exactly what would be left out and put it in the same question, e.g. "2 commits are not pushed: push and open / open with what is on the server / show me first". Without the branch on the server a PR cannot be opened – then the choice is push or stop. In automatic mode never push for a plain "open a PR"; stop and report.
Push if the request or the answer allows it (
git push -u origin <branch>), thenbdy pr create --base <base> --head <branch> --title "<title>" -F <file>(--draftif chosen,--reviewer <login>if the user names reviewers).Report the PR number and link, and anything left out of it.
B. Address review feedback
Plan or apply (skip in automatic mode): ask once whether to show the plan first (per thread: fix / by design / won't fix / question) or apply it right away. With a plan, do not commit, push or answer threads until the user accepts it.
bdy pr get <N>– current version, verdicts, threads. Thenbdy pr comment ls <N> --threads– OPEN threads with code around them. Use--thread <id>to read a long discussion.Make sure the local branch is the PR head branch and up to date (
git pull).For every OPEN thread decide one of:
- fix – change the code; if the reviewer is right about the problem but the proposed fix is wrong, fix it your way and say so
- by_design – the behaviour is intended; explain why (point to the description, spec, test)
- wontfix – valid but out of scope; explain, and suggest a follow-up if it matters
- question – the comment is unclear; ask in the thread and leave it OPEN
Do not fix what the reviewer did not ask for. Keep each fix minimal.
Run the project's tests / build for what you changed. Commit (one commit per thread or a few logical commits) and push – addressing feedback means pushing the fixes. The push creates a new PR version.
Answer every thread
Установить pr-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-author?
Act as the author of a Buddy pull request: open a PR from the current branch with `bdy pr create` (optionally after making and committing the change), or address review feedback – fix the code, push, and answer and resolve the review threads. Use when the user asks to open, create or "załóż" a pull request, to make a change and open a PR with it, or to fix / respond to review comments on their PR. Not for reviewing a PR (use pr-review) or only showing one (use the buddy skill).
Как установить скилл pr-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-author запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic