|
| 1 | +--- |
| 2 | +name: agentnote-release |
| 3 | +description: Prepare and publish Agent Note releases with the repo-local release command, including version bump validation, release note preview, tag creation, workflow monitoring, and npm/GitHub verification. |
| 4 | +--- |
| 5 | + |
| 6 | +# Agent Note Release Workflow |
| 7 | + |
| 8 | +Use this skill when the task asks to release Agent Note, bump a version, cut a tag, publish npm packages, or verify a release. |
| 9 | + |
| 10 | +## Prepare |
| 11 | + |
| 12 | +1. Confirm the target version from the user request, accepting either `x.y.z` or `vx.y.z`. |
| 13 | +2. Switch to `main` and pull the latest changes before an actual release. |
| 14 | +3. Check the working tree. Do not release with unrelated dirty files. |
| 15 | +4. If the user only wants a rehearsal, use `--dry-run`; do not create commits or tags. |
| 16 | + |
| 17 | +## Release |
| 18 | + |
| 19 | +Prefer the repo-local command: |
| 20 | + |
| 21 | +```bash |
| 22 | +npm run release -- <version> --push |
| 23 | +``` |
| 24 | + |
| 25 | +Without `--push`, the command prepares the local version-bump commit and annotated tag but does not publish them: |
| 26 | + |
| 27 | +```bash |
| 28 | +npm run release -- <version> |
| 29 | +``` |
| 30 | + |
| 31 | +The command updates package metadata, runs the CLI build/typecheck/lint/test checks, previews the next release notes with `git-cliff --unreleased --tag`, creates the dedicated `chore: bump version to <version>` commit, and creates the annotated `v<version>` tag. |
| 32 | + |
| 33 | +## Guardrails |
| 34 | + |
| 35 | +- Do not manually push a release tag before the package version bump commit is on `main`. |
| 36 | +- Do not use `--push` until the release note preview is acceptable. |
| 37 | +- If release notes look like an implementation log, fix commit subjects or `Release note:` bodies before tagging. |
| 38 | +- If the command fails after a local commit or tag, inspect the repository state before retrying; do not create duplicate tags. |
| 39 | +- Keep release plumbing commits hidden with `Release note: skip`. |
| 40 | + |
| 41 | +## Verify |
| 42 | + |
| 43 | +After pushing a release tag: |
| 44 | + |
| 45 | +1. Watch the release workflow until completion. |
| 46 | +2. Verify the GitHub Release exists for `v<version>`. |
| 47 | +3. Verify npm publishes both `agent-note@<version>` and `@wasabeef/agentnote@<version>`. |
| 48 | +4. If release notes need copy edits after publication, update the GitHub Release body directly and keep the source commit guidance for future releases. |
| 49 | + |
| 50 | +## Report |
| 51 | + |
| 52 | +End with: |
| 53 | + |
| 54 | +- Version released or prepared |
| 55 | +- Commands run |
| 56 | +- Workflow status |
| 57 | +- GitHub Release URL |
| 58 | +- npm package versions confirmed |
0 commit comments