π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
GitHub Release Changelog Standard (Long-Form Style)
Use this guide for GitHub Release notes β the body of a release PR that becomes the GitHub Release after merge. Do not use it for docs/changelog/*.mdx website pages (load ../../docs-changelog/SKILL.md instead).
Table of Contents
- Positioning β what this style optimizes for
- Required Inputs Before Writing
- Computing Inputs (Hard Rules β Verify, Never Guess) β base ref, PR refs, metrics, authors, pre-publish verification
- Canonical Structure (Long-Form: Minor / Weekly)
- Variants for Shorter Releases β hotfix, DB migration
- Writing Rules (Hard)
- Style Rules (Long-Form)
- Release Size Heuristics β when to use which variant
- Contributor Ordering
- Template β copy-paste skeleton
- Quick Checklist β long-form + hotfix
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.
Computing Inputs (Hard Rules β Verify, Never Guess)
Hallucinated PR numbers and wrong "Since v..." bases are the #1 failure mode of this skill. Every number and every
(#XXXX)must come fromgit, never from memory or inference.
1. Compare base = latest semver tag on main
Do not eyeball the tag list or pick the "last weekly" PR. Compute it:
git fetch origin main canary --tags
PREV_TAG=$(git describe --tags --abbrev=0 origin/main --match 'v*.*.*' --exclude '*-canary*' --exclude '*-nightly*')
echo "$PREV_TAG"
Sanity check that the tag is reachable from the release branch:
git merge-base --is-ancestor "$PREV_TAG" origin/release/weekly-{YYYYMMDD} && echo OK
If the check fails, stop and ask the user β the release branch is based on the wrong source.
Why not "the last weekly release PR"? Hotfixes (
v2.1.54,v2.1.55, β¦) merge directly into main between weeklies. They get back-merged viasync-main-to-canary, so the latest semver tag on main is the correct previous release for both weekly and minor flows. Picking the previous weekly's tag will silently undercount and put a stale version in "Since vβ¦".
2. PR refs must come from commit subjects β never from descriptions
Compute the canonical set:
git log "$PREV_TAG..origin/release/weekly-{YYYYMMDD}" \
--pretty=format:'%s' --no-merges \
| grep -oE '\(#[0-9]+\)$' \
| sort -u > /tmp/release_prs.txt
Hard rules:
- Every
(#XXXX)you write in the body must appear in/tmp/release_prs.txt. No exceptions. - Never infer a PR number from a feature description. If you remember "the KB BM25 PR was around #14501", that memory is wrong about half the time. Look up the commit hash by feature keyword and read its actual subject.
- If your terminal truncates long subjects (any wrapper that compresses output, e.g.
rtk), bypass it. Withrtkusertk proxy git log β¦. Verify withwc -l /tmp/release_prs.txtβ the count must matchgit log $PREV_TAG..HEAD --no-merges --pretty=format:'%h' | wc -lminus the few commits without a PR ref. A mismatch of >5% means subjects are being silently truncated.
3. Metrics must come from git counts
PR_COUNT=$(wc -l < /tmp/release_prs.txt | tr -d ' ')
COMMIT_COUNT=$(git log "$PREV_TAG..origin/release/weekly-{YYYYMMDD}" --no-merges --pretty=format:'%h' | wc -l | tr -d ' ')
CONTRIBUTOR_COUNT=$(git log "$PREV_TAG..origin/release/weekly-{YYYYMMDD}" --no-merges --pretty=format:'%an' \
| sort -u \
| grep -viE '^(lobehubbot|LobeHub Bot|renovate\[bot\])$' \
| wc -l | tr -d ' ')
If a number cannot be confidently derived, omit it β never guess.
4. Author-to-handle resolution
Git %an is the commit author display name, not the GitHub handle. For each author you mention, confirm the handle:
gh pr view "$PR_NUMBER" --repo lobehub/lobe-chat --json author --jq '.author.login'
Use the result for @handle. Then classify each author per the LobeHub team roster below; community first, team after.
5. Pre-publish verification (mandatory)
Before gh pr create / gh pr edit --body-file, diff body PR refs against the canonical set:
grep -oE '#[0-9]+' release_body.md | sort -u > /tmp/body_prs.txt
sed 's/[()]//g' /tmp/release_prs.txt > /tmp/release_prs_clean.txt
echo "=== In body but NOT in actual range (must be EMPTY) ==="
comm -23 /tmp/body_prs.txt /tmp/release_prs_clean.txt
Empty diff = OK. Any output = the body cites a PR that wasn't merged in this range. Stop and fix before publishing.
Also verify the metrics line in the body matches the computed values (PR_COUNT, CONTRIBUTOR_COUNT) and that **Full Changelog** uses $PREV_TAG, not some older tag.
Canonical Structure (Long-Form: Minor / Weekly)
Follow this section order for Minor and Weekly releases unless the user asks otherwise. For Hotfix and DB Migration, see Β§ Variants for Shorter Releases below β the canonical structure does not apply.
# π LobeHub Release (<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.
Variants for Shorter Releases
The Canonical Structure above is for long-form (Minor / Weekly). Two short-form variants override it.
Hotfix Variant
A hotfix targets one regression and ships fast. The body is short and operator-focused β no Highlights, no domain blocks, no Contributors line.
Required sections, in order:
# π LobeHub Release (<YYYYMMDD>)**Hotfix Scope:**β one line summarizing the regression scope (e.g.Agent topic-switching regression β stale chat state on agent change). Replaces the long-formRelease Date/Since vX.Y.Zmetrics.- One quoted thesis (single paragraph, 1-2 lines) describing what is now restored.
## π What's Fixedβ 1-3 bullets, each**<symptom>** β <fix in one sentence>. (#PR). No root-cause prose; that lives in the commit message.## βοΈ Upgradeβ short notes for self-hosted (pull image / restart, schema or env changes) and cloud (usually "applied automatically").## π₯ Ownerβ single@handlefor the PR author, resolved viagh pr view "$PR" --json author --jq '.author.login'. Never hardcoded.
Hard rules specific to hotfix:
- No Highlights / domain blocks / Contributors / Full Changelog β these add noise to a one-shot fix.
- No metric line β
Since vX.Y.Zdoesn't apply; the body cites the single PR (or 1-3 PRs) directly. - Owner β Contributors β one author, listed under Β§ Owner. Not a flat handle list.
- See
changelog-example/hotfix.mdfor the canonical template.
DB Migration Variant
Database schema changes that need to be released independently. Operator impact is the headline.
Required sections, in order:
# π LobeHub Release (<YYYYMMDD>)+ scope line- Migration overview β what tables / columns are added, modified, or removed
- Operator impact β backwards-compatible? required actions for self-hosted?
- Rollback / backup note β how to recover
## π₯ Ownerβ single PR author, resolved viagh pr view
See changelog-example/db-migration.md for the canonical template.
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
- Long-form structure with multiple domain blocks.
Highlightsusually 8-12 bullets.
- Weekly patch release
- Long-form skeleton with reduced subsection count.
Highlightsusually 4-8 bullets.
- Hotfix release
- Short-form (see Β§ Variants β Hotfix). No Highlights, no domain blocks, no Contributors.
- 1-3 fix bullets. Body should fit on one screen.
- DB migration release
- Short-form (see Β§ Variants β DB Migration).
- Must include
Migration overview, operator impact, and rollback/backup note.
Contributor Ordering
Render contributors as a single flat list (no separate "Community" / "Core Team" subsections). Order: community contributors first, team members after. Within each group, sort by PR count desc. Bots (@lobehubbot, renovate[bot]) go on a separate "maintenance" line.
LobeHub team roster β anyone in this list is a team member; anyone not in this list is a community contributor:
- @arvinxx
- @Innei
- @tjx666 (commit author name: YuTengjing)
- @ONLY-yours (commit author name: LiJian)
- @nekomeowww (commit author name: Neko)
- @rdmclin2 (commit author name: Rdmclin2)
- @AmAzing129
- @sudongyuer (commit author name: Tsuki)
- @rivertwilight (commit author name: RenΓ© Wang)
- @canisminor1990 (commit author name: CanisMinor)
- @cy948 (commit author name: Rylan Cai)
- @MarioJames (commit author name: Mocha)
Resolving handles β git author names (e.g.
YuTengjing) are not always the GitHub handle. Verify viagh pr view "$PR" --json authororgh api search/users -f q='<email>'before listing.
If a new contributor appears who is not on this list, treat them as community by default and ask the user whether to add them to the roster.
Template
# π LobeHub Release (<YYYYMMDD>)
**Release Date:** <Month DD, YYYY>
**Since <Previous Version>:** <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
Huge thanks to **<N contributors>** who shipped **<N merged PRs>** this cycle.
@<community-handle> Β· @<community-handle> Β· @<team-handle> Β· @<team-handle>
Plus @lobehubbot and renovate[bot] for maintenance.
---
**Full Changelog**: <previous_tag>...<current_tag>
Quick Checklist
Long-Form (Minor / Weekly)
-
PREV_TAGisgit describe --tags --abbrev=0 origin/main(latest semver), not the last weekly's tag - Every
(#XXXX)in the body appears in/tmp/release_prs.txt(verified viacomm -23) -
Since vβ¦line uses$PREV_TAG; PR / contributor counts matchwc -lon the computed sets -
**Full Changelog**uses$PREV_TAG...release/weekly-<YYYYMMDD>(orβ¦v{x.y.z}for minor) - Author handles resolved via
gh pr view --json author, not assumed from%an - 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
Hotfix
-
**Hotfix Scope:**line replaces metrics line - Single quoted thesis describes what is restored (operator-facing, not internal)
-
## π What's Fixedhas 1-3 bullets, each**<symptom>** β <fix>. (#PR)with PR ref verified to exist and be merged -
## βοΈ Upgradenotes self-hosted action and cloud auto-apply -
## π₯ Owneris a single@handleresolved viagh pr view "$PR" --json author - No Highlights / domain blocks / Contributors / Full Changelog included