Changelog
Refresh the current branch's pull request description — generate an emoji-sectioned changelog from the diff and write it into the open PR via the GitHub CLI. If no PR is open, offer to create one with the pr skill. Use when the user asks to update the PR description, write or refresh the changelog, or "run changelog". Invoke with /changelog.From its SKILL.md
npx -y skills add Darmikon/skills --skill changelogAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.6 KB, as published. Nobody here has run it
PR Changelog Generator
Generate professional, emoji-enhanced changelogs from git diffs for pull requests.
Operating Mode
Inputs: the base branch (auto-detect if unknown). Complexity is auto-detected from the diff.
Definition of done:
- A PR changelog in markdown, printed to the user — no files created.
- Only sections with real changes are included.
- Summary is 1–2 sentences on user impact.
- Bullets start with an imperative verb and cover WHAT + WHY.
- Test Plan is actionable (commands and/or manual checks).
Non-goals:
- Don't claim tests were run unless you actually ran them.
- Don't include secrets, tokens, or private URLs.
- Don't list every file — group related changes by purpose.
Workflow
Step 1: Identify the base branch
git fetch --all --prune
git symbolic-ref --short refs/remotes/origin/HEAD # e.g. origin/main
If you already know the base (main, master, develop), use it. For a fork (upstream + origin), check git remote -v.
Step 2: Analyze the diff
git diff --name-status origin/<base>...HEAD # what changed
git diff --stat origin/<base>...HEAD # size overview
git log origin/<base>..HEAD --pretty=format:"%s" --reverse # commit subjects
# git diff origin/<base>...HEAD # full diff, if unclear
Focus on: user-visible behavior vs refactors, file types (UI / tests / docs / config), and dependency changes.
Step 3: Classify complexity
- Simple — bug fixes, small UI tweaks, copy changes, single dep bumps, minor refactors → Format A.
- Technical — new APIs/services, infra/CI, integrations, schema changes, new commands, architecture → Format B.
Rule of thumb: if a developer needs code examples or commands to use the change, it's Technical.
Step 4: Categorize into emoji sections
Include only the sections that have real changes:
| Emoji | Section | Matches |
|---|---|---|
| 🚀 | Features | user-visible new behavior |
| 🔧 | Fixes | bug fixes |
| ♻️ | Refactoring | code movement/renames, no behavior change |
| 🎨 | UI/UX | *.css, *.scss, *.stories.*, components, design tokens |
| 🧪 | Testing | *.test.*, *.spec.*, __tests__/ |
| 📚 | Documentation | README*, docs/, *.md |
| ⚙️ | Config / CI | .github/, *.config.*, tsconfig*, build configs |
| 📦 | Dependencies | package.json, lockfiles |
| ⚡️ | Performance | speed / efficiency improvements |
| 🔒 | Security | vulnerability fixes |
| 🚨 | Breaking | breaking changes (call out in Migration Notes) |
Step 5: Generate using the format from Step 3.
Format A — Simple PR
## 📋 Summary
[1–2 sentences: what this PR does and its user impact]
## ✨ Changes
### 🔧 Fixes
- [bug fixed]
### ♻️ Refactoring
- [internal improvement]
## 🧪 Test Plan
- [ ] Manual: [action to verify]
- [ ] Run: `npm test`
Format B — Technical PR
Same emoji sections as Format A, plus room for commands, usage, and migration. Template (include only what applies):
# 🚀 [Title of the change]
## Summary
[2–3 sentences: what it does and why it matters]
## ✨ What's New
### [Feature / component]
[What it adds, with a short usage example when it helps]
## 🔄 Changes
**Added** — `path/new.ts` — purpose
**Modified** — `path/file.ts` — what changed and why
**Removed** — `path/old.ts` — why (e.g. replaced by X)
## 🧪 Test Plan
- [ ] Run `command` — expected outcome
- [ ] Verify [scenario]
## 🚨 Migration Notes
[Only if breaking: what changed, does the old way still work, migration steps]
For "a short usage example," show a real, typed snippet rather than prose — e.g.:
import { NewClient } from "@pkg/module";
const client = new NewClient({ option: "value" });
const result = await client.method({ param: "value" });
Keep it concrete: real commands over descriptions, a comparison table when there are multiple options or environments, and group by purpose rather than by file.
Deliver: write it into the PR
The changelog is the PR description, not a chat artifact — put it where it belongs.
gh auth status >/dev/null 2>&1 || echo "STOP: GitHub CLI not authenticated — run 'gh auth login'."
CURRENT=$(git rev-parse --abbrev-ref HEAD)
PR=$(gh pr view --json number,url,body 2>/dev/null)
-
An open PR exists → update its description. Regenerate freely, but carry over anything a person added to the old body that isn't the mechanical change list — background/motivation, linked issues (
Closes #123), migration notes, screenshots or demo links, reviewer checklists. Then overwrite:gh pr edit "$(gh pr view --json number -q .number)" --body "<the changelog, with the useful old parts merged back in>"Report the PR URL — don't paste the whole body back into chat.
-
No open PR for this branch → don't dump the changelog into the void. Tell the user there's no PR yet and offer to run the
prskill (/pr), which opens one with this changelog as its body. Only if they decline (or there's no GitHub remote) fall back to printing the changelog to chat so the work isn't lost.
Never add AI attribution to the PR body — the description is the user's.