describe-prlisted
Install: claude install-skill atomicinnovation/accelerator
# 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
- The template is shown above under "PR description template"
- Read the template carefully to understand all sections and requirements
### Step 2: Identify the PR to describe
- Check if the current branch has an associated PR:
`gh pr view --json url,number,title,state 2>/dev/null`
- If no PR exists for the current branch, or if on main/master, list open PRs:
`gh pr list --limit 10 --json number,title,headRefName,author`
- Ask the user which PR they want to describe
### Step 3: Check for existing description
- Check if `{prs directory}/{number}-description.md` already exists
- If it exists, read it and inform the user you'll be updating it
- Consider what has changed since the last description was written
### Step 4: Gather comprehensive PR information
- Get the full PR diff: `gh pr diff {number}`
- If you get an error about no default remot