branch-pr
Original:🇺🇸 English
Translated
PR creation workflow for Agent Teams Lite following the issue-first enforcement system. Trigger: When creating a pull request, opening a PR, or preparing changes for review.
10installs
Added on
NPX Install
npx skill4agent add gentleman-programming/sdd-agent-team branch-prTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →When to Use
Use this skill when:
- Creating a pull request for any change
- Preparing a branch for submission
- Helping a contributor open a PR
Critical Rules
- Every PR MUST link an approved issue — no exceptions
- Every PR MUST have exactly one label
type:* - Automated checks must pass before merge is possible
- Blank PRs without issue linkage will be blocked by GitHub Actions
Workflow
1. Verify issue has `status:approved` label
2. Create branch: type/description (see Branch Naming below)
3. Implement changes with conventional commits
4. Run shellcheck on modified scripts
5. Open PR using the template
6. Add exactly one type:* label
7. Wait for automated checks to passBranch Naming
Branch names MUST match this regex:
^(feat|fix|chore|docs|style|refactor|perf|test|build|ci|revert)\/[a-z0-9._-]+$Format: — lowercase, no spaces, only in description.
type/descriptiona-z0-9._-| Type | Branch pattern | Example |
|---|---|---|
| Feature | | |
| Bug fix | | |
| Chore | | |
| Docs | | |
| Style | | |
| Refactor | | |
| Performance | | |
| Test | | |
| Build | | |
| CI | | |
| Revert | | |
PR Body Format
The PR template is at . Every PR body MUST contain:
.github/PULL_REQUEST_TEMPLATE.md1. Linked Issue (REQUIRED)
markdown
Closes #<issue-number>Valid keywords: , , (case insensitive).
The linked issue MUST have the label.
Closes #NFixes #NResolves #Nstatus:approved2. PR Type (REQUIRED)
Check exactly ONE in the template and add the matching label:
| Checkbox | Label to add |
|---|---|
| Bug fix | |
| New feature | |
| Documentation only | |
| Code refactoring | |
| Maintenance/tooling | |
| Breaking change | |
3. Summary
1-3 bullet points of what the PR does.
4. Changes Table
markdown
| File | Change |
|------|--------|
| `path/to/file` | What changed |5. Test Plan
markdown
- [x] Scripts run without errors: `shellcheck scripts/*.sh`
- [x] Manually tested the affected functionality
- [x] Skills load correctly in target agent6. Contributor Checklist
All boxes must be checked:
- Linked an approved issue
- Added exactly one label
type:* - Ran shellcheck on modified scripts
- Skills tested in at least one agent
- Docs updated if behavior changed
- Conventional commit format
- No trailers
Co-Authored-By
Automated Checks (all must pass)
| Check | Job name | What it verifies |
|---|---|---|
| PR Validation | | Body contains |
| PR Validation | | Linked issue has |
| PR Validation | | PR has exactly one |
| CI | | Shell scripts pass |
Conventional Commits
Commit messages MUST match this regex:
^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9\._-]+\))?!?: .+Format: or
type(scope): descriptiontype: description- — required, one of:
type,build,chore,ci,docs,feat,fix,perf,refactor,revert,styletest - — optional, lowercase with
(scope)a-z0-9._- - — optional, indicates breaking change
! - — required, starts after
description:
Type-to-label mapping:
| Commit type | PR label |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Examples:
feat(scripts): add Codex support to setup.sh
fix(skills): correct topic key format in sdd-apply
docs(readme): update multi-model configuration guide
refactor(skills): extract shared persistence logic
chore(ci): add shellcheck to PR validation workflow
perf(scripts): reduce setup.sh execution time
style(skills): fix markdown formatting
test(scripts): add setup.sh integration tests
ci(workflows): add branch name validation
revert: undo broken setup change
feat!: redesign skill loading systemCommands
bash
# Create branch
git checkout -b feat/my-feature main
# Run shellcheck before pushing
shellcheck scripts/*.sh
# Push and create PR
git push -u origin feat/my-feature
gh pr create --title "feat(scope): description" --body "Closes #N"
# Add type label to PR
gh pr edit <pr-number> --add-label "type:feature"