/lobehub:version-releasefrom lobehub
Version release workflow. Use when the user mentions 'release', 'hotfix', 'version upgrade', 'weekly release', or '发版'/'发布'/'小班车'. Provides guides for Minor Release and Patch Release workflows.
Ships in lobehub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The primary development branch is canary. All day-to-day development happens on canary. When releasing, canary is merged into main. After merge, auto-tag-release.yml automatically handles tagging, version bumping, creating a GitHub Release, and syncing back to the canary branch.
Only two release types are used in practice (major releases are extremely rare and can be ignored):
| Type | Use Case | Frequency | Source Branch | PR Title Format | Version |
|---|---|---|---|---|---|
| Minor | Feature iteration release | ~Every 4 weeks | canary | 🚀 release: v{x.y.0} | Manually set |
| Patch | Weekly release / hotfix / model / DB migration | ~Weekly or as needed | canary or main | Custom (e.g. 🚀 release: 20260222) | Auto patch +1 |
Used to publish a new minor version (e.g. v2.2.0), roughly every 4 weeks.
git checkout canary
git pull origin canary
git checkout -b release/v{version}
git push -u origin release/v{version}
Determine the version number — Read the current version from package.json and compute the next minor version (e.g. 2.1.x → 2.2.0)
Create a PR to main
gh pr create \
--title "🚀 release: v{version}" \
--base main \
--head release/v{version} \
--body "## 📦 Release v{version} ..."
[!IMPORTANT]: The PR title must strictly match the
🚀 release: v{x.y.z}format. CI uses a regex on this title to determine the exact version number.
bun run release:branch # Interactive
bun run release:branch --minor # Directly specify minor
Version number is automatically bumped by patch +1. There are 4 common scenarios:
| Scenario | Source Branch | Branch Naming | Description |
|---|---|---|---|
| Weekly Release | canary | release/weekly-{YYYYMMDD} | Weekly release train, canary → main |
| Bug Hotfix | main | hotfix/v{version}-{hash} | Emergency bug fix |
| New Model Launch | canary | Community PR merged directly | New model launch, triggered by PR title prefix |
| DB Schema Migration | main | release/db-migration-{name} | Database migration, requires dedicated changelog |
All scenarios auto-bump patch +1. Patch PR titles do not need a version number. See reference/patch-release-scenarios.md for detailed steps per scenario.
bun run hotfix:branch # Hotfix scenario
After a PR is merged into main, CI determines whether to release based on the following priority:
PR title matches 🚀 release: v{x.y.z} → uses the version number from the title.
Triggered by the following priority:
hotfix/* or release/* → triggers directly (skips title detection)style / 💄 stylefeat / ✨ featfix / 🐛 fixrefactor / ♻️ refactorhotfix / 🐛 hotfix / 🩹 hotfixbuild / 👷 buildPRs that don't match any of the above conditions (e.g. docs, chore, ci, test prefixes) will not trigger a release when merged into main.
🔖 chore(release): release version v{x.y.z} [skip ci]v{x.y.z}When the user requests a release:
package.json to get the current version and compute the next minor versionrelease/v{version} branch from canary🚀 release: v{version}Before creating the release branch, verify the source branch:
release/weekly-*): must branch from canarymain — run git merge-base --is-ancestor main <branch> && echo OK to confirmChoose the appropriate workflow based on the scenario (see reference/patch-release-scenarios.md):
release/weekly-{YYYYMMDD} branch from canary, scan git log main..canary to write the changelog, title like 🚀 release: 20260222hotfix/ branch from main, use a gitmoji prefix title (e.g. 🐛 fix: ...)feat / style), no extra steps neededrelease/db-migration-{name} branch from main, cherry-pick migration commits, write a dedicated migration changelogAll release PR bodies (both Minor and Patch) must include a user-facing changelog. Scan changes via git log main..canary --oneline or git diff main...canary --stat, then write following the format below.
reference/changelog-example/weekly-release.mdreference/changelog-example/db-migration.md**bold** for important feature namesgit log and list alphabeticallyWhat SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/add-provider-docGuide for adding new AI provider documentation. Use when adding documentation for a new AI provider (like OpenAI, Anthropic, etc.), including usage docs, environment variables, Docker config, and image resources. Triggers on provider documentation tasks./add-setting-envGuide for adding environment variables to configure user settings. Use when implementing server-side environment variables that control default values for user settings. Triggers on env var configuration or setting default value tasks./data-fetchingData fetching architecture guide using Service layer + Zustand Store + SWR. Use when implementing data fetching, creating services, working with store hooks, or migrating from useEffect. Triggers on data loading, API calls, service creation, or store data fetching tasks./debugThis skill should be used when debugging frontend/UI bugs that need runtime evidence. USE THIS SKILL (instead of adding console.log) when you're about to: "add console.log and ask user to check", "open DevTools and tell me what you see", "reproduce the bug and share the output", "check the browser console". Triggers: "debug this", "fix this bug", "why isn't this working", "investigate this issue", "trace the problem", "figure out why X happens", "UI not updating", "state is wrong", "value is null/undefined", "click doesn't work", "modal not showing". Automates log collection server-side - you read logs directly, no user copy-paste needed.
/desktopElectron desktop development guide. Use when implementing desktop features, IPC handlers, controllers, preload scripts, window management, menu configuration, or Electron-specific functionality. Triggers on desktop app development, Electron IPC, or desktop local tools implementation./drizzleDrizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.npx claudepluginhub ulpi-io/plugin-marketplace --plugin lobehubOther plugins' skills for the same job