PR Description
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Draft a pull request description from the real code changes, then either apply it to an existing PR or help open a new one. This skill never pushes, commits, or opens/edits a PR without the user explicitly confirming the specific action first.
Purpose
iru-pr-description detects which platform hosts the repository — GitHub, Bitbucket, Azure DevOps, or TFS — and uses
that platform’s own tooling throughout instead of assuming gh/GitHub. After a cheap stat-only check confirms
there’s something to describe, it delegates reading the actual diff for the current branch — commits already
ahead of the base branch plus anything staged, unstaged, or untracked — and drafting a brief, concise description
grounded in that diff (never invented) to a sub-agent, so the raw diff never has to load into this skill’s own
context, only the drafted text. It then checks whether a pull request already exists for the branch, using the
tool matching the detected host: if one does, it offers to replace that PR’s body with the draft; if not, it
offers to commit, push, and open a new one, asking for a branch name, destination branch, and title (each with an
inferred default). Every step that writes to shared state — editing a PR body, committing, pushing, opening a PR
— requires the user’s explicit confirmation first; declining always leaves the drafted description as the
deliverable.
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
(none) |
— |
|
Not applicable. |
Outputs
-
A drafted pull request description in the conversation — a short summary, plus a bulleted list of the concrete changes when there is more than one logical change, with sparing emoji categorization and an optional Mermaid diagram (skipped for Bitbucket, which doesn’t render it) when a change reshapes control/data flow enough to warrant one.
-
If an existing PR was found and the user confirmed: the PR’s body is replaced with the draft using the tool matching the detected host (
gh pr edit --body-filefor GitHub; Bitbucket MCP tools or REST API;az repos pr updateor Azure DevOps MCP tools), and its URL is reported. -
If no PR existed and the user confirmed opening one: a new branch (if needed), a commit, a pushed branch, and a newly opened pull request via the host-matching tool, with its URL reported.
-
If the user declines any action, or no diff exists to describe: no repository or remote-hosting state is changed — the draft (or a "nothing to describe" notice) is the only output.
Execution flow
Dependencies
Invokes
None — iru-pr-description is a leaf skill. It only drafts text and, once the user explicitly confirms, runs
git and the host-matching tool directly (gh/GitHub MCP tools, Bitbucket MCP tools/REST API, az repos/Azure
DevOps MCP tools); it does not call any other skill in this catalog.
Related agents
-
general-purpose(see Agents) — spawned once in Step 2, given the branch/base-branch names, to read the full diff and recent commit messages and draft the description — so the raw diff stays out of this skill’s own context and only the drafted text comes back. A plain, unnamed sub-agent is used rather than a dedicated custom agent since this is a single, localized delegation, not a shape repeated across several skills the way Gate Runner or Change Summarizer are.
Source
SKILL.md on GitHub — the file this page was generated from.