Chuyển đến nội dung
Skillpedia
Viết lách33k · #8465

patch-notes

Skill này làm gì

Skill này biến các thay đổi code gần đây của game thành ghi chú bản vá mà người chơi có thể đọc. Skill dành cho nhóm game muốn ghi chú phát hành rõ ràng, không có thuật ngữ phát triển.

Khi nào nên dùng

  • ✓Khi một bản cập nhật game đã sẵn sàng và người chơi cần biết những gì đã thay đổi.
  • ✓Khi nhóm muốn ghi chú bản vá được viết từ lịch sử git và changelog gần đây.
  • ✓Khi tin nhắn commit của lập trình viên cần được chuyển sang ngôn ngữ đơn giản cho người chơi.

Liên kết skill

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/patch-notes/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/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/patch-notes/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

“Hãy viết ghi chú bản vá thân thiện với người chơi cho các thay đổi kể từ bản cập nhật trước, dựa trên lịch sử git.”

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

Cách hoạt động

Skill đọc các commit và changelog gần đây, lọc ra những thay đổi chỉ mang tính nội bộ của dự án, rồi viết lại các thay đổi người chơi nhìn thấy bằng ngôn ngữ đơn giản.

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.

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation

Automation mode: Resolve modes.automation (project.local.yaml → project.yaml → default collaborative). Every AskUserQuestion call and every file write follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and proceeds; automation_always_ask categories always prompt).

Patch Notes

Provenance check — before reading any history

Confirm the history you are about to read belongs to THIS game. Run this before Phase 2 and stop if it fails.

  1. Sample the recent log: git log --oneline -20. If it is empty or git is unavailable, skip this check — there is nothing to classify, and Phase 2's no-changelog-data branch is the right stop.
  2. Classify every commit in the range, one at a time, into exactly one of:
    • Game — changes the game the player plays: mechanics, content, balance, art, audio, UI, a bug in any of those.
    • Framework / maintenance — changes CCGS itself or the project's tooling: subjects naming skills, hooks, agents, the test plan, CI, the framework's own docs. Excluded from player-facing notes, but not a reason to stop.
    • Unclear — treat as framework. A commit you cannot confidently place is not one to write player copy from.
  3. Then decide from the counts:
    • At least one Game commit → proceed, using only those. Say how many of how many you used, so the reader can see the filter ran.
    • Zero Game commits → stop, using the message below, and give the count (0 of how many) so the reader can see the filter ran.

Filter per commit; do not stop on a repo that merely contains maintenance work. Every project built on this framework accumulates commits touching hooks, CI and skills — the game repo is the framework repo, so a repo-level stop fires on virtually every real project. The danger is not that such commits exist; it is that they get rendered as player-facing copy. Excluding them addresses that exactly, and a repo-level stop does not.

Corroborate before you proceed, cheaply: the Game commits should name systems that appear in design/ and the code root (src/, Assets/ or Source/). If they name a product those directories never mention, that is the real wrong-history signal — stop.

If no commit in the range is this game's, say so and stop:

"The git history in this repo does not appear to belong to [game]: 0 of the [N] recent commits are Game commits. The recent commits describe [what they actually describe]. I cannot generate release notes from it — point me at the right history, or supply the change list directly."

Verdict: BLOCKED — stop here without generating notes.

Why this is a hard stop, not a warning. Framework-internal commits rendered as player copy read as real changes: a session-hook timeout becomes "Fixed an issue where progress from your last session could be lost on launch" in a game with no save system. That copy is fluent, plausible, and entirely false. A reader cannot tell the difference; only this check can.


Phase 1: Parse Arguments

  • version: the release version to generate notes for (e.g., 1.2.0)
  • --style: output style — brief (bullet points), detailed (with context), full (with developer commentary). Default: detailed.

If no version is provided, ask the user before proceeding.


Phase 2: Gather Change Data

  • Read the internal changelog at production/releases/[version]/changelog.md if it exists
  • Also check docs/CHANGELOG.md for the relevant version entry
  • Run git log between the previous release tag and current tag/HEAD as a fallback
  • Read sprint retrospectives in production/sprints/ for context
  • Read any balance change documents in design/balance/
  • Read bug fix records from QA if available

If no changelog data is available (neither production/releases/[version]/changelog.md nor a docs/CHANGELOG.md entry for this version exists, and git log is empty or unavailable):

"No changelog data found for [version]. Run /changelog [version] first to generate the internal changelog, then re-run /patch-notes [version]."

Verdict: BLOCKED — stop here without generating notes.


Phase 2b: Detect Tone Guide and Template

Tone guide detection — before drafting notes, check for writing style guidance:

  1. Check `.claude/docs
Câu hỏi thường gặp

Các thay đổi công cụ nội bộ có xuất hiện trong ghi chú không?

Không. Thay đổi công cụ phát triển và framework bị loại khỏi ghi chú dành cho người chơi.

Nếu lịch sử trống thì sao?

Skill dừng lại và báo rằng không có dữ liệu changelog để viết.

Skill có kiểm tra lịch sử có thuộc về game này không?

Có. Trước hết skill kiểm tra các commit và dừng lại nếu chúng không có vẻ thuộc về game.

Chi tiết

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

Player-facing patch notes from git history and changelogs. Translates developer language into player communication.

repo: Donchitos/Claude-Code-Game-Studios

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8465
Giấy phép
MIT
Cập nhật
18/10/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ự