From jira-pr-workflow
Use when the user asks to implement a JIRA ticket and create a PR following team branch/commit/PR conventions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/jira-pr-workflow:create-a-pr-safelyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill implements a JIRA ticket end-to-end with disciplined hygiene: correct base branch, correct branch naming, acceptance-criteria-driven implementation, verified locally, clean commits, and a PR title/body that follows a predefined format.
This skill implements a JIRA ticket end-to-end with disciplined hygiene: correct base branch, correct branch naming, acceptance-criteria-driven implementation, verified locally, clean commits, and a PR title/body that follows a predefined format.
1) Do NOT push, open a PR, or modify remote branches until you have shown the user the exact plan (branch name, commit plan, verification plan) and they approve. 2) Do NOT force-push unless the user explicitly asks for it. 3) Do NOT commit secrets. If any secret-like content appears (tokens/keys/passwords), stop and ask the user how to proceed. 4) Do NOT implement beyond the ticket scope. If the ticket is ambiguous or missing acceptance criteria, stop and ask for clarification or require the user to paste the missing details.| Step | Action | Gate? |
|---|---|---|
| 1 | Read + restate ticket | Ask if ACs ambiguous |
| 2 | Plan (branch, files, verify) | User approval required |
| 3 | Sync base branch | Stop if diverged |
| 4 | Create branch | Must match pattern |
| 5 | Implement to ACs | Stop if requirements missing |
| 6 | Verify locally (tests/lint/build) | Fix before committing |
| 7 | Diff review | Stop if unrelated changes or secrets |
| 8 | Commit with ticket ID | 1–3 commits max |
| 9 | Push (no force) | — |
| 10 | Create PR + confirm CI | Triage if CI fails |
Before starting, you must know or ask for:
main)If the user does not provide patterns, use these defaults and ask them to confirm:
Branch naming pattern (default):
feature/{JIRA_ID}-{slug}PR title pattern (default):
{JIRA_ID}: {ticket_summary}Commit message pattern (default):
{JIRA_ID}: {short_summary}Ask only what you need:
ABC-123)You must have the following ticket fields before coding:
If you cannot access JIRA content directly, ask the user to paste these fields into the chat. Do not ask for or store JIRA API tokens unless the user explicitly wants to configure secure access.
Summarize the ticket in your own words:
If any acceptance criterion is ambiguous, ask a clarifying question before proceeding.
Present a short plan that includes:
git status (must be clean or user-approved to proceed)Create the branch name using:
{JIRA_ID} exactly (case preserved){slug} derived from the ticket summary (lowercase, hyphens, no punctuation)Example:
ABC-123 “Add export button”feature/ABC-123-add-export-buttonImplement the smallest correct change set that satisfies all criteria. As you work, maintain an explicit checklist and mark each acceptance criterion “done” only when:
If you discover missing requirements, stop and ask the user instead of guessing.
Run the repo’s standard checks (tests/lint/build). If checks fail, fix them before committing unless the user explicitly requests a WIP PR.
Before committing, review the diff for:
If the diff includes work not justified by the ticket, stop and ask whether to split it into another ticket/PR.
Prefer 1–3 commits max unless the user requests otherwise.
Commit message must include {JIRA_ID} and a meaningful summary.
Push the branch to origin with upstream tracking. No force-push.
PR title must match your team pattern, default:
{JIRA_ID}: {ticket_summary}PR body must include:
After creating the PR, confirm CI started. If CI fails, switch to a CI-triage flow (identify failing workflow/job/step, extract exact error, reproduce locally if possible, fix minimally, push, re-check).
| Mistake | Fix |
|---|---|
| Starting to code before user approves the plan | Always present plan + wait for approval (step 2) |
| Branch name doesn't include JIRA ID | Derive from ticket ID exactly as given, case-preserved |
| Committing unrelated files (e.g. editor config, lockfile noise) | Run diff review gate (step 7) before every commit |
| Pushing directly to base branch | Always create a feature branch first |
| Opening PR before local verification passes | Complete step 6 first; only skip with explicit "WIP PR" request |
| Guessing at missing acceptance criteria | Stop and ask — never fill gaps silently |
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub zhaoyi0113/jira-pr-workflow --plugin jira-pr-workflow