post-commit
Universal post-commit actions. CHANGELOG update and git tag for all repos. Plugin version bumping for marketplace repos. Triggered after any code commit (except wip/amend/undo).
What this skill does
# Post-Commit Skill
Universal post-commit actions after a successful code commit.
## Step 1: Read Last Commit
```bash
git log --format='%s' -1
```
Save the commit message for CHANGELOG entry.
## Step 2: Detect Repo Type
Check if `.claude-plugin/marketplace.json` exists in the repo root.
- **EXISTS** → Follow **Marketplace Path** (Steps M1–M5)
- **DOES NOT EXIST** → Follow **Standard Path** (Steps S1–S2)
---
## Standard Path (any repo without marketplace.json)
### Step S1: Update CHANGELOG
Read the latest git tag to determine current version:
```bash
git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0"
```
Increment PATCH: `X.Y.Z` → `X.Y.(Z+1)`.
If `CHANGELOG.md` does not exist, create it with `# Changelog` heading.
Add a new entry at the top (after the `# Changelog` heading):
```markdown
## [X.Y.Z] - DD-MM-YYYY
- commit message from Step 1
```
### Step S2: Git Tag
```bash
git add CHANGELOG.md
git commit -m "$(cat <<'EOF'
chore: update CHANGELOG to X.Y.Z
EOF
)"
git tag vX.Y.Z
```
STOP. Output summary and ask user if they want to push the tag.
---
## Marketplace Path (repo with .claude-plugin/marketplace.json)
### Step M1: Detect Modified Plugins
```bash
git diff --name-only HEAD~1 | grep '^plugins/' | cut -d/ -f2 | sort -u
```
If no plugins modified → Skip to Step M3 (still bump suite version).
Skip directories without `.claude-plugin/plugin.json`.
### Step M2: Bump Plugin Versions
For each modified plugin detected in Step M1:
1. Read `plugins/{name}/.claude-plugin/plugin.json`
2. Increment PATCH version: `X.Y.Z` → `X.Y.(Z+1)`
3. Write the new version back to `plugin.json`
Then determine plugin type from `marketplace.json`:
- **In `plugins[]` array** → Also update matching `version` field in `marketplace.json`
- **In `core[]` array** → Only bump `plugin.json` (core entries have no version field)
### Step M3: Bump Suite Version
Read `metadata.version` from `.claude-plugin/marketplace.json`.
Increment PATCH: `X.Y.Z` → `X.Y.(Z+1)`.
Write the new suite version back to `marketplace.json` → `metadata.version`.
If `README.md` contains a shields.io version badge, update it to match the new version:
Replace `version-vOLD_VERSION-` with `version-vNEW_VERSION-` in the badge URL.
### Step M4: Update CHANGELOG
Add a new entry at the top of `CHANGELOG.md` (after the `# Changelog` heading):
```markdown
## [X.Y.Z] - DD-MM-YYYY
- type(plugin-name): description from the code commit message
```
Where `X.Y.Z` is the new suite version from Step M3.
Include `(plugin-name X.Y.Z)` in each line for bumped plugins.
### Step M5: Commit, Tag, and Push
Stage all modified files:
```bash
git add CHANGELOG.md README.md .claude-plugin/marketplace.json plugins/*/.claude-plugin/plugin.json
```
Commit with HEREDOC format:
```bash
git commit -m "$(cat <<'EOF'
chore: bump marketplace and CHANGELOG to X.Y.Z
EOF
)"
```
This MUST be a separate commit from the code changes. Never combine.
Then tag and push:
```bash
git tag vX.Y.Z
git push origin vX.Y.Z
```
Only tag the bump commit. Never tag code commits.
---
## Version Bump Rules
- ALL commit types trigger **PATCH** bump only
- MINOR/MAJOR bumps are **manual user decisions**, never automatic
- The bump commit is always SEPARATE from code changes
## CHANGELOG Type Mapping
| Commit Type | CHANGELOG Prefix |
|-------------|-----------------|
| `feat` | Added |
| `fix` | Fixed |
| `refactor` | Changed |
| `docs` | Documentation |
| `perf` | Performance |
| `test` | Tests |
| `chore` | Maintenance |
| `style` | Style |
| `ci` | CI/CD |
| `build` | Build |
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.