create-pull-requestlisted
Install: claude install-skill helderberto/agent-skills
# Create Pull Request
Arguments: $ARGUMENTS
- `--draft` — create as draft.
- `--diagram` — append a `## Diagram` section with a mermaid diagram of the change (GitHub renders it natively). Optional `=flow|sequence|class|state` forces the type; otherwise pick by the shape of the change (below).
## Workflow
1. In parallel: base branch (`git remote show origin | grep 'HEAD branch'`), ticket id from the branch name (`[A-Z]+-[0-9]+`), PR template (`.github/pull_request_template.md`, `.github/PULL_REQUEST_TEMPLATE.md`, `.github/PULL_REQUEST_TEMPLATE/`, `docs/pull_request_template.md`, `pull_request_template.md`).
2. In parallel: `git diff <base>...HEAD` and the full commit list — review every commit, not just the latest.
3. Ask the user, all at once: **effort** in hours (required), **what was done** in their words (required), testing not visible in the diff, tricky parts, and any template field the diff can't answer (breaking change? type of change?).
4. Draft title and body.
- Title matches `^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?: .+$`.
- Template found → it is the body, verbatim structure: fill every section and placeholder, check applicable boxes, add nothing outside it except `## Diagram` when requested. No template → `## Summary` + `## Test plan`.
- Reference the ticket (`Resolves TICKET-123`).
5. Commit anything uncommitted first (never open a PR on a dirty tree), push with `-u` if needed, `gh pr create` with a HEREDOC body (`--dr