{"data":{"slug":"github-donchitos-claude-code-game-studios-claude-skills-write-changelog-32be41c6fdfb","title":"Generate Internal Changelog from Git History","summary":"Creates an internal changelog by analyzing git commits, sprint data, and design documents. Use for tracking development progress within a team.","url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-write-changelog-32be41c6fdfb","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-donchitos-claude-code-game-studios-claude-skills-write-changelog-32be41c6fdfb","markdown_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-write-changelog-32be41c6fdfb.md","download_url":"https:\/\/skillshunter.net\/skills\/github-donchitos-claude-code-game-studios-claude-skills-write-changelog-32be41c6fdfb\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before generating the changelog, verify that the repository is initialized by running `git rev-parse --is-inside-work-tree`. If no git history is found, commit the work first or supply the change list directly.","instructions":"---\nname: write-changelog\ndescription: \"Writes a changelog from git commits and sprint data. Use for an internal or player-facing one.\"\nargument-hint: \"[version|sprint-number]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, Edit, Bash(bash \"*\/.claude\/skills\/write-changelog\/..\/..\/hooks\/yaml-helper.sh\" resolve_config *), Bash(git log *), Bash(git tag --list*), Bash(git rev-parse *)\nmodel: sonnet\n---\n\n!`bash \"${CLAUDE_SKILL_DIR}\/..\/..\/hooks\/yaml-helper.sh\" resolve_config --keys automation`\n\n**Automation mode**: Resolve `modes.automation` (`project.local.yaml` \u2192\n`project.yaml` \u2192 default `collaborative`). Every question and\nevery file write follows `.claude\/docs\/automation-modes.md`\n(collaborative asks always \u00b7 guided major-only \u00b7 autonomous logs and proceeds;\n`automation_always_ask` categories always prompt).\n\n# Changelog\n\n## Recent History\n\nRecent commits:\n\n!`git log --oneline -30 2>\/dev\/null || true`\n\nRecent tags (newest first):\n\n!`git tag --list --sort=-v:refname 2>\/dev\/null | head -5`\n\n## Provenance check \u2014 before trusting the history above\n\n**The commits above may not belong to this game.** This skill's history blocks are\nauto-resolved *before* the body runs, so the read has already happened \u2014 what this\ncheck governs is whether that output is usable, not whether it is fetched.\n\n1. Read the injected commit subjects above. **If there are none \u2014 the log is\n   empty or git is unavailable \u2014 skip this check**: there is nothing to\n   classify, and Phase 1's no-history branch is the right stop.\n2. **Classify each one** as **Game** (mechanics, content, balance, art, audio,\n   UI, or a bug in those), **Framework \/ maintenance** (subjects naming skills,\n   hooks, agents, the test plan, CI, or the framework's own docs), or **Unclear**\n   \u2014 and treat Unclear as Framework.\n3. Decide from the counts:\n   - **At least one Game commit** \u2192 proceed using only those, and state how many\n     of how many you used.\n   - **Zero Game commits** \u2192 stop, using the message below.\n\n> **Filter per commit; a repo containing maintenance work is not a wrong repo.**\n> Every project on this framework accumulates commits touching hooks, CI and\n> skills \u2014 the game repo *is* the framework repo, so stopping on them would fire\n> on virtually every real project. The harm is those commits becoming release copy,\n> and excluding them prevents that precisely.\n>\n> This rule is kept identical to `\/patch-notes`' on purpose \u2014 the two read the\n> same history for different audiences, and they must not disagree about whose\n> history it is. Change both together.\n\nThe genuine wrong-history signal is different: Game commits naming a product that\n`design\/` and the code root (`src\/`, `Assets\/` or `Source\/`) never mention. If you\nsee that, stop.\n\nIf **no** commit in the range is this game's, say so and stop:\n\n> \"The git history in this repo does not appear to belong to [game]: 0 of the [N]\n> recent commits are Game commits. The recent\n> commits describe [what they actually describe]. I cannot generate a changelog\n> from it \u2014 point me at the right history, or supply the change list directly.\"\n\nVerdict: **BLOCKED** \u2014 stop here without generating a changelog.\n\n**Why this is a hard stop, not a warning.** Framework-internal commits rendered\nas player copy read as real changes: a session-hook timeout becomes *\"Fixed an\nissue where progress from your last session could be lost on launch\"* in a game\nwith **no save system**. That copy is fluent, plausible, and entirely false. A\nreader cannot tell the difference; only this check can.\n\n**Do not treat the preamble's existence as evidence.** Injected output means the\ncommand ran, never that its subject is your game.\n\n---\n\nBoth blocks are resolved before this skill runs. Use them as the starting point\nfor Phase 2 rather than re-running the same commands.\n\n---\n\n## Phase 1: Parse Arguments\n\nRead 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.\n\nVerify 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.\n\n**If there is no history to read** \u2014 not a git repository, or no commits yet:\n\n> \"No git history found. A changelog is built from commits \u2014 commit the work\n> first, or supply the change list directly.\"\n\nVerdict: **BLOCKED** \u2014 stop here without generating a changelog.\n\n---\n\n## Phase 2: Gather Change Data\n\nRead the git log since the last tag or release:\n\n```\ngit log --oneline [last-tag]..HEAD\n```\n\nIf no tags exist, bound the range explicitly \u2014 `git log --oneline -n 100`. Do not\nfall back to the full log: on an established repo that is thousands of lines for\na changelog covering one release, and the oldest of them are the least relevant.\nIf 100 commits does not reach far enough back, say so and ask for a start ref\nrather than widening blindly.\n\nRead sprint reports from `production\/sprints\/` for the relevant period to understand planned work and context behind changes.\n\nRead completed design documents from `design\/gdd\/` for any new features implemented during this period. Read them by section: find the headings you need with the Grep tool (pattern `^#`, content mode) and Read those ranges with offset and limit.\n\n---\n\n## Phase 3: Categorize Changes\n\nCategorize every change into one of these categories:\n\n- **New Features**: Entirely new gameplay systems, modes, or content\n- **Improvements**: Enhancements to existing features, UX improvements, performance gains\n- **Bug Fixes**: Corrections to broken behavior\n- **Balance Changes**: Tuning of gameplay values, difficulty, economy\n- **Technical Debt \/ Refactoring**: Refactors and cleanup of the game's code that change nothing the player sees \u2014 a commit that says it refactors, cleans up or tidies, and names no fix, feature or tuning. Internal changelog only; never in the player-facing one\n- **Known Issues**: Issues the team is aware of but have not yet resolved\n- **Miscellaneous**: Changes that do not fit the above categories, or commits whose messages are too vague to classify confidently\n\nFor each commit, check whether the message contains a task ID or story reference\n(e.g. `[STORY-123]`, `TR-`, `#NNN`, or similar). Count commits that lack any task reference\nand include this count in the Phase 4 Metrics section as: `Commits without task reference: [N]`.\n\n---\n\n## Phase 4: Generate Internal Changelog\n\n```markdown\n# Internal Changelog: [Version]\nDate: [Date]\nSprint(s): [Sprint numbers covered]\nCommits: [Count] ([first-hash]..[last-hash])\n\n## New Features\n- [Feature Name] -- [Technical description, affected systems]\n  - Commits: [hash1], [hash2]\n  - Owner: [who implemented it]\n  - Design doc: [link if applicable]\n\n## Improvements\n- [Improvement] -- [What changed technically and why]\n  - Commits: [hashes]\n  - Owner: [who]\n\n## Bug Fixes\n- [BUG-ID] [Description of bug and root cause]\n  - Fix: [What was changed]\n  - Commits: [hashes]\n  - Owner: [who]\n\n## Balance Changes\n- [What was tuned] -- [Old value -> New value] -- [Design intent]\n  - Owner: [who]\n\n## Technical Debt \/ Refactoring\n- [What was cleaned up and why]\n  - Commits: [hashes]\n\n## Miscellaneous\n- [Change that didn't fit other categories, or vague commit message]\n  - Commits: [hashes]\n\n## Known Issues\n- [Issue description] -- [Severity] -- [ETA for fix if known]\n\n## Metrics\n- Total commits: [N]\n- Files changed: [N]\n- Lines added: [N]\n- Lines removed: [N]\n- Commits without task reference: [N]\n```\n\n---\n\n## Phase 5: Generate Player-Facing Changelog\n\n```markdown\n# What is New in [Version]\n\n## New Features\n- **[Feature Name]**: [Player-friendly description of what they can now do\n  and why it is exciting. Focus on the experience, not the implementation.]\n\n## Improvements\n- **[What improved]**: [How this makes the game better for the player.\n  Be specific but avoid jargon.]\n\n## Bug Fixes\n- Fixed an issue where [describe what the player experienced, not what was\n  wrong in the code]\n- Fixed [player-visible symptom]\n\n## Balance Changes\n- [What changed in player-understandable terms and the design intent.\n  Example: \"Healing potions now restore 50 HP (up from 30) -- we felt\n  players needed more recovery options in late-game encounters.\"]\n\n## Known Issues\n- We are aware of [issue description in player terms] and are working on a\n  fix. [Workaround if one exists.]\n\n---\nThank you for playing! Your feedback helps us make the game better.\nReport issues at [link].\n```\n\n---\n\n## Phase 6: Output\n\nOutput both changelogs to the user. The internal changelog is the primary working document. The player-facing changelog is ready for community posting after review.\n\n---\n\n## Phase 7: Offer File Write\n\nAfter presenting the changelogs, ask the user:\n\n> \"May I write this changelog to `docs\/CHANGELOG.md`?\n> [A] Yes, append this entry (recommended if the file already exists)\n> [B] Yes, overwrite the file entirely\n> [C] No \u2014 I'll copy it manually\"\n\n- Check whether `docs\/CHANGELOG.md` exists before asking. If it does, default the\n  recommendation to **[A] append**.\n- If the user selects [A]: append the new internal changelog entry to the top of\n  the existing file (newest entries first).\n- If the user selects [B]: overwrite the file with the new changelog.\n- If the user selects [C]: stop here without writing.\n\nAfter a successful write: Verdict: **CHANGELOG WRITTEN** \u2014 changelog saved to `docs\/CHANGELOG.md`.\nIf the user declines: Verdict: **COMPLETE** \u2014 changelog generated.\n\n---\n\n## Phase 7: Next Steps\n\n- Use `\/patch-notes [version]` to generate a styled, saved version for public release.\n- Use `\/release-checklist` before publishing the changelog externally.\n\n### Guidelines\n\n- Never expose internal code references, file paths, or developer names in the player-facing changelog\n- Group related changes together rather than listing individual commits\n- If a commit message is unclear, check the associated files and sprint data for context\n- Balance changes should always include the design reasoning, not just the numbers\n- Known issues should be honest \u2014 players appreciate transparency\n- If the git history is messy (merge commits, reverts, fixup commits), clean up the narrative rather than listing every commit literally\n","use_cases":["Track development progress for a game release","Document changes for internal team review","Generate a changelog for a sprint cycle"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Donchitos\/Claude-Code-Game-Studios\/blob\/abc0de79d6ceb0b5d7aa693945849b3937afbe6a\/.claude\/skills\/write-changelog\/SKILL.md","source_commit":"abc0de79d6ceb0b5d7aa693945849b3937afbe6a","license":null,"version":null,"listing_approved_at":"2026-11-18","created_at":"2026-11-17T21:17:25.000000Z","updated_at":"2026-11-18T18:54:36.000000Z","seo_title":"Generate Internal Changelog from Git History","seo_description":"Automatically create an internal changelog by analyzing git commits, sprint data, and design documents for development tracking.","seo_keywords":["generate internal changelog","track development progress","document git changes","sprint cycle report","game development tracking"]}}