← ClaudeAtlas

post-commitlisted

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).
fusengine/agents · ★ 15 · Code & Development · score 81
Install: claude install-skill fusengine/agents
# 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 `plugi