|
| 1 | +--- |
| 2 | +name: changelog-generator |
| 3 | +description: Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation. |
| 4 | +--- |
| 5 | + |
| 6 | +# Changelog Generator |
| 7 | + |
| 8 | +This skill transforms technical git commits into polished, user-friendly changelogs that your customers and users will actually understand and appreciate. |
| 9 | + |
| 10 | +## When to Use This Skill |
| 11 | + |
| 12 | +- Preparing release notes for a new version |
| 13 | +- Generating changelog between two tags/commits |
| 14 | +- Creating draft release notes from recent commits |
| 15 | + |
| 16 | +## Quick Start |
| 17 | + |
| 18 | +``` |
| 19 | +Create a changelog from commits since v0.96.1 |
| 20 | +``` |
| 21 | + |
| 22 | +``` |
| 23 | +Create release notes for version 0.97.0 starting from tag v0.96.1 |
| 24 | +``` |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | +## Workflow Overview |
| 29 | + |
| 30 | +``` |
| 31 | +┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ |
| 32 | +│ 1. Fetch │───▶│ 2. Filter │───▶│ 3. Categorize│───▶│ 4. Generate │ |
| 33 | +│ Commits │ │ & Dedupe │ │ by Module │ │ Descriptions │ |
| 34 | +└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ |
| 35 | + │ │ │ │ |
| 36 | + ▼ ▼ ▼ ▼ |
| 37 | + 📄 github-api 📄 commit- 📄 module- 📄 user-facing- |
| 38 | + reference.md filtering.md mapping.md description.md |
| 39 | +``` |
| 40 | + |
| 41 | +## Sub-Skills Reference |
| 42 | + |
| 43 | +This skill is composed of the following sub-skills. |
| 44 | + |
| 45 | +**⚠️ IMPORTANT: Do NOT read all sub-skills at once!** |
| 46 | +- Only read a sub-skill when you reach that step in the workflow |
| 47 | +- This saves context window and improves accuracy |
| 48 | +- Use `read_file` to load a sub-skill only when needed |
| 49 | + |
| 50 | +| Step | Sub-Skill | When to Read | |
| 51 | +|------|-----------|--------------| |
| 52 | +| Fetch data | [github-api-reference.md](sub-skills/github-api-reference.md) | When fetching commits/PRs | |
| 53 | +| Filter commits | [commit-filtering.md](sub-skills/commit-filtering.md) | When checking if commit should be skipped | |
| 54 | +| Categorize | [module-mapping.md](sub-skills/module-mapping.md) | When determining which module a PR belongs to | |
| 55 | +| Generate text | [user-facing-description.md](sub-skills/user-facing-description.md) | When writing the changelog entry text | |
| 56 | +| Attribution | [contributor-attribution.md](sub-skills/contributor-attribution.md) | When checking if author needs thanks | |
| 57 | +| Large releases | [progress-tracking.md](sub-skills/progress-tracking.md) | Only if processing 50+ commits | |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## Step-by-Step Summary |
| 62 | + |
| 63 | +### Step 1: Get Commit Range |
| 64 | +```powershell |
| 65 | +# Count commits between tags |
| 66 | +gh api repos/microsoft/PowerToys/compare/v0.96.0...v0.96.1 --jq '.commits | length' |
| 67 | +``` |
| 68 | +👉 Details: [github-api-reference.md](sub-skills/github-api-reference.md) |
| 69 | + |
| 70 | +### Step 2: Filter Commits |
| 71 | +- Skip commits already in start tag |
| 72 | +- Skip cherry-picks and backports |
| 73 | +- Deduplicate by PR number |
| 74 | + |
| 75 | +👉 Details: [commit-filtering.md](sub-skills/commit-filtering.md) |
| 76 | + |
| 77 | +### Step 3: For Each PR, Generate Entry |
| 78 | +1. Get PR title, body, files, labels |
| 79 | +2. Determine module from file paths or labels |
| 80 | +3. Check if user-facing (skip internal changes) |
| 81 | +4. Transform to user-friendly description |
| 82 | +5. Add contributor attribution if needed |
| 83 | + |
| 84 | +👉 Details: [user-facing-description.md](sub-skills/user-facing-description.md), [module-mapping.md](sub-skills/module-mapping.md), [contributor-attribution.md](sub-skills/contributor-attribution.md) |
| 85 | + |
| 86 | +### Step 4: Checkpoint (if 50+ commits) |
| 87 | +- Save progress after every 15-20 commits |
| 88 | +- Track processed PRs for deduplication |
| 89 | +- Enable resume from interruption |
| 90 | + |
| 91 | +👉 Details: [progress-tracking.md](sub-skills/progress-tracking.md) |
| 92 | + |
| 93 | +### Step 5: Format Output |
| 94 | +```markdown |
| 95 | +## ✨ What's new |
| 96 | +**Version X.XX (Month Year)** |
| 97 | + |
| 98 | +**✨ Highlights** |
| 99 | + - [Most impactful change 1] |
| 100 | + - [Most impactful change 2] |
| 101 | + |
| 102 | +### [Module Name - Alphabetical] |
| 103 | + - [Description]. Thanks [@contributor](https://github.com/contributor)! |
| 104 | + |
| 105 | +### Development |
| 106 | + - [Internal changes] |
| 107 | +``` |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +## Example Output |
| 112 | + |
| 113 | +```markdown |
| 114 | +## ✨ What's new |
| 115 | +**Version 0.96.1 (December 2025)** |
| 116 | + |
| 117 | +**✨ Highlights** |
| 118 | + - Advanced Paste now supports multiple AI providers. |
| 119 | + - PowerRename can extract photo metadata for renaming. |
| 120 | + |
| 121 | +### Advanced Paste |
| 122 | + - Added support for Azure OpenAI, Google Gemini, Mistral, and more. |
| 123 | + |
| 124 | +### Awake |
| 125 | + - The countdown timer now stays accurate over long periods. Thanks [@daverayment](https://github.com/daverayment)! |
| 126 | + |
| 127 | +### Development |
| 128 | + - Resolved build warnings in Command Palette projects. |
| 129 | +``` |
| 130 | + |
| 131 | +--- |
| 132 | + |
| 133 | +## Tips |
| 134 | + |
| 135 | +1. **Propose highlights** after all entries are generated |
| 136 | +2. **Check PR body** when title is unclear |
| 137 | +3. **Thank external contributors** - see [contributor-attribution.md](sub-skills/contributor-attribution.md) |
| 138 | +4. **Use progress tracking** for large releases - see [progress-tracking.md](sub-skills/progress-tracking.md) |
| 139 | +5. **Save output** to `release-change-note-draft.md` |
| 140 | + |
| 141 | +--- |
| 142 | + |
| 143 | +## Troubleshooting |
| 144 | + |
| 145 | +| Problem | Solution | |
| 146 | +|---------|----------| |
| 147 | +| Lost progress mid-generation | Read `release-notes-progress.md` to resume | |
| 148 | +| Duplicate entries | Check processed PR list, dedupe by PR number | |
| 149 | +| Commit already released | Use `git merge-base --is-ancestor` to verify | |
| 150 | +| API rate limited | Check `gh api rate_limit`, wait or use token | |
| 151 | + |
| 152 | +👉 See sub-skills for detailed troubleshooting. |
0 commit comments