Changelog generate

From weisser-dev/awesome-opencode · View interactive version

Changelog generate is an AI agent skill from the GitHub repository weisser-dev/awesome-opencode. Generate CHANGELOG.md from git history in Keep a Changelog format with Added, Changed, Deprecated, Removed, Fixed, and Security categories

How to use this skill

Skill file

What I do

When to use me

Use this skill when you need to:

Process

  1. Find the baseline: Identify the last release tag

```bash

git describe --tags --abbrev=0

```

  1. Collect commits: List all commits since the baseline

```bash

git log v1.2.3..HEAD --pretty=format:"%H %s" --reverse

```

  1. Collect merged PRs (if using GitHub):

```bash

gh pr list --state merged --search "merged:>=2024-01-01" --json number,title,labels

```

  1. Categorize: Map each commit/PR to a changelog section
  1. Format: Write entries following Keep a Changelog
  1. Determine version: Based on the categories present
  1. Update file: Prepend the new release section to CHANGELOG.md

Output Format

Follow Keep a Changelog format:

# 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]

## [1.3.0] - 2024-06-15

### Added
- User export functionality for CSV and JSON formats (#142)
- Rate limiting middleware with configurable thresholds (#138)

### Changed
- Upgraded database driver from v2 to v3 for connection pooling (#145)

### Fixed
- Race condition in concurrent session handling (#140)
- Incorrect timezone conversion for UTC-offset dates (#137)

### Security
- Updated `xml-parser` to 2.1.0 to fix CVE-2024-XXXXX (#143)

## [1.2.3] - 2024-05-01
...

Commit Message Mapping

| Prefix | Category | Example |

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

| feat: | Added | feat: add CSV export |

| fix: | Fixed | fix: correct timezone handling |

| refactor: | Changed | refactor: simplify auth flow |

| deprecate: | Deprecated | deprecate: old v1 endpoint |

| remove: | Removed | remove: legacy XML support |

| security: | Security | security: patch XSS in templates |

| perf: | Changed | perf: optimize query execution |

| BREAKING CHANGE | Changed (noted) | flagged with warning |

Rules

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.