/claude-mem:version-bumpfrom claude-mem
Maintainer release workflow for thedotmack/claude-mem repository only. Handles version increments across multiple manifests, build verification, git tagging, GitHub releases, and changelog generation.
Ships in claude-mem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
IMPORTANT: Plan and write detailed release notes before starting.
Include the pending Unreleased section at the top of docs/CHANGELOG.md in the next GitHub release notes; remove that section after those notes are published, before regenerating the changelog.
CRITICAL: Commit EVERYTHING (including build artifacts). At the end of this workflow, NOTHING should be left uncommitted or unpushed. Run git status at the end to verify.
This workflow is for one repository and one npm package: thedotmack/claude-mem,
published as claude-mem. It is not a general release recipe. Do not adapt any
step of it to another repository or package.
Before doing anything else, run:
git remote get-url origin # must be github.com/thedotmack/claude-mem(.git)
node -p "require('./package.json').name" # must print claude-mem
If either check fails, stop and tell the user this skill does not apply here.
Analyze: Determine if the change is PATCH (bug fixes), MINOR (features), or MAJOR (breaking).
Environment: The repository is thedotmack/claude-mem, confirmed by the scope check above.
Paths — every file that carries the version string:
package.json — the npm/npx-published version (npx [email protected] resolves from this)plugin/package.json — bundled plugin runtime deps.claude-plugin/marketplace.json — version inside plugins[0].version.claude-plugin/plugin.json — top-level Claude-plugin manifestplugin/.claude-plugin/plugin.json — bundled Claude-plugin manifest.codex-plugin/plugin.json — Codex-plugin manifestplugin/.codex-plugin/plugin.json — bundled Codex-plugin manifestplugin/.devin-plugin/plugin.json — bundled Devin plugin manifest.qoder-plugin/plugin.json — Qoder plugin manifestplugin/.qoder-plugin/plugin.json — bundled Qoder plugin manifestopenclaw/openclaw.plugin.json — OpenClaw plugin manifest.grok-plugin/plugin.json — Grok plugin manifestclaude-mem-cursor/.cursor-plugin/plugin.json — Cursor plugin manifestclaude-mem-grok-bot/.cursor-plugin/plugin.json — Grok Bot Cursor plugin manifestdsh/package.json — bundled DSH plugin packageplugin/server-runtime/package.json — private server-runtime dependency workspaceplugin/bun.lock — the server-runtime workspace entry carries the same version (not a manifest, but git grep lists it)README.md — the version badge (version-X.Y.Z-green), not a "version" keyVerify coverage before editing: git grep -l "\"version\": \"<OLD>\"" should list the sixteen JSON files above plus plugin/bun.lock, and git grep -n "version-<OLD>-green" the README badge. If a new manifest has been added since this doc was last updated, update this list.
After the reviewed release commit reaches main, the repository owner can
perform the tagging, GitHub release and npm publication steps through GitHub.
Put the release notes under ## [Unreleased] in docs/CHANGELOG.md before
merging. Create the branch release/publish/vX.Y.Z at that exact main commit.
The request workflow creates the annotated tag, publishes those notes, and
starts npm-publish.yml on the tag. A retry verifies the existing tag and
reports any publisher run already in progress or awaiting recovery.
Watch the tagged publisher, verify the exact version, latest and provenance, then regenerate the changelog and promote the verified version as described below. Keep the request branch until its workflow has completed.
docs/CHANGELOG.md are regenerated; only move pending Unreleased notes as described above.git grep -n "\"version\": \"<NEW>\"" — confirm all sixteen JSON files and plugin/bun.lock match, and the README badge reads version-<NEW>-green. git grep -n "\"version\": \"<OLD>\"" — should return zero hits.npm run build-and-sync to regenerate artifacts, sync the local marketplace copy, restart the worker, and clear the queue. Do not use plain npm run build for release validation because it can leave the local marketplace/worker out of sync.git add -A && git commit -m "chore: bump version to X.Y.Z".
For a release PR prepared through the GitHub API, let GitHub transfer the generated files with native Git. Commit the source changes and version manifests to the PR, and record that source commit SHA. Create release-bundles/<source-sha> at its first parent in this repository, then advance that build branch to the source SHA. Wait for Prepare release bundles to succeed. Its branch tip is either the source itself (already built), or a commit whose sole parent is the source. Verify that parent and fast-forward the original PR only while it still points to the recorded source. Use the connected GitHub account for this update so the ordinary PR workflows run on the prepared head. If the PR moved, rebuild its new source. Merge after CI succeeds, then continue with the normal release tag.git tag -a vX.Y.Z -m "Version X.Y.Z".git push origin main && git push origin vX.Y.Z.gh release create vX.Y.Z --title "vX.Y.Z" --notes "RELEASE_NOTES".npm run changelog:generate
(Runs node scripts/generate-changelog.js, which pulls releases from the GitHub API and rewrites docs/CHANGELOG.md.)docs/CHANGELOG.md.vX.Y.Z tag triggers
.github/workflows/npm-publish.yml, which builds, runs the clean-room smoke
and publishes through npm trusted publishing (GitHub OIDC), so it needs no
npm token. Watch the run:
gh run list --workflow npm-publish.yml --branch vX.Y.Z # tag runs report the tag as their branch
gh run watch <run-id> --exit-status
Do not run npm publish locally, even if a local npm login works: the
workflow is the only publish path, and only it attaches provenance.
If the run fails, read the failing step with gh run view <run-id> --log-failed.
A transient failure (network, registry outage) is re-run with
gh run rerun <run-id>; a re-run builds the same tagged commit, so a fix in
the code or workflow ships through a PR and the next patch release instead.
Never move or recreate a pushed tag.
The trusted publisher lives on npmjs.com → claude-mem → Settings →
Trusted Publisher (GitHub Actions, thedotmack/claude-mem, npm-publish.yml,
npm publish allowed). Renaming the workflow file breaks publishing until
that entry is updated; changing it requires the maintainer's security key.npm view [email protected] version
npm view claude-mem dist-tags.latest
npm view [email protected] dist.attestations --json # provenance from the workflow
releases/promoted-release.json on main names
the version claude-mem's own updater moves installs to. Promote, hold and
pull back control only that updater: installs where Claude Code's own
auto-update for this marketplace is on follow main instead, so a bad
release that reached main is fixed with a new patch release. Do this step
only after npm verification.
main has moved since the release push:
git pull --rebase origin main
# set "promotedVersion" in releases/promoted-release.json to "X.Y.Z"
bun test tests/infrastructure/promoted-release.test.ts
git add releases/promoted-release.json
git commit -m "chore: promote X.Y.Z for auto-update"
git push origin HEAD:main
If the push is rejected because main moved again (git reports
non-fast-forward or fetch first), run git pull --rebase origin main
and push again. Most installs update within about a day; a machine that
is never quiet updates within about two days.promotedVersion to the last good
version (find it with git log -p -- releases/promoted-release.json) and
push it with the same commands. Installs below it still move up to it.
Installs already on the bad version stay there until a newer version is
promoted. Nothing is downgraded.paradev browser open,
eval, screenshot) over Chrome. In a browser that is already logged
in to X, open x.com and check the active account is @Claude_Memory.
If no browser is logged in, or the account is a different one, skip the
post and say so in the release report. Never sign in or switch accounts.git status — working tree must be clean and everything must
be pushed.plugin/bun.lock and the README badge) have matching versionsgit grep for old version returns zero hitsnpm run build-and-sync succeededdocs/CHANGELOG.md updated and pushedPublish to npm workflow run for the tag succeeded (no local npm publish)latest both verified after publishingreleases/promoted-release.json set to X.Y.Z and pushed to main after npm verification (or the owner's hold stated in the release report)@Claude_Memory with a generated image after npm verification (or skipped because no browser was logged in as that account)git status shows clean treeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
30 skills in this plugin
/agent-cost-reportBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json./babysitWatch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved./backup-setupSet up, check, or restore local claude-mem database snapshots. Use when the user says "set up backups", "back up my memories", "backup status", or "restore my database"./buildFully automate a coding task with make-plan, do, and babysit./build-and-releaseFully automate building and releasing a coding task./ccs-alignRun the CCS Align seat's hourly breathing cycle — prove the local claude-mem worker is healthy, pull needle observations through search → timeline → get_observations, land them in a seat-owned middle cache via atomic grab → append → filter exclude-marks → replace, manage exclude marks, and walk house → project → seat rules to detect conflicts (SHADOW_HOUSE, DENY_ALLOW, DRIFT, CLOCK_HEADER) with an append-only rules-report.md. Use when asked to run CCS Align, breathe the alignment seat, refresh the middle cache, exclude or restore an observation, walk rules, check rules conflicts, or check the Worker Watch board.npx claudepluginhub thedotmack/claude-mem --plugin claude-memOther plugins' skills for the same job