creating-changesets
farm-fe/farm/.agents/skills/creating-changesets/SKILL.md
Creates changesets for semantic versioning. Use when adding changesets, preparing releases, determining version bumps (patch/minor/major), generating changelog entries, or documenting breaking changes.
Skill5.6k starsChanged 5 months ago
What's in it
- Changeset & Release Manager
- Overview
- When to Use
- What is a Changeset?
- Changeset Types
- Decision Guide
- Use patch for:
- Use minor for:
- Use major for:
- Creating a Changeset
- Interactive Method
- Manual Method
- File Format
- Release Workflow
- 1. Create Changeset
- 2. PR and Review
- 3. Merge to Main
- 4. Merge Version PR
- Checking Status
- Common Mistakes
- Common Scenarios
- References
- Related Skills
Tools it asks for
- Read
- Grep
- Glob
- Write
- Edit
- Bash(git:*)
- Bash(npx changeset:*)
---
name: creating-changesets
description: "Creates changesets for semantic versioning. Use when adding changesets, preparing releases, determining version bumps (patch/minor/major), generating changelog entries, or documenting breaking changes."
allowed-tools: "Read, Grep, Glob, Write, Edit, Bash(git:*), Bash(npx changeset:*)"
metadata:
author: Ollie Shop
version: 1.0.0
compatibility: "Claude Code with Node.js >=20, pnpm, TypeScript 5.5+"
---
# Changeset & Release Manager
## Overview
Automate the creation of changesets following project conventions, ensuring proper version bumps and well-documented release notes.
## When to Use
- After completing a feature or fix
- Before creating a PR
- When preparing a release
- To document breaking changes
## What is a Changeset?
A changeset is a markdown file in the `.changeset/` directory that describes:
1. Which packages are affected
2. What type of version bump (patch/minor/major)
3. A description of the change
## Changeset Types
| Type | When to Use | Version Change |
|------|-------------|----------------|
| `patch` | Bug fixes, documentation, refactoring, dependency updates | 1.0.0 → 1.0.1 |
| `minor` | New features, non-breaking enhancements | 1.0.0 → 1.1.0 |
| `major` | Breaking changes, API modifications | 1.0.0 → 2.0.0 |
## Decision Guide
### Use `patch` for:
- Bug fixes that don't change behavior
- Documentation updates
- Internal refactoring (no API changes)
- Dependency updates (non-breaking)
- Performance improvements
- Code style/linting fixes
### Use `minor` for:
- New features
- New CLI commands
- New configuration options
- Enhanced functionality
- New entity types support
- Non-breaking API additions
### Use `major` for:
- Breaking configuration changes
- Removed features or commands
- Changed CLI interface
- Required migration steps
- Node.js version requirement changes
## Creating a Changeset
### Interactive Method
```bash
pnpm changeset
```
Follow the prompts:
1. Select affected packages (space to select)
2. Choose bump type for each package
3. Write a summary of changes
### Manual Method
Create a file in `.changeset/` with a random name:
```markdown
---
"@saleor/configurator": minor
---
Add support for reference attributes with entityType field
- Attributes of type REFERENCE now require an entityType field
- Introspection properly captures entity type references
- Deploy correctly handles reference attribute creation
```
### File Format
```markdown
---
"package-name": patch|minor|major
---
Short description of the change (shown in CHANGELOG)
Optional longer description with:
- Bullet points for details
- Code examples if needed
- Migration instructions for breaking changes
```
## Release Workflow
### 1. Create Changeset
```bash
pnpm changeset
git add .changeset/
git commit -m "chore: add changeset for feature"
```
### 2. PR and Review
- Changeset is part of the PR
- Reviewers can suggest bump type changes
### 3. Merge to Main
- Changesets action creates "Version Packages" PR
- This PR updates version and CHANGELOG
### 4. Merge Version PR
- Triggers npm publish
- Creates GitHub release
## Checking Status
```bash
# See what changesets exist
npx changeset status
# Preview version bump
npx changeset version --dry-run
```
## Common Mistakes
| Mistake | Issue | Fix |
|---------|-------|-----|
| Wrong bump type | Unexpected version | Review decision guide above |
| Vague description | Poor CHANGELOG | Be specific about changes |
| Missing changeset | No release notes | Always add before PR |
| Multiple changesets | Fragmented notes | Combine related changes |
| Not including context | Hard to understand | Explain *why* not just *what* |
## Common Scenarios
For detailed examples of common scenarios including:
- Bug fixes, new features, breaking changes
- Multiple related changes
- Consolidated changesets
- Pre-release versions
- Best practices for descriptions
See **[Scenarios & Examples](references/scenarios.md)**
## References
- `{baseDir}/.changeset/config.json` - Changeset configuration
- `{baseDir}/CHANGELOG.md` - Generated changelog
- Changesets docs: https://github.com/changesets/changesets
## Related Skills
- **CI/CD automation**: See `managing-github-ci` for release workflow integration
- **Pre-commit validation**: See `validating-pre-commit` for quality gates before committing
More agent context in farm-fe/farm
53 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- a5c-ai-docusaurus.agents/skills/a5c-ai-docusaurus/SKILL.md
- agent-browser.agents/skills/agent-browser/SKILL.md
- brainstorming.agents/skills/brainstorming/SKILL.md
- building-farm-from-source.agents/skills/building-farm-from-source/SKILL.md
- dispatching-parallel-agents.agents/skills/dispatching-parallel-agents/SKILL.md
- executing-plans.agents/skills/executing-plans/SKILL.md
- farm-ready-gate.agents/skills/farm-ready-gate/SKILL.md
- find-skills.agents/skills/find-skills/SKILL.md
- finishing-a-development-branch.agents/skills/finishing-a-development-branch/SKILL.md
- git-commit-push.agents/skills/git-commit-push/SKILL.md
- rebase-commit-push-pr.agents/skills/rebase-commit-push-pr/SKILL.md
- receiving-code-review.agents/skills/receiving-code-review/SKILL.md
- requesting-code-review.agents/skills/requesting-code-review/SKILL.md
- rust-best-practices.agents/skills/rust-best-practices/SKILL.md
- rust-engineer.agents/skills/rust-engineer/SKILL.md
- self-improving-agent.agents/skills/self-improving-agent/SKILL.md
- subagent-driven-development.agents/skills/subagent-driven-development/SKILL.md
- systematic-debugging.agents/skills/systematic-debugging/SKILL.md
- test-driven-development.agents/skills/test-driven-development/SKILL.md
- using-git-worktrees.agents/skills/using-git-worktrees/SKILL.md
- using-superpowers.agents/skills/using-superpowers/SKILL.md
- verification-before-completion.agents/skills/verification-before-completion/SKILL.md
- writing-plans.agents/skills/writing-plans/SKILL.md
- writing-skills.agents/skills/writing-skills/SKILL.md
- a5c-ai-docusaurus.claude/skills/a5c-ai-docusaurus/SKILL.md
- agent-browser.claude/skills/agent-browser/SKILL.md
- brainstorming.claude/skills/brainstorming/SKILL.md
- creating-changesets.claude/skills/creating-changesets/SKILL.md
- dispatching-parallel-agents.claude/skills/dispatching-parallel-agents/SKILL.md
- executing-plans.claude/skills/executing-plans/SKILL.md
- farm-ready-gate.claude/skills/farm-ready-gate/SKILL.md
- find-skills.claude/skills/find-skills/SKILL.md
- finishing-a-development-branch.claude/skills/finishing-a-development-branch/SKILL.md
- gh-cli.claude/skills/gh-cli/SKILL.md
- git-commit-push.claude/skills/git-commit-push/SKILL.md
- rebase-commit-push-pr.claude/skills/rebase-commit-push-pr/SKILL.md
- receiving-code-review.claude/skills/receiving-code-review/SKILL.md
- requesting-code-review.claude/skills/requesting-code-review/SKILL.md
- rust-best-practices.claude/skills/rust-best-practices/SKILL.md
- rust-engineer.claude/skills/rust-engineer/SKILL.md
- self-improving-agent.claude/skills/self-improving-agent/SKILL.md
- subagent-driven-development.claude/skills/subagent-driven-development/SKILL.md
- systematic-debugging.claude/skills/systematic-debugging/SKILL.md
- test-driven-development.claude/skills/test-driven-development/SKILL.md
- using-git-worktrees.claude/skills/using-git-worktrees/SKILL.md
- using-superpowers.claude/skills/using-superpowers/SKILL.md
- verification-before-completion.claude/skills/verification-before-completion/SKILL.md
- writing-plans.claude/skills/writing-plans/SKILL.md
- writing-skills.claude/skills/writing-skills/SKILL.md
- e2e-example-acceptance.github/skills/e2e-example-acceptance/SKILL.md
- farmfe-guideskills/farmfe-guide/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

