prepare-release
Skill25 starsChanged 3 months agoMITView on GitHub
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.
- Reads credentials
- Installs packages
14 other projects use a version of this.
Adopted by
Most recently taken up by
- CherryHQ/cherry-studiotheir own version, first seen Oct 2, 2026
- jpicklyk/task-orchestratortheir own version, first seen Sep 25, 2026
- 8beeeaaat/touchdesigner-mcptheir own version, first seen Sep 20, 2026
- Krzysztof318/MailFathomtheir own version, first seen Sep 10, 2026
- Fioooooooo/FylloCodetheir own version, first seen Aug 24, 2026
- modelcontextprotocol/csharp-sdktheir own version, first seen Aug 5, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- CherryHQ/cherry-studio★ 52ksame name
- modelcontextprotocol/csharp-sdk★ 4.6ksame name
- microsoft/FeatureManagement-Dotnet★ 1.2ksame name
- 8beeeaaat/touchdesigner-mcp★ 563same name
- Shopify/shopify-app-js★ 542same name
- jpicklyk/task-orchestrator★ 207same name
- Fioooooooo/FylloCode★ 28same name
- microsoft/FeatureManagement-JavaScript★ 19same name
- Azure/AppConfiguration-JavaScriptProvider★ 18same name
- Krzysztof318/MailFathom★ 14same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository167 other files it gives its agents.
- AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-agent-targetSkill
- add-global-mode-targetSkill
- am-agent-code-debuggerSkill
- am-agent-code-documenterSkill
- am-agent-code-refactorSkill
- am-agent-code-reviewerSkill
- am-agent-code-security-auditorSkill
- am-agent-code-standards-enforcerSkill
- am-agent-security-auditorSkill
- am-agent-test-engineerSkill
- am-agent-test-runnerSkill
- am-agent-typescript-developerSkill
- am-command-buildSkill
- am-command-code-simplifySkill
- am-command-commitSkill
- am-command-planningSkill
- am-command-planSkill
- am-command-ponytail-auditSkill
- am-command-ponytail-debtSkill
- am-command-ponytail-gainSkill
- am-command-ponytail-helpSkill
- am-command-ponytail-reviewSkill
- am-command-ponytailSkill
- am-command-reviewSkill
- am-command-shipSkill
- am-command-specSkill
- am-command-testSkill
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- changelog-generatorSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-reviewerSkill
- code-simplificationSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- docs-and-examplesSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- homebrew-packagingSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- lessonsSkill
- library-testingSkill
- package-release-engineeringSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 14 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
All gates below pass locally.
- Distinctive: line 31
If any of those are missing, fix them now — a green local gate cannot rescue a misconfigured publish workflow.
- Distinctive: line 37
Run the full suite and confirm everything is green before touching anything else.
- Distinctive: line 43
If there are failures, fix them first.
- Distinctive: line 52
All three must be clean.
- Distinctive: line 74
If any of these are missing or too low, update them now.
- Distinctive: line 80
Check that both workflow files exist and are correct:
- Distinctive: line 159
If any are missing, create them.
- Distinctive: line 165
Verify changesets is wired:
- Very specific: line 206
If multiple themes ship together, group them as separate paragraphs — Added / Changed / Fixed / Removed framing inside one summary is fine, …
- Very specific: line 207
If the change is purely internal, state that explicitly (Internal-only: prefix) and use patch.
- Distinctive: line 223
Run a dry-run pack and inspect what would be published:
- Very specific: line 235
If unexpected files appear, tighten files or add a .npmignore entry.
- Distinctive: line 256
Run the full test suite one more time with coverage to confirm nothing broke since Phase 1:
- Very specific: line 272
If coverage drops below threshold, the CI run will fail.
- Very specific: line 290
If generate --check reports drift, commit it as part of the changeset commit (or as a separate chore(generate): refresh target artifacts …
- Distinctive: line 296
After all phases, produce a release readiness report:
- Very specific: line 325
Changesets are the only release-notes authoring surface: If you find yourself opening CHANGELOG.md or bumping package.json version, stop — …
- Distinctive: line 326
Fix, don't skip: If a phase has a gap, close it before moving on.
- Distinctive: line 327
Verify, don't assume: Read the actual files. Run the actual commands.
“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 testIf there are failures, fix them first. Do not proceed with a red suite.
Then run typecheck and lint:
pnpm typecheck
pnpm lintAll 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. 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/action@v1 and trigger on push to master
on:
push:
branches: [master]
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create release PR or publish
uses: changesets/action@v1
with:
publish: pnpm release
title: "chore: version packages"
commit: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}The job needs id-token: write for npm trusted publishing/provenance and pull-requests: write to create the version PR. If either workflow file is missing or malformed, fix it now.
Phase 3 — Community Health Files
These must exist. Check each one:
| File | Minimum content |
SECURITY.md | Supported versions table, private advisory link, response SLA |
CONTRIBUTING.md | Prerequisites, dev commands, TDD rule, commit format, changeset requirement, PR checklist |
.github/ISSUE_TEMPLATE/bug_report.yml | version, node, repro, expected behavior fields |
.github/ISSUE_TEMPLATE/feature_request.yml | problem + solution fields |
.github/ISSUE_TEMPLATE/config.yml | blank_issues_enabled: false, security advisory link |
.github/pull_request_template.md | type-of-change checklist; must include a "changeset added" checkbox alongside TDD + CI |
If any are missing, create them. Keep them short and factual — no marketing copy.
Phase 4 — Changeset Entry (the only place release notes are authored)
Verify changesets is wired:
.changeset/config.jsonexists with"access": "public"and"baseBranch": "master".@changesets/cliis indevDependencies.package.jsonhas these scripts:"changeset": "changeset", "version": "changeset version", "release": "pnpm build && changeset publish"- Lockfile is current (
pnpm installhas been run).
Author the changeset for this release
Run:
pnpm changesetOr write the file directly at .changeset/<slug>.md using this format:
---
'agentsmesh': minor
---
<one-paragraph user-facing summary, then optional follow-up paragraphs grouping
Added / Changed / Fixed / Removed material if the release spans many themes>Bump rules:
major— breaking changes to the CLI flags, canonical schema, public API surface, or generated artifact contract that an existing user could rely on. Write a migration paragraph.minor— new targets, new canonical features, new public exports, new commands, new flags that are additive. New runtime platform support also goes here.patch— bug fixes, doc-only changes, internal refactors with no user-visible behavior change, dependency bumps that don't change behavior.
Quality bar for the summary (this paragraph becomes the CHANGELOG entry, so write it like a CHANGELOG entry, not like a commit message):
- Lead with the capability, not the file path.
Native Windows support is now first-class.notAdded windows-path-safety.ts. - Quote the user-visible artifact (
agentsmesh import --from windsurf,installs.yaml,.changeset/<slug>.md) so the entry is greppable. - If multiple themes ship together, group them as separate paragraphs — Added / Changed / Fixed / Removed framing inside one summary is fine, headings inside the changeset body are not (they'd nest inside
### Minor Changesafter rendering). - If the change is purely internal, state that explicitly (
Internal-only:prefix) and usepatch.
Verify before commit
pnpm exec changeset statusConfirm the bump type and the package list match intent. Then git add .changeset/<slug>.md and commit alongside the work it describes (one PR, one or more changesets, no orphan changesets and no orphan code).
Do not edit package.json version or CHANGELOG.md in this commit. Both are generated by the version PR.
Phase 5 — Package Contents
Run a dry-run pack and inspect what would be published:
pnpm pack --dry-runThe tarball must contain only what package.json files declares plus the always-included files (package.json, README.md, LICENSE if present alongside). Source files, test files, fixtures, .agentsmesh/, docs/, tasks/, and tsconfig.json must not appear. The files field should be:
"files": ["dist", "schemas", "README.md", "CHANGELOG.md", "LICENSE"]If unexpected files appear, tighten files or add a .npmignore entry. Re-run pnpm pack --dry-run until the manifest is clean.
Phase 6 — README Badges
The README must have these four badges immediately after the # AgentsMesh heading:
[](https://github.com/sampleXbro/agentsmesh/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/agentsmesh)
[](https://codecov.io/gh/sampleXbro/agentsmesh)
[](LICENSE)The npm version badge will pick up the new tag once changeset publish runs. Coverage requires CODECOV_TOKEN to be set as a repo secret.
Phase 7 — Final Gate
Run the full test suite one more time with coverage to confirm nothing broke since Phase 1:
pnpm test
pnpm typecheck
pnpm lint
pnpm test:coverage
pnpm buildCoverage thresholds are set in vitest.config.ts:
lines: 90%, functions: 90%, branches: 84%If coverage drops below threshold, the CI run will fail. Either add missing tests or, if coverage dropped because of legitimately untestable I/O code, add the file to the coverage.exclude list in vitest.config.ts with a comment explaining why.
Phase 8 — Generate to All Targets
Once all phases pass, sync the canonical config to every configured target:
node dist/cli.js generateThen verify the lock file is in sync:
node dist/cli.js generate --checkIf generate --check reports drift, commit it as part of the changeset commit (or as a separate chore(generate): refresh target artifacts commit, whichever the repo's recent history prefers). Never push a release with a dirty lock.
Output
After all phases, produce a release readiness report:
## Release Readiness — agentsmesh (changeset: <slug>, bump: patch|minor|major)
| Phase | Status | Notes |
|-------|--------|-------|
| Test suite | ✓/✗ | |
| Watch timing | ✓/✗ | |
| CI workflows | ✓/✗ | |
| Community files | ✓/✗ | |
| Changeset entry | ✓/✗ | |
| Package contents | ✓/✗ | |
| README badges | ✓/✗ | |
| Final gate | ✓/✗ | |
| Generated to targets | ✓/✗ | |
### Remaining actions before publish
- [ ] "Allow GitHub Actions to create and approve pull requests" enabled in repo Settings → Actions → General
- [ ] npm trusted-publisher mapping points at this repository and `.github/workflows/publish.yml`
- [ ] `CODECOV_TOKEN` repo secret is set
- [ ] Push the changeset commit → action opens the "chore: version packages" PR
- [ ] Review the rendered CHANGELOG section + bump in the version PR; merge → action publishes to npmPrinciples
- Changesets are the only release-notes authoring surface. If you find yourself opening
CHANGELOG.mdor bumpingpackage.jsonversion, stop — write a changeset instead. - Fix, don't skip. If a phase has a gap, close it before moving on. A partial release prep is worse than no prep.
- Verify, don't assume. Read the actual files. Run the actual commands. Don't report a phase as done because you think it was done earlier.
- Users first. Changeset summaries describe what users can now do, not what commits were merged.
- Lockfile is truth.
generate --checkmust report in sync before the changeset commit. If it is dirty, there is a mismatch between canonical and generated — investigate before shipping.
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.

