by jimliu
手动管理插件发布容易导致忘记更新变更日志和版本不一致。此技能可自动执行整个发布工作流,包括版本升级检测、变更日志生成和Git标签创建。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 release-skills 技能" 开始使用
=== release-skills 技能 === 作者: jimliu 描述: 手动管理插件发布容易导致忘记更新变更日志和版本不一致。此技能可自动执行整个发布工作流,包括版本升级检测、变更日志生成和Git标签创建。 使用方法: 1. 调用技能: "使用 release-skills 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 release-skills 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
productivity
safe
Automate the release process for baoyu-skills plugin: analyze changes, update changelogs, bump version, commit, and tag.
NEVER skip these steps when releasing:
CHANGELOG.md (English)CHANGELOG.zh.md (Chinese)marketplace.json versionREADME.md / README.zh.md if neededIf user says "直接 push" or "just push" - STILL follow all steps above first!
Trigger this skill when user requests:
# Get the latest version tag
LAST_TAG=$(git tag --sort=-v:refname | head -1)
# Show changes since last tag
git log ${LAST_TAG}..HEAD --oneline
git diff ${LAST_TAG}..HEAD --stat
Categorize changes by type based on commit messages and file changes:
| Type | Prefix | Description |
|---|---|---|
| feat | feat: | New features, new skills |
| fix | fix: | Bug fixes |
| docs | docs: | Documentation only |
| refactor | refactor: | Code refactoring |
| style | style: | Formatting, styling |
| chore | chore: | Build, tooling, maintenance |
Breaking Change Detection: If changes include:
Warn user: "Breaking changes detected. Consider major version bump (--major flag)."
Current version location: .claude-plugin/marketplace.json → metadata.version
Version rules:
--majorDefault behavior:
feat: or new skills → Minor bumpBefore updating changelogs, check if README files need updates based on changes:
When to update README:
Files to sync:
README.md (English)README.zh.md (Chinese)If changes include new skills or significant feature changes, update both README files to reflect the new capabilities. Keep both files in sync with the same structure and information.
Files to update:
CHANGELOG.md (English)CHANGELOG.zh.md (Chinese)Format (insert after header, before previous version):
## {NEW_VERSION} - {YYYY-MM-DD}
### Features
- `skill-name`: description of new feature
### Fixes
- `skill-name`: description of fix
### Documentation
- description of docs changes
### Other
- description of other changes
Only include sections that have changes. Omit empty sections.
For Chinese changelog, translate the content maintaining the same structure.
Update .claude-plugin/marketplace.json:
{
"metadata": {
"version": "{NEW_VERSION}"
}
}
git add README.md README.zh.md CHANGELOG.md CHANGELOG.zh.md .claude-plugin/marketplace.json
git commit -m "chore: release v{NEW_VERSION}"
Note: Do NOT add Co-Authored-By line. This is a release commit, not a code contribution.
git tag v{NEW_VERSION}
Important: Do NOT push to remote. User will push manually when ready.
| Flag | Description |
|---|---|
--dry-run | Preview changes without executing. Show what would be updated. |
--major | Force major version bump (0.x → 1.0 or 1.x → 2.0) |
--minor | Force minor version bump |
--patch | Force patch version bump |
--pre <tag> | (Reserved) Create pre-release version, e.g., --pre beta → 0.7.0-beta.1 |
When --dry-run is specified:
Output format:
=== DRY RUN MODE ===
Last tag: v0.6.1
Proposed version: v0.7.0
Changes detected:
- feat: new skill baoyu-foo added
- fix: baoyu-bar timeout issue
- docs: updated README
Changelog preview (EN):
## 0.7.0 - 2026-01-17
### Features
- `baoyu-foo`: new skill for ...
### Fixes
- `baoyu-bar`: fixed timeout issue
README updates needed: Yes/No
(If yes, show proposed changes)
Files to modify:
- README.md (if updates needed)
- README.zh.md (if updates needed)
- CHANGELOG.md
- CHANGELOG.zh.md
- .claude-plugin/marketplace.json
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 --major # Force major bump (with confirmation)
After successful release, remind user:
Release v{NEW_VERSION} created locally.
To publish:
git push origin main
git push origin v{NEW_VERSION}
View Count
0
Download Count
0
Favorite Count
0
Quality Score
71