Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

prepare-release

БесплатноБез исполняемых скриптовНе проверен

Use this skill whenever preparing agentsmesh for an npm release — whether first publish, patch, minor, or major. Triggers on: 'prepare release', 'ready to…

sampleXbroот sampleXbro★ 31 звезда на GitHub

Об этом скилле

Purpose

Prepare Release

You are acting as the release engineer for agentsmesh. Your job is to get the repo into a state that is safe, honest, and ready for npm publish. Work through each phase in order. Do not mark a phase complete until you have verified it, not just assumed it.

Releases are changesets-driven — read this first

Every user-facing change ships through a changeset. Do not hand-edit package.json version or CHANGELOG.md — both are generated by changeset version and any manual edit will be silently overwritten the next time the release PR rebases. The skill exists to make sure the changeset is honest, the CI gates are green, and the publish workflow is actually wired up.

The flow:

  1. All gates below pass locally.
  2. A .changeset/<slug>.md file describes the change with a patch | minor | major bump and a user-facing summary. Commit it.
  3. Push to master (or merge a feature branch into master).
  4. publish.yml triggers — changesets/action detects the pending changeset and opens a "chore: version packages" PR that bumps package.json and rewrites CHANGELOG.md.
  5. Review the version PR — confirm the bump and the rendered CHANGELOG section match intent. Edit the changeset summary or add a new changeset (then re-push) if the rendered output is wrong; never edit package.json/CHANGELOG.md directly on the version PR.
  6. Merge the version PR → publish.yml runs again, sees no pending changesets, executes pnpm release (pnpm build && changeset publish), and publishes to npm via npm trusted publishing. GitHub creates the Release and tag automatically.

Prerequisites in repo settings:

  • Settings → Actions → General → Workflow permissions: enable "Allow GitHub Actions to create and approve pull requests".
  • npm package settings → Trusted publishers: this repository + .github/workflows/publish.yml must be listed for the agentsmesh package so OIDC can publish without NPM_TOKEN.
  • Secrets: CODECOV_TOKEN for the coverage badge.

If any of those are missing, fix them now — a green local gate cannot rescue a misconfigured publish workflow.


Phase 1 — Test Suite Health

Run the full suite and confirm everything is green before touching anything else.

pnpm test

If there are failures, fix them first. Do not proceed with a red suite.

Then run typecheck and lint:

pnpm typecheck
pnpm lint

All three must be clean.

Watch test timing (known CI risk)

The watch tests are timing-sensitive and reliably flake on CI runners slower than a developer laptop. Before declaring the suite healthy, check these specific timeouts in the watch tests:

File What to check Safe CI value
tests/unit/cli/commands/watch.test.ts vi.waitFor timeout args ≥ 3000 ms
tests/unit/cli/commands/watch.test.ts idle stability setTimeout ≥ 2000 ms
tests/integration/watch.integration.test.ts startup waitForFile timeout ≥ 15000 ms
tests/integration/watch.integration.test.ts post-change setTimeout ≥ 1500 ms
tests/e2e/watch.e2e.test.ts startup setTimeout ≥ 3000 ms
tests/e2e/watch.e2e.test.ts post-change setTimeout ≥ 1500 ms

Also verify vitest.config.ts has global guards:

testTimeout: 15_000,
hookTimeout: 10_000,

If any of these are missing or too low, update them now. The watch debounce is 300 ms plus generate time; tight timeouts that work on a fast local machine will fail on a 2-core CI runner.


Phase 2 — CI/CD Workflows

Check that both workflow files exist and are correct:

  • .github/workflows/ci.yml — runs on every push and PR to master.
  • .github/workflows/publish.yml — runs the changesets release flow on push to master.

ci.yml must include these steps in order

  1. pnpm install --frozen-lockfile
  2. pnpm audit --prod --audit-level=high — catches high/critical vulns in production deps only.
  3. pnpm lint
  4. pnpm typecheck
  5. pnpm build — must come before any test job that includes integration files which exec dist/cli.js (e.g. import.integration.test.ts, watch.integration.test.ts, generate-process-lock.integration.test.ts).
  6. pnpm test — full unit + integration suite.
  7. pnpm test:e2e — must come after build (it self-builds via pnpm build && vitest run --config vitest.e2e.config.ts); never run e2e in parallel with another build because they share dist/.
  8. Coverage job (separate matrix entry): pnpm test:coverage with Codecov upload (fail_ci_if_error: false so fork PRs don't break).

The quality matrix must include ubuntu-latest × Node 20/22/24, macos-latest × Node 22, and windows-latest × Node 22/24 (Node 20 because engines allows >=20.19.0). Use pnpm 10 + cache: pnpm in setup-node. Both workflows must set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true at the job level to suppress the Node 20 deprecation warning.

publish.yml must use changesets/

Полный SKILL.md на GitHub

Установить prepare-release в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл prepare-release?

Use this skill whenever preparing agentsmesh for an npm release — whether first publish, patch, minor, or major. Triggers on: 'prepare release', 'ready to publish', 'ship version', 'release prep', 'get this to npm', 'bump version', 'cut a release', 'what's needed to publish'. Runs a strict ordered checklist: test suite health → timing hardening → CI/CD presence → community health files → changeset entry → package contents → README badges → final gate → generate to targets. Releases are driven by changesets — never hand-edit `package.json` `version` or `CHANGELOG.md`. Do not skip phases or work from memory; execute every phase in order and fix gaps before moving on.

Как установить скилл prepare-release?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл prepare-release запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить prepare-release с