Changelog

From tinh2/skills-hub-registry · View interactive version

Changelog is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Generate or update CHANGELOG.md from git history. Parses conventional commits, groups by version tags, categorizes into Added/Fixed/Changed/Breaking sections using keep-a-changelog format, and creates comparison links. Use when you need to create a changelog, update release notes, document version h

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Parse the git history and

produce a well-structured CHANGELOG.md.

INPUT:

$ARGUMENTS

Accepted arguments:

============================================================

PHASE 1: GIT HISTORY EXTRACTION

============================================================

Step 1.1 -- Identify Version Boundaries

Run:

For each tag, record:

If no tags exist, group commits by time periods (monthly or weekly).

Step 1.2 -- Parse Commits

For each commit between version boundaries, parse the message:

| Prefix | Category |

|--------|----------|

| feat: feat(scope): | Features |

| fix: fix(scope): | Bug Fixes |

| docs: docs(scope): | Documentation |

| refactor: refactor(scope): | Refactoring |

| perf: perf(scope): | Performance |

| test: test(scope): | Tests |

| chore: chore(scope): | Chores |

| ci: ci(scope): | CI/CD |

| style: style(scope): | Style |

| build: build(scope): | Build |

| revert: | Reverts |

| BREAKING CHANGE: in body | Breaking Changes |

| ! after type (e.g., feat!:) | Breaking Changes |

For non-conventional commits (no prefix), classify by content:

Step 1.3 -- Extract Metadata

For each commit, also extract:

============================================================

PHASE 2: CHANGELOG GENERATION

============================================================

Step 2.1 -- Read Existing Changelog

If CHANGELOG.md exists:

Step 2.2 -- Format Entries

Use keep-a-changelog format (https://keepachangelog.com):

# 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.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [X.Y.Z] - YYYY-MM-DD

### Breaking Changes
- Description of breaking change ([#PR](url))

### Added
- New feature description ([#PR](url))

### Fixed
- Bug fix description ([#PR](url))

### Changed
- Change description ([#PR](url))

### Deprecated
- Deprecation notice ([#PR](url))

### Removed
- Removal description ([#PR](url))

### Security
- Security fix description ([#PR](url))

Category mapping from conventional commits to changelog sections:

Step 2.3 -- Group and Deduplicate

mention only the feature (the fix was part of getting it right)

(unless they are the only changes in a version)

Step 2.4 -- Link Generation

If the project has a git remote, generate comparison links:

[Unreleased]: https://github.com/owner/repo/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/owner/repo/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/owner/repo/releases/tag/v1.1.0

Detect the remote URL from git remote get-url origin.

============================================================

PHASE 3: WRITE AND VERIFY

============================================================

Step 3.1 -- Write CHANGELOG.md

Step 3.2 -- Verify

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing documentation, validate completeness:

  1. Verify all required sections are present and non-empty.
  2. Verify internal cross-references and links resolve correctly.
  3. Verify no placeholder text remains ("{TODO}", "[TBD]", "...", "etc.").
  4. Verify code examples are syntactically valid.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

Changelog Generated

Version Summary

| Version | Date | Added | Fixed | Changed | Breaking |

|---------|------|-------|-------|---------|----------|

| Unreleased | -- | N | N | N | N |

| vX.Y.Z | YYYY-MM-DD | N | N | N | N |

| ... | ... | ... | ... | ... | ... |

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /changelog — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

the project has no user-facing changes at all.

NEXT STEPS:

After generating the changelog:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.