soloship / rules
Cursor rule0 starsChanged 4 months agoMITView on GitHub
Publish Version Bump
- Commits and pushes
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,181 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- .cursor/rules/release-version-sync.mdcCursor rule
- antigravitySkill
- auditSkill
- autoplanSkill
- bootstrapSkill
- brainstormSkill
- browseSkill
- ceo-reviewSkill
- clarifySkill
- cleanupSkill
- code-reviewSkill
- codexSkill
- component-inventorySkill
- context-restoreSkill
- context-saveSkill
- critiqueSkill
- cronSkill
- csoSkill
- cursorSkill
- debugSkill
- deepen-planSkill
- design-reviewSkill
- devex-reviewSkill
- document-reviewSkill
- eng-reviewSkill
- executing-plansSkill
- fableSkill
- finishSkill
- frontend-designSkill
- grill-meSkill
- grokSkill
- implementSkill
- learnSkill
- office-hoursSkill
- onboardSkill
- plan-design-reviewSkill
- planSkill
- polishSkill
- qaSkill
- reviewSkill
- shipfastSkill
- shipthoroughSkill
- simplifySkill
- specSkill
- statusSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- ui-auditSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this publish-version-bump.mdc into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Before any npm publish to the soloship package, bump package.json version with npm version patch|minor|major.
- Very specific: line 17
Look at what changed since the last published version (git log v$(node -p "require('./package.json').version")..HEAD) and pick by impact:
- Very specific: line 58
If the user says "ship to npm," "publish a new version," "release," or runs npm publish directly, this rule kicks in.
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "Publish Version Bump"
globs: ""
alwaysApply: true
---
<!-- GENERATED from .claude/rules/publish-version-bump.md by /soloship:cursor. Edit the source, then re-run. -->
# Publish Version Bump (Auto-Loaded)
## The Rule
Before any `npm publish` to the `soloship` package, bump `package.json` version with `npm version patch|minor|major`. Never publish without bumping — npm will reject a duplicate version, and the `prepublishOnly` script in `package.json` also guards against it.
## How To Pick The Bump Size
Look at what changed since the last published version (`git log v$(node -p "require('./package.json').version")..HEAD`) and pick by impact:
- **patch** (`0.1.0 → 0.1.1`) — bug fixes, doc fixes, internal refactors, hook tweaks that don't change user-facing behavior
- **minor** (`0.1.0 → 0.2.0`) — new skills, new commands, new hooks, new init flags, new vendored sources. Backwards-compatible additions.
- **major** (`0.1.0 → 1.0.0`) — breaking changes: renaming or removing a router skill, changing `bin/soloship.js` entry behavior, removing a CLI flag, removing a vendored skill someone might depend on, changing the hook contract in a way that breaks existing project installs.
State the choice and the reasoning in chat before running the command, so Shawn can override.
## The Publish Sequence
**Mechanical path (use this):** `npm run release -- patch|minor|major`, then
`npm publish`. The release script runs every step below plus the four-file
version sync, and `prepublishOnly` hard-gates the publish on
`scripts/release-preflight.js`. The manual sequence is kept for
understanding, not for running:
```bash
# 1. Make sure working tree is clean and on main with latest
git status
git pull --rebase origin main
# 2. Pick the bump size, then bump. This edits package.json,
# creates a commit, and tags the new version.
npm version patch # or minor / major
# 3. Push the bump commit and tag together
git push origin main --follow-tags
# 4. Publish to npm. prepublishOnly will refuse if version
# already exists on the registry.
npm publish
```
## Why This Exists
Shawn shipped `soloship@0.1.0` to npm on 2026-05-11. From now on, every shipped change needs a version bump or `npm publish` fails. Putting the rule in a checked-in auto-loaded file (instead of gitignored `CLAUDE.md`) means it cascades to every device that pulls the repo.
## How To Apply
- Triggers on any conversation where we're about to `npm publish` Soloship.
- Also triggers in `/soloship:shipthorough` and `/soloship:shipfast` runs that target the npm package (vs. just committing to git).
- If the user says "ship to npm," "publish a new version," "release," or runs `npm publish` directly, this rule kicks in.
- Doesn't trigger for plain `git push` — Soloship's plugin install pulls from GitHub, but the npm CLI is the binary surface, and that's the one that needs version discipline.
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.

