From full-orchestration
Create a pull request from a reviewed implementation branch. Use when the implementation and review stage is approved and you are ready to open a PR. Generates a conventional-commit title, structured body with ticket link, spec summary, test results, and review findings, then creates the PR via gh CLI.
npx claudepluginhub shouenlee/ghcp-dev-plugin --plugin full-orchestrationThis skill uses the workspace's default tool permissions.
**State file**: `.claude/swe-state/{ticket-id}.json`
Analyzes git branch changes, runs code review swarm, generates friendly PR description and structured test plan, then pushes and creates GitHub pull request. Triggered by 'create a PR' or /pr-create.
Creates GitHub pull requests with formatted descriptions, labels, issue references, draft mode, reviewers, and base branch selection from pushed branches. Use for 'create PR' or 'submit for review'.
Creates or updates GitHub PRs using gh CLI. Auto-extracts ticket IDs from branch names, generates titles/summaries from commits, detects existing PRs for update mode. Defaults to dry-run.
Share bugs, ideas, or general feedback.
State file: .claude/swe-state/{ticket-id}.json
Create a well-structured PR from the reviewed implementation.
/pr_create <ticket-id>
Read state. Confirm stages.review.approved is true (not just completed — an aborted review is completed but not approved). Extract feature_branch, target_branch. Read ticket.json for ticket URL and source system. Read impl summary and review summary. Verify feature branch exists.
Report: ticket ID, branches, ticket URL, review iteration count.
Title: {type}({ticket-id}): {description} — under 72 chars.
Type mapping: feature→feat, bug→fix, refactor→refactor, docs→docs, test-only→test, chore→chore.
Labels: feature→enhancement, bug→bug, refactor→refactor, docs→docs, test→test, security fix→security.
Body — assemble from pipeline artifacts:
## Summary
{2-3 sentences}
Resolves [{ticket-id}]({ticket-url})
## Spec
**Goal**: {from spec} **Approach**: {summary}
**Key decisions**: {list}
## Changes
- `{file}` — {description}
## Test Results
{from impl summary}
## Review Summary
{iterations, findings table, resolutions}
## Checklist
- [x] Tests pass locally
- [x] Code review completed
- [x] No critical/major findings remaining
- [ ] CI pipeline (pending)
Preview gate: Show title, labels, body. User chooses: Create, Edit, or Cancel.
git fetch origin {target_branch}
git merge-base --is-ancestor origin/{target_branch} HEAD
If target has moved ahead, rebase: git rebase origin/{target_branch}. On conflict → present conflicting files to user and pause. Do NOT force-push or auto-resolve.git push -u origin {feature_branch}gh pr list --head {feature_branch} --json number,url — offer to update if existsgh pr create --title "{title}" --body "{body}" --base {target_branch}gh pr edit {number} --add-label "{labels}"| System | Action |
|---|---|
| Jira | MCP: transitionJiraIssue to "In Review" + addCommentToJiraIssue |
| Linear | MCP: linear_update_issue to "In Review" + linear_add_comment |
| GitHub | Auto-linked via Resolves #N; add comment with gh issue comment |
Request reviewers from CODEOWNERS if available: gh pr edit {number} --add-reviewer {list}. Report CI monitoring command.
Set stages.pr.completed = true, populate pr_number, pr_url, title, labels, ticket_updated, reviewers_requested. Set status = "completed".