Generate a changeset file for the current changes following the changesets pattern used in the project.
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.
Check for existing changesets: Look for a .changeset directory 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:
git status or analyzing the changespackage.jsonGenerate changeset content:
patch bump types, never minor or majorSave the changeset:
[random-adjective]-[random-noun]-[random-verb].md (e.g., happy-lions-jump.md).changeset/ directory---
"package-name": patch
---
Brief summary of the change in present tense
For monorepos with multiple packages:
---
"@scope/package-one": patch
"@scope/package-two": patch
---
Brief summary of the change
patch for bump type - Never generate minor or major changesets---
"@myapp/ui": patch
---
Fixes button hover state in dark mode.
.changeset/[random-adjective]-[random-noun]-[random-verb].md