create-pr
Create or update a GitHub pull request using the repo's own .github/pull_request_template.md as the body structure, with a Conventional Commits-style title…
Skill by craigspaterson
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/craigspaterson-create-pr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/create-pr
What's inside
- Skill name
create-pr- Description
- Create or update a GitHub pull request using the repo's own .github/pull_request_template.md as the body structure, with a Conventional Commits-style title and the assignee set to the current gh user (or $PR_ASSIGNEE if set). Use when the user asks to "create a PR", "open a PR", "make a pull request", or similar, in any repo under this workspace.
- License
- MIT
- Instructions
- 33 lines in SKILL.md · view on GitHub
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
# Create PR
## Quick start
1. Find the template: `.github/pull_request_template.md` or `.github/PULL_REQUEST_TEMPLATE.md` (case varies by repo). If none exists, fall back to a minimal Summary/Changes/Testing body — don't invent sections.
2. Gather branch state: `git status`, `git diff main...HEAD` (or the repo's default branch), `git log main..HEAD`, and whether the branch is pushed/tracks a remote.
3. Fill in the template's sections from the actual diff and commit history — don't leave checklist items unchecked by default; check the ones genuinely true (e.g. "I verified no sensitive data is included" once you've looked).
4. Title: Conventional Commits format (`feat:`, `fix:`, `chore:`, `docs:`, `refactor:`, `test:`).
5. Resolve the assignee: use `$PR_ASSIGNEE` if set in the environment, otherwise the currently authenticated GitHub user (`gh api user --jq .login`). Never hardcode a specific username — this skill is shared across the team, and the assignee should default to whoever is running it.
6. Create with:
```
assignee="${PR_ASSIGNEE:-$(gh api user --jq .login)}"
gh pr create --title "<type>: <summary>" --body "$(cat <<'EOF'
<filled template>
EOF
)" --assignee "$assignee"
```
7. If updating an existing PR instead, use `gh pr edit <number> --body "..." --add-assignee "$assignee"` (only add the assignee if not already set).
## Template quirks by repo
- If a repo's `AGENTS.md` or `CLAUDE.md` documents PR conventions (e.g. a Version Bump section, a required trailer, a non-standard checklist), follow those over guessing.
- If a repo has no template, use a plain Summary + Changes + Test plan body — do not apply another repo's template.
## Related Work section
If the branch name or commits reference a work item (ADO `AB#NNNNN` or GitHub issue `#NNN`), populate the "Related Work" / "Issue" line with it. Don't fabricate a link if none is evident.
## Notes
- Always re-read the template fresh per repo/PR rather than assuming it matches a previous run — templates can drift between repos.From craigspaterson/agent-skills, MIT.
More from craigspaterson/agent-skills
- 0.563score
push-to-ado
craigspaterson
Uploads a drafted User Story or Technical Story to Azure DevOps as a work item, populating Title, Description, Acceptance Criteria, Story Points, Priority…
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
start-story
craigspaterson
Activates a work item or issue and creates the feature branch in one step.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
resolve-copilot-review
craigspaterson
Triage GitHub Copilot's automated PR review comments, fix the confirmed issues, and resolve the review threads.
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
terraform-docs-inject
craigspaterson
Generate Terraform docs and inject them into terraform/README.md using terraform-docs markdown table output-mode inject.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
user-story
craigspaterson
Draft Jira-formatted User Stories with Acceptance Criteria.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
technical-story
craigspaterson
Draft Jira-formatted Technical Stories (Infrastructure and Application sub-types) with Acceptance Criteria, for backlog items that describe a system or…
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 18, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/craigspaterson/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from craigspaterson
- 0.563score
push-to-ado
craigspaterson
Uploads a drafted User Story or Technical Story to Azure DevOps as a work item, populating Title, Description, Acceptance Criteria, Story Points, Priority…
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
start-story
craigspaterson
Activates a work item or issue and creates the feature branch in one step.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
resolve-copilot-review
craigspaterson
Triage GitHub Copilot's automated PR review comments, fix the confirmed issues, and resolve the review threads.
SkillBFreshness: B★ 2Claude Code +9 - 0.507score
terraform-docs-inject
craigspaterson
Generate Terraform docs and inject them into terraform/README.md using terraform-docs markdown table output-mode inject.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
user-story
craigspaterson
Draft Jira-formatted User Stories with Acceptance Criteria.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
technical-story
craigspaterson
Draft Jira-formatted Technical Stories (Infrastructure and Application sub-types) with Acceptance Criteria, for backlog items that describe a system or…
SkillCFreshness: C★ 2Claude Code +9
Cite this page
create-pr skill. Agent Mart. https://agentmart.dev/skills/craigspaterson-create-pr (last updated 2026-10-24)