git-workflow
Git workflow patterns - conventional commits, branch naming, PR templates, merge strategies. Use when: commit, PR, branch naming, git workflow, conventional commits, semantic versioning.
What this skill does
<objective>
Comprehensive git workflow skill covering conventional commits, semantic branch naming, PR templates, and merge strategies. Enforces consistency across all projects to reduce review friction and enable automated changelog generation.
This skill complements worktree-manager-skill (which handles parallel development) by providing the conventions for commits and PRs within those worktrees.
</objective>
<quick_start>
**Conventional Commit format:**
```
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
```
**Types:** feat, fix, docs, style, refactor, perf, test, build, ci, chore
**Example:**
```bash
git commit -m "feat(auth): add JWT refresh token rotation
Implements automatic token refresh 5 minutes before expiry.
Closes #123"
```
**Branch naming:** `<type>/<ticket>-<short-description>`
```bash
git checkout -b feat/AUTH-123-refresh-tokens
```
</quick_start>
<success_criteria>
Git workflow is successful when:
- All commits follow conventional commit format
- Branch names follow `<type>/<ticket>-<description>` pattern
- PRs use consistent template with summary, test plan, and checklist
- Merge strategy matches branch type (squash for features, merge for releases)
- Commit history tells a clear story of changes
- No force pushes to main/master without explicit team agreement
</success_criteria>
<conventional_commits>
## Conventional Commits Specification
Based on [conventionalcommits.org](https://www.conventionalcommits.org/)
### Commit Types
| Type | Description | Changelog Section | Version Bump |
|------|-------------|-------------------|--------------|
| feat | New feature | Features | Minor |
| fix | Bug fix | Bug Fixes | Patch |
| docs | Documentation only | - | - |
| style | Formatting, no code change | - | - |
| refactor | Code change, no feature/fix | - | - |
| perf | Performance improvement | Performance | Patch |
| test | Adding/fixing tests | - | - |
| build | Build system changes | - | - |
| ci | CI configuration | - | - |
| chore | Maintenance tasks | - | - |
### Breaking Changes
Add `!` after type or `BREAKING CHANGE:` in footer:
```bash
# Method 1: Bang notation
feat(api)!: change response format to JSON:API
# Method 2: Footer
feat(api): change response format to JSON:API
BREAKING CHANGE: Response structure changed from { data } to { data, meta, links }
```
### Scope Guidelines
Scope is optional but recommended. Use consistent scopes per project:
```
# Good scopes
auth, api, ui, db, config, deps
# Examples
feat(auth): add OAuth2 support
fix(api): handle null response from external service
docs(readme): add installation instructions
```
### Commit Message Structure
```
<type>(<scope>): <subject>
│ │ │
│ │ └─> Summary in present tense, no period, max 50 chars
│ │
│ └─> Component/area affected (optional)
│
└─> Type: feat, fix, docs, style, refactor, perf, test, build, ci, chore
[blank line]
[optional body - explain what and why, not how]
[blank line]
[optional footer(s) - breaking changes, issue references]
```
### Good vs Bad Examples
| Bad | Good | Why |
|-----|------|-----|
| `fixed bug` | `fix(auth): prevent token expiry race condition` | Specific, scoped |
| `updates` | `refactor(api): extract validation middleware` | Describes change |
| `WIP` | `feat(ui): add loading skeleton (WIP)` | Clear intent |
| `misc changes` | `chore: update dependencies to latest versions` | Typed, meaningful |
</conventional_commits>
<branch_naming>
## Branch Naming Conventions
### Pattern
```
<type>/<ticket-id>-<short-description>
```
### Branch Types
| Type | Use For | Example |
|------|---------|---------|
| feat/ | New features | feat/AUTH-123-oauth-login |
| fix/ | Bug fixes | fix/API-456-null-response |
| hotfix/ | Urgent production fixes | hotfix/PROD-789-payment-failure |
| docs/ | Documentation | docs/README-update |
| refactor/ | Code restructuring | refactor/cleanup-legacy-api |
| test/ | Test additions | test/add-auth-integration |
| chore/ | Maintenance | chore/update-deps |
| release/ | Release branches | release/v2.1.0 |
### Naming Rules
1. **Lowercase only** - `feat/auth-login` not `feat/Auth-Login`
2. **Hyphens for spaces** - `fix/null-response` not `fix/null_response`
3. **Include ticket ID** when available - `feat/JIRA-123-description`
4. **Keep short** - 50 chars max including type prefix
5. **Be descriptive** - `feat/user-profile` not `feat/feature1`
### Protected Branches
| Branch | Protection | Merge Strategy |
|--------|------------|----------------|
| main | Require PR + review | Squash merge |
| develop | Require PR | Merge commit |
| release/* | Require PR + CI pass | Merge commit |
### Examples
```bash
# Feature work
git checkout -b feat/PROJ-123-user-authentication
# Bug fix
git checkout -b fix/PROJ-456-login-redirect-loop
# Hotfix (from main)
git checkout main
git checkout -b hotfix/PROJ-789-payment-timeout
# Documentation
git checkout -b docs/api-endpoint-reference
# Chore
git checkout -b chore/upgrade-node-20
```
</branch_naming>
<pr_templates>
## Pull Request Templates
### Standard PR Template
```markdown
## Summary
<!-- 1-3 bullet points describing the change -->
-
## Type of Change
<!-- Check one -->
- [ ] feat: New feature
- [ ] fix: Bug fix
- [ ] docs: Documentation
- [ ] refactor: Code restructuring
- [ ] test: Test coverage
- [ ] chore: Maintenance
## Test Plan
<!-- How did you verify this works? -->
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Manual testing completed
## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Documentation updated (if needed)
- [ ] No console.log or debug code
- [ ] No sensitive data exposed
## Related Issues
<!-- Link related issues -->
Closes #
## Screenshots
<!-- If UI change, add before/after -->
```
### Minimal PR Template (for small changes)
```markdown
## What
<!-- One sentence -->
## Why
<!-- One sentence -->
## Test
<!-- How verified -->
Closes #
```
### Release PR Template
```markdown
## Release v{VERSION}
### Changes Since Last Release
<!-- Auto-generated or manual list -->
### Breaking Changes
<!-- List any breaking changes -->
### Migration Guide
<!-- If breaking changes, how to migrate -->
### Deployment Notes
<!-- Any special deployment steps -->
### Rollback Plan
<!-- How to rollback if issues -->
```
</pr_templates>
<merge_strategies>
## Merge Strategies
### Strategy by Branch Type
| Branch Type | Strategy | Rationale |
|-------------|----------|-----------|
| feat/* | Squash | Clean single commit in main |
| fix/* | Squash | Clean single commit in main |
| hotfix/* | Merge | Preserve hotfix history |
| release/* | Merge | Preserve release commits |
| refactor/* | Squash or Rebase | Depends on commit count |
### Git Commands
```bash
# Squash merge (recommended for features)
git checkout main
git merge --squash feat/my-feature
git commit -m "feat(scope): description"
# Merge commit (for releases)
git checkout main
git merge --no-ff release/v2.0.0
# Rebase (for clean linear history)
git checkout feat/my-feature
git rebase main
git checkout main
git merge feat/my-feature
# Interactive rebase (clean up before PR)
git rebase -i HEAD~5
```
### Squash vs Merge Decision Tree
```
Is this a feature or fix branch?
├── Yes → Squash merge
└── No → Is this a release or hotfix?
├── Yes → Merge commit (preserve history)
└── No → Consider context
```
</merge_strategies>
<commit_hooks>
## Commit Hooks (Optional Enforcement)
### commitlint Configuration
```javascript
// commitlint.config.js
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [
'feat', 'fix', 'docs', 'style', 'refactor',
'perf', 'test', 'build', 'ci', 'chore'
]],
'scope-case': [2, 'always', 'lowercase'],
'subject-case': [2, 'always', 'sentence-case'],
'subject-max-length': [2, 'always', 72],
'body-max-line-length': [2, 'always', 10Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.