AGENT SKILL

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:

  1. Release branch / PR workflow
  2. CI trigger constraints (auto-tag-release.yml)
  3. 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

  1. 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}
  1. 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)

  2. 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.

  1. Automatic trigger after merge: auto-tag-release detects 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/* or release/* -> triggers directly (skips title detection)
  • Title prefix match: PRs with the following title prefixes will trigger:
    • style / 💄 style
    • feat / ✨ feat
    • fix / 🐛 fix
    • refactor / ♻️ refactor
    • hotfix / 🐛 hotfix / 🩹 hotfix
    • build / 👷 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

  1. Bump package.json — commits 🔖 chore(release): release version v{x.y.z} [skip ci]
  2. Create annotated tag — v{x.y.z}
  3. Create GitHub Release
  4. 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 from canary
  • All other release/hotfix branches: must branch from main; run git merge-base --is-ancestor main <branch> && echo OK
  • If the branch is based on the wrong source, recreate from the correct base

Minor Release

  1. Read package.json to get the current version and compute the next minor version
  2. Create a release/v{version} branch from canary
  3. Push and create PR — title must be 🚀 release: v{version}
  4. 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; use git log main..canary for 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.json version
  • 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:

  1. Data-backed at the top (date, range, key metrics)
  2. Narrative first, then structured detail
  3. Deep but scannable (clear sectioning + compact bullets)
  4. Contributor-forward (credits are part of the release story)

Required Inputs Before Writing

Collect these inputs first:

  1. Compare range (<prev_tag>...<current_tag>)
  2. Release metrics (commits, merged PRs, resolved issues, contributors, optional files/insertions/deletions)
  3. High-impact changes by domain (core loop, platform/gateway, UX, tooling, security, reliability)
  4. Contributor list (with standout contributions if known)
  5. 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:

  1. # 🚀 LobeHub v<x.y.z> (<YYYYMMDD>)
  2. Metadata lines:
    • Release Date
    • Since <Previous Version> metrics
  3. One quoted release thesis (single paragraph, 1-2 lines)
  4. ## ✨ Highlights (6-12 bullets for major releases; 3-8 for weekly)
  5. Domain blocks with optional ### subsections:
    • ## 🏗️ Core Agent & Architecture (or equivalent product core)
    • ## 📱 Platforms / Integrations
    • ## 🖥️ CLI & User Experience
    • ## 🔧 Tooling
    • ## 🔒 Security & Reliability
    • ## 📚 Documentation (optional if meaningful)
  6. ## 👥 Contributors
  7. **Full Changelog**: <prev>...<current>

Use --- separators between major blocks for long releases.

Writing Rules (Hard)

  1. No fabricated metrics: all numbers must be traceable.
  2. No vague headline bullets: each bullet must include capability + impact.
  3. No internal-only framing: phrase from user/operator perspective.
  4. Security must be explicit when security-sensitive fixes are present.
  5. PR/issue linkage: use (#1234) when IDs are available.
  6. Terminology consistency: same feature/provider name across sections.
  7. Do not bury migration or breaking changes: elevate to dedicated section or callout.

Style Rules (Long-Form)

  1. Start with an "everyday use" framing, not implementation internals.
  2. Mix narrative sentence + evidence bullets.
  3. Keep bullets compact but informative:
    • Good: **Fast Mode (/fast)** — Priority routing for OpenAI and Anthropic, reducing latency on supported models. (#6875, #6960)
  4. Use bold only for capability names, not for whole sentences.
  5. Keep heading depth <= 3 levels.

Release Size Heuristics

  • Minor / major milestone release
    • Include full structure with multiple domain blocks.
    • Highlights usually 8-12 bullets.
  • Weekly patch release
    • Keep full skeleton but reduce subsection count.
    • Highlights usually 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 Highlights plus 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

YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

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.

★ 1