Claude-skill-registry create-pull-request
Create GitHub pull requests with proper issue linking, comprehensive descriptions, and quality metrics for WescoBar project
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/create-pull-request" ~/.claude/skills/majiayu000-claude-skill-registry-create-pull-request && rm -rf "$T"
manifest:
skills/data/create-pull-request/SKILL.mdsource content
Create Pull Request
Purpose
Create well-structured pull requests with proper GitHub issue linking, comprehensive descriptions, quality metrics, and adherence to WescoBar project standards.
When to Use
- After completing feature implementation and all quality gates pass
- During Conductor workflow Phase 4 (PR Creation)
- When ready to submit code for review
- After all tests pass and audit score ≥ 8.0
Critical Requirements
✅ MUST Do Before PR Creation
- All tests passing - No failing tests allowed
- Audit score ≥ 8.0 - Quality threshold met
- Build successful - Production build completes
- Commits pushed - All commits on remote branch
- Branch up-to-date - Synced with base branch (development)
❌ NEVER Do
- Create PR with failing tests
- Skip quality gates
- Use incorrect issue linking format
- Create PR before all validation passes
Instructions
Step 1: Gather PR Metadata
Collect required information:
- Issue number: From branch name or conductor context
- Issue title: From GitHub issue
- Files changed: Count from git diff
- Test coverage: From test results
- Audit score: From audit agent
- Implementation summary: Key changes made
Step 2: Draft PR Body
Use this template:
## Summary [Brief description of what was implemented] ## Changes - [Key change 1] - [Key change 2] - [Key change 3] ## Architecture Review - VSA compliance: ✅ - SOLID principles: ✅ - Layer boundaries: ✅ ## Test Coverage - Unit tests: [COVERAGE]% - Integration tests: ✅ Passing - UI tests: ✅ Passing - E2E tests: ✅ Passing [if applicable] ## Quality Metrics - Audit score: [SCORE]/10 - Build: ✅ Passing - Lint: ✅ Clean - TypeScript: ✅ No errors ## Files Changed - Modified: [COUNT] files - Created: [COUNT] files - Deleted: [COUNT] files ## Issue Reference Fixes #[ISSUE_NUMBER] 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Step 3: Validate Issue Linking Format
CRITICAL: Issue linking MUST use exact format
Fixes #123
✅ CORRECT:
Fixes #123Closes #456Resolves #789
❌ WRONG (GitHub won't auto-close):
(colon breaks it)Fixes: #123
(markdown breaks it)**Fixes:** #123
(singular doesn't work)Fix #123
(lowercase doesn't work in PR body)fixes #123
Step 4: Create PR with gh CLI
# Create PR with proper base and head branches gh pr create \ --title "feat: [FEATURE_TITLE]" \ --body "[PR_BODY_FROM_STEP_2]" \ --base development \ --head [BRANCH_NAME]
Step 5: Verify PR Creation
After creation:
- ✅ PR URL returned
- ✅ PR number assigned
- ✅ Issue linked (check on GitHub)
- ✅ All checks queued/running
PR Title Convention
Follow conventional commits:
feat: Add user dark mode toggle fix: Resolve character portrait caching issue refactor: Simplify WorldContext state management test: Add integration tests for Gemini API docs: Update README with new API patterns
Common Issues
Issue: PR creation fails with "No commits between base and head"
Solution: Ensure commits are pushed to remote branch:
git push -u origin [BRANCH_NAME]
Issue: Issue doesn't auto-link
Solution: Check issue linking format - must be
Fixes #123 (exact format)
Issue: PR checks don't start
Solution: Verify GitHub Actions are enabled for repository
Integration with Conductor Workflow
The Conductor agent uses this skill in Phase 4:
**Phase 4, Step 3**: Create Pull Request Using the `create-pull-request` skill: - Gather all metrics from previous phases - Draft comprehensive PR body - Validate issue linking format - Create PR with gh CLI - Verify creation successful
Related Skills
- Single atomic commit before PRcommit-changes
- Validate issue linking formatlink-github-issue
- Monitor PR checks after creationmonitor-ci-checks
Additional Resources
See
REFERENCE.md in this skill directory for:
- Complete PR template examples
- Issue linking format reference
- GitHub CLI documentation
- Troubleshooting guide