agentleFS
hristo2612hristo2612/jinn/.claude/skills/release-jinn-cli/SKILL.md

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

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
  1. Distinctive:

    If there are no instance-template changes, record that fact.

    line 48
  2. Very specific:

    Run the exact-tarball upgrade lab.

    line 58
  3. Very specific:

    If publish fails with E401/EOTP, the token file is missing or revoked.

    line 69
  4. Very specific:

    Don't bump package.json in the root or packages/web - only packages/jinn.

    line 89
  5. Very specific:

    If the formula job fails, it's almost always the npm tarball not being live yet.

    line 90

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 publish from packages/jinn. The package ships dist/ and template/ (see its files), so you MUST build first.
  • GitHub release: created for tag vX.Y.Z.
  • Homebrew: .github/workflows/bump-formula.yml fires on release: published. It waits (up to ~5 min) for the npm tarball at registry.npmjs.org/jinn-cli/-/jinn-cli-X.Y.Z.tgz, computes its sha256, rewrites Formula/jinn.rb, and pushes the bump to main.
  • CI (ci.yml) runs typecheck/test/build on main + 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

  1. Land the work on main (merge the PR). Releases are cut from main; the formula-bump job also pushes to main. Ensure a clean tree: git status.
  2. 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.
  3. Bump + commit (no Co-Authored-By: Claude trailer - repo convention):
    # edit packages/jinn/package.json "version"
    git commit -am "chore(release): jinn-cli vX.Y.Z"
  4. Generate and review the instance migration gate. Resolve the previous release tag, then run:
    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"
    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.
  5. Build + verify from repo root:

    pnpm build      # turbo build + copies packages/web/out -> packages/jinn/dist/web
    pnpm typecheck && pnpm test

    Run the exact-tarball upgrade lab. Release work cannot continue if migration:check or any required upgrade scenario fails.

  6. 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> to packages/jinn/.npmrc (it's already in .gitignore - never commit it).
  7. Tag + push:
    git tag vX.Y.Z && git push origin main --tags
  8. Create the GitHub release (publishing it triggers the Homebrew bump):
    gh release create vX.Y.Z --title "vX.Y.Z" --notes "...release notes..."
    For a dry run, add --draft (drafts do NOT trigger the formula workflow).
  9. Verify: a formula: bump to vX.Y.Z commit lands on main within ~5 min (check the bump-formula workflow run), and npm view jinn-cli version is X.Y.Z.

Notes

  • Don't bump package.json in the root or packages/web - only packages/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.Z resolves.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.