From hatch3r
Guides pull request or merge request creation with branch naming conventions, self-review checklists, template completion, and rollout plans. Use when preparing or opening PRs/MRs in GitHub, GitLab, or Azure DevOps.
npx claudepluginhub hatch3r/hatch3rThis skill uses the workspace's default tool permissions.
> **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.
Creates or updates GitHub PRs or GitLab MRs for current branch using Conventional PR format with structured summary, changes, rationale, and test plan. Use when branch ready for review or to update existing.
Creates GitHub Pull Requests with commit analysis, task completion validation from spec files, Conventional Commits title and description generation, label suggestions, and test execution. Use when preparing branches for review.
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.
Share bugs, ideas, or general feedback.
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.agents/hatch.jsonto determine terminology and CLI. GitHub/Azure DevOps use "Pull Request" (PR); GitLab uses "Merge Request" (MR).
Task Progress:
- [ ] Step 1: Verify branch naming
- [ ] Step 2: Self-review against checklist
- [ ] Step 3: Fill PR/MR template
- [ ] Step 4: Create the PR/MR
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 .agents/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 .agents/hatch.json as the target branch (fallback: "main").
You MUST spawn these agents via the Task tool (subagent_type: "generalPurpose") 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. |