version-release
Version release workflow. Use when the user mentions 'release', 'hotfix', 'version upgrade', 'weekly release', or '发版'/'发布'/'小班车'. This skill is for release process and GitHub Release notes (not docs/changelog page writing).
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- version-release
- description
- Version release workflow. Use when the user mentions 'release', 'hotfix', 'version upgrade', 'weekly release', or '发版'/'发布'/'小班车'. This skill is for release process and GitHub Release notes (not docs/changelog page writing).
02 资源文件 3
03 SKILL.md 正文
Version Release Workflow
Scope Boundary (Important)
This skill is only for:
- Release branch / PR workflow
- CI trigger constraints (
auto-tag-release.yml) - GitHub Release note writing
This skill is not for writing docs/changelog/*.mdx.
If the user asks for website changelog pages, load ../docs-changelog/SKILL.md.
Mandatory Companion Skill
For every /version-release execution, you MUST load and apply:
../microcopy/SKILL.md
Overview
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 |
Minor Release Workflow
Used to publish a new minor version (e.g. v2.2.0), roughly every 4 weeks.
Steps
- Create a release branch from canary
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.jsonand 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.
- Automatic trigger after merge:
auto-tag-releasedetects the title format and uses the version number from the title to complete the release.
Scripts
bun run release:branch # Interactive
bun run release:branch --minor # Directly specify minor
Patch Release Workflow
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.
Scripts
bun run hotfix:branch # Hotfix scenario
Auto-Release Trigger Rules (auto-tag-release.yml)
After a PR is merged into main, CI determines whether to release based on the following priority:
1. Minor Release (Exact Version)
PR title matches 🚀 release: v{x.y.z} -> uses the version number from the title.
2. Patch Release (Auto patch +1)
Triggered by the following priority:
- Branch name match:
hotfix/*orrelease/*-> triggers directly (skips title detection) - Title prefix match: PRs with the following title prefixes will trigger:
style/💄 stylefeat/✨ featfix/🐛 fixrefactor/♻️ refactorhotfix/🐛 hotfix/🩹 hotfixbuild/👷 build
3. No Trigger
PRs that don't match any conditions above (e.g. docs, chore, ci, test) will not trigger a release when merged into main.
Post-Release Automated Actions
- Bump
package.json— commits🔖 chore(release): release version v{x.y.z} [skip ci] - Create annotated tag —
v{x.y.z} - Create GitHub Release
- Dispatch
sync-main-to-canary— syncs main back to canary
Agent Action Guide
When the user requests a release:
Precheck
Before creating the release branch, verify the source branch:
- Weekly Release (
release/weekly-*): must branch fromcanary - All other release/hotfix branches: must branch from
main; rungit merge-base --is-ancestor main <branch> && echo OK - If the branch is based on the wrong source, recreate from the correct base
Minor Release
- Read
package.jsonto get the current version and compute the next minor version - Create a
release/v{version}branch from canary - Push and create PR — title must be
🚀 release: v{version} - Inform the user that merge will auto-trigger release
Patch Release
Choose workflow by scenario (see reference/patch-release-scenarios.md):
- Weekly Release: create
release/weekly-{YYYYMMDD}from canary; usegit log main..canaryfor release note inputs; title like🚀 release: 20260222 - Bug Hotfix: create
hotfix/from main; use gitmoji prefix title (e.g.🐛 fix: ...) - New Model Launch: community PRs trigger automatically via title prefix (
feat/style) - DB Migration: create
release/db-migration-{name}from main; cherry-pick migration commits; include dedicated migration notes
Hard Rules
- Do NOT manually modify
package.jsonversion - Do NOT manually create tags
- Minor PR title format is strict
- Patch PRs do not need explicit version number
- Keep release facts accurate; do not invent metrics or availability statements
GitHub Release Changelog Standard (Long-Form Style)
Use this section for writing GitHub Release notes (or release PR body when the PR body is intended to become release notes).
Do not use this as docs/changelog page guidance.
Positioning
This release-note style is:
- Data-backed at the top (date, range, key metrics)
- Narrative first, then structured detail
- Deep but scannable (clear sectioning + compact bullets)
- Contributor-forward (credits are part of the release story)
Required Inputs Before Writing
Collect these inputs first:
- Compare range (
<prev_tag>...<current_tag>) - Release metrics (commits, merged PRs, resolved issues, contributors, optional files/insertions/deletions)
- High-impact changes by domain (core loop, platform/gateway, UX, tooling, security, reliability)
- Contributor list (with standout contributions if known)
- Known risks / migrations / rollout notes (if any)
If metrics cannot be reliably computed, omit unknown numbers instead of guessing.
Canonical Structure
Follow this section order unless the user asks otherwise:
# 🚀 LobeHub v<x.y.z> (<YYYYMMDD>)- Metadata lines:
Release DateSince <Previous Version>metrics
- One quoted release thesis (single paragraph, 1-2 lines)
## ✨ Highlights(6-12 bullets for major releases; 3-8 for weekly)- Domain blocks with optional
###subsections:## 🏗️ Core Agent & Architecture(or equivalent product core)## 📱 Platforms / Integrations## 🖥️ CLI & User Experience## 🔧 Tooling## 🔒 Security & Reliability## 📚 Documentation(optional if meaningful)
## 👥 Contributors**Full Changelog**: <prev>...<current>
Use --- separators between major blocks for long releases.
Writing Rules (Hard)
- No fabricated metrics: all numbers must be traceable.
- No vague headline bullets: each bullet must include capability + impact.
- No internal-only framing: phrase from user/operator perspective.
- Security must be explicit when security-sensitive fixes are present.
- PR/issue linkage: use
(#1234)when IDs are available. - Terminology consistency: same feature/provider name across sections.
- Do not bury migration or breaking changes: elevate to dedicated section or callout.
Style Rules (Long-Form)
- Start with an "everyday use" framing, not implementation internals.
- Mix narrative sentence + evidence bullets.
- Keep bullets compact but informative:
- Good:
**Fast Mode (/fast)** — Priority routing for OpenAI and Anthropic, reducing latency on supported models. (#6875, #6960)
- Good:
- Use bold only for capability names, not for whole sentences.
- Keep heading depth <= 3 levels.
Release Size Heuristics
- Minor / major milestone release
- Include full structure with multiple domain blocks.
Highlightsusually 8-12 bullets.
- Weekly patch release
- Keep full skeleton but reduce subsection count.
Highlightsusually 4-8 bullets.
- DB migration release
- Keep concise.
- Must include
Migration overview, operator impact, and rollback/backup note.
GitHub Release Changelog Template
# 🚀 LobeHub v<x.y.z> (<YYYYMMDD>)
**Release Date:** <Month DD, YYYY>
**Since <Previous Version>:** <N commits> · <N merged PRs> · <N resolved issues> · <N contributors>
> <One release thesis sentence: what this release unlocks in practice.>
---
## ✨ Highlights
- **<Capability A>** — <What changed and why it matters>. (#1234)
- **<Capability B>** — <What changed and why it matters>. (#2345)
- **<Capability C>** — <What changed and why it matters>. (#3456)
---
## 🏗️ Core Product & Architecture
### <Subdomain>
- <Concrete change + impact>. (#...)
- <Concrete change + impact>. (#...)
---
## 📱 Platforms / Integrations
- <Platform update + impact>. (#...)
- <Compatibility/reliability fix + impact>. (#...)
---
## 🖥️ CLI & User Experience
- <User-facing workflow improvement>. (#...)
- <Quality-of-life fix>. (#...)
---
## 🔧 Tooling
- <Tool/runtime improvement>. (#...)
---
## 🔒 Security & Reliability
- **Security:** <hardening or vulnerability fix>. (#...)
- **Reliability:** <stability/performance behavior improvement>. (#...)
---
## 👥 Contributors
**<N merged PRs>** from **<N contributors>** across **<N commits>**.
### Community Contributors
- @<username> - <notable contribution area>
- @<username> - <notable contribution area>
---
**Full Changelog**: <previous_tag>...<current_tag>
Quick Checklist
- [ ] Uses top metadata and a clear release thesis
- [ ] Includes
Highlightsplus domain-grouped sections - [ ] Every major bullet states both change and user/operator impact
- [ ] Security and reliability updates are explicitly surfaced (when present)
- [ ] Contributor credits and compare range are included
- [ ] All numbers and claims are verifiable
04 同仓库更多 Skills
vercel-sandbox
Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.
slack
Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.
electron
Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.
dogfood
Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.