git-pr-create
PR Create
Create GitHub pull requests via gh pr create.
Format
Title: Commit subject or change summary
Body:
## Summary
- Change description (bullets OK)
## Test plan
- [ ] Verification steps
Workflow
- Verify not on main/master
- Check for existing PR on branch
- Detect base branch
- Generate title from commits
- Build body with summary + test plan
- Create PR
Commands
# Check current branch
git branch --show-current
# Check for existing PR
gh pr list --head $(git branch --show-current)
# Create PR
gh pr create --title "$TITLE" --body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
## Test plan
- [ ] Test item
EOF
)"
Title Generation
Use first commit subject from branch, or summarize if multiple commits:
# Single commit - use subject
git log origin/main..HEAD --format='%s' | head -1
# Multiple commits - summarize changes
git log origin/main..HEAD --oneline
Body Style
Bullets allowed in PR body (unlike commit messages):
- Summary section lists changes
- Test plan uses checkboxes
Keep concise. One line per logical change.
Draft PRs
Use --draft when:
- Work in progress
- User requests draft
- Waiting for CI setup
gh pr create --draft --title "$TITLE" --body "$BODY"
Base Branch
Detect automatically:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
Override with --base:
gh pr create --base develop --title "$TITLE" --body "$BODY"
Safety
- Verify branch is not main/master before creating
- Check for existing PR to avoid duplicates
- Never create PR from main to main
More from molechowski/claude-skills
res-price-compare
Polish market product price comparison: 20+ shops, shipping costs, manufacturer vs seller warranty, B2B/statutory warranty analysis, stock status, distribution chain. Export TXT/XLSX/HTML. Use when: looking for a product to buy, price comparison, where to buy cheapest. Triggers: cena, porównaj, gdzie kupić, najtaniej, sklep, price compare, best price, kup, ile kosztuje.
36doc-vault-project
Manage multi-note research projects in Obsidian vault with phased subdirectory structure (concept, research, design, implementation). Scaffold new projects, add component notes, track status, link existing research, promote topics to projects. Use when: creating a project, adding to a project, checking project status, linking research to a project, promoting a research topic to a full project. Triggers: project init, project add, project status, project link, project promote, create project, new project.
35res-deep
Iterative multi-round deep research with structured analysis frameworks. Use for: deep research on a topic, compare X vs Y, landscape analysis, evaluate options for a decision, deep dive into a technology, comprehensive research with cross-referencing. Triggers: deep research, compare, landscape, evaluate, deep dive, comprehensive research, which is better, should we use.
35doc-daily-digest
Process Obsidian daily notes: classify raw URLs and loose ideas, fetch content (X tweets, GitHub repos, web pages), run deep research on ideas, create structured vault notes, replace raw items with wikilinks. Orchestrates doc-obsidian, res-x, and res-deep skills. Use when: processing daily note links, digesting saved URLs into notes, turning ideas into research, daily note cleanup. Triggers: daily digest, process daily, daily links, triage daily, digest daily note.
35res-x
Fetch X/Twitter tweet content by URL and search X posts. Resolves tweet links that WebFetch cannot scrape. Use for: reading saved X/Twitter links, fetching tweet content from URLs, searching X for posts on a topic, batch-processing X links from notes. Triggers: x.com link, twitter.com link, fetch tweet, read tweet, what does this tweet say, X search, twitter search.
34doc-project
Update all project documentation in one pass: CLAUDE.md, AGENTS.md, README.md, SKILLS.md, CHANGELOG.md. Orchestrates doc-claude-md, doc-readme, doc-skills-md, and doc-changelog skills sequentially. Use when: project docs are stale, after major changes, initial project setup, sync all docs. Triggers: update all docs, update project docs, sync documentation, refresh docs, doc-project.
34