Skip to content
Development
Command

/add-changelog

Generate and maintain project changelog with Keep a Changelog format

From plugin
claude-code-templates
30k200 skills200 agents200 commands2 MCP
Install
$ npx -y skills add davila7/claude-code-templates --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/add-changelog

Context preview

What this command does when you run it.

Generate and maintain project changelog with Keep a Changelog format

Command definition

add-changelog.md
allowed-tools: Read, Edit, Write, Bash
argument-hint: [version] | [entry-type] [description]
description: Generate and maintain project changelog with Keep a Changelog format

Add Changelog Entry

Generate and maintain project changelog: $ARGUMENTS

Current State

  • Existing changelog: @CHANGELOG.md (if exists)
  • Recent commits: !`git log --oneline -10`
  • Current version: !`git describe --tags --abbrev=0 2>/dev/null || echo "No tags found"`
  • Package version: @package.json (if exists)

Task

1. **Changelog Format (Keep a Changelog)**

   # Changelog
   
   All notable changes to this project will be documented in this file.
   
   The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
   and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
   
   ## [Unreleased]
   ### Added
   - New features
   
   ### Changed
   - Changes in existing functionality
   
   ### Deprecated
   - Soon-to-be removed features
   
   ### Removed
   - Removed features
   
   ### Fixed
   - Bug fixes
   
   ### Security
   - Security improvements

2. **Version Entries**

   ## [1.2.3] - 2024-01-15
   ### Added
   - User authentication system
   - Dark mode toggle
   - Export functionality for reports
   
   ### Fixed
   - Memory leak in background tasks
   - Timezone handling issues

3. **Automation Tools**

   # Generate changelog from git commits
   npm install -D conventional-changelog-cli
   npx conventional-changelog -p angular -i CHANGELOG.md -s
   
   # Auto-changelog
   npm install -D auto-changelog
   npx auto-changelog

4. **Commit Convention**

   # Conventional commits for auto-generation
   feat: add user authentication
   fix: resolve memory leak in tasks
   docs: update API documentation
   style: format code with prettier
   refactor: reorganize user service
   test: add unit tests for auth
   chore: update dependencies

5. **Integration with Releases**

  • Update changelog before each release
  • Include in release notes
  • Link to GitHub releases
  • Tag versions consistently

Remember to keep entries clear, categorized, and focused on user-facing changes.

Read more
Ships withclaude-code-templates

Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.

Get the whole plugin, auto-invoked
Stats
30,155
Stars
18
Views
3,377
Forks
Active
Maintenance
Python
Language
MIT
License
29m ago
Last commit
1y ago
Created

Repo: davila7/claude-code-templates