changesets
Skill3.9k starsChanged 3 days agoMITView on GitHub
Use when: adding changesets to pull requests, determining semver bump types, versioning packages, or preparing releases. Covers changeset file format, semver guidance, when changesets are required, and the release pipeline.
We split this skill into the rules it gives an agent
16 rules. 0 are common, 10 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Start with the component or module name followed by a colon
- Distinctive: line 34
Use one or two sentences describing WHAT changed at a high level
- Distinctive: line 35
Write from the consumer's perspective — focus on the consumer-facing impact
- Distinctive: line 36
Do not include implementation details, file paths, CSS selector or symbol names, internal rationale, or before/after explanations
- Distinctive: line 38
Do not use nested bullet lists or multi-paragraph walkthroughs.
- Very specific: line 70
Run npx changeset and follow the prompts to select the package, bump type, and enter a description.
- Very specific: line 74
Create a new file in .changeset/ with a unique name (e.g., .changeset/my-change-description.md):
- Distinctive: line 84
Use lowercase kebab-case for the filename.
- Very specific: line 88
Use this quick reference to determine the bump type.
- Distinctive: line 99
Add a new component
- Distinctive: line 100
Add a new prop to an existing component
- Distinctive: line 103
Add a new export
- Very specific: line 104
Add a data-component attribute
- Very specific: line 114
Remove or rename a data-component attribute
- Distinctive: line 122
Test-only changes (adding or updating tests)
- Very specific: line 128
When a changeset is not needed, add the skip changeset label to the pull request.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Changesets in Primer React
This repository uses Changesets to manage versioning and changelogs. Every pull request that changes the public API or runtime behavior of a package must include a changeset file.
What is a changeset?
A changeset is a markdown file in the .changeset/ directory that describes:
- Which package is affected (e.g.,
@primer/react) - What semver bump to apply (
patch,minor, ormajor) - A human-readable description of the change (used in the changelog)
File format
Changeset files live in .changeset/ and have a random name with a .md extension. The file uses YAML frontmatter to specify the package and bump type, followed by a description:
---
'@primer/react': patch
---
ActionMenu: Fix focus management when menu is closed with Escape keyThe description becomes a single line item in the public changelog and release notes, so keep it terse. Follow this pattern:
- Start with the component or module name followed by a colon
- Use one or two sentences describing WHAT changed at a high level
- Write from the consumer's perspective — focus on the consumer-facing impact
- Do not include implementation details, file paths, CSS selector or symbol names, internal rationale, or before/after explanations
- Do not use nested bullet lists or multi-paragraph walkthroughs. If a change has several distinct parts, split it into separate changesets instead
Writing good descriptions
Aim for a description a consumer can scan in a few seconds.
Good — terse and consumer-facing:
UnderlinePanels: Improve rendering performance when toggling tab iconsAvoid — verbose, implementation-focused, multi-clause:
UnderlinePanels: Eliminate the empty-tablist frame on mount and the cascading
re-render when icons toggle. Tabs and panels are now derived in render
(previously stored in state synced via `useEffect`), the list width is kept in a
ref instead of state, and `iconsVisible` / `loadingCounters` flow to each tab
via context — combined with `React.memo(Tab)`...The "Avoid" example reads like a commit message or PR body. Save that level of detail for the pull request description; the changeset should summarize the consumer-facing effect only.
How to create a changeset
Option 1: Interactive CLI
Run npx changeset and follow the prompts to select the package, bump type, and enter a description.
Option 2: Manually create a file
Create a new file in .changeset/ with a unique name (e.g., .changeset/my-change-description.md):
---
'@primer/react': minor
---
Avatar: Add `square` variant for non-user avatarsUse lowercase kebab-case for the filename. The name is arbitrary but should be descriptive.
Choosing the correct semver bump
Use this quick reference to determine the bump type. For the full decision table with detailed examples, see contributor-docs/versioning.md.
patch — Bug fixes and internal corrections
- Fix a bug in component behavior
- Fix a styling issue
- Fix a TypeScript type that was incorrect
- Internal refactor that does not change the public API
minor — New features and non-breaking additions
- Add a new component
- Add a new prop to an existing component
- Broaden the type of an existing prop (e.g.,
string→string | number) - Deprecate a component or prop
- Add a new export
- Add a
data-componentattribute - Add a dependency
major — Breaking changes
- Remove a component
- Remove a prop
- Narrow the type of a prop (e.g.,
string→'a' | 'b') - Change the element that props are spread onto
- Broaden the element type in an event handler
- Remove or rename a
data-componentattribute - Bump a dependency to a new major version
When a changeset is NOT needed
Skip the changeset for changes that do not affect the published package:
- Documentation-only changes (markdown files, docs site content)
- Test-only changes (adding or updating tests)
- CI/infrastructure changes (GitHub Actions, scripts, config files)
- Storybook stories that don't change component source
- Dev dependency updates
- Changes to
examples/ore2e/directories
When a changeset is not needed, add the skip changeset label to the pull request. This bypasses the CI check that requires a changeset to be present.
Multiple changesets in one PR
If a PR introduces multiple distinct changes, add a separate changeset file for each. For example, if you fix a bug in Button and add a new prop to ActionMenu, create two changeset files — one patch for the fix and one minor for the new prop.
Release pipeline
Understanding the release pipeline helps explain why changesets are required:
- On PR creation:
changeset-botcomments on the PR indicating whether valid changesets are present. If your change requires a changeset and none is found, the bot will flag it. - On merge to
main: Thechangesets/actionGitHub Action automatically creates or updates a "Version Packages" release PR that bumps version numbers, updatesCHANGELOG.md, and shows release notes. - On merging the release PR: The action publishes the new version to npm and creates a GitHub Release.
Common files
.changeset/*.md— Changeset files (one per change).changeset/config.json— Changesets configurationcontributor-docs/versioning.md— Detailed semver bump guidancecontributor-docs/CONTRIBUTING.md— Contributing guidelines including changeset instructions
Trending
More talk lately.about the whole repository
Who's talking about primer/react
- vercel/next.js“Turbopack Sass loader does not resolve imports correctly”GitHub · Jan 1, 2024 · 7 reactions
- mui/mui-design-kits“[figma] Support Figma Code Connect ”GitHub · Jun 28, 2024 · 5 reactions
- filipedeschamps/tabnews.com.br“feat(primer/react): update version”GitHub · Dec 20, 2023 · 2 reactions
- github/docs“Fix theme mismatch”GitHub · May 18, 2023 · 2 reactions
- primer/view_components“Component status page”GitHub · Nov 29, 2021 · 2 reactions
The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 36
Talked about on GitHub (36 times).
On GitHub · 36
- Jan 1, 2024Turbopack Sass loader does not resolve imports correctly — vercel/next.js7 reactions · 11 comments
- Jun 28, 2024[figma] Support Figma Code Connect — mui/mui-design-kits5 reactions · 5 comments
- Dec 20, 2023feat(primer/react): update version — filipedeschamps/tabnews.com.br2 reactions · 10 comments
- May 18, 2023Fix theme mismatch — github/docs2 reactions · 13 comments
- Nov 29, 2021Component status page — primer/view_components2 reactions · 7 comments
31 more on GitHub
- Mar 9, 2026Bump the app group with 8 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Feb 12, 2026Add `AGENTS.md` — carbon-design-system/carbon1 reaction · 1 comment
- Feb 2, 2026Bump the app group with 13 updates — CRRU-UK/photo-id-app1 reaction · 2 comments
- Nov 10, 2025deps: bump @primer/react from 37.31.0 to 38.1.0 — npm/documentation1 reaction · 4 comments
- Mar 3, 2025Update release_conductor.yml — primer/.github1 reaction
- Oct 17, 2024Docs: add a11y guidance regarding required fields — primer/design1 reaction · 2 comments
- Oct 15, 2024Fix bug where checkboxes were broken with prefers-reduced-motion — primer/view_components1 reaction · 1 comment
- Aug 30, 2024Atualiza as propriedades do componente `Tooltip` para serem compatíveis com a nova versão (`Tooltip v2`) — filipedeschamps/tabnews.com.br1 reaction · 1 comment
- Mar 28, 2024Tooltip: Update the threshold value to match with the offset — primer/view_components1 reaction · 1 comment
- Feb 28, 2023Show source code in React component examples — primer/design1 reaction
- Dec 13, 2022Add a treatment for consistent appearance of content on focus — primer/design1 reaction · 1 comment
- Nov 9, 2022Using playwright to generate snapshots — primer/view_components1 reaction · 2 comments
- Oct 19, 2022Focus zone calls error in vitest + jsdom — primer/behaviors1 reaction · 2 comments
- Oct 11, 2022Atualiza todas as dependências possíveis — filipedeschamps/tabnews.com.br1 reaction · 2 comments
- Aug 19, 2022Add a CommonJS build to the package — github/combobox-nav1 reaction · 6 comments
- Feb 16, 2022ModuleNotFoundError: Could not find module in path "" relative to "" — codesandbox/codesandbox-client1 reaction · 9 comments
- Oct 29, 2026Create: Timeline in Figma — deboramoratalla-lab/ds-lab0 reactions
- Oct 26, 2026🐛 cheatcode_install registers an MCP server with its repo URL as the command and reports success — trustmybot/plugin0 reactions
- Oct 19, 2026Add named capture modes with mode-keyed baselines (bet) — ravidsrk/frontguard0 reactions
- Oct 15, 2026Rule proposal: Enforce consistency between documented jsDoc default and actual default values — typescript-eslint/typescript-eslint0 reactions · 2 comments
- Sep 26, 2026Refatorações e ajustes finais da Milestone 3 — jeancarlier/clone-tabnews0 reactions
- Jun 24, 2026This project is not maintained anymore 😢 — github/command0 reactions · 1 comment
- Jun 11, 2026WS2 · Regenerate primer-react through the corrected registry-scoped meta-skill (HITL) — vercel-labs/ds-skill-extraction-workshop0 reactions · 3 comments
- Feb 6, 2026Upgrade React to 19, additional major dependency updates (Primer, TanStack, tRPC) — github-community-projects/private-mirrors0 reactions · 3 comments
- Nov 21, 2025User interface — panodata/suraya0 reactions · 4 comments
- Apr 11, 2025✨ 이슈 상세 페이지 UI 개선 — Seono-Na/demo-issue-api-playground0 reactions
- Mar 21, 2025IconButton should include Tooltip by default — benbalter/alt-text-generator-action0 reactions
- Mar 21, 2024Improve SSR by removing Webpack dependency — github-community-projects/org-metrics-dashboard0 reactions
- Jan 11, 2024Other relevant component libraries/frameworks — crate/crate-ui-components0 reactions
- Jan 5, 2024Add a pull request template — deven-org/boiler0 reactions
- Sep 23, 2022Element should not auto-register itself unless a browser context is found — github/markdown-toolbar-element0 reactions · 8 comments
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- Effect-TS/effect★ 17ksame name
- primer/octicons★ 8.8ksame name
- anza-xyz/kit★ 704same name
- portabletext/editor★ 284same name
- joostme/skills★ 1same name
- lorisleiva/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- agentic-workflowsSkill
- component-testingSkill
- create-adr-migratorSkill
- deprecationsSkill
- feature-flagsSkill
- modular-ds-accessibility-contractSkill
- modular-ds-base-componentsSkill
- modular-ds-config-componentsSkill
- modular-ds-presentational-componentsSkill
- modular-ds-spectrum-modelSkill
- modular-ds-utilitiesSkill
- slotsSkill
- storybookSkill
- style-guideSkill
- turborepoSkill
- write-skillSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

