Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions skills/finishing-a-development-branch/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,22 @@ Then: Cleanup worktree (Step 5)
# Push branch
git push -u origin <feature-branch>

# Create PR
gh pr create --title "<title>" --body "$(cat <<'EOF'
# Create PR with conventional commit title
gh pr create --title "<type>: <description>" --body "$(cat <<'EOF'
## Summary
<2-3 bullets of what changed>

## Change Type
<!-- Check ONE that applies -->
- [ ] `fix:` - Bug fix (PATCH: x.x.X)
- [ ] `feat:` - New feature (MINOR: x.X.0)
- [ ] `feat!:` or `fix!:` or `BREAKING CHANGE:` - Breaking change (MAJOR: X.0.0)
- [ ] `docs:` / `chore:` / `refactor:` / `test:` - No version change

## Breaking Changes
<!-- If this is a breaking change, describe what breaks and migration path -->
N/A

## Test Plan
- [ ] <verification steps>
EOF
Expand Down Expand Up @@ -158,6 +169,25 @@ git worktree remove <worktree-path>
| 3. Keep as-is | - | - | ✓ | - |
| 4. Discard | - | - | - | ✓ (force) |

## Conventional Commits for PR Titles

Use conventional commit format for PR titles to enable automated versioning:

| Prefix | When to Use | Version Impact |
|--------|-------------|----------------|
| `fix:` | Bug fixes | PATCH (x.x.X) |
| `feat:` | New features | MINOR (x.X.0) |
| `feat!:` / `fix!:` | Breaking changes | MAJOR (X.0.0) |
| `docs:` | Documentation only | None |
| `chore:` | Build, deps, config | None |
| `refactor:` | Code restructure | None |
| `test:` | Adding/fixing tests | None |

**Examples:**
- `fix: resolve crash when user cancels purchase`
- `feat: add export to PDF functionality`
- `feat!: change API response format for /users endpoint`

## Common Mistakes

**Skipping test verification**
Expand Down