跳到正文
Skillpedia
部署与云(DevOps)11k · #11819

nexmoe-best-practices-release

它能做什么

这个技能引导 AI 完成一次版本发布。适合希望一步完成新版本号和更新日志条目设置的开发者。

适用场景

  • ✓当你要求为某个项目发布或提升版本号时。
  • ✓当你希望在发布时同时更新多种语言的更新日志的时候。
  • ✓当你希望在推送任何内容之前预览发布内容的时候。

技能链接

https://github.com/nexmoe/VidBee/blob/main/apps/desktop/.agents/skills/nexmoe-best-practices-release/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nexmoe/VidBee/blob/main/apps/desktop/.agents/skills/nexmoe-best-practices-release/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把我的项目版本提升到下一个次版本,并更新更新日志。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会根据你的项目类型找到版本文件和更新日志文件,然后用新版本号更新它们。它不处理普通的提交或拉取请求。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Nexmoe Release Best Practices

Universal release workflow supporting any project type with multi-language changelog.

Quick Start

Just run /nexmoe-best-practices-release - auto-detects your project configuration.

Supported Projects

Project Type Version File Auto-Detected
Node.js package.json ✓
Python pyproject.toml ✓
Rust Cargo.toml ✓
Claude Plugin marketplace.json ✓
Generic VERSION / version.txt ✓

Options

Flag Description
--dry-run Preview changes without executing
--major Force major version bump
--minor Force minor version bump
--patch Force patch version bump

Workflow

Step 1: Detect Project Configuration

  1. Check for .releaserc.yml (optional config override)
  2. Auto-detect version file by scanning (priority order):
    • package.json (Node.js)
    • pyproject.toml (Python)
    • Cargo.toml (Rust)
    • marketplace.json or .claude-plugin/marketplace.json (Claude Plugin)
    • VERSION or version.txt (Generic)
  3. Scan for changelog files using glob patterns:
    • CHANGELOG*.md
    • HISTORY*.md
    • CHANGES*.md
  4. Identify language of each changelog by filename suffix
  5. Display detected configuration

Language Detection Rules:

Changelog files follow the pattern CHANGELOG_{LANG}.md or CHANGELOG.{lang}.md, where {lang} / {LANG} is a language or region code.

Pattern Example Language
No suffix CHANGELOG.md en (default)
_{LANG} (uppercase) CHANGELOG_CN.md, CHANGELOG_JP.md Corresponding language
.{lang} (lowercase) CHANGELOG.zh.md, CHANGELOG.ja.md Corresponding language
.{lang-region} CHANGELOG.zh-CN.md Corresponding region variant

Common language codes: zh (Chinese), ja (Japanese), ko (Korean), de (German), fr (French), es (Spanish).

Output Example:

Project detected:
  Version file: package.json (1.2.3)
  Changelogs:
    - CHANGELOG.md (en)
    - CHANGELOG.zh.md (zh)
    - CHANGELOG.ja.md (ja)

Step 2: Analyze Changes Since Last Tag

LAST_TAG=$(git tag --sort=-v:refname | head -1)
git log ${LAST_TAG}..HEAD --oneline
git diff ${LAST_TAG}..HEAD --stat

Categorize by conventional commit types:

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)

Note: This categorization is for internal analysis only. When writing changelog entries (Step 4), ALL descriptions must be rewritten in user-facing language. See Step 4 writing guidelines.

Breaking Change Detection:

  • Commit message starts with BREAKING CHANGE
  • Commit body/footer contains BREAKING CHANGE:
  • Removed public APIs, renamed exports, changed interfaces

If breaking changes detected, warn user: "Breaking changes detected. Consider major version bump (--major flag)."

Step 3: Determine Version Bump

Rules (in priority order):

  1. User flag --major/--minor/--patch → Use specified
  2. BREAKING CHANGE detected → Major bump (1.x.x → 2.0.0)
  3. feat: commits present → Minor bump (1.2.x → 1.3.0)
  4. Otherwise → Patch bump (1.2.3 → 1.2.4)

Display version change: 1.2.3 → 1.3.0

Step 4: Generate Multi-language Changelogs

For each detected changelog file:

  1. Identify language from filename suffix
  2. Detect third-party contributors:
    • Check merge commits: git log ${LAST_TAG}..HEAD --merges --pretty=format:"%H %s"
    • For each merged PR, identify the PR author via gh pr view <number> --json author --jq '.author.login'
    • Compare against repo owner (gh repo view --json owner --jq '.owner.login')
    • If PR author ≠ repo owner → third-party contributor
  3. Generate content in that language:
    • Section titles in target language
    • Change descriptions written naturally in target language (not translated)
    • Date format: YYYY-MM-DD (universal)
    • Third-party contributions: Append contributor attribution (by @username) to the changelog entry
  4. Insert at file head (preserve existing content)

⚠️ CRITICAL: User-Facing Writing Guidelines

Changelog is written for end users, NOT developers. Every entry must describe what changed **from the user's p

常见问题

它会处理普通的提交和拉取请求吗?

不会。该技能只用于发布,不用于普通的分支提交、推送或拉取请求。

它如何知道更新日志的语言?

它根据文件名(例如 CHANGELOG_LANG.md)检测每个更新日志的语言。

它能显示将要进行的改动吗?

可以。试运行选项会在不执行的情况下预览改动。

详情

作者的原始描述

Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, and generic projects. Use when user says "release", "发布", "new version", "bump version", or asks to "push" / "推送" a release. Not for ordinary branch commits, pushes or PRs.

repo: nexmoe/VidBee

热度

GitHub 星标
11k
排名
#11819
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能