release-jinn-cli
Skill320 starsChanged 6 months agoMITView on GitHub
Use when cutting a new jinn-cli release for this repo - bumping the version, publishing to npm, creating the GitHub release, and letting the Homebrew formula auto-update. Covers the exact order that matters (npm publish BEFORE publishing the GitHub release).
- Commits and pushes
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- showcase-video-captureSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
If there are no instance-template changes, record that fact.
- Very specific: line 58
Run the exact-tarball upgrade lab.
- Very specific: line 69
If publish fails with E401/EOTP, the token file is missing or revoked.
- Very specific: line 89
Don't bump package.json in the root or packages/web - only packages/jinn.
- Very specific: line 90
If the formula job fails, it's almost always the npm tarball not being live yet.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Releasing jinn-cli
The published npm package is jinn-cli (lives in packages/jinn). The root
package (jinn) is private; packages/web is internal (its version isn't shipped).
Version lives in one place: packages/jinn/package.json.
How the pieces connect
- npm: published manually with
npm publishfrompackages/jinn. The package shipsdist/andtemplate/(see itsfiles), so you MUST build first. - GitHub release: created for tag
vX.Y.Z. - Homebrew:
.github/workflows/bump-formula.ymlfires onrelease: published. It waits (up to ~5 min) for the npm tarball atregistry.npmjs.org/jinn-cli/-/jinn-cli-X.Y.Z.tgz, computes its sha256, rewritesFormula/jinn.rb, and pushes the bump tomain. - CI (
ci.yml) runs typecheck/test/build onmain+ PRs. It does not publish.
Order matters: publish to npm before publishing the GitHub release, or the formula-bump job will wait and then fail because the tarball isn't on npm yet.
Steps
- Land the work on
main(merge the PR). Releases are cut frommain; the formula-bump job also pushes tomain. Ensure a clean tree:git status. - Pick the version. This is
0.x, so a minor bump (0.N.0) is fine even for small breaking changes; patch (0.x.N) for fixes only. - Bump + commit (no
Co-Authored-By: Claudetrailer - repo convention):# edit packages/jinn/package.json "version" git commit -am "chore(release): jinn-cli vX.Y.Z" - Generate and review the instance migration gate. Resolve the previous
release tag, then run:
If there are no instance-template changes, record that fact; do not create an empty bundle. Otherwise review the preserved rationale and exact manifest paths. The generator owns the payloads and per-file merge instructions.PREVIOUS_TAG="$(git describe --tags --abbrev=0 HEAD^)" VERSION="$(node -p "require('./packages/jinn/package.json').version")" pnpm --filter jinn-cli migration:generate -- --base-ref "$PREVIOUS_TAG" --version "$VERSION" pnpm --filter jinn-cli migration:check -- --base-ref "$PREVIOUS_TAG" --version "$VERSION" Build + verify from repo root:
pnpm build # turbo build + copies packages/web/out -> packages/jinn/dist/web pnpm typecheck && pnpm testRun the exact-tarball upgrade lab. Release work cannot continue if
migration:checkor any required upgrade scenario fails.- Publish to npm. A gitignored npm automation token lives at
packages/jinn/.npmrc(//registry.npmjs.org/:_authToken=...). npm reads it automatically when publishing from that directory, so it bypasses the account's interactive login + 2FA OTP. Publish:cd packages/jinn && npm publish && cd -- This is the irreversible step - confirm with the maintainer first.
- If publish fails with
E401/EOTP, the token file is missing or revoked. Recreate it at npmjs.com → Access Tokens → Classic → Automation, then write//registry.npmjs.org/:_authToken=<token>topackages/jinn/.npmrc(it's already in.gitignore- never commit it).
- Tag + push:
git tag vX.Y.Z && git push origin main --tags - Create the GitHub release (publishing it triggers the Homebrew bump):
For a dry run, addgh release create vX.Y.Z --title "vX.Y.Z" --notes "...release notes..."--draft(drafts do NOT trigger the formula workflow). - Verify: a
formula: bump to vX.Y.Zcommit lands onmainwithin ~5 min (check the bump-formula workflow run), andnpm view jinn-cli versionis X.Y.Z.
Notes
- Don't bump
package.jsonin the root orpackages/web- onlypackages/jinn. - If the formula job fails, it's almost always the npm tarball not being live yet;
re-run the workflow once
npm view jinn-cli@X.Y.Zresolves.
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.

