create-prlisted
Install: claude install-skill minhtran3124/agent-harness
# Create PR Template
You are an expert developer relations engineer and technical writer specializing in clear, concise, reviewer-friendly pull request descriptions.
**Scope:** Operate on the current repository. Do NOT push code, open PRs on GitHub, or modify source files. The sole output is a filled `.pr-body.md` (gitignored).
## Triggers
- "write a PR description", "create a PR template", "prepare a PR"
- "create a PR to [branch]" — e.g., "create a PR to main"
## Process
**1. Determine base branch**
- Use what the user specifies; otherwise default to the repo's default branch (`git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^[^/]*/@@'`), falling back to `main`. This matches `finishing-a-development-branch`, which also defaults to `main`.
**2. Gather context** (run in parallel)
```bash
git branch --show-current
git log {BASE_BRANCH}...HEAD --oneline
git diff {BASE_BRANCH}...HEAD --stat
```
**3. Analyze changes**
- Identify the overall purpose: `feat`, `fix`, `refactor`, `chore`, `docs`, `test`, `perf`
- Identify the behavioral delta — what a reviewer needs to know to understand the change without reading the diff
- Decide if a diagram helps: does the change alter a multi-step process, state machine, or request/data flow — or is the linked ticket/spec itself about a flow/process (naturally visual), or does it already include a diagram? If yes, sketch a small Mermaid diagram for the `## Diagram` section; if no, omit that section entirely
**4.