git-workflow-pr-body

Writes GitHub pull request bodies with task links, labels, and closing rules.

1|Updated Jan 14, 2024
One-click install
npx skills add https://github.com/Eyhenij/rt-tools --skill git-workflow-pr-body-eyhenij
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow-pr-body
Source: https://github.com/Eyhenij/rt-tools/tree/main/.claude/skills/git-workflow-pr-body
Command: npx skills add https://github.com/Eyhenij/rt-tools --skill git-workflow-pr-body-eyhenij

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Pull requests often lose their link to the tracked task: the Closes #N line is missing, labels are guessed instead of read from the issue, and tasks stay open when a PR merges into an epic or chain branch instead of the default branch. This Skill defines the exact structure and commands for writing a PR body that keeps the board, the reviewer queue, and task closure in sync. ## Core Features & Use Cases - Mandatory task linking: Enforces the Closes #<number> line and explains how task closure works when the PR base is an epic branch or a chain branch rather than the main branch. - Reviewer, assignee, and label setup: Sets reviewer, assignee, and labels at PR creation via gh pr create, or on an already open PR via REST API calls when gh pr edit fails. - Four-section body template: Provides a fixed body structure — link line, what was done, what confirms it, and the remaining step — including how to rewrite the body after merges into the branch. - Use Case: When opening a PR against an epic branch, use this Skill to write a body that names how the task closes (via the tree's pipeline or manually) so the queue audit never flags the PR as divergent. ## Quick Start Ask the assistant to write the body for a pull request that closes issue #86, including the Closes line, the four required sections, and the correct reviewer, assignee, and labels.

Frequently Asked Questions about git-workflow-pr-body

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I link a GitHub pull request to an issue?

Start the PR body with a `Closes #<number>` line, which the host reads to attach the PR to the task. Note that the host only acts on this line when merging into the default branch; merges into epic or chain branches need a pipeline or manual closure.

How to set reviewer, assignee, and labels when creating a PR with gh?

Pass --reviewer, --assignee, and --label flags directly to `gh pr create` so the PR never opens without them. Read labels from the issue itself with `gh issue view <n> --json labels` instead of picking them from memory.

Why does a task stay open after its PR merged into an epic branch?

GitHub only processes the Closes line on merges into the default branch. For epic or chain branch bases, the tree needs its own closing pipeline, or the task must be closed manually with a comment naming the PR.

What should I do when gh pr edit fails on an open pull request?

Use REST API calls instead: POST to issues/<n>/labels, issues/<n>/assignees, and pulls/<n>/requested_reviewers. `gh pr edit` queries removed Projects (classic) APIs and fails before applying the edit.

Can one pull request close two tasks with two Closes lines?

No. Two tasks in one branch can only roll back together, so either absorb the second task into one or split the work into two branches. Partial work uses a `Part of #<number>` line instead of Closes.