bump-version

Automate DicePP version increments with git commit and annotated tag preparation.

34|12|Updated Aug 1, 2021
One-click install
npx skills add https://github.com/pear-studio/nonebot-dicepp --skill bump-version-pear-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bump-version
Source: https://github.com/pear-studio/nonebot-dicepp/tree/main/docs/agent/skills/bump-version
Command: npx skills add https://github.com/pear-studio/nonebot-dicepp --skill bump-version-pear-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, uv, bump-my-version.

What problem does it solve?

It eliminates the repetitive, error-prone process of updating DicePP version numbers and preparing the exact git changes needed for a release.

Core Features & Use Cases

  • Version bump workflow: Increments patch/minor/major versions in a controlled way and produces the expected commit and tag.
  • Release-ready git operations: Switches to master, fetches/pulls latest changes, applies the bump, and pushes tags to the remote.
  • Safety guardrails: Refuses to run if the working directory has uncommitted changes, then returns you to the original branch at the end.
  • Use case: When you need to ship a bugfix (patch), add a compatible feature (minor), or make a breaking change (major), this skill streamlines the entire release preparation process.

Quick Start

Ask for bumping the DicePP release version by saying: "发版/please bump version minor for DicePP and push the resulting tag to origin."

Frequently Asked Questions about bump-version

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate semantic versioning and git tag creation for a release?

Automating semantic versioning and git tag creation requires computing the new version and preparing the exact commit and tag changes. This skill uses bump-my-version to calculate and apply patch, minor, or major increments, then switches branches and pushes tags to origin.

What is the safest way to bump version numbers without breaking release consistency?

The safest way to bump version numbers involves checking for a clean working tree before starting, fetching the latest master from origin, and pushing annotated tags post-bump. This skill enforces these safety guardrails and returns you to the original branch at the end to maintain release consistency.

How do I prepare a minor or major release commit with bump-my-version?

To prepare a release commit with bump-my-version, you switch to master, pull the latest changes, and apply the version increment. This skill streamlines that workflow by automatically computing the new version, applying the bump, and generating the expected commit and annotated tag.

Can I push git tags to origin if my working directory has uncommitted changes?

Pushing git tags to origin with uncommitted changes is blocked by this skill to ensure deployment readiness. It requires a completely clean working tree before running branch switching, version bumping, and tag pushing operations to prevent corrupting the release state.

Why does my release workflow require switching to master before applying a version bump?

A release workflow requires switching to master before applying a version bump to ensure the tag reflects the latest origin state. This skill fetches and pulls master updates prior to using bump-my-version, satisfying release consistency and avoiding divergent branch tagging.

Do I need git and uv installed to automate DicePP release version bumps?

You need git and uv installed to automate DicePP release version bumps, alongside the bump-my-version package. These dependencies enable the skill to execute branch management, compute semantic versioning changes, and push annotated tags to the remote repository successfully.