PR Author Skill
Produce a GitHub-ready Pull Request description from the standard PR context files. The pull request must be in a copy / paste block so that it can be copied easily to the PR extension.
Inputs
artifacts/pr_context.summary.txt — PR context summary (primary)
artifacts/pr_context.appendix.txt — PR context appendix (full baseline diff, commits, changed files)
- Optional user directives
Only reference files that are listed under "Additional context files" in the context bundle. Do not cite or summarize files outside that enumeration.
Output Requirements
- Output only the PR text body in GitHub-flavored Markdown.
- Use clear headings, consistent structure, and concise bullets.
- Do not invent tests or results; if not in context, state "Not verified in this PR."
- If scope is large, include a Review Guide with suggested review order.
- The output is a PR body artifact or PR-ready body text only.
PR Body Structure
Use these sections in this order:
- Suggested title — crisp, prioritizing the primary outcome
- Summary — 3–7 bullets, most important first; lead with the primary product/feature/architecture change
- Why — motivation, constraints, root cause; rely on embedded feature-doc excerpts and PR Intent fields only
- What Changed — grouped by theme (core feature, tooling/CI, tests, docs/templates)
- Architecture / How It Fits Together — short wiring description with components, entry points, control flow
- Verification — "Completed" (from context) and "Recommended" (commands to run)
- Backward Compatibility / Migration Notes — breaking changes, removals, renamed paths
- Risks and Mitigations — realistic risks with mitigations and rollback notes
- Review Guide — suggested order, noisy mechanical moves, large diffs
- Follow-ups — known TODOs, deferred cleanup, next PRs
- GitHub Auto-close —
- Closes #NNN only from verified autoclose lists; do not invent issue numbers
Output Artifact
The PR body produced by this skill is persisted as a body file plus a sibling receipt so the
PreToolUse hook can verify the body passed to gh pr create --body-file is the one this skill
produced:
Write the body text to artifacts/pr_body_<N>.md, where <N> is the target issue or PR number.
Compute the SHA-256 of the body file bytes and render it as lowercase hexadecimal.
Write the sibling receipt artifacts/pr_body_<N>.receipt.json with the shape:
{
"skill": "pr-author",
"pr_body_path": "artifacts/pr_body_<N>.md",
"number": <N>,
"sha256": "<lowercase-hex SHA-256 of the body bytes>",
"context_summary_path": "artifacts/pr_context.summary.txt",
"created_at": "<ISO-8601 UTC timestamp newer than pr_context.summary.txt last-write>"
}
Pass the body to the pull request via --body-file artifacts/pr_body_<N>.md; do not use inline
--body.
The body-file and receipt write operations remain in the pr-author agent scope, which holds
Write(/artifacts/**). This skill authors the body text; the pr-author agent performs the file
writes and the gh pr create / gh pr edit --body-file handoff.
Issue/PR Reference Rules
- Only mention an issue/PR number if it appears verbatim in the provided context.
- Do not treat PR numbers as issues.
- Auto-close bullets must use exactly
- Closes #NNN format, sourced only from "Issues to autoclose" or "Author-asserted autoclose issues."
- If GitHub validation is unavailable/unverified, do not emit
Closes; use the fallback None bullet.
1---2name: pr-author-23description: Write a GitHub-ready pull request body from the canonical PR-context bundle with strict verification and auto-close rules.4---56# PR Author Skill78Produce a GitHub-ready Pull Request description from the standard PR context files. The pull request must be in a copy / paste block so that it can be copied easily to the PR extension.910## Inputs1112- `artifacts/pr_context.summary.txt` — PR context summary (primary)13- `artifacts/pr_context.appendix.txt` — PR context appendix (full baseline diff, commits, changed files)14- Optional user directives1516Only reference files that are listed under "Additional context files" in the context bundle. Do not cite or summarize files outside that enumeration.1718## Output Requirements19201. Output only the PR text body in GitHub-flavored Markdown.212. Use clear headings, consistent structure, and concise bullets.223. Do not invent tests or results; if not in context, state "Not verified in this PR."234. If scope is large, include a Review Guide with suggested review order.245. The output is a PR body artifact or PR-ready body text only.2526## PR Body Structure2728Use these sections in this order:29301. **Suggested title** — crisp, prioritizing the primary outcome312. **Summary** — 3–7 bullets, most important first; lead with the primary product/feature/architecture change323. **Why** — motivation, constraints, root cause; rely on embedded feature-doc excerpts and PR Intent fields only334. **What Changed** — grouped by theme (core feature, tooling/CI, tests, docs/templates)345. **Architecture / How It Fits Together** — short wiring description with components, entry points, control flow356. **Verification** — "Completed" (from context) and "Recommended" (commands to run)367. **Backward Compatibility / Migration Notes** — breaking changes, removals, renamed paths378. **Risks and Mitigations** — realistic risks with mitigations and rollback notes389. **Review Guide** — suggested order, noisy mechanical moves, large diffs3910. **Follow-ups** — known TODOs, deferred cleanup, next PRs4011. **GitHub Auto-close** — `- Closes #NNN` only from verified autoclose lists; do not invent issue numbers4142## Output Artifact4344The PR body produced by this skill is persisted as a body file plus a sibling receipt so the45PreToolUse hook can verify the body passed to `gh pr create --body-file` is the one this skill46produced:47481. Write the body text to `artifacts/pr_body_<N>.md`, where `<N>` is the target issue or PR number.492. Compute the SHA-256 of the body file bytes and render it as lowercase hexadecimal.503. Write the sibling receipt `artifacts/pr_body_<N>.receipt.json` with the shape:5152 ```json53 {54 "skill": "pr-author",55 "pr_body_path": "artifacts/pr_body_<N>.md",56 "number": <N>,57 "sha256": "<lowercase-hex SHA-256 of the body bytes>",58 "context_summary_path": "artifacts/pr_context.summary.txt",59 "created_at": "<ISO-8601 UTC timestamp newer than pr_context.summary.txt last-write>"60 }61 ```62634. Pass the body to the pull request via `--body-file artifacts/pr_body_<N>.md`; do not use inline64 `--body`.6566The body-file and receipt write operations remain in the pr-author agent scope, which holds67`Write(/artifacts/**)`. This skill authors the body text; the pr-author agent performs the file68writes and the `gh pr create` / `gh pr edit --body-file` handoff.6970## Issue/PR Reference Rules7172- Only mention an issue/PR number if it appears verbatim in the provided context.73- Do not treat PR numbers as issues.74- Auto-close bullets must use exactly `- Closes #NNN` format, sourced only from "Issues to autoclose" or "Author-asserted autoclose issues."75- If GitHub validation is unavailable/unverified, do not emit `Closes`; use the fallback `None` bullet.