/jig:pr-createfrom jig
Analyzes branch changes and generates PR descriptions with structured test plans. Triggered by 'create a PR', 'open a pull request', or /pr-create.
Ships in jig. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PURPOSE: Create pull requests with clear, well-written descriptions that tell reviewers exactly what changed and how to verify it.
CONFIGURATION: Reads jig.config.md for git-host, ticket-system, ticket-prefix, branching.format, require-ticket-reference, and main-branch.
GIT HOST: Commands in this skill use GitHub (gh) as the default. If git-host in jig.config.md is not github, read framework/GIT_HOST.md for the platform-specific command equivalents.
STACKED PRS: If this PR builds on another unmerged branch, read framework/STACKED_PRS.md first. Use that branch in place of {main-branch} below (git log <parent-branch>..HEAD, gh pr create --base <parent-branch>), add the chain list to the body, and check CI on every PR in the chain, not just this one.
kickoff routes here during the SHIP stagefinish Option 2 (Push and Create PR)Do NOT use when: You need to respond to existing PR comments. Use pr-respond instead.
Run review (code review swarm)
|
+-- blocking/major issues? --> Fix issues first, re-run
|
+-- clean/minor --> Gather context
|
Detect ticket from branch
|
Analyze ALL commits
|
Group changes by theme
|
Determine test plan items
|
Write PR body
|
Push + create PR
Before writing the PR, run review to catch issues while they are cheap to fix.
The swarm dispatches parallel specialist agents and produces a confidence score. If blocking or major issues are found, fix them first -- do not create a PR that reviewers will flag.
If the swarm was already run earlier in the session (e.g., during team-dev quality gates), you can skip re-running it -- just confirm no new changes were made since the last review.
Run these in parallel:
# Current state
git status
# All commits since divergence from base branch
git log {main-branch}..HEAD --oneline
# Full diff against base
git diff {main-branch}...HEAD --stat
# Check remote tracking
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null
Read main-branch from jig.config.md (default: main).
Check the branch name for a ticket reference. Read jig.config.md for:
ticket-system -- which system (GitHub Issues, Linear, Jira, etc.)ticket-prefix -- the prefix pattern to look for (e.g., ENG, PROJ, GH)branching.format -- to understand where the ticket number appears in the branch nameExamples of ticket detection by system:
| System | Branch Pattern | PR Reference |
|---|---|---|
| GitHub Issues | user/gh-42-fix-login | Fixes #42 |
| Linear | user/eng-1234-add-export | Fixes ENG-1234 |
| Jira | user/proj-567-update-api | Fixes PROJ-567 |
If require-ticket-reference is true in jig.config.md and no ticket is detected, warn the user before proceeding.
Read through ALL commits -- not just the latest. Group them by theme:
Analyze every commit. A PR with 12 commits needs all 12 examined. Do not summarize based on the latest commit alone.
Select the appropriate checkboxes based on what changed:
| Change type | Test plan items |
|---|---|
| UI components, styling, layout | Manual verification, Screenshots |
| Business logic, API, data flow | Automated tests, Manual verification |
| New API endpoints/queries/mutations | Automated tests, Manual verification |
| Translation keys only | Automated tests |
| Docs, typos, comments only | No testing required |
| Database migrations | Automated tests, Manual verification |
| Config, CI, build changes | Automated tests |
Add context-specific items when applicable:
Tested in dark mode / light mode (for theme-sensitive UI)Verified responsive behavior (for layout changes)Tested with empty state / loaded state (for data-dependent views)Verified backward compatibility (for API changes)Tested error states (for error handling changes)Title: Follow the project's commit convention from jig.config.md (e.g., type(scope): description), under 70 chars.
Body: If perf measured this work, link its results doc (*-perf.md in plans-directory) from the Summary. Use this structure:
## Summary
{2-4 sentences. What changed and why -- in plain language. This is the part
reviewers read first, so make it count. If there is a ticket, mention what
it asked for and how this addresses it.}
## Changes
- **{Theme}**: {What changed}. {Brief why if non-obvious.}
- **{Theme}**: {What changed}.
- **{Theme}**: {What changed}.
## Test plan
- [ ] Automated tests (Unit/Integration) passed
- [ ] Manual verification (Screenshots attached if UI)
- [ ] No testing required (Docs/Typos only)
{Context-specific items from Step 4, if any}
Fixes {TICKET-REFERENCE}
A learning PR (one that ships a lesson; see PR in framework/LEARNING_LOOP.md) opens with the sections listed there, then this structure, and its test plan lists the procedure runs that section requires.
# Push with upstream tracking
git push -u origin HEAD
# Create PR with HEREDOC for body formatting
gh pr create --title "type(scope): description" --body "$(cat <<'EOF'
## Summary
...
## Changes
...
## Test plan
...
Fixes TICKET-REF
EOF
)"
Return the PR URL when done.
Write like you are talking to a smart colleague. Not a press release, not a commit log.
Adds webhook delivery for component update events. When a component is modified, the system publishes an event that the webhook service picks up and delivers to registered endpoints with exponential backoff retry.
Fixes a race condition where the auth token could expire mid-request during long-running mutations. The refresh now happens preemptively when the token is within 30 seconds of expiry.
Redesigns the library dashboard with a two-column fixed+scroll layout. The left column pins quick actions in place while the right column scrolls through activity cards. Stat strip replaces the hero cards, charts are gone, and everything got the monotone treatment.
This PR enhances the dashboard experience by streamlining the layout and improving the overall visual hierarchy to provide a more intuitive user interface.
That tells the reviewer nothing. What actually changed? Which files? Why?
review run -- score 8+ (or blocking/major issues addressed)verify)jig.config.md settings)| Mistake | Fix |
|---|---|
| Listing every commit as a bullet | Group by theme -- reviewers do not need your git log |
| "Updated files" with no context | Say what changed and why |
| Empty test plan | Always include checkboxes -- even "No testing required" is a choice |
| Title longer than 70 chars | Move details to the body |
| Corporate tone in summary | Read it out loud. Would you say this to a teammate? |
| Missing ticket reference | Check branch name for ticket pattern from jig.config.md |
| Hardcoding owner/repo | Extract from git remote -- never assume a specific repository |
Called by:
kickoff during the SHIP stagefinish Option 2 (Push and Create PR)postmortem, for a learning PR (PR in framework/LEARNING_LOOP.md)extend, for a pack or core artifact's learning PRRelated skills:
review -- run before creating the PRpr-respond -- for handling reviewer feedback after PR is createdpostmortem -- uses PR data for retrospectivesperf -- its *-perf.md results doc is linked from the PR SummaryWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub duronext/jig --plugin jig26 skills in this plugin
/brainstormUse when exploring ideas, comparing approaches, or refining an unclear problem — at any point in the workflow. A discovery-time tool, not a pipeline stage. Invokable directly via /brainstorm or offered by kickoff during DISCOVER. Produces understanding, not artifacts.
/buildUse when you have an implementation plan and want to execute it. Analyzes the plan's task graph, determines the best execution strategy (parallel via team-dev or serial via sdd), and orchestrates the full build with quality gates. The single entry point for plan execution — you don't need to choose between team-dev and sdd yourself.
/debugUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Enforces root cause investigation through four phases: investigation, pattern analysis, hypothesis testing, and implementation. Prevents guess-and-check thrashing.
/eng-copywritingUse when writing ANY user-facing text -- UI labels, button text, error messages, notifications, tooltips, placeholders, or application content./eng-loggingUse when implementing logging in application code. Covers log level selection, structured logging, error tracking integration, and avoiding noise./eng-testingUse when writing tests, designing test strategy, or reviewing test coverage. Covers test pyramid, naming, mocking, and flaky test policy.Other plugins' skills for the same job