/dd:docs:changelogfrom dd:docs
Generates or updates CHANGELOG.md by analyzing git diffs to categorize changes into Keep a Changelog sections. Language-agnostic, auto-detects version from tags or version files.
Ships in dd:docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate or update a CHANGELOG.md from git diffs. Language-agnostic. Commit messages are often vague; the diff is the source of truth — read the actual code changes.
Voice: follow ${CLAUDE_PLUGIN_ROOT}/references/voice.md — read it before writing.
Use the version the user gave. Otherwise auto-detect, picking the best default without blocking:
git tag --list --sort=-v:refname, take the latest semver tag (v?[0-9]+.[0-9]+.[0-9]+), strip any v. Bump the patch by default — that's the version you're writing for.package.json, Cargo.toml [package], go.mod, VERSION/version.txt, marketplace.json/plugin.json.0.1.0 for a first release) and let the user confirm or override. Continue diff analysis while waiting.Use the user's range if given (e.g. v1.0.0..HEAD). Otherwise use <latest-tag>..HEAD, or full history if there are no tags. If the diff is huge (500+ files), suggest narrowing before proceeding.
The core step. Run git diff <range> --stat (cheap) to size the change, then pick where to read:
general-purpose); pass it the range and ask for a compact categorized entry list, not the raw diff.Thresholds are a guideline — use judgment. Either way:
git diff <range> --no-color for the full diff (per-file if very large). git log --oneline <range> for intent.| Signal in diff | Category |
|---|---|
| New files/exports/functions/endpoints/CLI flags | Added |
| Fixes to incorrect behavior, error handling, null/bounds checks | Fixed |
| Renames, restructures, changed internals, dependency updates | Changed |
| Removed files/exports/public API/features | Removed |
@deprecated, deprecation warnings, sunset notices | Deprecated |
| Auth/crypto changes, input validation, CVE dependency bumps | Security |
### Added write "Rate limiting…", not "Add rate limiting…".If the file doesn't exist, create it with the standard Keep a Changelog + SemVer header.
If it exists: merge into an existing version section (dedupe by semantic similarity; when unsure keep both for review), or add a new section right after the header. Format:
## [1.2.0] - YYYY-MM-DD
### Added
- Entry description
Category order: Added, Changed, Deprecated, Removed, Fixed, Security. Only include non-empty categories. Use today's date.
If Step 1 detected the version from a file, that file still holds the old version — update every version source that already exists (same list as Step 1) so tooling and changelog agree. Don't create new ones. Skip if the file already matches.
Easy to forget, but half the value of a changelog. At the bottom of the file, add a reference link per version.
git remote get-url origin; convert to an HTTPS base URL (SSH git@host:org/repo.git → https://host/org/repo; HTTPS → strip .git). If it can't be parsed, skip and note it.git tag output: if tags use v (v1.0.0), prefix URLs with v; if bare, omit it. No tags / mixed → follow the version the user gave, else default to no prefix.{base}/compare/{prev}...{cur}, GitLab {base}/-/compare/{prev}...{cur}, Bitbucket {base}/compare/{cur}..{prev} (apply the prefix to each version).[1.2.0]: https://github.com/org/repo/compare/v1.1.0...v1.2.0
[1.0.0]: https://github.com/org/repo/releases/tag/v1.0.0 # oldest: link the tag
[Unreleased]: https://github.com/org/repo/compare/v1.2.0...HEAD
Short summary: version + date, entry count per category, breaking changes flagged, version files updated, links added (+ base URL), file path. End with: "Generated from code diffs — review before publishing."
What SKILL.md sets; muted values are Claude Code's defaults
mediumThree short reads, in order
Other plugins' skills for the same job
npx claudepluginhub napalmpapalam/skills --plugin docs2 skills in this plugin