/fullstack-dev-kit:create-prfrom fullstack-dev-kit
Creates a branch, commits work, and opens a pull request after quality gates pass. Supports GitHub, Bitbucket, GitLab, and Azure DevOps.
Ships in fullstack-dev-kit. 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.
Final step of the story workflow. Runs when the applicable gates pass (gates are adaptive to the project — see instructions/testing-standards.md).
coverage-check passes — when the project has coverage tooling (project's bar, default ≥ 95%, no regression).e2e-generate ran for user-facing changes).pr-review-style self-review found no unresolved blocking findings.A gate that does not apply (no test/e2e/lint setup) is not a blocker — but it must be called out in the PR "How it was verified" section as not applicable, recommend adding, never omitted. A gate that applies and fails stops the PR: report what's missing instead of opening it. (A gates policy in .claude/dev-kit.json can force required/off.)
<type>/<TICKET-KEY>-<short-slug> (e.g. feat/PROJ-1234-payment-status-filter). Follow the repo's convention if one exists.<type>: <TICKET-KEY> <imperative summary> plus a short body of key changes. Follow the repo's convention if one exists.Before creating, check the branch doesn't already have an open PR (gh pr view <branch> --json number,state,url, or gh pr list --head <branch> --state open). If one is open, update it instead of opening a duplicate. If the only PR for the branch is closed/merged, do not reuse its number — push to a fresh branch and open a new PR. Never assume a PR number from earlier in the session.
Open the PR on the configured host (prHost in .claude/dev-kit.json; default github). Branch/commit/push are the same everywhere (plain git); only the "open the PR" call differs:
gh pr create (gh authenticated).POST https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests with {title, source:{branch:{name}}, destination:{branch:{name}}}, authenticated with a Bitbucket app password / access token from the environment (e.g. BITBUCKET_TOKEN). The acli CLI works too if the team uses it. Derive {workspace}/{repo_slug} from the origin remote.glab mr create (glab authenticated).az repos pr create --source-branch <branch> --target-branch <base> --title <title> --description <body> (Azure CLI with the azure-devops extension, az login authenticated; run az extension add --name azure-devops once if missing). The org/project/repo come from the origin remote or az devops configure --defaults.The body must include (adapt field names to the host — GitHub/GitLab render Markdown; Bitbucket PR descriptions accept Markdown too):

## <TICKET-KEY>: <story title>
### Summary
<the product-facing summary: what was delivered in user terms and the
decisions taken, plain language — same content as the tracker comment>
### What changed
- ...
### How it was verified
- Unit tests: <command + result>
- Coverage on touched files: <summary — meets the project's bar>
- E2E: <suites run + result>
- Security pass: <verdict>
- Lint: clean
### Notes for reviewers
- <risks, follow-ups, technical decisions>
### Delivery readiness
<Include only the lines that apply — skip this whole section for trivial/internal changes; don't pad.>
- Rollback: safe to revert this PR on its own? Flag anything that isn't.
- Migrations: reversible and safe on a live DB (no long locks; backfill plan)?
- Config/secrets: new keys have safe defaults; nothing required-but-undocumented.
- Docs/contract: user-facing or API changes reflected in the docs.
- Breaking change / behind a feature flag: called out explicitly.
Issue: <link to the tracker item>
---
🤖 Generated with [Claude Code](https://claude.com/claude-code) via the
fullstack-dev-kit plugin. Plan approved by a human before implementation;
human review still required before merge.
Use the repo's PR template instead if one exists (.github/PULL_REQUEST_TEMPLATE.md), adding the badge, summary, verification evidence, and AI footer into it.
AI traceability metadata, best effort after creation:
ai-generated label/tag to the PR when the host supports it — GitHub: gh pr edit <url> --add-label ai-generated (create it once with gh label create ai-generated --color 8A2BE2 if missing), then verify it stuck with gh pr view <url> --json labels — gh pr edit can error without applying anything on repos whose org ever used classic Projects; on a miss, apply via REST: gh api repos/<owner>/<repo>/issues/<pr-number>/labels -f "labels[]=ai-generated". Bitbucket/GitLab: skip or use the host's equivalent. If not possible, skip silently — the badge and footer already carry the signal.Report only the PR URL/number the create call actually returned — capture it from gh pr create's output (or read it back with gh pr view <url> --json number,state,url), never a number you assumed or remembered. Then report the verification evidence and any follow-up risks explicitly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub theam/claude-dev-kit --plugin fullstack-dev-kit13 skills in this plugin
/coverage-checkRun the repo's unit tests with coverage and verify that every file touched in the current change keeps line, branch, and function coverage at or above 95%. Language- and framework-agnostic. Use before committing, before PR creation, or when the user asks about coverage./delegate-backlogDelegate an approved backlog to the configured async provider so several stories are worked in parallel — one branch and PR per issue — then re-apply the kit's quality via pr-review/fix-pr. The provider is delegation.provider in the kit config (github-copilot or self-hosted-action). Verifies that provider (never fabricates a trigger, never falls through to the other one) and never auto-merges. Use when a PO/dev wants to fan a backlog out to an async agent./Other plugins' skills for the same job