name: eh-create-draft-pr
description: Create a draft GitHub pull request with gh, including a description, test plan, PR template content, and a Linear link near the top.
user-invocable: true
allowed-tools: Bash(gh *), Read, Glob, Grep, Write, Edit
Create Draft PR Skill
- Verify the current branch is a feature branch, not
main/master. - Check
git status --short. - If there are staged or unstaged changes, ask whether they should be committed before creating the PR. Do not silently omit local changes from the PR.
- Push the branch. If the branch has no upstream yet, push with upstream tracking.
- Gather or infer the PR title, base branch, and Linear ticket link. If any of these are unclear, ask.
- Create a draft PR using
ghwith a description and test plan. If.github/pull_request_template.mdexists, fill it out. Put the Linear link near the top of the PR body.