| name | release |
| description | Cut a new release for this repository. Use when asked to bump a major, minor, or patch version, publish to npm, create or push a git tag, or walk through the repo's release process. Prefer the built-in /release major|minor|patch command in this repo. |
| compatibility | Requires a clean git working tree, git push access to the repository, and npm Trusted Publishing configured for this package/workflow. |
Release
Use this skill when the user wants to publish a new version of this package.
Preferred workflow
In this repository, prefer the automated slash command:
/release major
/release minor
/release patch
The /release extension command is the canonical release flow for this repo.
It prepares the release commit/tag and lets GitHub Actions publish via npm Trusted Publishing instead of asking the model to manually stitch together shell commands.
What /release does
The command performs this workflow:
- Validates the argument is
major, minor, or patch
- Waits for the agent to become idle
- Reads
package.json to determine the current package name and version
- Verifies the git working tree is clean
- Detects the current branch and git remote
- Verifies the release tag does not already exist locally or on the remote
- Checks that the target version is not already published to npm
- Runs the smoke test
npm run test:mock
- Prompts the user for confirmation