界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

skill-041

skill-041

【开发与工程】Edit changelog using git commit history via script.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: skill-041 description: "Edit changelog using git commit history via script."

Edit changelog

GOAL: generate changelog entries from git history and update CHANGELOG.md.

WHEN: the agent needs to update the changelog with recent commits.

NOTE: requires CHANGELOG.md and .last-aggregated-commit (auto-initialized).

Efficiency directives

  • Optimize all operations for token and context efficiency
  • Batch operations on file groups, avoid individual file processing
  • Target only relevant files
  • Reduce token usage

Workflow

  • Run scripts/edit-changelog.sh
  • Capture status from first line of output
  • Handle the status:
    • If ERROR: Stop and report to user
    • If WARN: Report no changes needed
    • If SUCCESS: Report success with entry count
  • DONE

Output

Files modified:

  • CHANGELOG.md - Unreleased section updated
  • .last-aggregated-commit - Updated to HEAD

Status communication:

First line of output indicates status:

  • SUCCESS: [message] - Operation completed with changes
  • WARN: [message] - Operation completed but no changes needed
  • ERROR: [message] - Operation failed

References

The following reference files serve as strict guidelines:

  • references/keep-a-changelog-spec.md: Format specification
  • references/changelog-templates.md: Template variations
  • references/changelog-structure.md: Structure documentation
  • references/aggregation-patterns.md: Aggregation patterns
我的收藏