From hatch3r
Creates pull requests or merge requests following project conventions including branch naming, PR/MR templates, checklists, and rollout plans.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hatch3r:hatch3r-pr-creationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Note:** Commands below use `npm` as an example. Substitute with your project's package manager (`yarn`, `pnpm`, `bun`) or build tool when your project uses a different package manager.
Note: Commands below use
npmas an example. Substitute with your project's package manager (yarn,pnpm,bun) or build tool when your project uses a different package manager.
Platform detection: Check
platformin.hatch3r/hatch.jsonto determine terminology and CLI. GitHub/Azure DevOps use "Pull Request" (PR); GitLab uses "Merge Request" (MR).
Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Verify branch naming
- [ ] Step 2: Self-review against checklist
- [ ] Step 3: Fill PR/MR template
- [ ] Step 4: Create the PR/MR
Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: target base branch (board.defaultBranch vs feature branch), draft vs ready-for-review, reviewers explicitly named, rollout plan (feature flag vs direct), and whether the diff includes irreversible operations (force-push, data migration).
Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.
Branches must follow {type}/{short-description}:
| Type | When to Use | Example |
|---|---|---|
feat/ | New features | feat/add-user-preferences |
fix/ | Bug fixes | fix/login-validation-bug |
refactor/ | Code, logical, or visual refactors | refactor/simplify-auth-flow |
qa/ | QA validation or test additions | qa/e2e-checkout-flow |
docs/ | Documentation changes | docs/update-readme |
infra/ | CI/CD, tooling, infrastructure | infra/add-lint-ci-step |
Rules: lowercase, hyphens (no underscores), 3-5 words max.
Before creating the PR, verify:
Scope: Changes limited to the stated issue. No unrelated changes. No TODOs without linked issues.
Quality: Code compiles (npm run typecheck). Lint passes (npm run lint). All tests pass (npm run test). No any types. No @ts-ignore without linked issue.
Security & Privacy: No secrets in code. Database rules updated and tested if data model changed. No sensitive content leaks to cloud. Event metadata uses allowlisted keys. Entitlement gates enforced server-side if gated.
Accessibility (if UI): Animations respect prefers-reduced-motion. Color contrast meets WCAG AA. Interactive elements keyboard accessible.
Use the project's PR/MR template. Fill every section:
Closes #N or Relates to #N (GitHub/GitLab), or link ADO Work Items via AB#NPR/MR title format: {type}: {short description} (#issue)
Examples:
feat: add user preferences panel (#42)fix: correct validation for email field (#87)Create the PR/MR using the platform CLI (check platform in .hatch3r/hatch.json):
gh pr create --base {defaultBranch} --head {branch} --title "..." --body "..."az repos pr create --source-branch {branch} --target-branch {defaultBranch} --title "..." --description "..."glab mr create --source-branch {branch} --target-branch {defaultBranch} --title "..." --description "..."Use board.defaultBranch from .hatch3r/hatch.json as the target branch (fallback: "main").
You MUST spawn these agents via the Task tool (subagent_type: "general-purpose") at the appropriate points:
hatch3r-reviewer — MUST spawn before PR/MR creation for code review. Include the full diff and acceptance criteria in the prompt. Apply reviewer feedback before creating the PR/MR.hatch3r-issue-workflow — use this skill for the parent issue-to-PR workflow that feeds into PR creationgit push -u origin {branch}), then retry the PR/MR creation.| Files Changed | Recommendation |
|---|---|
| 1-5 | Ideal. Review and merge quickly. |
| 6-15 | Acceptable. Thorough PR description. |
| 16-30 | Split if possible. |
| 30+ | Must be split. |
npx claudepluginhub hatch3r/hatch3r --plugin hatch3rCreates GitHub pull requests with pre-flight validation, conventional titles, and structured summaries, running parallel checks (tests, lint, type-check, security) before opening.
Creates GitHub Pull Requests using GitHub CLI: detects existing PRs for branches, pushes changes, generates titles/bodies from commits. Handles monorepos/submodules. Use for /create-pr or PR/review requests.
Analyzes git diffs and commit history to fill PR templates and create pull requests via gh CLI. Useful for automating PR creation and descriptions.