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

changelog

Skill này làm gì

Skill này viết bản tóm tắt những gì đã thay đổi trong dự án. Skill dành cho các nhóm muốn có ghi chú phát hành mà không phải viết tay.

Khi nào nên dùng

  • ✓Khi bạn chuẩn bị một bản phát hành mới và cần danh sách những thay đổi.
  • ✓Khi bạn muốn một changelog nội bộ cho nhóm và một bản riêng cho người chơi.
  • ✓Khi công việc sprint và các commit cần được tóm tắt ở một nơi.

Liên kết skill

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

“Viết changelog cho bản phát hành này, gồm một bản cho nhóm và một bản cho người chơi.”

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

Cách hoạt động

Skill đọc các commit và tag gần đây trong git, rồi kiểm tra từng commit để phân biệt thay đổi của game với công việc framework hoặc bảo trì. Sau đó skill viết phiên bản nội bộ và phiên bản dành cho người chơi.

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).

Changelog

Recent History

Recent commits:

!git log --oneline -30 2>/dev/null || true

Recent tags (newest first):

!git tag --list --sort=-v:refname 2>/dev/null | head -5

Provenance check — before trusting the history above

The commits above may not belong to this game. This skill's history blocks are auto-resolved before the body runs, so the read has already happened — what this check governs is whether that output is usable, not whether it is fetched.

  1. Read the injected commit subjects above. If there are none — the log is empty or git is unavailable — skip this check: there is nothing to classify, and Phase 1's no-history branch is the right stop.
  2. Classify each one as Game (mechanics, content, balance, art, audio, UI, or a bug in those), Framework / maintenance (subjects naming skills, hooks, agents, the test plan, CI, or the framework's own docs), or Unclear — and treat Unclear as Framework.
  3. Decide from the counts:
    • At least one Game commit → proceed using only those, and state how many of how many you used.
    • Zero Game commits → stop, using the message below.

Filter per commit; a repo containing maintenance work is not a wrong repo. Every project on this framework accumulates commits touching hooks, CI and skills — the game repo is the framework repo, so stopping on them would fire on virtually every real project. The harm is those commits becoming release copy, and excluding them prevents that precisely.

This rule is kept identical to /patch-notes' on purpose — the two read the same history for different audiences, and they must not disagree about whose history it is. Change both together.

The genuine wrong-history signal is different: Game commits naming a product that design/ and the code root (src/, Assets/ or Source/) never mention. If you see that, 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 a changelog from it — point me at the right history, or supply the change list directly."

Verdict: BLOCKED — stop here without generating a changelog.

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.

Do not treat the preamble's existence as evidence. Injected output means the command ran, never that its subject is your game.


Both blocks are resolved before this skill runs. Use them as the starting point for Phase 2 rather than re-running the same commands.


Phase 1: Parse Arguments

Read the argument for the target version or sprint number. If a version is given, use the corresponding git tag. If a sprint number is given, use the sprint date range.

Verify the repository is initialized: run git rev-parse --is-inside-work-tree to confirm git is available. If not a git repo, inform the user and abort gracefully.

If there is no history to read — not a git repository, or no commits yet:

"No git history found. A changelog is built from commits — commit the work first, or supply the change list directly."

Verdict: BLOCKED — stop here without generating a changelog.


Phase 2: Gather Change Data

Read the git log since the last tag or release:

git log --oneline [last-tag]..HEAD

If no tags exist, bound the range explicitly — git log --oneline -n 100. Do not fall back to the full log: on an established repo that is thousands of lines for a changelog covering one release, and the oldest of them are the least relevant. If 100 commits does not reach far enough back, say so and ask for a st

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

Các commit bảo trì có xuất hiện trong ghi chú cho người chơi không?

Không. Chúng được phân loại riêng, nên công việc framework và bảo trì không nằm trong phiên bản cho người chơi.

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

Skill dừng lại ở đó, vì không có gì để tóm tắt.

Skill có cần git không?

Có. Skill đọc lịch sử commit và tag từ một kho git.

Chi tiết

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

Auto-generate a changelog from git commits and sprint data. Internal and player-facing versions.

repo: Donchitos/Claude-Code-Game-Studios

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8444
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ự