agentleFS
johan-lindahljohan-lindahl/session-explorer/.claude/skills/cutting-a-release/SKILL.md

cutting-a-release

Skill0 starsChanged 5 months agoMITView on GitHub

Use when shipping a new session-explorer version — bumping the version number, cutting a GitHub release/tag, or asked to "release", "cut a version", or "bump to vX.Y.Z". Covers which files must change and how to publish the release.

  • Commits and pushes

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. TriliumNext/Trilium★ 39ksame name
    2. HermannBjorgvin/Clawdmeter★ 2.4ksame name
    3. gustavo-meilus/superpipelines★ 4same name
    4. gustavo-meilus/aiboarding★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every one of these must show the new version.

    line 16
  2. Very specific:

    Only after the bump is merged to main, HEAD == origin/main, and CI/tests are green:

    line 41

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Cutting a session-explorer release

Overview

A release is two phases: (1) the version bump + docs land on main (normally inside the feature PR that did the work), then (2) a git tag + GitHub release are cut from main. Both phases must happen — code can be at the new version while the GitHub tag lags (this has happened: tags lapsed v1.4.0 → v1.10.0 while the files marched on).

SemVer: minor for features, patch for fixes. Match the bump to what shipped.

Phase 1 — bump version + docs (lands on main)

Every one of these must show the new version. Grep before tagging to prove none lag:

NEW=<x.y.z>   # set this to the version you are shipping, e.g. 1.10.1
grep -rn "$NEW" .claude-plugin/plugin.json bin/_pkg/__init__.py README.md SPEC.md CHANGELOG.md

Normal path: the bump rides along in the same PR as the feature/fix. If the work already merged to main without a bump (or you're cutting a release of already-merged work): branch from fresh main, make the bump-only changes below, open a PR, merge it, then git pull before Phase 2. Do not push the bump onto the already-merged feature branch, and don't commit straight to main if branch protection is on.

What to updateWhereNote
__version__bin/_pkg/__init__.pySource of truth
"version".claude-plugin/plugin.jsonEasy to forget — must match __init__.py
Status lineREADME.md (**vX.Y.Z.** Released and installable…)
Status line + milestone footerSPEC.md (**Status:** Shipped — **vX.Y.Z** and current release: vX.Y.Z)
New sectionCHANGELOG.mdSee below
Help screenbin/_pkg/tui.py → _help_text()Version renders dynamically from __version__ (no edit). But the keybinding descriptions are hand-written — if the release changed/added keys, update the key(...) lines AND the matching Binding(...) rows.
Queue guidedocs/queue-guide.mdLinked from the editor's ? help (QUEUE_GUIDE_URL in tui.py); if the shared-resource model, --delete/protect rule, or template catalog changed, keep the guide in sync so the in-dialog link doesn't silently diverge.

CHANGELOG.md

Newest version on top, descending order. Group entries under ### Added / ### Changed / ### Fixed. Keep the prose dense and behavior-focused, matching existing entries. Pull the substance from the PR description, not the commit subject.

Phase 2 — cut the GitHub release

Only after the bump is merged to main, HEAD == origin/main, and CI/tests are green:

git fetch && git rev-parse HEAD origin/main   # confirm in sync, clean tree

Write the notes file first — --notes-file will not create it for you. Mirror the CHANGELOG entry you just wrote; crib the trailer format from a prior release (gh release view v1.9.0 --json body):

cat > /tmp/relnotes.md <<'EOF'
## <headline>

<prose mirroring this version's CHANGELOG section>

**Full changelog:** https://github.com/johan-lindahl/session-explorer/blob/main/CHANGELOG.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF

gh release create vX.Y.Z --target main \
  --title "vX.Y.Z — <short headline>" \
  --notes-file /tmp/relnotes.md
gh release list -L 3                          # confirm it shows as "Latest"
  • Tag format is v-prefixed (v1.10.0). gh release create creates and pushes the tag itself — no separate git tag.
  • Release-note body mirrors the CHANGELOG entry; end with the **Full changelog:** link and the Claude Code attribution line (see prior releases via gh release view v1.9.0 --json body).
  • Title style: vX.Y.Z — <headline> (e.g. v1.10.0 — TUI quality-of-life).

Retroactive release (a newer version already shipped)

When a tag lapsed and main has since moved past that version (happened with v1.12.0: v1.12.1 was released first), --target main would tag the wrong tree. Instead, tag the merge commit whose tree carries that version, push the tag, then create the release from the existing tag with --latest=false so the actual newest release stays Latest:

git tag vX.Y.Z <merge-commit>        # verify first: git show <sha>:bin/_pkg/__init__.py
git push origin vX.Y.Z
gh release create vX.Y.Z --latest=false --title "..." --notes-file /tmp/relnotes.md

(gh release create --target <sha> is rejected — "target_commitish is invalid" — which is why the tag is pushed first.)

Checklist

  • Decide bump type (minor=feature, patch=fix)
  • __init__.py + plugin.json both bumped and equal
  • README, SPEC (x2) status lines updated
  • CHANGELOG.md section added, newest-on-top
  • Help screen keybinding descriptions updated iff keys changed (covers the q/x/s queue keys)
  • docs/queue-guide.md kept in sync iff the shared-resource model/templates changed
  • PreToolUse hook mirrored across .claude-plugin/plugin.json, install.sh (markers + registration + chmod), and uninstall.py (_HOOK_MARKERS/ _HOOK_EVENTS) — never marketplace-only
  • docs/queue-guide.md "Cooperating as an agent" snippet kept in sync with the SessionStart injection text in queue_awareness.py
  • grep -rn "$NEW" shows every file incl. CHANGELOG.md (no laggards)
  • Bump merged to main; HEAD == origin/main; CI/tests green
  • Notes file written (mirrors CHANGELOG); gh release create vX.Y.Z --target main run; shows as Latest

Common mistakes

MistakeReality
Bumping __init__.py but not plugin.jsonThe marketplace reads plugin.json; mismatched versions ship a wrong number. Always bump both.
Forgetting a SPEC.md status line (there are two)These have silently lagged real releases. Grep, don't eyeball.
Hand-editing the version in the help screenIt's dynamic (__version__) — don't. Only edit _help_text() for keybinding changes.
Tagging before the bump is on mainCut the release only when HEAD == origin/main, or the tag points at the wrong tree.
gh release ... --json isLatestThat field doesn't exist; use gh release list to confirm Latest.
Pushing the bump to a merged feature branchIf its PR already merged, branch from fresh main instead (watch for [new branch] in push output).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.