changeset-generator
/changeset-generator
Generates changeset files based on changes. Use when user asks to create a changeset or at the end of a feature implementation, when the user asks to wrap up or finalize changes
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Generates changeset files based on changes. Use when user asks to create a changeset or at the end of a feature implementation, when the user asks to wrap up or finalize changes
Original author description
Generates changeset files based on changes. Use when user asks to create a changeset or at the end of a feature implementation, when the user asks to wrap up or finalize changes
How it works
- Step 1: Detect change source
- Step 2: Gather context
- File naming
- File format
- Validate before writing
- Good:
SKILL.md preview
---
name: changeset-generator
description:
Generates changeset files based on changes. Use when user asks to create a changeset or at the end of a feature implementation, when the user asks to wrap up or finalize changes
disable-model-invocation: true
---
> AGENTS.md is the canonical source for shared LikeC4 repository instructions, including changeset policy. This file is a task-specific wrapper for generating changeset files.
Generate changeset files based on current branch changes or staged files. Use AGENTS.md for shared LikeC4 changeset policy, including when a changeset is needed, release type, package exclusions, and summary style.
# 1. Identify Changes
## Step 1: Detect change source
Determine where to read changes from, in this priority order:
```bash
# First: check for staged changes
STAGED=$(git diff --staged --name-only)
if [ -n "$STAGED" ]; then
echo "Using staged changes"
else
# Second: check for branch changes vs main
BRANCH_DIFF=$(git diff --name-only main...HEAD 2>/dev/null)
if [ -n "$BRANCH_DIFF" ]; then
echo "Using branch changes vs main"
else
# Third: check for uncommitted changes
UNCOMMITTED=$(git diff --name-only)
echo "Using uncommitted changes"
fi
fi
```
Use whichever source has changes. If none have changes, tell the user and stop.
## Step 2: Gather context
For **staged changes:**
```bash
git diff --staged --name-only # changed files
git diff --staged --stat # change size overview
git diff --staged -- '*.ts' '*.tsx' # actual code diff for key files
```
For **branch changes:**
```bash
git diff --name-only main...HEAD # changed files
git log --oneline main..HEAD # commit list
git log --format="%s%n%b" main..HEAD # commit messages for intent
```
Read the actual diff for non-trivial files when commit messages are vague — file names alone are often insufficient for writing a good summary.
**Conventional Commits triage hints:**
- `feat:` / `fix:` — usually needs a changeset
- `chore:` / `test:` / `refactor:` — usually skip unless user-facing
# 2. Map Files to Packages
Group changed files by their package:
- `packages/<name>/*` → read `packages/<name>/package.json` for the package name
- `apps/<name>/*` → read `apps/<name>/package.json`
- `styled-system/<name>/*` → read `styled-system/<name>/package.json`
Apply the changeset policy in AGENTS.md to decide whether each changed package has public impact. If no packages remain after filtering, tell the user there are no user-facing changes and stop.
# 3. Generate Summary
Follow the summary policy in AGENTS.md. Reference issues when relevant, for example `Fixes [#123](https://github.com/likec4/likec4/issues/123)`.
# 4. Create Changeset File
Use the release type required by AGENTS.md for every selected package.
## File naming
Derive the filename from the summary — lowercase, hyphens, descriptive:
- `add-cloud-shape.md`
- `fix-diagram-zoom-reset.md`
- `element-notes-feature.md`
## File format
Create at `.changeset/<name>.md`:
```markdown
---
'<package-name>': patch
'<another-package>': patch
---
<summary>
```
## Validate before writing
Before creating the file, verify each package name exists:
```bash
# For each package in your changeset, confirm it's real
cat packages/<name>/package.json | grep '"name"'
```
If a package name doesn't match, fix it before writing the changeset.
# 5. Confirm with User
Show the user the changeset content and file path before or after writing. If something looks off, iterate.
# Examples
## Good:
```markdown
---
'@likec4/diagram': patch
---
Add reset manual layout button with tooltip guidance
```
```markdown
---
'@likec4/core': patch
'@likec4/diagram': patch
---
First iteration of element notes feature:
- Add notes property to elements
- Display visual indicator on diagrams
```
# Notes
- Combine multiple packages in one changeset if they're part of the same feature
- If a branch has multiple independent features, suggest creating separate changesets for each
Versions
The database has no other skills named changeset-generator.
Database snapshot: 13.11.2026 · package version ebfeaf0509b7 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100changeset
Create a changeset for the changes in a branch. Use when: the user asks to create a changeset, add a changeset, generate a changeset, or write release notes for changed packages. - 100changeset
Generate a changeset file describing the current PR's changes. Use when asked to "create a changeset", "add a changeset", "/changeset", or after implementing a feature/fix that needs a changelog entry. Produces a randomly named `.changeset/*.md` file with affected packages, bump… - 96changeset
Use when writing changesets for releases - 100changeset
Create a changeset for the Astro monorepo. Use this skill whenever you need to add a changeset file to a PR, write a changelog entry, or document a package version bump. Also trigger when the user says "add a changeset", "write a changeset", "create a changeset", or when another… - 100changesets
Create or refresh a `.changeset/<slug>.md` for the current branch, or report that none is required. Triggers on "/changesets create", "add a changeset", "create a changeset", "update the changeset", "refresh the changeset", "do I need a changeset", or any work that touches… - 100add-changeset
Write a changeset for agentic-seo-check as a file, without the interactive prompt, in the changelog's voice. Use when a change users notice needs one, or when asked to add a changeset or a changelog entry.