package-release
Skill46 starsChanged 7 months agoMITView on GitHub
Bump the claude-second-brain npm package version and open a release PR. Analyzes changes vs main, suggests a semver bump, updates package.json, commits, pushes, and opens the PR. Does NOT touch docs — for a full release including docs + ship log, use /release. Trigger phrases: /package-release, bump the npm version, bump the package version, open a package release PR.
- Commits and pushes
6 other projects use a version of this.
Adopted by
Most recently taken up by
- jean1880/nuvek-agent-configtheir own version, first seen Nov 1, 2026
- peteonrails/voxtypetheir own version, first seen Oct 8, 2026
- aditya-deokar/software-factorytheir own version, first seen Sep 29, 2026
- MrPunyapal/laravel-auditortheir own version, first seen Aug 14, 2026
- ropensci-review-tools/ropensci-skillstheir own version, first seen Jun 24, 2026
- dannote/dot-pitheir own version, first seen Jun 13, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- peteonrails/voxtype★ 1.8ksame name
- MrPunyapal/laravel-auditor★ 60same name
- dannote/dot-pi★ 57same name
- ropensci-review-tools/ropensci-skills★ 8same name
- aditya-deokar/software-factory★ 0same name
- jean1880/nuvek-agent-config★ 0same 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 repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- template/CLAUDE.mdCLAUDE.md
- pack-testSkill
- releaseSkill
- update-docsSkill
- update-workflowsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Run each step in order. Stop and report if any step fails.
- Distinctive: line 37
Run these commands to understand what's changed:
- Very specific: line 79
Read the current version from package.json.
- Very specific: line 97
Use the Edit tool to update the "version" field in package.json to the new version.
- Distinctive: line 121
Create a PR targeting main.
- Distinctive: line 149
After the PR is created, tell the user:
“Common” is measured: kept by at least 6 in 10 of the 6 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.
Files
/package-release
Bumps the npm package version and opens a release PR for claude-second-brain. Does not publish to npm directly — publishing happens automatically via GitHub Actions after the PR is merged.
This skill only touches package.json. If you also want the docs ship log updated in the same PR, run /release instead — it orchestrates /update-docs and this skill together.
When to use
- You've already synced docs (or don't need to) and just want to cut a version.
- The current branch must have commits relative to
main. - For the full combined flow (docs + version), prefer
/release.
Argument
Pass a version bump type to skip the confirmation prompt:
| Argument | Effect |
| (none) | Analyze changes and suggest a bump; ask user to confirm |
patch | Bump patch version (e.g. 0.1.0 → 0.1.1) |
minor | Bump minor version (e.g. 0.1.0 → 0.2.0) |
major | Bump major version (e.g. 0.1.0 → 1.0.0) |
0.3.0 | Use this exact version |
Steps
Run each step in order. Stop and report if any step fails.
Step 1 — Capture current state
Run these commands to understand what's changed:
# Current branch
git branch --show-current
# Commits on this branch not yet in main
git log main..HEAD --oneline
# File-level diff summary vs main
git diff main...HEAD --stat
# Current version
cat package.json | grep '"version"'Record: the branch name, current version, list of commits, and all files changed.
Step 2 — Summarize changes
Categorize all changes from Step 1 into this format:
## Changes in this release
**New features:**
- (e.g. new skill added, new CLI flag, new template file)
**Bug fixes:**
- (e.g. correctness fix in bin/create.ts, template fix)
**Refactors / cleanup:**
- (e.g. code reorganization, no behavior change)
**Docs:**
- (e.g. README updates, CLAUDE.md edits)Show this changelog to the user. Skip empty categories.
Step 3 — Determine version bump
Read the current version from package.json. Apply semver logic to suggest the next version:
| Signal | Bump |
| Changes to CLI interface, template structure that would break existing vaults, or commits containing "breaking" | major |
| New skills added, new CLI flags, new template sections, or new behavior | minor |
| Bug fixes, docs, refactors only | patch |
State clearly:
- Current version:
X.Y.Z - Suggested next version:
A.B.C(reason)
If the user passed an argument (/package-release patch, /package-release 0.2.0, etc.), use that directly and skip asking.
If no argument, ask the user to confirm the suggested version before continuing. Do not proceed to Step 4 until confirmed.
Step 4 — Update package.json
Use the Edit tool to update the "version" field in package.json to the new version. Do not reformat the file.
Verify:
cat package.json | grep '"version"'Step 5 — Commit the version bump
git add package.json
git commit -m "chore: bump version to X.Y.Z"Replace X.Y.Z with the confirmed new version.
Step 6 — Push and open PR
Push the current branch:
git push origin HEADCreate a PR targeting main. Use the changelog from Step 2 in the body:
gh pr create \
--title "release: vX.Y.Z" \
--body "$(cat <<'EOF'
## Release vX.Y.Z
### Changes
[changelog from Step 2]
### What happens after merge
1. GitHub Action creates tag `vX.Y.Z` and a GitHub Release with auto-generated notes
2. GitHub Action publishes `claude-second-brain@X.Y.Z` to npm automatically
### Checklist
- [ ] Changelog accurately reflects all changes
- [ ] `package.json` version is correct
EOF
)" \
--base mainStep 7 — Report to user
After the PR is created, tell the user:
PR opened: [url]
Pipeline after merge:
release-publish.ymlcreates tagvX.Y.Z, a GitHub Release, and publishesclaude-second-brain@X.Y.Zto npmTo verify after merge: https://www.npmjs.com/package/claude-second-brain
What can go wrong
ghnot authenticated — rungh auth loginfirst- Nothing to release —
git log main..HEADis empty; make sure you're on the right branch - Merge conflicts with main — rebase on main before running
/package-release - Pack-test version mismatch — Step 5 handles this; the grep verify confirms it
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
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.

