Release Skill
Use this skill to generate release-ready changeset entries in the repository style.
Scope
- Review current branch changes.
- Propose release impact (major/minor/patch) from code diffs.
- Draft concise Changesets-compatible summaries.
- Preview and ask for explicit user confirmation.
- Create or update
.changeset/*.md only after confirmation.
Required style
Follow docs/changeset-style.md strictly:
- Start with one plain summary sentence without a list marker.
- Add up to five optional follow-up bullets (
- ...); keep every line concise and user-facing.
- No headings, code blocks, root-cause sections, or file lists.
- Keep implementation detail in PR discussion/docs, not release notes.
Target package frontmatter:
---
"react-native-reanimated-carousel": patch
---
Replace patch with minor or major when justified.
Workflow
- Gather branch context.
- Run
git status --short.
- Run
git diff --name-status origin/main...HEAD.
- If
origin/main is unavailable, fallback to git diff --name-status main...HEAD.
- Review commit titles with
git log --oneline --no-merges origin/main..HEAD (or fallback).
- Detect existing pending changesets.
- List
.changeset/*.md excluding README.md, config.json, pre.json.
- If a suitable pending changeset exists, prefer updating it instead of creating duplicates.
- Infer bump recommendation from diff.
- Build signals from changed files and commit intent:
- Breaking/API risk signals: removed or renamed public props/exports/types, stricter peer dependency floor, explicit migration-required notes.
- Feature signals: new props/options/apis/behaviors that are backward compatible.
- Fix signals: bug fixes, tests, docs, refactors without new public API.
- Select a primary recommendation:
major when breaking/API risk signals are present.
minor when feature signals dominate and no breaking signal exists.
patch when only fix signals exist.
- Always prepare one alternative recommendation when uncertainty exists.
- Produce a preview for user confirmation.
- Show
Proposed bump with confidence (high/medium/low).
- Show
Why with 2-4 concise evidence bullets from actual diff/commits.
- Show
Alternative bump options with one-line tradeoff for each.
- Show exact markdown content to be written.
- Ask:
Reply with confirm to write this changeset, or tell me what to edit.
- Only after explicit confirmation, write file changes.
- Create a kebab-case file name, e.g.
.changeset/release-<topic>.md.
- Or update the agreed existing changeset file.
- Validate.
- Run
node scripts/check-changeset-style.mjs.
- If validation fails, fix and re-run until pass.
- Optionally run
yarn changeset:check if dependencies are installed.
- Report result.
- Return the file path, bump type, final bullets, and validation result.
Decision rules for bump type
patch: bug fixes, behavior corrections, internal improvements with backward compatibility.
minor: backward-compatible features, new props/options/behavior.
major: breaking API/behavior/dependency requirements requiring migration.
If uncertain between two bump levels, surface both options in preview and ask user to choose before writing.
Output contract
When previewing, always include:
Proposed bump:
Confidence:
Why:
Alternative bump options:
Draft changeset: fenced markdown block using a plain first summary line
Confirmation prompt
Never write or modify .changeset/*.md before explicit confirm.
1---2name: release3description: Review current branch changes and create concise Changesets release notes with preview/confirmation before writing files. Use when asked to prepare release notes, create or update .changeset entries, or sanity-check release readiness.4---56# Release Skill78Use this skill to generate release-ready changeset entries in the repository style.910## Scope1112- Review current branch changes.13- Propose release impact (major/minor/patch) from code diffs.14- Draft concise Changesets-compatible summaries.15- Preview and ask for explicit user confirmation.16- Create or update `.changeset/*.md` only after confirmation.1718## Required style1920Follow `docs/changeset-style.md` strictly:21221. Start with one plain summary sentence without a list marker.232. Add up to five optional follow-up bullets (`- ...`); keep every line concise and user-facing.243. No headings, code blocks, root-cause sections, or file lists.254. Keep implementation detail in PR discussion/docs, not release notes.2627Target package frontmatter:2829```yaml30---31"react-native-reanimated-carousel": patch32---33```3435Replace `patch` with `minor` or `major` when justified.3637## Workflow38391. Gather branch context.40- Run `git status --short`.41- Run `git diff --name-status origin/main...HEAD`.42- If `origin/main` is unavailable, fallback to `git diff --name-status main...HEAD`.43- Review commit titles with `git log --oneline --no-merges origin/main..HEAD` (or fallback).44452. Detect existing pending changesets.46- List `.changeset/*.md` excluding `README.md`, `config.json`, `pre.json`.47- If a suitable pending changeset exists, prefer updating it instead of creating duplicates.48493. Infer bump recommendation from diff.50- Build signals from changed files and commit intent:51 - Breaking/API risk signals: removed or renamed public props/exports/types, stricter peer dependency floor, explicit migration-required notes.52 - Feature signals: new props/options/apis/behaviors that are backward compatible.53 - Fix signals: bug fixes, tests, docs, refactors without new public API.54- Select a primary recommendation:55 - `major` when breaking/API risk signals are present.56 - `minor` when feature signals dominate and no breaking signal exists.57 - `patch` when only fix signals exist.58- Always prepare one alternative recommendation when uncertainty exists.59604. Produce a preview for user confirmation.61- Show `Proposed bump` with confidence (`high`/`medium`/`low`).62- Show `Why` with 2-4 concise evidence bullets from actual diff/commits.63- Show `Alternative bump options` with one-line tradeoff for each.64- Show exact markdown content to be written.65- Ask: `Reply with confirm to write this changeset, or tell me what to edit.`66675. Only after explicit confirmation, write file changes.68- Create a kebab-case file name, e.g. `.changeset/release-<topic>.md`.69- Or update the agreed existing changeset file.70716. Validate.72- Run `node scripts/check-changeset-style.mjs`.73- If validation fails, fix and re-run until pass.74- Optionally run `yarn changeset:check` if dependencies are installed.75767. Report result.77- Return the file path, bump type, final bullets, and validation result.7879## Decision rules for bump type8081- `patch`: bug fixes, behavior corrections, internal improvements with backward compatibility.82- `minor`: backward-compatible features, new props/options/behavior.83- `major`: breaking API/behavior/dependency requirements requiring migration.8485If uncertain between two bump levels, surface both options in preview and ask user to choose before writing.8687## Output contract8889When previewing, always include:90911. `Proposed bump:`922. `Confidence:`933. `Why:`944. `Alternative bump options:`955. `Draft changeset:` fenced markdown block using a plain first summary line966. `Confirmation prompt`9798Never write or modify `.changeset/*.md` before explicit `confirm`.