AgentSkillsCN

changelog

设置 git-cliff,实现自动化变更日志生成。在新项目中使用 /changelog init 初始化。

SKILL.md
--- frontmatter
name: changelog
description: Set up git-cliff for automated changelog generation. Use `/changelog init` to initialize in a new project.
argument-hint: init
allowed-tools: Bash, Read, Write, Edit
user-invocable: true

Changelog Skill

Manage automated changelog generation using git-cliff for ZeroAE projects.

Commands

CommandDescription
/changelog initSet up git-cliff in a new project

init

Set up git-cliff configuration and GitHub Actions workflow.

Process

  1. Check Current State
bash
ls cliff.toml 2>/dev/null
ls .github/workflows/release.yml 2>/dev/null
  1. Create cliff.toml

If missing, create cliff.toml in project root using cliff-config.toml.

  1. Update Release Workflow

If .github/workflows/release.yml exists, add the changelog generation step from workflow-snippet.yml.

If no release workflow exists, inform the user they need to create one first.

  1. Verify Setup
bash
git cliff --unreleased

Output

Report what was created/updated and any manual steps needed.

Reference Files