git-commit-trailers
Git commit trailer conventions — BREAKING CHANGE, Co-authored-by, Signed-off-by. Use when composing messages with trailers or parsing via git interpret-trailers.
What this skill does
# Git Commit Trailers ## When to Use This Skill | Use this skill when... | Use the alternative when... | |---|---| | Adding `BREAKING CHANGE:`, `Release-As:`, `Co-authored-by:`, or `Signed-off-by:` trailers | Use `git-commit-workflow` for the type/scope/subject portion of the message | | Driving release-please version bumps via trailer metadata | Use `release-please-configuration` to set up the manifest and changelog rules | | Parsing or programmatically adding trailers via `git interpret-trailers` | Use `github-issue-autodetect` to insert `Fixes #N` / `Closes #N` references | | Auditing existing commits for missing or malformed trailer keys | Use `git-commit-push-pr` for the end-to-end commit-to-PR macro | Structured key-value metadata at the end of commit messages. Trailers drive release-please automation, attribution, and issue linking. ## When to Use | Need | Skill | |------|-------| | Trailer lines in commits (this skill) | **git-commit-trailers** | | Commit message format (type/scope/subject) | **git-commit-workflow** | | Issue reference keywords (Fixes/Closes/Refs) | **github-issue-autodetect** | | Release-please config setup | **release-please-configuration** | ## Release-Please Trailers These trailers directly control version bumps and changelog generation. ### BREAKING CHANGE Triggers a **major** version bump. Both forms are recognized: ``` feat(api)!: redesign authentication endpoints BREAKING CHANGE: /v1/users endpoint removed. Use /v2/users instead. ``` | Approach | Example | When to Use | |----------|---------|-------------| | `!` suffix | `feat(api)!: remove endpoint` | Short, self-evident breaks | | Footer trailer | `BREAKING CHANGE: detailed explanation` | Needs migration context | | Both | `feat!:` subject + `BREAKING CHANGE:` footer | Maximum clarity | Both `BREAKING CHANGE:` and `BREAKING-CHANGE:` (hyphenated) are recognized. ### Release-As Force a specific version in the next release. Case-insensitive. ```bash git commit --allow-empty -m "chore: release 2.0.0" -m "Release-As: 2.0.0" ``` | Use Case | Example | |----------|---------| | Initial 1.0.0 from 0.x | `Release-As: 1.0.0` | | Calendar versioning | `Release-As: 2026.03.0` | | Skip version numbers | `Release-As: 3.0.0` | ### Multiple Changes in One Commit A single commit can produce multiple changelog entries via footer messages: ``` feat: add v4 UUID to crypto This adds support for v4 UUIDs to the library. fix(utils): unicode no longer throws exception BREAKING-CHANGE: encode method no longer throws. feat(utils): update encode to support unicode ``` Additional conventional commit messages must be at the **bottom** of the commit body. ### BEGIN_COMMIT_OVERRIDE Edit a **merged** PR body to override its changelog entry. Only works with squash-merge. ``` BEGIN_COMMIT_OVERRIDE feat: add ability to override merged commit message fix: correct typo in error message END_COMMIT_OVERRIDE ``` Use when a commit message needs correction after merge without reverting. ## Attribution Trailers | Trailer | Format | When to Use | |---------|--------|-------------| | `Co-authored-by` | `Name <email>` | Pair programming, AI-assisted work | | `Signed-off-by` | `Name <email>` | DCO compliance (Linux kernel, CNCF projects) | | `Reviewed-by` | `Name <email>` | Code review attribution | | `Tested-by` | `Name <email>` | Test verification | | `Acked-by` | `Name <email>` | Acknowledgment without full review | Issue references (`Fixes #N`, `Closes #N`, `Refs #N`) are also trailers — see **github-issue-autodetect** skill. ## Decision Tree ``` What trailers does this commit need? ├─ Breaking API change? → BREAKING CHANGE: <description> ├─ Force specific version? → Release-As: x.x.x ├─ AI-assisted code? → Co-authored-by: Claude <[email protected]> ├─ DCO-required project? → Signed-off-by: Name <email> ├─ Fixes/closes an issue? → See github-issue-autodetect └─ None of the above → No trailers needed ``` **Detect DCO requirement:** ```bash git log -20 --format='%B' | git interpret-trailers --parse | grep -c "Signed-off-by" ``` ## Detecting Project Conventions Scan recent commits to discover what trailers a project uses: ```bash # Parse all trailers from recent commits git log -20 --format='%B' | git interpret-trailers --parse # List unique trailer types git log -20 --format='%B' | git interpret-trailers --parse | sort -u -t: -k1,1 # Count trailer usage git log -50 --format='%B' | git interpret-trailers --parse | cut -d: -f1 | sort | uniq -c | sort -rn ``` Always match existing project conventions before adding new trailer types. ## Composing Trailers with `git interpret-trailers` ```bash # Add a trailer to a message echo "feat(auth): add OAuth2" | git interpret-trailers \ --trailer "Co-authored-by: Claude <[email protected]>" # Add multiple trailers echo "feat(auth): add OAuth2" | git interpret-trailers \ --trailer "Co-authored-by: Claude <[email protected]>" \ --trailer "Signed-off-by: Dev <[email protected]>" # Parse trailers from last commit git log -1 --format='%B' | git interpret-trailers --parse ``` ## Agentic Optimizations | Context | Command | |---------|---------| | Parse last commit trailers | `git log -1 --format='%B' \| git interpret-trailers --parse` | | Check DCO convention | `git log -20 --format='%B' \| git interpret-trailers --parse \| grep -c Signed-off-by` | | Detect trailer patterns | `git log -20 --format='%B' \| git interpret-trailers --parse \| sort -u -t: -k1,1` | | Count trailer usage | `git log -50 --format='%B' \| git interpret-trailers --parse \| cut -d: -f1 \| sort \| uniq -c \| sort -rn` |
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.