Describe pr

From atomicinnovation/accelerator · View interactive version

Describe pr is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Generate a comprehensive pull request description following the repository's standard template. Use when the user wants to create or update a PR description.

How to use this skill

Skill file

Generate PR Description

!accelerator config context --skill describe-pr --fail-safe

PRs directory: !accelerator config path prs --fail-safe

Tmp directory: !accelerator config path tmp --fail-safe

IMPORTANT: Wherever {prs directory} or {tmp directory} appears in

the instructions below, substitute the actual resolved path shown above.

PR description template:

!accelerator config template pr-description --fail-safe

You are tasked with generating a comprehensive pull request description

following the repository's standard template.

Steps to follow:

Step 1: Use the PR description template

Step 2: Identify the PR to describe

gh pr view --json url,number,title,state 2>/dev/null

gh pr list --limit 10 --json number,title,headRefName,author

Step 3: Check for existing description

Step 4: Gather comprehensive PR information

run gh repo set-default and select the appropriate repository

Step 5: Analyze the changes thoroughly

(ultrathink about the code changes, their architectural implications, and

potential impacts)

Step 6: Handle verification requirements

run it

explanation

unchecked and note for user

Step 7: Generate the description

Step 8: Populate frontmatter and save the description

Use the unified pr-description template as the source of the

frontmatter block:

!accelerator config template pr-description --fail-safe

Before writing the artifact file, capture metadata and substitute

the unified base fields into the template's frontmatter block:

1. Invoke accelerator corpus metadata derive

to obtain Current Date/Time (UTC):, Current Revision:, and

Repository Name:. Also capture PR-specific extras via

gh pr view <number> --json url,number,title,mergeCommit to

fill pr_url:, pr_number:, title:, and (when the PR is

merged) merge_commit:.

2. Substitute every field below with the indicated value:

(config → VCS user → prompt)

merged; otherwise omit the key entirely.

Optional linkage/foreign-ref keys are omit-by-default:

the template shows each as ""/[], but write a key into the

artifact only when it has a value, and omit it entirely

otherwise (do not carry the empty placeholder through).

ref ("work-item:NNNN"). Fill when the PR has an owning work

item; otherwise omit the key.

(["work-item:NNNN", ...]). Fill when relationships are explicit;

otherwise omit the key.

when the PR is linked to a work item; otherwise omit the key.

3. Write the completed description with the substituted frontmatter

block to {prs directory}/{number}-description.md.

receives the same text with its soft line breaks unwrapped, so wrapped

prose flows at the page's full width.

exists), regenerate the unified frontmatter rather than only updating

date:. Creation-time fields are immutable on re-run: date:,

author:, id:, pr_number:, and pr_url: are preserved verbatim

from the existing on-disk file. last_updated: is refreshed to the

new Current Date/Time (UTC): value; last_updated_by: is

rewritten to the current author per the standard resolution chain;

merge_commit: is filled if the PR is now merged. Step 3 already

handles reading the prior description for context.

Step 9: Update the PR

that should not appear on GitHub. Before posting, strip the frontmatter

block from the start of the file:

1. Read the file content

2. The frontmatter block starts with --- on line 1 and ends at the

next --- line (which closes the YAML block). Only match the

opening frontmatter block — do not match --- lines that appear

later in the body (e.g., markdown horizontal rules).

3. Ensure the tmp directory exists: mkdir -p {tmp directory}

4. Write everything after the closing --- line to

{tmp directory}/pr-body-{number}.md

5. Post the body via the helper binary, which resolves the base

(upstream) repository for cross-fork safety and PATCHes via the

GitHub REST API in-process:

```bash

accelerator collaboration pr update-body {number} --body-file {tmp directory}/pr-body-{number}.md

```

update-body unwraps soft line breaks before posting; the body file

and the saved description stay wrapped. A line that must render on

its own, such as a trailer or Closes #n, needs a hard break (two

trailing spaces or \) or a list item.

If the command exits non-zero, surface its stderr verbatim to the

user. Exit codes:

read failure, no origin remote configured

GitHub REST API failure

stderr always names which stage failed.

6. Clean up {tmp directory}/pr-body-{number}.md

them before merging

Important notes:

template

!accelerator config instructions describe-pr --fail-safe

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.