Git Workflows
This skill should be used when the user asks to "create a commit", "write commit message", "create a pull request", "generate changelog", "manage branches", "git workflow", "merge strategy", "PR description", or mentions git operations and version control workflows.
What this skill does
# Git Workflows Comprehensive git workflow skill for commits, pull requests, branching, and changelog generation. --- ## Commit Message Format ### Conventional Commits | Part | Purpose | Example | |------|---------|---------| | **Type** | Category of change | `feat`, `fix`, `docs` | | **Scope** | Affected component | `(auth)`, `(api)` | | **Subject** | Brief description | `add OAuth2 login` | | **Body** | Details (optional) | Why + what changed | | **Footer** | References | `Closes #123` | ### Commit Types | Type | When to Use | |------|-------------| | **feat** | New feature | | **fix** | Bug fix | | **docs** | Documentation only | | **style** | Formatting (no code change) | | **refactor** | Code restructuring | | **test** | Adding/updating tests | | **chore** | Maintenance, deps | | **perf** | Performance improvement | ### Commit Analysis Workflow 1. Run `git diff --staged` to see changes 2. Identify change type (feat, fix, etc.) 3. Determine scope (affected component) 4. Write concise subject (< 50 chars) 5. Add body if context needed --- ## Pull Request Structure ### PR Template Elements | Section | Content | |---------|---------| | **Summary** | What this PR does (1-2 sentences) | | **Changes** | Bullet list of specific changes | | **Testing** | How changes were tested | | **Screenshots** | If UI changes | | **Checklist** | Tests pass, docs updated | ### PR Analysis Workflow 1. List commits: `git log main..HEAD --oneline` 2. Identify themes across commits 3. Note any breaking changes 4. Check test coverage 5. Review documentation needs --- ## Branch Strategies ### Git Flow | Branch | Purpose | |--------|---------| | **main** | Production code | | **develop** | Integration branch | | **feature/** | New features | | **release/** | Release preparation | | **hotfix/** | Production fixes | ### GitHub Flow | Branch | Purpose | |--------|---------| | **main** | Always deployable | | **feature branches** | Short-lived work | ### Trunk-Based | Branch | Purpose | |--------|---------| | **main** | All development | | **Short branches** | < 1 day | | **Feature flags** | Incomplete work | ### Branch Naming | Pattern | Example | |---------|---------| | Feature | `feature/ABC-123-add-user-auth` | | Bugfix | `bugfix/ABC-456-fix-login` | | Hotfix | `hotfix/critical-security-patch` | | Release | `release/v1.2.0` | --- ## Changelog Format ### Keep a Changelog Structure | Section | Content | |---------|---------| | **Added** | New features | | **Changed** | Changes in existing functionality | | **Deprecated** | Soon-to-be removed features | | **Removed** | Removed features | | **Fixed** | Bug fixes | | **Security** | Security fixes | ### Changelog Generation Workflow 1. Get commits since last release tag 2. Parse commit messages for type/scope 3. Group by category (Added, Fixed, etc.) 4. Format with links to issues/PRs --- ## Best Practices ### Commits | Practice | Why | |----------|-----| | Atomic commits | One logical change per commit | | Clear messages | Explain why, not just what | | Reference issues | Link to related tickets | | Sign commits | GPG verification | ### Pull Requests | Practice | Why | |----------|-----| | Small PRs | < 400 lines ideal for review | | Clear title | Summarize the change | | Self-review first | Check diff before requesting | | Respond promptly | Address feedback quickly | ### Branches | Practice | Why | |----------|-----| | Short-lived | Merge within days | | Up to date | Rebase regularly | | Clean history | Squash before merge | | Delete after merge | Keep repo clean | --- ## Merge Strategies | Strategy | When to Use | Result | |----------|-------------|--------| | **Merge commit** | Preserve history | Merge commit node | | **Squash** | Clean up messy history | Single commit | | **Rebase** | Linear history | No merge commit | | **Fast-forward** | Simple, linear | No merge commit | **Key concept**: Squash for feature branches with messy commits. Rebase for clean linear history. Merge commit when branch history matters. --- ## Common Git Commands ### Pre-Commit | Command | Purpose | |---------|---------| | `git status` | See staged/unstaged changes | | `git diff --staged` | Review what will be committed | | `git add -p` | Interactive staging | ### Commit | Command | Purpose | |---------|---------| | `git commit -m "msg"` | Commit with message | | `git commit --amend` | Fix last commit (before push) | ### Branch Management | Command | Purpose | |---------|---------| | `git branch -d name` | Delete merged branch | | `git fetch --prune` | Remove stale remotes | | `git rebase main` | Update branch with main | ### PR Workflow | Command | Purpose | |---------|---------| | `git push -u origin branch` | Push and set upstream | | `gh pr create` | Create PR via CLI | | `gh pr merge` | Merge PR via CLI | ## Resources - Conventional Commits: <https://www.conventionalcommits.org/> - Keep a Changelog: <https://keepachangelog.com/> - Git Book: <https://git-scm.com/book>
Related 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.