Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Release pipeline for CLI, mobile, web, and server. Guides through version bumping, building, testing, publishing, and deploying. Replaces the old interactive release-it flow with a Claude Code-native experience. Use when user types /release or asks to release, publish, deploy, or ship any component.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 224% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 276% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 210% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 193% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 167% | 0% |
You are the release operator for the Happy monorepo. When invoked, walk the user through releasing the component they choose.
Ask which component to release:
happyPresent these as options. Wait for the user to pick.
Package: packages/happy-cli npm name: happy Registry: https://registry.npmjs.org Git tags: cli-{version}
Tag namespace note:
cli-X.Y.Znative-<runtime-version>ota-<ota-version>vX.Y.Z tag for Happy releases because multiple release streams coexist in this repoRun these in parallel:
npm view happy dist-tags — see current latest + betacat packages/happy-cli/package.json | grep version — local versiongit status --short — check for dirty stategit branch --show-current — confirm branchgit log --oneline -10 — recent commits for release notes contextPresent a summary:
Local version: X.Y.Z
npm latest: X.Y.Z
npm beta: X.Y.Z-N
Branch: main
Working tree: clean / dirtyAsk the user:
latest or betapatch, minor, major. For beta: prerelease (appends -N), or explicit version.Suggest a sensible default based on the current state. For beta, the next prerelease of the current version. For latest, a patch bump.
Present as options. Wait for confirmation.
Edit packages/happy-cli/package.json directly — do NOT use npm version (it chokes on pnpm workspace protocol).
IMPORTANT: do this before build/test for the CLI. The build imports package.json and bakes the version into the generated bundle. If you build first and bump later, happy --version can still report the old prerelease version even though npm metadata shows the new one.
@slopus/happy-wire must stay bundled — do NOT move it backpackages/happy-cli/package.json keeps "@slopus/happy-wire": "workspace:*" in devDependencies, deliberately. That is not a mistake to tidy up.
pkgroll has no --external flag — its entire externals policy is derived from dependencies/peerDependencies. So the dependency section IS the bundling switch:
dependencies → pkgroll emits a bare import ... from '@slopus/happy-wire'and Node resolves it from the registry at runtime
devDependencies → pkgroll inlines the code into dist/, and the depvanishes from the published package.json entirely
It must stay in devDependencies. After any build change, verify:
bash# must return nothing — no runtime import may survive grep -rnE "(import|require).*@slopus/happy-wire" packages/happy-cli/dist/ # must return the definitions, not just import mentions grep -rhoE "(function|const) (createEnvelope|stripLeadingTaskNotificationWrappers)" packages/happy-cli/dist/
(A bare "@slopus/happy-wire": "workspace:*" string does still appear in dist — that is the CLI's own package.json inlined as a JSON literal for the version string. Inert. Only an actual import/require matters.)
Why this exists. 1.2.1-beta.0 shipped declaring "@slopus/happy-wire": "0.1.0" — the only version on npm, published 2026-02-13. Local happy-wire was also labeled 0.1.0 but had 18 commits of drift, including f85b20c3 which added stripLeadingTaskNotificationWrappers and imported it from happy-cli/src/codex/utils/sessionProtocolMapper.ts. February's tarball had no such export, ESM failed at module load, and happy crashed on every invocation — dead on arrival, not degraded. 1.2.0 had survived the identical latent bug purely because none of its 15 import sites needed a post-February symbol. workspace:* publishes the local version NUMBER, never the local CODE.
No in-repo test can catch that class of bug. Inside the monorepo workspace:* resolves to local source, so prepublishOnly — build, typecheck, all 792 unit tests — always sees the correct code. It only fails against the registry. The global-install smoke check in Step 11 is the ONLY gate.
Still exposed — happy-agent and happy-server-self-host both keep happy-wire in dependencies, so they carry the original trap. Before publishing either, bundle it the same way or get happy-wire republished first.
Publish rights: @slopus/happy-wire is owned solely by steve.kite <steve@korshakov.com>. bra1ndump is an owner of happy but NOT of the @slopus scope, so publishing happy-wire 404s for them. Bundling exists partly to route around that.
Note: happy --version prints BOTH happy's own version and the Claude Code version it found:
happy version: 1.2.1-beta.1
Using Claude Code v2.1.224 from native installer
2.1.224 (Claude Code)Do NOT pipe it through tail -2 — that cuts the happy line off and makes it look like the command only reports Claude Code's version. Read the first line.
bashcd packages/happy-cli pnpm --filter happy run build
Report success/failure. Stop on failure.
The happy npm package no longer bundles the self-host server binary or webapp. Packaged installs resolve those from the separately installed happy-server-self-host package. Do not rebuild or ship tools/server or tools/webapp as part of a CLI release.
If the CLI release depends on self-host server changes, release happy-server-self-host separately. It lives in packages/happy-server-self-host and is the publishing shell around the private packages/happy-server: pnpm --filter happy-server-self-host build bundles that package's standalone entrypoint into dist/ and copies prisma/ in (this needs bun), then pnpm --filter happy-server-self-host run bundle:webapp builds the bundled webapp. Publish from packages/happy-server-self-host — packages/happy-server is private and is never published. The server package is a JS/TS npm package; npm handles platform specific dependencies such as Prisma and sharp normally. Do not pass --ignore-scripts when publishing it; its prepublishOnly script rebuilds the runtime, rebuilds the webapp, and runs tests before npm receives the tarball.
Before handing a server publish to the user, pre-run the full prepublishOnly chain yourself to catch failures early — the bundle:webapp step runs a multi-minute expo export, and build needs bun:
bashpnpm --filter happy-server-self-host --fail-if-no-match run prepublishOnly
The server typecheck, unit suite, and both Docker images are gated by .github/workflows/server.yml.
(Observed: 1332 merged a standalone.spec.ts test that only passes on Windows because the impl used POSIX path.basename; it was red on main and would have aborted the publish at the prepublishOnly test step.)
bashcd packages/happy-cli pnpm --filter happy exec vitest run --project unit
Integration tests are slow and flaky — skip them for releases. Unit tests are the gate. Expect the unit suite to take around a minute; src/utils/serverConnectionErrors.test.ts is particularly slow, so don't mistake a long run for a hang.
Report results. If failures, ask the user whether to proceed or abort.
bashcd packages/happy-cli pnpm publish --tag {channel} --no-git-checks
--no-git-checks: allows dirty working tree (we already verified state)⚠️ NEVER pass --ignore-scripts. prepublishOnly runs pnpm test (build + unit tests), and the build re-stamps the version into the bundle (Step 4). Skipping it ships whatever stale dist/ happens to be on disk. Two rationalizations look reasonable and are both WRONG:
to go faster." That earlier build may predate the version bump (or a dependency change). The on-disk `dist/` is then stamped with the OLD version, and `--ignore-scripts` ships it. This actually happened: 1.1.10-beta.9 was published with --ignore-scripts and shipped a bundle stamped beta.8 — happy --version reported beta.8 while npm metadata said beta.9. npm versions are immutable, so the only fix was bumping to beta.10 and re-releasing. A wasted version number and a broken publish, to save one ~1-minute rebuild.
prepublishOnly rebuild on eachretry is the price of correctness, not overhead to trim. If retries are painful, change the network (see the TLS note above) — do NOT skip scripts.
If you catch yourself reasoning toward --ignore-scripts, stop: there is no case in this repo where it is correct for a publish.
MUST use pnpm publish — never npm publish. This is a pnpm workspace; npm publish mis-resolves the workspace protocol and the bin entries and ships a broken tarball (a regression was reported for exactly this and the fix was to standardize on pnpm publish). pnpm publish is the only supported path. Do not "fall back" to npm publish if pnpm errors — diagnose the pnpm error instead.
Transient TLS upload failures are expected — retry, don't panic. The tarball is large (~160 MB, ~1000 files). The upload to registry.npmjs.org frequently dies mid-stream with:
npm error code ERR_SSL_SSL/TLS_ALERT_BAD_RECORD_MAC
npm error ... ssl3_read_bytes:ssl/tls alert bad record mac ...This is network-layer corruption of a single TLS record on the long upload, not a code, auth, or version problem. A single bad record kills the whole stream, so each fresh attempt has an independent chance to complete. Just re-run the exact same pnpm publish command — it typically succeeds within 2–3 attempts (it took 3 on the 1.1.10-beta.4 release). Before each retry, confirm it did NOT actually land (see Step 8); npm rejects re-publishing an already-published version, which would be a misleading error. A clean success prints + happy@X.Y.Z.
bashnpm view happy@{version} version # did the version actually publish? npm view happy dist-tags # did the channel tag move?
Check npm view happy@X.Y.Z version first — it returns the version string if the publish landed (use this between TLS retries to avoid double-publishing, and to distinguish a real failure from a cosmetic upload error).
⚠️ This metadata check is necessary but NOT sufficient. npm view ... version only confirms the tarball was accepted — it says nothing about what's inside it. A bundle stamped with the wrong version (the --ignore-scripts footgun above) passes this check cleanly. The authoritative check is the bundle itself in Step 11 (happy --version after a real install). Never report a release as done on the metadata check alone.
Then confirm the new version appears under the correct dist-tag. The tag often lags the publish by 10–40s — poll a few times before concluding it failed; npm tag propagation is not instant.
For latest releases only:
Release version X.Y.Zgit tag cli-X.Y.Zgit push && git push --tagsFor beta releases: ask the user if they want to commit the version bump or leave it uncommitted.
If git push is rejected because origin/main advanced while releasing, fetch and rebase the release commit before retrying:
bashgit fetch origin main git rebase --autostash origin/main git tag -f cli-X.Y.Z git push && git push --tags
Use --autostash when the worktree is dirty from unrelated local changes so those edits are preserved. Recreate the tag after rebase because the release commit hash changes.
For latest releases, create a GitHub release:
bashgh release create cli-X.Y.Z --generate-notes --title "cli-X.Y.Z"
bashnpm i -g happy@{channel} happy --version happy daemon status
Report the installed version and daemon status. The smoke check must confirm that happy --version matches the published version, not just npm metadata. If it reports the old version, rebuild after the version bump and cut a corrective patch release.
Package: packages/happy-app Variants: development, preview, production Platform: Expo SDK 54 / React Native 0.81.4
Always ask the user explicitly what they want to release. Present these options in order of popularity:
bash # Preview (most common) pnpm --filter happy-app run ota
# Production pnpm --filter happy-app run ota:production
OTA scripts require a message — stdin is not readable from Claude Code, so run the underlying eas update directly with --message: bash cd packages/happy-app && APP_ENV=preview NODE_ENV=preview tsx sources/scripts/parseChangelog.ts && pnpm typecheck && eas update --branch preview --message "<message>"
bash cd packages/happy-app && eas build --profile development --platform all --non-interactive
-store profiles for distribution via TestFlight and Play Store.Always pass --auto-submit so the build goes straight to TestFlight after completion. bash # Preview (TestFlight/internal testing) cd packages/happy-app && eas build --profile preview-store --platform ios --non-interactive --auto-submit
# Dev (TestFlight, points to dev server) cd packages/happy-app && eas build --profile development-store --platform ios --non-interactive --auto-submit
# Production (App Store / Play Store submission) cd packages/happy-app && eas build --profile production --platform ios --non-interactive --auto-submit
IMPORTANT: Always pass --non-interactive to eas build commands. Without it, EAS prompts for Apple account login interactively which breaks in non-TTY contexts (Claude Code, CI). Remote credentials are already configured on EAS servers.
IMPORTANT: Always pass --auto-submit to -store builds. Without it, the build finishes but never reaches TestFlight — you have to manually submit with eas submit.
Profile Distribution Channel Notes development-store store development Dev build via TestFlight preview-store store preview TestFlight / Play Store internal testing production store production App Store / Play Store submission
These install via direct link, NOT TestFlight. Almost never needed — prefer the -store profiles above.
Profile Distribution Channel development internal development preview internal preview
Version source is remote (EAS manages build numbers, auto-incremented). Runtime version "20" — bump when native code changes to invalidate OTA.
Apple ID: steve@bulkovo.com Team ID: 466DQWDR8C
App Store Connect App IDs: Production: 6748571505 (com.ex3ndr.happy) Preview: 6749025570 (com.slopus.happy.preview) Development: 6748984254 (com.slopus.happy.dev)
Package: packages/happy-app (same Expo app, web export) Dockerfile: Dockerfile.webapp Image: docker.korshakov.com/happy-app:{version} K8s: packages/happy-app/deploy/happy-app.yaml (3 replicas)
Web releases go through TeamCity (Lab_HappyWeb). The config is in the TeamCity UI, not in the repo.
Flow: expo export --platform web -> nginx:alpine static serve -> Docker build -> push -> K8s deploy.
Build args: POSTHOG_API_KEY, REVENUE_CAT_STRIPE.
Guide the user to trigger the TeamCity build, or help with manual Docker builds if needed.
Package: packages/happy-server Dockerfile: Dockerfile.server (production), Dockerfile (standalone w/ PGlite) Image: docker.korshakov.com/handy-server:{version} K8s: packages/happy-server/deploy/handy.yaml (1 replica, port 3005)
Server releases go through TeamCity (Lab_HappyServer). The config is in the TeamCity UI, not in the repo.
Build: node:20 + python3 + ffmpeg, builds happy-wire + happy-server. Secrets from Vault: handy-db, handy-master, handy-github, handy-files, handy-e2b, handy-revenuecat, handy-elevenlabs. Redis: happy-redis StatefulSet (redis:7-alpine, 1Gi persistent volume).
Guide the user to trigger the TeamCity build.
Site: happy.engineering (GitHub Pages) Repo: github.com/slopus/slopus.github.io
Separate repo, not part of this monorepo. Guide the user to push to that repo.
CHANGELOG.md is regenerated into changelog.json and shown inside the mobile app, on a phone, right after an OTA update. Write for that reader.
CHANGELOG.md only, then regenerate via tsx packages/happy-app/sources/scripts/parseChangelog.ts.- Community Credits: [@user1](https://github.com/user1), [@user2](https://github.com/user2). Core team never appears there — Kirill (bra1ndump / kirill2003de@gmail.com), Scoteezy, and Steve (ex3ndr). To find contributors: get the previous OTA's commit via eas update:list --branch preview + eas update:view <group-id> --json (gitCommitHash), then git log <hash>..HEAD and keep non-core authors. GitHub handles come from the PR (gh pr view <n> --json author), not from the commit email. If an OTA shipped without a changelog entry, its uncredited community commits roll into the next entry's credits.happy — self-host runtime and the bundled webapp ship through happy-server-self-host, not the main CLI package.Other measured skills in the registry, with their headline benchmark lift.