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★ 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:
- All gates below pass locally.
- A
.changeset/<slug>.mdfile describes the change with apatch | minor | majorbump and a user-facing summary. Commit it. - Push to
master(or merge a feature branch intomaster). publish.ymltriggers —changesets/actiondetects the pending changeset and opens a "chore: version packages" PR that bumpspackage.jsonand rewritesCHANGELOG.md.- 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.mddirectly on the version PR. - Merge the version PR →
publish.ymlruns again, sees no pending changesets, executespnpm 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.ymlmust be listed for theagentsmeshpackage so OIDC can publish withoutNPM_TOKEN. - Secrets:
CODECOV_TOKENfor 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 tomaster..github/workflows/publish.yml— runs the changesets release flow on push tomaster.
ci.yml must include these steps in order
pnpm install --frozen-lockfilepnpm audit --prod --audit-level=high— catches high/critical vulns in production deps only.pnpm lintpnpm typecheckpnpm build— must come before any test job that includes integration files which execdist/cli.js(e.g.import.integration.test.ts,watch.integration.test.ts,generate-process-lock.integration.test.ts).pnpm test— full unit + integration suite.pnpm test:e2e— must come after build (it self-builds viapnpm build && vitest run --config vitest.e2e.config.ts); never run e2e in parallel with another build because they sharedist/.- Coverage job (separate matrix entry):
pnpm test:coveragewith Codecov upload (fail_ci_if_error: falseso 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/
Установить 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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic