Loading...
Loading...
Compare original and translation side by side
AskUserQuestionrequest_user_inputclarifyask_userAskUserQuestionAskUserQuestionrequest_user_inputclarifyask_userAskUserQuestion/release-skills/release-skills| Project Type | Version File | Auto-Detected |
|---|---|---|
| Node.js | package.json | ✓ |
| Python | pyproject.toml | ✓ |
| Rust | Cargo.toml | ✓ |
| Claude Plugin | marketplace.json | ✓ |
| Generic | VERSION / version.txt | ✓ |
| 项目类型 | 版本文件 | 是否自动检测 |
|---|---|---|
| Node.js | package.json | ✓ |
| Python | pyproject.toml | ✓ |
| Rust | Cargo.toml | ✓ |
| Claude Plugin | marketplace.json | ✓ |
| 通用项目 | VERSION / version.txt | ✓ |
| Flag | Description |
|---|---|
| Preview changes without executing |
| Force major version bump |
| Force minor version bump |
| Force patch version bump |
| Create missing GitHub Releases for existing tags from changelog sections |
| 标志 | 描述 |
|---|---|
| 预览变更但不执行实际操作 |
| 强制升级主版本号 |
| 强制升级次版本号 |
| 强制升级修订版本号 |
| 从变更日志章节为现有标签创建缺失的GitHub Releases |
.releaserc.ymlpackage.jsonpyproject.tomlCargo.tomlmarketplace.json.claude-plugin/marketplace.jsonVERSIONversion.txtCHANGELOG*.mdHISTORY*.mdCHANGES*.mdoriginghgh release list --limit 5.releaserc.ymlrelease.hooks| Hook | Purpose | Expected Responsibility |
|---|---|---|
| Make one target releasable | Validate the target is self-contained, sync/embed local dependencies, optionally stage extra files |
| Publish one releasable target | Upload the prepared target (or a staged directory if the project uses one), attach version/changelog/tags |
| Placeholder | Meaning |
|---|---|
| Absolute path to repository root |
| Absolute path to the module/skill being released |
| Absolute path to a temporary staging directory for this target, when the project uses one |
| Version selected by the release workflow |
| |
| Absolute path to a UTF-8 file containing release notes/changelog text |
prepare_artifactpublish_artifactCHANGELOG_{LANG}.mdCHANGELOG.{lang}.md{lang}{LANG}| Pattern | Example | Language |
|---|---|---|
| No suffix | | en (default) |
| | Corresponding language |
| | Corresponding language |
| | Corresponding region variant |
zhjakodefresProject detected:
Version file: package.json (1.2.3)
Changelogs:
- CHANGELOG.md (en)
- CHANGELOG.zh.md (zh)
- CHANGELOG.ja.md (ja).releaserc.ymlpackage.jsonpyproject.tomlCargo.tomlmarketplace.json.claude-plugin/marketplace.jsonVERSIONversion.txtCHANGELOG*.mdHISTORY*.mdCHANGES*.mdoriginghgh release list --limit 5.releaserc.ymlrelease.hooks| 钩子 | 用途 | 预期职责 |
|---|---|---|
| 准备可发布的目标产物 | 验证目标产物是否独立完整,同步/嵌入本地依赖,可选地暂存额外文件 |
| 发布可发布的目标产物 | 上传已准备好的目标产物(或项目使用的暂存目录),附加版本/变更日志/标签信息 |
| 占位符 | 含义 |
|---|---|
| 仓库根目录的绝对路径 |
| 待发布模块/技能的绝对路径 |
| 该目标产物的临时暂存目录绝对路径(当项目使用暂存目录时) |
| 发布工作流选定的版本号 |
| |
| 包含发布说明/变更日志文本的UTF-8文件绝对路径 |
prepare_artifactpublish_artifactCHANGELOG_{LANG}.mdCHANGELOG.{lang}.md{lang}{LANG}| 模式 | 示例 | 语言 |
|---|---|---|
| 无后缀 | | en(默认) |
| | 对应语言 |
| | 对应语言 |
| | 对应地区变体 |
zhjakodefresProject detected:
Version file: package.json (1.2.3)
Changelogs:
- CHANGELOG.md (en)
- CHANGELOG.zh.md (zh)
- CHANGELOG.ja.md (ja)LAST_TAG=$(git tag --sort=-v:refname | head -1)
git log ${LAST_TAG}..HEAD --oneline
git diff ${LAST_TAG}..HEAD --stat| Type | Description |
|---|---|
| feat | New features |
| fix | Bug fixes |
| docs | Documentation |
| refactor | Code refactoring |
| perf | Performance improvements |
| test | Test changes |
| style | Formatting, styling |
| chore | Maintenance (skip in changelog) |
BREAKING CHANGEBREAKING CHANGE:LAST_TAG=$(git tag --sort=-v:refname | head -1)
git log ${LAST_TAG}..HEAD --oneline
git diff ${LAST_TAG}..HEAD --stat| 类型 | 描述 |
|---|---|
| feat | 新功能 |
| fix | Bug修复 |
| docs | 文档更新 |
| refactor | 代码重构 |
| perf | 性能优化 |
| test | 测试变更 |
| style | 格式、样式调整 |
| chore | 维护工作(变更日志中跳过) |
BREAKING CHANGEBREAKING CHANGE:--major/--minor/--patchfeat:1.2.3 → 1.3.0--major/--minor/--patchfeat:1.2.3 → 1.3.0git log ${LAST_TAG}..HEAD --merges --pretty=format:"%H %s"gh pr view <number> --json author --jq '.author.login'gh repo view --json owner --jq '.owner.login'(by @username)| Type | en | zh | ja | ko | de | fr | es |
|---|---|---|---|---|---|---|---|
| feat | Features | 新功能 | 新機能 | 새로운 기능 | Funktionen | Fonctionnalités | Características |
| fix | Fixes | 修复 | 修正 | 수정 | Fehlerbehebungen | Corrections | Correcciones |
| docs | Documentation | 文档 | ドキュメント | 문서 | Dokumentation | Documentation | Documentación |
| refactor | Refactor | 重构 | リファクタリング | 리팩토링 | Refactoring | Refactorisation | Refactorización |
| perf | Performance | 性能优化 | パフォーマンス | 성능 | Leistung | Performance | Rendimiento |
| breaking | Breaking Changes | 破坏性变更 | 破壊的変更 | 주요 변경사항 | Breaking Changes | Changements majeurs | Cambios importantes |
undefinedgit log ${LAST_TAG}..HEAD --merges --pretty=format:"%H %s"gh pr view <number> --json author --jq '.author.login'gh repo view --json owner --jq '.owner.login'(by @username)| 类型 | en | zh | ja | ko | de | fr | es |
|---|---|---|---|---|---|---|---|
| feat | Features | 新功能 | 新機能 | 새로운 기능 | Funktionen | Fonctionnalités | Características |
| fix | Fixes | 修复 | 修正 | 수정 | Fehlerbehebungen | Corrections | Correcciones |
| docs | Documentation | 文档 | ドキュメント | 문서 | Dokumentation | Documentation | Documentación |
| refactor | Refactor | 重构 | リファクタリング | 리팩토링 | Refactoring | Refactorisation | Refactorización |
| perf | Performance | 性能优化 | パフォーマンス | 성능 | Leistung | Performance | Rendimiento |
| breaking | Breaking Changes | 破坏性变更 | 破壊的変更 | 주요 변경사항 | Breaking Changes | Changements majeurs | Cambios importantes |
undefined
Only include sections that have changes. Omit empty sections.
**Third-Party Attribution Rules**:
- Only add `(by @username)` for contributors who are NOT the repo owner
- Use GitHub username with `@` prefix
- Place at the end of the changelog entry line
- Apply to all languages consistently (always use `(by @username)` format, not translated)
**Multi-language Example**:
English (CHANGELOG.md):
```markdown
仅包含有变更的章节。省略空章节。
**第三方署名规则**:
- 仅为非仓库所有者的贡献者添加`(by @username)`
- 使用带`@`前缀的GitHub用户名
- 放置在变更日志条目行的末尾
- 在所有语言中保持一致格式(始终使用`(by @username)`格式,不翻译)
**多语言示例**:
英文(CHANGELOG.md):
```markdown
Chinese (CHANGELOG.zh.md):
```markdown
中文(CHANGELOG.zh.md):
```markdown
Japanese (CHANGELOG.ja.md):
```markdown
日文(CHANGELOG.ja.md):
```markdownundefinedundefinedskills/<skill-name>/*baoyu-cover-image:
- feat: add new style options
- fix: handle transparent backgrounds
→ README updates: options table
baoyu-comic:
- refactor: improve panel layout algorithm
→ No README updates needed
project:
- docs: update CLAUDE.md architecture sectionskills/<skill-name>/*baoyu-cover-image:
- feat: add new style options
- fix: handle transparent backgrounds
→ README updates: options table
baoyu-comic:
- refactor: improve panel layout algorithm
→ No README updates needed
project:
- docs: update CLAUDE.md architecture sectionREADME*.mdgit add skills/<skill-name>/*
git add README.md README.zh.md # If updated for this skill
git commit -m "<type>(<skill-name>): <meaningful description>"<type>(<scope>): <description><type><scope><description>git commit -m "feat(baoyu-cover-image): add watercolor and minimalist styles"
git commit -m "fix(baoyu-comic): improve panel layout for long dialogues"
git commit -m "docs(project): update architecture documentation"| Change Type | README Section to Check |
|---|---|
| New options/flags | Options table, usage examples |
| Renamed options | Options table, usage examples |
| New features | Feature description, examples |
| Breaking changes | Migration notes, deprecation warnings |
| Restructured internals | Architecture section (if exposed to users) |
README*.mdgit add skills/<skill-name>/*
git add README.md README.zh.md # 如果为该技能更新了这些文件
git commit -m "<type>(<skill-name>): <meaningful description>"<type>(<scope>): <description><type><scope><description>git commit -m "feat(baoyu-cover-image): add watercolor and minimalist styles"
git commit -m "fix(baoyu-comic): improve panel layout for long dialogues"
git commit -m "docs(project): update architecture documentation"| 变更类型 | 需要检查的README章节 |
|---|---|
| 新增选项/标志 | 选项表格、使用示例 |
| 选项重命名 | 选项表格、使用示例 |
| 新增功能 | 功能描述、示例 |
| 破坏性变更 | 迁移说明、弃用警告 |
| 内部结构重构 | 架构章节(如果对用户可见) |
CHANGELOG.md## {VERSION} - {YYYY-MM-DD}##1.2.3v1.2.3publish_artifact| File | Path |
|---|---|
| package.json | |
| pyproject.toml | |
| Cargo.toml | |
| marketplace.json | |
| VERSION / version.txt | Direct content |
CHANGELOG.md## {VERSION} - {YYYY-MM-DD}##1.2.3v1.2.3publish_artifact| 文件 | 路径 |
|---|---|
| package.json | |
| pyproject.toml | |
| Cargo.toml | |
| marketplace.json | |
| VERSION / version.txt | 直接内容 |
1.2.3 → 1.3.0 (Recommended)1.2.3 → 1.2.41.2.3 → 2.0.0Commits created:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. docs(project): update architecture documentation
Changelog preview (en):
## 1.3.0 - 2026-01-22
### Features
- Add watercolor and minimalist styles to cover-image
### Fixes
- Improve panel layout for long dialogues in comic
Release notes source: CHANGELOG.md#1.3.0
Ready to create release commit, annotated tag, and GitHub Release.1.2.3 → 1.3.0 (推荐)1.2.3 → 1.2.41.2.3 → 2.0.0已创建的提交:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. docs(project): update architecture documentation
变更日志预览(英文):
## 1.3.0 - 2026-01-22
### Features
- Add watercolor and minimalist styles to cover-image
### Fixes
- Improve panel layout for long dialogues in comic
发布说明来源: CHANGELOG.md#1.3.0
准备创建发布提交、带注释的标签和GitHub Release。git add <version-file>
git add CHANGELOG*.mdgit commit -m "chore: release v{VERSION}"git tag -a v{VERSION} -F <release-notes-file>.releaserc.ymltag.sign: truegit tag -sgit push origin main
git push origin v{VERSION}git add <version-file>
git add CHANGELOG*.mdgit commit -m "chore: release v{VERSION}"git tag -a v{VERSION} -F <release-notes-file>.releaserc.ymltag.sign: truegit tag -sgit push origin main
git push origin v{VERSION}release.hooks.publish_artifact{release_notes_file}{dry_run}=trueif gh release view v{VERSION} >/dev/null 2>&1; then
gh release edit v{VERSION} --title "v{VERSION}" --notes-file <release-notes-file>
else
gh release create v{VERSION} --title "v{VERSION}" --notes-file <release-notes-file> --verify-tag
fiRelease v1.3.0 created.
Commits:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. docs(project): update architecture documentation
4. chore: release v1.3.0
Tag: v1.3.0
Tag type: annotated
GitHub Release: published # or "skipped/local only"
Status: Pushed to origin # or "Local only - run git push when ready"release.hooks.publish_artifact{release_notes_file}{dry_run}=trueif gh release view v{VERSION} >/dev/null 2>&1; then
gh release edit v{VERSION} --title "v{VERSION}" --notes-file <release-notes-file>
else
gh release create v{VERSION} --title "v{VERSION}" --notes-file <release-notes-file> --verify-tag
fi已创建Release v1.3.0。
提交记录:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. docs(project): update architecture documentation
4. chore: release v1.3.0
标签: v1.3.0
标签类型: 带注释的标签
GitHub Release: 已发布 # 或 "已跳过/仅本地"
状态: 已推送到origin # 或 "仅本地 - 准备就绪时运行git push"--backfill-releasesgit tag --sort=v:refname
gh release view <tag>v1.2.31.2.3CHANGELOG.mdgh release create <tag> --title "<tag>" --notes-file <release-notes-file> --verify-taggit cat-file -t <tag>committag--backfill-releasesgit tag --sort=v:refname
gh release view <tag>v1.2.31.2.3CHANGELOG.mdgh release create <tag> --title "<tag>" --notes-file <release-notes-file> --verify-taggit cat-file -t <tag>committagundefinedundefinedundefinedundefined--dry-run=== DRY RUN MODE ===
Project detected:
Version file: package.json (1.2.3)
Changelogs: CHANGELOG.md (en), CHANGELOG.zh.md (zh)
Last tag: v1.2.3
Proposed version: v1.3.0
Changes grouped by skill/module:
baoyu-cover-image:
- feat: add watercolor style
- feat: add minimalist style
→ Commit: feat(baoyu-cover-image): add watercolor and minimalist styles
→ README updates: options table
baoyu-comic:
- fix: panel layout for long dialogues
→ Commit: fix(baoyu-comic): improve panel layout for long dialogues
→ No README updates
Changelog preview (en):
## 1.3.0 - 2026-01-22
### Features
- Add watercolor and minimalist styles to cover-image
### Fixes
- Improve panel layout for long dialogues in comic
Changelog preview (zh):
## 1.3.0 - 2026-01-22
### 新功能
- 为 cover-image 添加水彩和极简风格
### 修复
- 改进 comic 长对话的面板布局
Commits to create:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. chore: release v1.3.0
No changes made. Run without --dry-run to execute.--dry-run=== DRY RUN MODE ===
Project detected:
Version file: package.json (1.2.3)
Changelogs: CHANGELOG.md (en), CHANGELOG.zh.md (zh)
Last tag: v1.2.3
Proposed version: v1.3.0
Changes grouped by skill/module:
baoyu-cover-image:
- feat: add watercolor style
- feat: add minimalist style
→ Commit: feat(baoyu-cover-image): add watercolor and minimalist styles
→ README updates: options table
baoyu-comic:
- fix: panel layout for long dialogues
→ Commit: fix(baoyu-comic): improve panel layout for long dialogues
→ No README updates
Changelog preview (en):
## 1.3.0 - 2026-01-22
### Features
- Add watercolor and minimalist styles to cover-image
### Fixes
- Improve panel layout for long dialogues in comic
Changelog preview (zh):
## 1.3.0 - 2026-01-22
### 新功能
- 为 cover-image 添加水彩和极简风格
### 修复
- 改进 comic 长对话的面板布局
Commits to create:
1. feat(baoyu-cover-image): add watercolor and minimalist styles
2. fix(baoyu-comic): improve panel layout for long dialogues
3. chore: release v1.3.0
No changes made. Run without --dry-run to execute./release-skills # Auto-detect version bump
/release-skills --dry-run # Preview only
/release-skills --minor # Force minor bump
/release-skills --patch # Force patch bump
/release-skills --major # Force major bump (with confirmation)
/release-skills --backfill-releases # Create missing GitHub Releases for existing tags/release-skills # 自动检测版本升级
/release-skills --dry-run # 仅预览
/release-skills --minor # 强制升级次版本号
/release-skills --patch # 强制升级修订版本号
/release-skills --major # 强制升级主版本号(需确认)
/release-skills --backfill-releases # 为现有标签创建缺失的GitHub Releases