Deepchat deepchat-release
Prepare and publish DeepChat releases in this repository. Use when Codex needs to bump the app version, update CHANGELOG.md, keep release notes bilingual from v1.0.1 onward with English bullets first and Chinese bullets second, run release checks, create or update versioned release branches such as release/v1.0.1, continue a half-finished release, fast-forward main with the documented release flow, create or push version tags, or clean up release branches after publishing.
git clone https://github.com/ThinkInAIXYZ/deepchat
T=$(mktemp -d) && git clone --depth=1 https://github.com/ThinkInAIXYZ/deepchat "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.agents/skills/deepchat-release" ~/.claude/skills/thinkinaixyz-deepchat-deepchat-release && rm -rf "$T"
.agents/skills/deepchat-release/SKILL.mdDeepChat Release
Overview
Follow the repository-specific DeepChat release process. Prepare release metadata on
dev, keep CHANGELOG.md concise, and publish through the documented fast-forward flow instead of merge commits on main.
Start With Repo State
Inspect git state before changing anything:
- Check the current branch and working tree.
- Check whether
exists locally or onrelease/<version>
.origin - Check whether
exists locally or onv<version>
.origin
If a local or remote tag already exists on the wrong commit, stop and ask before replacing it.
Choose The Release Mode
Pick the mode that matches the user's request and current git state:
Updateprepare metadata
,package.json
, and the release notes commit onCHANGELOG.md
.dev
Createcut release branch
from the release-ready commit onrelease/<version>
and push it.dev
Use this when the release branch already exists but metadata changed afterward. Commit onupdate existing release branch
, movedev
to the newrelease/<version>
commit, and force-push only the disposable release branch.dev
Use this only after the release PR is approved. Fast-forwardpublish
, create the version tag on the same commit, push the tag, and then delete the temporary release branch.main
Use references/release-checklist.md for exact commands.
Update Release Metadata
When preparing a release on
dev:
- Update
to the target version.package.json - Add a new
section at the top.CHANGELOG.md - Summarize only user-visible or release-relevant changes since the previous tag.
- Prefer deriving the notes from recent commits or the diff since the previous release tag.
For
v1.0.1 and later, format changelog entries in this order:
## vX.Y.Z (YYYY-MM-DD) - English bullet - English bullet - 中文条目 - 中文条目
Use the current local date in
YYYY-MM-DD form. Preserve older changelog sections unless the user explicitly asks to rewrite them.
Run Release Checks
After editing release metadata, run these repo-required commands:
pnpm run formatpnpm run i18npnpm run lint
Prefer running
pnpm run typecheck before cutting the release branch. Run tests when the user asks, when the release touches behavior beyond metadata, or when risk is unclear. Report pre-existing failures separately from the release metadata work.
Follow Release Branch Policy
- Keep
as the integration branch.dev - Treat
as disposable and identical to a commit already onrelease/<version>
.dev - Never use the GitHub merge button for releases to
.main - Never click "Update branch" on the release PR.
- Use
to publish after approval.pnpm run release:ff -- release/<version> --tag v<version>
Read ../../../docs/release-flow.md when you need the full repository policy or if the checklist and repo docs ever diverge.
Common Recovery Case
When the user says something like "the release branch already exists but the tag is not created yet" or "I fixed the changelog after cutting the release branch":
- Commit the metadata fix on
.dev - Push
.dev - Move
torelease/<version>
.HEAD - Force-push
withrelease/<version>
.--force-with-lease - Continue with the existing or updated PR to
.main - After approval, publish and create the tag.
Response Rules
- Act on the repo when the user wants the release advanced; do not stop at generic advice.
- Tell the user exactly which step of the release flow they are currently in.
- Use concrete versions and dates such as
andv1.0.1
.2026-04-02 - Keep commands copy-pastable and repo-specific.
- If checks fail, separate blocking failures from unrelated existing warnings.
Examples
Activate this skill for requests like:
- "准备发布 1.0.2,更新版本号和 changelog"
- "继续发 1.0.1,release 分支已经有了,还没打 tag"
- "帮我按项目流程把 release/v1.0.3 发出去"
- "检查一下现在离发布 v1.0.4 还差什么"