| name | write-changeset |
| description | Write or update a change set (changeset) file for a pull request or branch, and scaffold the repo-local changeset workflow when it is missing. Use when the user says to write, add, update, or run the change set or changeset for a PR/branch before merge. |
| license | MIT |
| metadata | {"version":"0.1.0"} |
Write Change Set
Use this skill when the user wants the PR or branch to carry a changeset before merge.
First Checks
- Read repo instructions such as
AGENTS.md, CLAUDE.md, and release docs.
- Detect existing workflow files:
.changeset/, CHANGELOG.md, package scripts, release scripts, PR template, and tests.
- Inspect the branch or PR diff before writing anything.
- If the workflow already exists, follow the repo's local commands and file format.
Normal Workflow
- Find an existing branch-local
.changeset/*.md file. Update it when it belongs to this PR.
- If none exists and the PR needs one, create exactly one pending changeset file.
- Choose the smallest defensible type:
major, minor, or patch.
- Choose the changelog category used by the repo, usually
Added, Changed, Deprecated, Removed, Fixed, Security, Migration Notes, App Author Notes, Known Issues, or Upgrade Notes.
- Write the note in user-facing language describing the final result of the PR.
- Run the repo's changeset validation command, such as
pnpm changeset:check-pr.
Boundaries
- Do not edit
CHANGELOG.md.
- Do not bump versions.
- Do not move files into
.changeset/released/.
- Do not create tags, pushes, or GitHub Releases.
- If the PR does not need a changeset, say that directly and explain the reason.
Missing Workflow
If the repo does not have a changeset workflow, stop and offer to scaffold it. Do not scaffold without user approval.
When approved, read references/scaffold-workflow.md and use the bundled templates/assets if they fit the repo. Before installing the bundled CLI, inspect whether the target repo meets its assumptions (ES modules, an origin/main base branch, and tab-indented package.json), adapt when the right change is clear, and ask only when compatibility requires a user choice.
References
- For file format rules, read
references/changeset-format.md.
- For bootstrap instructions, read
references/scaffold-workflow.md.
- For prompt and output examples, read
references/examples.md.