AGENT SKILL

git-release

Create consistent releases with changelogs, version bumps, and release notes from git history

License 许可
MIT
最近更新
2026-10-03
Stars
★ 0
Forks
0

01 前言 Front Matter

name
git-release
license
MIT
metadata
{ "audience": "maintainers", "workflow": "github" }
description
Create consistent releases with changelogs, version bumps, and release notes from git history
compatibility
opencode

03 SKILL.md 正文

What I do

  • Analyze merged PRs and commits since the last release tag
  • Draft release notes grouped by category (Features, Fixes, Breaking Changes, etc.)
  • Propose a semantic version bump based on commit types
  • Generate a copy-pasteable gh release create command
  • Optionally update CHANGELOG.md

When to use me

Use this skill when you are preparing a tagged release. Ask clarifying questions if the target versioning scheme is unclear.

Process

  1. Find the latest release tag: git describe --tags --abbrev=0
  2. List commits since that tag: git log <tag>..HEAD --oneline
  3. Categorize commits by type (feat, fix, breaking, chore, docs)
  4. Determine version bump:
    • BREAKING CHANGE or ! suffix -> Major
    • feat: -> Minor
    • fix: -> Patch
  5. Draft release notes in this format:
## [vX.Y.Z] - YYYY-MM-DD

### Breaking Changes
- Description (#PR)

### Features
- Description (#PR)

### Bug Fixes
- Description (#PR)

### Other
- Description (#PR)
  1. Provide the release command:
gh release create vX.Y.Z --title "vX.Y.Z" --notes-file release-notes.md

Conventions

04 同仓库更多 Skills