generate-changeset
Installation
SKILL.md
Rule: Generating a Changeset
Goal
To guide an AI assistant in creating a changeset file that follows the @changesets/cli format. Changesets are markdown files with YAML frontmatter that describe what changed and will be used to generate changelogs and version bumps.
Process
-
Check for existing changesets: Look for a
.changesetdirectory in the project to confirm the project uses changesets. If it doesn't exist, inform the user that the project doesn't appear to use changesets. -
Analyze existing changesets: Read 1-2 existing changeset files in
.changeset/to understand the project's changeset pattern and style. -
Determine packages to include:
- In a monorepo: Identify which package(s) were modified by checking
git statusor analyzing the changes - In a single-package repo: Use the package name from
package.json
- In a monorepo: Identify which package(s) were modified by checking