Release

From hanamizuki/solopreneur · View interactive version

Release is an AI agent skill from the GitHub repository hanamizuki/solopreneur. Bump versions and tag plugins for release in the solopreneur multi-plugin marketplace. Detects which sub-plugins changed since their last tag, checks whether the root README is stale relative to those changes (offering one proposal at a time), asks the user for per-plugin patch/minor bumps, composes

How to use this skill

Skill file

Release

Manual release flow for the solopreneur multi-plugin marketplace.

Implements the release rule documented in CLAUDE.md at the repo root.

This skill is interactive. Confirm each decision with the user. Do not

autopilot version bumps or release publishing.

Pre-flight

  1. Confirm cwd is the repo root or a worktree of it. Run from the directory

containing .claude-plugin/marketplace.json, skills/, and src/.

  1. Confirm working tree is clean:

```bash

git status --porcelain

```

If unclean, stop and ask the user to commit or stash first. Don't release

on top of uncommitted work. The new commit's content depends on the

working tree.

  1. Confirm we're on main (the typical release path is "merge → release"):

```bash

git branch --show-current

```

If not on main, ask the user to confirm the branch is intentional.

  1. Pull latest:

```bash

git fetch origin && git pull --ff-only

```

If --ff-only fails (local has commits), stop and ask the user.

Step 1: Detect per-plugin changes since last tag

For each sub-plugin, find its last <plugin>--v* tag and compare against HEAD.

Plugin names match the first-level directory names under both canonical roots.

PLUGINS=(solopreneur designer marketer ios-dev android-dev ai-engineer neo4j-dev)
for p in "${PLUGINS[@]}"; do
  LAST_TAG=$(git tag -l "${p}--v*" --sort=-v:refname | head -1)
  # Transitional fallback: the v0.5.x → v0.5.3 rename dropped the `solo-`
  # prefix from sub-plugins. The first /release run after that rename has
  # no `<bare>--v*` tag yet, so look for the legacy `solo-<bare>--v*` tag
  # to avoid a misleading "NO TAG YET" message. Once the new tag exists,
  # this fallback never fires again.
  if [ -z "$LAST_TAG" ] && [ "$p" != "solopreneur" ]; then
    LAST_TAG=$(git tag -l "solo-${p}--v*" --sort=-v:refname | head -1)
  fi
  if [ -z "$LAST_TAG" ]; then
    echo "=== $p: NO TAG YET (first release) ==="
    git log --oneline -- "skills/$p/" "src/$p/"
    continue
  fi
  CHANGED=$(git diff --name-only "$LAST_TAG"..HEAD -- "skills/$p/" "src/$p/" | wc -l | tr -d ' ')
  if [ "$CHANGED" -gt 0 ]; then
    echo "=== $p: $CHANGED files changed since $LAST_TAG ==="
    git log --oneline "$LAST_TAG"..HEAD -- "skills/$p/" "src/$p/"
  else
    echo "=== $p: no changes since $LAST_TAG ==="
  fi
done

Also check whether marketplace.json changed in a way that affects a plugin

entry (per the rule in CLAUDE.md):

git diff "$LAST_RELEASE_BASELINE"..HEAD -- .claude-plugin/marketplace.json

Use the most recent tag of any plugin as $LAST_RELEASE_BASELINE. If the

diff touches a plugin entry's name / source / description / license,

flag those plugins for a bump even if their skills/<name>/ and src/<name>/

didn't change.

Step 1.5: README sync check

Before asking for version bumps, look at whether the changes since

$LAST_RELEASE_BASELINE make the root README.md stale. Skip this step

entirely if the diff only touches internals (no surface changes).

What might make README stale

Apply judgment — these are signals, not rules:

changed, and the README's row / paragraph for that plugin still quotes the

old text

table doesn't include it

section for that plugin enumerates skills explicitly (so an addition is

user-visible)

agents per plugin

Examples of cases that don't need a README change:

enumerating, and N is still an accurate floor

Workflow

  1. Pull the changed-files list scoped to surface signals:

```bash

git diff --name-only "$LAST_RELEASE_BASELINE"..HEAD | grep -E \

'(^src/[^/]+/plugin\.json|\.claude-plugin/marketplace\.json|^skills/[^/]+/[^/]+/SKILL\.md|^src/[^/]+/agents/.*\.md|^README\.md)$'

```

  1. Read README.md plus each changed surface file. Compare. For each

plugin whose surface changed, decide: does the README still describe

this plugin accurately?

  1. For every potential README change, ask the user as a single question:

> "README line N currently says: <current>.

> Based on the diff, suggest: <proposed>.

> (a) apply (b) skip (c) let me edit"

  1. Apply accepted changes inline via Edit. For "let me edit", read the

user's replacement text and apply that instead.

  1. If any README updates were applied, commit them as a separate commit

BEFORE the version-bump commit (so the README change has its own

reviewable history):

```bash

git add README.md

git commit -m "docs: sync README with plugin changes for upcoming release"

```

The Step 5 git push --follow-tags will publish this commit together

with the bump commit and tags.

  1. If nothing needs updating, proceed straight to Step 2.

Step 2: Decide per-plugin bump

Present the change list to the user, one plugin at a time, with the commit

log scoped to that plugin. For each plugin with changes, ask:

pre-1.0 minor may be breaking

Use the table in CLAUDE.md § "Release rule" as the source of truth.

Default suggestions from the LLM are useful. Propose the bump you'd pick

based on the commit messages, then confirm with the user.

Step 2.5: Compose CHANGELOG

Every release — not just milestones — gets a public-facing, plain-language

note in the repo-root CHANGELOG.md. You author it from the actual

per-plugin diff, distilled into outward, user-readable content. This is

not a restatement of the Step 2 bump reasons and not a raw git

log. The user is the reviewer/approver, not the typist.

Cost is intentional. This makes /release heavier — you must read

and comprehend each bumped plugin's diff every release. Accepted on

purpose: a public changelog deserves human-grade narrative, not

boilerplate. Do not shortcut it back into reason-restatement.

Format — Keep a Changelog style. If CHANGELOG.md is absent, create

it with a one-time header note: "Versions before `<this release's

earliest-touched version>` predate this changelog — see git tags / GitHub

Releases." Prepend each release as a dated section with a per-plugin

subsection for only the plugins bumped this cycle:

## <YYYY-MM-DD>

### <plugin> <old> → <new>
<plain outward description — what this means for someone who installs
this plugin>
(#<PR>, #<PR>) — thanks @<external-contributor>!

Compose — for each bumped plugin:

  1. git diff "<plugin>--v<old>".."HEAD" -- "skills/<plugin>/" "src/<plugin>/"

(per-plugin scope; baseline = that plugin's previous tag, the same

LAST_TAG resolved in Step 1).

  1. Comprehend the diff and distill into plain outward text. Condense

vendored re-sync churn (e.g. "re-synced N vendored skills from

upstream") — never enumerate files. Describe real features in user

language.

  1. Attach the mechanical scaffold automatically: the date header, the

<old> → <new> subsection heading, and PR-number links parsed from

(#NN) in the merge commits across <old>..HEAD.

  1. Resolve external contributors. For each PR number collected in

step 3, look up its author:

```bash

gh pr view <NN> --json author --jq .author.login

```

Drop the repo maintainer (gh api user --jq .login) and dedupe

across the plugin's PRs. If any external contributors remain,

append — thanks @<handle>! (or — thanks @<h1>, @<h2>!) to the

line carrying the PR references. No externals → omit the thanks

line entirely; never render an empty "thanks " tail.

Review gate — present the full drafted section to the user:

"CHANGELOG draft for this release:

<draft>

(a) apply (b) I edit a section (c) rewrite a plugin's section"

Apply accepted text. For (b)/(c), take the user's replacement and re-present

until they pick (a). Do not stage or commit yet — CHANGELOG.md is

committed together with the bumps in Step 3.

Step 3: Apply bumps in one commit

For each plugin marked for bump, edit src/<name>/plugin.json's version

field. That is the only version source; never edit generated manifests.

If every Claude marketplace source still uses ./plugins/<name>, this is the

one-time symmetric-layout cutover release. Require all seven plugins to receive

at least a patch bump, then change every source to

./plugins/claude/<name>. If the sources are mixed between layouts, stop; a

partial cutover is invalid. Once all sources are symmetric, later releases

leave them unchanged.

The cutover release must also, in the same commit, retire the compatibility

bridge everywhere it is described or implemented — otherwise the repo ships

prose describing directories that no longer exist and branches that can never

be taken again.

Order matters here, and getting it wrong strands the bridge silently. The

generator deletes plugins/<name>/ and .codex/plugins/ from its symmetric

branch; retiring that code before a regeneration has actually removed them

leaves committed, still-installable copies behind. Do it in exactly this order:

  1. Flip every marketplace source to ./plugins/claude/<name> (above), then run

./scripts/generate-plugin-packages.sh. This is the step that removes the

compatibility trees.

  1. Confirm they are gone — ls plugins/ must show only claude and codex,

and .codex/plugins must not exist. ./scripts/validate-plugin-packages.sh

also fails on a leftover once the marketplace is symmetric.

  1. Only now delete the dead code and prose. **All five files, or the release

cannot validate** — validate-plugin-packages.sh runs the fixture

unconditionally, so a fixture still asserting the bridge fails the whole

gate even when the cutover itself is perfect (measured: `error:

filtered-publication fixture failed at line 66`):

(LEGACY_CODEX_ROOT, its copy loop, and the queue_output "" sentinels

that were removing those trees).

the ./.codex/plugins/solopreneur marketplace assertion and the

$FILTER_HOME install that follows it, the "must not strand its flat

legacy bridge" case (which requires plugins/solopreneur to exist),

the now-vacuous [[ ! -d ... ]] pair in the cutover block, the

FILTER_HOME declaration and its trap entry, and the word "legacy" in

the closing message. The fixture copies the repo's marketplace, so once

that is symmetric its legacy phase can never pass again.

release after this migration…").

layout section.

  1. Re-run the generator and the validator once more to prove the retired code

changed nothing. Verified on a throwaway cutover tree: with all five edits

applied, ./scripts/validate-plugin-packages.sh exits 0.

Step 1.5's README-sync heuristics key on descriptions, new plugins, new skills

and counts, so none of them fire on this; it has to be done here.

Then regenerate both platform packages. The generator also switches the Codex

marketplace path and removes the temporary legacy copies when the Claude

marketplace has entered symmetric mode:

./scripts/generate-plugin-packages.sh

Stage all bumped source manifests, both generated package trees, both

marketplaces, and .codex/agents/

together with the CHANGELOG.md update from Step 2.5 and commit them in

one commit, so the Step 4 tags point at a commit that already contains the

changelog (zero gap).

Use the subject + body two--m form below — NOT a

-m "$(cat <<EOF ...)" heredoc. The product-repo worktree guard hook

sanctions a release commit on main only when chore(release): appears

immediately after the -m quote; a heredoc / command-substitution between

-m and the message hides the prefix and the commit gets blocked. With the

direct form the subject matches, and CHANGELOG.md (markdown) plus the

plugin.json bumps land in one commit on main:

git add -- src/*/plugin.json .claude-plugin/marketplace.json .agents/plugins/marketplace.json CHANGELOG.md
git add -A -- plugins .codex
# Cutover release ONLY — the five bridge-retirement edits from Step 3 above.
# They are not covered by any pathspec on the two lines above, so without this
# the tag commit ships a symmetric marketplace with the bridge code still in it.
# Skip this line on an ordinary release; those files are untouched then.
git add -- scripts/generate-plugin-packages.sh scripts/validate-plugin-packages.sh \
  scripts/tests/test-codex-filtered-publication.sh CLAUDE.md README.md
git commit \
  -m "chore(release): <one-line summary of what's shipping>" \
  -m "<plugin1> v<old>→v<new>: <reason>
<plugin2> v<old>→v<new>: <reason>
..."

Commit subject convention: chore(release): <summary>. The body lists each

plugin's bump and one-line reason. Useful when the same release ships

multiple plugin bumps. CHANGELOG.md rides in this same commit — it is

never a separate commit and never lands after the tags.

Step 4: Create tags

For each bumped plugin, create an annotated tag pointing at the bump commit:

for p in "${BUMPED[@]}"; do
  VERSION=$(jq -r .version "src/$p/plugin.json")
  git tag -a "${p}--v${VERSION}" -m "${p} v${VERSION}: <one-line>"
done

Use the same one-line summary the user provided in Step 2 for each plugin.

The double-dash format is mandatory. Claude Code's dependency resolver

parses it.

Step 5: Push atomically

git push --follow-tags

--follow-tags only pushes annotated tags reachable from the pushed commit,

exactly what we want here. If push splits or rejects:

pre-flight and now. Stop, ask user to investigate. Do not force-push.

git push origin <tag1> <tag2> .... Do not let the gap persist.

Installs in the gap will hit no-matching-tag.

Step 6: GitHub Release (optional, milestones only)

Ask the user: "Is this a milestone worth a GitHub Release?"

Reference for "milestone" (matches superpowers' tag:release ≈ 6:1 cadence):

For routine patch bumps or single-skill additions, skip the Release.

Tags alone are enough; Claude Code only needs tags for resolution.

If the user says yes:

  1. The Release attaches to one tag. Use solopreneur--v<new> as the

umbrella, even if core didn't change much. (Repo's "Latest release"

surface should look like a single coherent version, not six per drop.)

If solopreneur core wasn't bumped this cycle, attach to whichever

plugin's tag best represents the milestone, but warn the user that the

umbrella tag is typically core.

  1. Do not re-author notes. The outward note was already written and

user-reviewed in Step 2.5 and lives in CHANGELOG.md. The Release

reuses that release's CHANGELOG section verbatim plus a link back to

the full file — no second hand-authoring, no --generate-notes. If

the milestone needs extra framing (breaking-change callout, MIGRATION

link), prepend a short headline above the copied section; do not

rewrite the per-plugin bodies.

  1. Extract this release's section from CHANGELOG.md (the top dated

## <YYYY-MM-DD> block) and create the Release with it:

```bash

gh release create "solopreneur--v<new>" \

--title "v<new>" \

--notes-file <(cat <<'EOF'

<this release's CHANGELOG.md section, verbatim>


Full changelog: <repo URL>/blob/main/CHANGELOG.md

EOF

)

```

Step 7: Build-in-public drafts (optional)

Ask the user: "Want social post drafts for this release?" One X post

(English) and one Threads post (正體中文). Offer it every release; the user

skips freely on routine bumps.

If yes, the source material is this release's CHANGELOG section — already

user-reviewed in Step 2.5. Do not re-research the diff, and do not post

anything anywhere: deliver draft text only, publishing is manual.

Shared rules

(a deletion, a default flip, a milestone number). Everything else goes to

a self-reply. Never enumerate the whole changelog in the main post.

(an author reply-back weighs ~150× a like on X), so keep an answer or two

in reserve instead of pre-empting everything.

X draft (English) — release-announcement skeleton:

number + a short closer (≤ 1 emoji). No external link and no hashtags in

the main tweet — the repo link rides in the self-reply.

work and they plausibly engage; never orphan-mention.

on the draft before delivering.

Threads draft (正體中文)

Threads does not throttle external links the way X does.

English tweet sentence by sentence. Short lines, no em-dashes, no AI-tell

connectors (然而/因此/總而言之).

upstream work by name instead.

apply it on top of these rules.

Present both drafts together for edit/approve. This step changes no files

and happens after the push, so aborting it never affects the release.

Final report

Released: <list of <plugin>@<version> shipped>
Tags pushed: <list>
GitHub Release: <URL or "skipped">
Social drafts: <"X + Threads delivered" or "skipped">
Commit: <SHA>

Notes

(or whose marketplace entry changed). Don't bump everyone every release.

LICENSE, CHANGELOG.md, this .claude/skills/ directory): no plugin bump

needed. CHANGELOG.md is a release output, not plugin content — it

rides in the bump commit but never itself triggers a bump.

you read and comprehend each bumped plugin's diff to write an outward,

plain-language note. This is an accepted tradeoff — a public changelog

is worth human-grade narrative. Do not regress it into restating the

Step 2 bump reasons or dumping the git log.

first stable API cut.

push will go through fine. Just make sure git pull --ff-only succeeds

before bumping.

if any are added later, never bypass them in a release.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.