mcpbeat Sign in

Version Bump Agent Skill

Performs a version bump for roosterjs. Merges changes from master into release, determines the correct SemVer version bump based on public interface changes, and creates a draft PR. Use when asked to do a version bump, release prep, or bump versions.

2k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1310
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/roosterjs --skill version-bump

The instruction itself

19 sections, as written by the author

Version Bump Skill

This skill performs a version bump for roosterjs. It merges changes from master into release, determines the correct SemVer version bump based on public interface changes, and creates a draft PR.

Steps

Step 1: Check for uncommitted changes

Run git status --porcelain. If there is any output (uncommitted changes exist), stop immediately and ask the user to deal with their uncommitted changes first before proceeding.

Step 2: Switch to master and pull latest

git checkout master
git pull origin master

If either command fails, stop and report the error.

Step 3: Switch to release and pull latest

git checkout release
git pull origin release

If either command fails, stop and report the error.

Step 4: Find the last version bump commit on release

Search the git log on the release branch for the most recent version bump commit. Version bump commits typically have "Version bump" or "version bump" in their commit message, or modify only versions.json.

git log release --oneline --grep="ersion bump" -1

If not found via message, look for the last commit that modified versions.json:

git log release --oneline -1 -- versions.json

Record the commit hash and date of this commit.

Step 5: Find all PRs merged into master after the last version bump

Using the date/hash from Step 4, find all merge commits (PRs) merged into master after that point:

git log master --oneline --merges --after="<date_of_last_bump>"

Alternatively, find commits on master that are not on release:

git log release..master --oneline --merges

If no PRs are found, stop and tell the user: "Version bump is not required since there is no PR merged since the last version bump."

Step 6: Create PR descriptions

For each PR found in Step 5, create a one-line description with the PR link. Format:

- #<PR_NUMBER> <PR_TITLE> (https://github.com/microsoft/roosterjs/pull/<PR_NUMBER>)

Use gh pr view <number> --json title,number,url to get details if needed. Save these descriptions for use in Step 15.

Step 7: Create a new branch based on release

Create a new branch from release. Use the naming convention u/<username>/bump-<N> where N is incremented, or as specified by the user:

git checkout -b <branch_name> release

Step 8: Merge master using "accept theirs" strategy

Merge master into the new branch, preferring master's changes for any conflicts:

git merge master -X theirs

Step 9: Verify no unresolved conflicts

Check for any remaining conflict markers:

git diff --check
grep -r "<<<<<<" --include="*.ts" --include="*.js" --include="*.json" .

If conflicts remain, stop and report them to the user.

Step 10: Compare current branch with master

Run a diff between the current branch and master:

git diff master -- . ':!versions.json'

Ignore differences that are only whitespace/formatting (newlines, indentation). You can verify with:

git diff master --stat -- . ':!versions.json'

If there are substantive code differences (not just formatting), show the differences to the user and ask: "There are code differences between this branch and master (other than versions.json). Do you want to continue?"

If the user says no, stop the flow.

Step 11: Update versions.json with SemVer bump

The versions.json file has 4 version groups:

| Group | Packages |

| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| main | roosterjs, roosterjs-content-model-types, roosterjs-content-model-dom, roosterjs-content-model-core, roosterjs-content-model-api, roosterjs-content-model-plugins, roosterjs-color-utils, roosterjs-content-model-markdown |

| legacyAdapter | roosterjs-editor-adapter |

| react | roosterjs-react |

| overrides | Per-package overrides (usually empty) |

The grouping is defined in /tools/buildTools/common.js in the buildConfig object.

SemVer rules:

  • Patch bump (0.0.x → 0.0.x+1): Only bug fixes, no API changes
  • Minor bump (0.x.0 → 0.x+1.0): New features/APIs added, but backward-compatible
  • Major bump (x.0.0 → x+1.0.0): Breaking changes to public interfaces

To determine the bump level:

  • Compare the exported types/interfaces between release and the merged code
  • Look at the lib/index.ts barrel files in each package for added/removed/changed exports
  • Check if any existing public interface signatures changed (breaking = major)
  • Check if new exports were added (non-breaking addition = minor)
  • If only implementation changes with no public API changes = patch

If a major version bump appears needed, show the interface differences to the user and ask: "A major version bump seems needed due to these interface changes. Do you want to bump the major version, or just bump minor instead?"

Update versions.json with the new version numbers for each affected group.

Step 12: Build and test

Run the full build and test suite:

yarn build
yarn test:fast

If any errors occur, show the full error output and stop the flow. Do not proceed with a broken build.

Step 13: Commit the change

git add versions.json
git commit -m "Version bump to <new_versions>"

Include all changed version numbers in the commit message.

Step 14: Push the branch

git push origin <branch_name>

Step 15: Create a draft PR

Create a draft PR targeting the release branch using the gh CLI:

Title: Version bump <group>: <old_version> → <new_version> (list all groups that changed)

Description: Include:

  • A table showing old and new versions for each group:
| Group         | Old Version | New Version |
| ------------- | ----------- | ----------- |
| main          | x.y.z       | x.y.z+1     |
| react         | x.y.z       | x.y.z+1     |
| legacyAdapter | x.y.z       | x.y.z+1     |
  • The PR descriptions from Step 6:
## Changes included

-   #123 Add feature X (https://github.com/microsoft/roosterjs/pull/123)
-   #124 Fix bug Y (https://github.com/microsoft/roosterjs/pull/124)

Command:

gh pr create --draft --base release --title "<title>" --body "<description>"

Display the PR URL to the user. Example output:

✅ Version bump PR created successfully!
PR: https://github.com/microsoft/roosterjs/pull/<number>

Error Handling

  • If any git operation fails, show the error and stop
  • If build/test fails, show errors and stop
  • If there are unexpected code differences, ask the user before continuing
  • If major version bump is detected, confirm with user before applying
  • Always leave the repo in a clean state if stopping early

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take microsoft/version-bump from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.