← 返回 Skills 市场
alirezarezvani

changelog-generator

作者 Alireza Rezvani · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
386
总下载
0
收藏
18
当前安装
2
版本数
在 OpenClaw 中安装
/install changelog-generator
功能描述
Changelog Generator
使用说明 (SKILL.md)

Changelog Generator

Tier: POWERFUL
Category: Engineering
Domain: Release Management / Documentation

Overview

Use this skill to produce consistent, auditable release notes from Conventional Commits. It separates commit parsing, semantic bump logic, and changelog rendering so teams can automate releases without losing editorial control.

Core Capabilities

  • Parse commit messages using Conventional Commit rules
  • Detect semantic bump (major, minor, patch) from commit stream
  • Render Keep a Changelog sections (Added, Changed, Fixed, etc.)
  • Generate release entries from git ranges or provided commit input
  • Enforce commit format with a dedicated linter script
  • Support CI integration via machine-readable JSON output

When to Use

  • Before publishing a release tag
  • During CI to generate release notes automatically
  • During PR checks to block invalid commit message formats
  • In monorepos where package changelogs require scoped filtering
  • When converting raw git history into user-facing notes

Key Workflows

1. Generate Changelog Entry From Git

python3 scripts/generate_changelog.py \
  --from-tag v1.3.0 \
  --to-tag v1.4.0 \
  --next-version v1.4.0 \
  --format markdown

2. Generate Entry From stdin/File Input

git log v1.3.0..v1.4.0 --pretty=format:'%s' | \
  python3 scripts/generate_changelog.py --next-version v1.4.0 --format markdown

python3 scripts/generate_changelog.py --input commits.txt --next-version v1.4.0 --format json

3. Update CHANGELOG.md

python3 scripts/generate_changelog.py \
  --from-tag v1.3.0 \
  --to-tag HEAD \
  --next-version v1.4.0 \
  --write CHANGELOG.md

4. Lint Commits Before Merge

python3 scripts/commit_linter.py --from-ref origin/main --to-ref HEAD --strict --format text

Or file/stdin:

python3 scripts/commit_linter.py --input commits.txt --strict
cat commits.txt | python3 scripts/commit_linter.py --format json

Conventional Commit Rules

Supported types:

  • feat, fix, perf, refactor, docs, test, build, ci, chore
  • security, deprecated, remove

Breaking changes:

  • type(scope)!: summary
  • Footer/body includes BREAKING CHANGE:

SemVer mapping:

  • breaking -> major
  • non-breaking feat -> minor
  • all others -> patch

Script Interfaces

  • python3 scripts/generate_changelog.py --help
    • Reads commits from git or stdin/--input
    • Renders markdown or JSON
    • Optional in-place changelog prepend
  • python3 scripts/commit_linter.py --help
    • Validates commit format
    • Returns non-zero in --strict mode on violations

Common Pitfalls

  1. Mixing merge commit messages with release commit parsing
  2. Using vague commit summaries that cannot become release notes
  3. Failing to include migration guidance for breaking changes
  4. Treating docs/chore changes as user-facing features
  5. Overwriting historical changelog sections instead of prepending

Best Practices

  1. Keep commits small and intent-driven.
  2. Scope commit messages (feat(api): ...) in multi-package repos.
  3. Enforce linter checks in PR pipelines.
  4. Review generated markdown before publishing.
  5. Tag releases only after changelog generation succeeds.
  6. Keep an [Unreleased] section for manual curation when needed.

References

Release Governance

Use this release flow for predictability:

  1. Lint commit history for target release range.
  2. Generate changelog draft from commits.
  3. Manually adjust wording for customer clarity.
  4. Validate semver bump recommendation.
  5. Tag release only after changelog is approved.

Output Quality Checks

  • Each bullet is user-meaningful, not implementation noise.
  • Breaking changes include migration action.
  • Security fixes are isolated in Security section.
  • Sections with no entries are omitted.
  • Duplicate bullets across sections are removed.

CI Policy

  • Run commit_linter.py --strict on all PRs.
  • Block merge on invalid conventional commits.
  • Auto-generate draft release notes on tag push.
  • Require human approval before writing into CHANGELOG.md on main branch.

Monorepo Guidance

  • Prefer commit scopes aligned to package names.
  • Filter commit stream by scope for package-specific releases.
  • Keep infra-wide changes in root changelog.
  • Store package changelogs near package roots for ownership clarity.

Failure Handling

  • If no valid conventional commits found: fail early, do not generate misleading empty notes.
  • If git range invalid: surface explicit range in error output.
  • If write target missing: create safe changelog header scaffolding.
安全使用建议
This skill appears coherent and self-contained: it only parses commit messages, runs git locally, and reads/writes changelog files. Before using in CI or automation: (1) review the scripts to confirm the commit regex and scope rules match your repository conventions, (2) vet or pin the code if you plan to run it in production CI to avoid unexpected changes, (3) when using --write ensure you have backups or run in a branch/PR first (the script prepends to the target file), and (4) run the tools in a repository checkout you control — the scripts do not exfiltrate data or call network endpoints, but they do read your git history and write files locally.
功能分析
Type: OpenClaw Skill Name: changelog-generator Version: 1.0.0 The skill bundle is a legitimate utility for generating changelogs and linting commit messages according to the Conventional Commits specification. The Python scripts (scripts/commit_linter.py and scripts/generate_changelog.py) are well-implemented, using safe subprocess calls to interact with Git and standard file I/O for documentation updates. No evidence of data exfiltration, malicious execution, or prompt injection was found; the code logic and instructions in SKILL.md are entirely consistent with the stated purpose of release management.
能力评估
Purpose & Capability
Name/description (changelog generation from Conventional Commits) aligns with required files and behavior. The included Python scripts implement commit parsing, semver bump detection, rendering to markdown/JSON, optional file prepend, and a linter — all expected for this purpose.
Instruction Scope
SKILL.md instructs the agent to run the included scripts, supply commit input via stdin/file/git ranges, and optionally write to CHANGELOG.md. The instructions reference only git, local files, and the supplied scripts; they do not request unrelated system data, secrets, or external endpoints.
Install Mechanism
No install spec; this is instruction- and script-based and relies only on Python and git being available. Nothing is downloaded or extracted from external URLs.
Credentials
The skill declares no environment variables, credentials, or config paths. The scripts only use stdin/stdout, local files, and run git via subprocess; there are no requests for unrelated secrets or external service tokens.
Persistence & Privilege
The skill is not always-enabled and does not request persistent system-wide privileges. It can modify a changelog file only when invoked with the --write flag and operates on the path provided by the caller.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install changelog-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /changelog-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish
v2.1.1
v2.1.1: optimization, reference splits
元数据
Slug changelog-generator
版本 1.0.0
许可证 MIT-0
累计安装 19
当前安装数 18
历史版本数 2
常见问题

changelog-generator 是什么?

Changelog Generator. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 386 次。

如何安装 changelog-generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install changelog-generator」即可一键安装,无需额外配置。

changelog-generator 是免费的吗?

是的,changelog-generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

changelog-generator 支持哪些平台?

changelog-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 changelog-generator?

由 Alireza Rezvani(@alirezarezvani)开发并维护,当前版本 v1.0.0。

💬 留言讨论