Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)11k · #11819

nexmoe-best-practices-release

Skill này làm gì

Skill này hướng dẫn AI qua một lần phát hành phiên bản. Skill dành cho lập trình viên muốn số phiên bản mới và các mục changelog được thiết lập trong một bước.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu phát hành hoặc tăng phiên bản của một dự án.
  • ✓Khi bạn muốn changelog bằng nhiều ngôn ngữ được cập nhật cùng bản phát hành.
  • ✓Khi bạn muốn xem trước bản phát hành trước khi bất cứ thứ gì được đẩy đi.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/nexmoe/VidBee/blob/main/apps/desktop/.agents/skills/nexmoe-best-practices-release/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tăng phiên bản dự án của tôi lên bản minor tiếp theo và cập nhật changelog.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI tìm file phiên bản cho loại dự án của bạn và các file changelog, rồi cập nhật chúng với phiên bản mới. Skill không xử lý các commit hay pull request thông thường.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Skill có xử lý commit và pull request thông thường không?

Không. Skill chỉ dành cho phát hành, không dành cho commit nhánh, push hoặc pull request thông thường.

Làm sao skill biết ngôn ngữ của một changelog?

Nó nhận diện ngôn ngữ của mỗi changelog từ tên file, chẳng hạn CHANGELOG_LANG.md.

Skill có thể cho tôi biết nó sẽ thay đổi gì không?

Có. Tùy chọn dry-run xem trước các thay đổi mà không chạy chúng.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
11k
Vị trí xếp hạng
#11819
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự