본문으로 건너뛰기
Skillpedia
문서화29k · #9578

changelog-generator

하는 일

Conventional Commits 메시지를 읽고 다음 버전이 메이저, 마이너, 패치 중 무엇인지 정하며, 표준 형식으로 변경 기록을 작성합니다. 소프트웨어 릴리스를 준비하는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓릴리스를 자르면서 변경 기록과 버전 번호가 필요할 때.
  • ✓손으로 쓰는 대신 커밋 이력으로 릴리스 노트를 만들고 싶을 때.
  • ✓릴리스 전에 커밋 메시지를 점검하고 싶을 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/changelog-generator/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/changelog-generator/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“마지막 릴리스 이후의 커밋을 살펴보고 다음 버전 번호를 고른 뒤 변경 기록을 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 커밋 메시지를 표준 형식과 대조하고, 변경 사항에서 버전 상승 폭을 계산하며, 도우미 스크립트로 노트를 생성합니다. 최종 문구는 사용자가 결정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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. Compute the Next Version From Commits

When the user has not decided the next version, derive it instead of guessing:

git log v1.3.0..HEAD --oneline | \
  python3 scripts/version_bumper.py --current-version 1.3.0 --output-format json

Output JSON contains recommended_version, bump_type (major/minor/patch/none), and with --include-commands the exact git tag commands. Feed recommended_version into generate_changelog.py --next-version. Pre-releases: add --prerelease alpha|beta|rc. Input must be real git log --oneline output (hex hashes); a sample lives at assets/sample_git_log.txt.

5. 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.

Hotfix Severity & SLAs

When a release goes wrong, classify before acting (full procedures in references/hotfix-procedures.md):

Severity Definition SLA Approval
P0 — Critical Outage, data loss, exploited vulnerability Fix deployed ≤ 2h; emergency deploy bypasses normal gates Engineering Lead + On-call Manager
P1 — High Major feature broken, significant user impact Fix deployed ≤ 24h; expedited review Engineering Lead + Product Manager
P2 — Med
자주 묻는 질문

어떤 커밋 형식이 필요한가요?

Conventional Commits, 즉 feat나 fix 같은 유형으로 커밋 메시지를 시작하는 표준 방식이 필요합니다.

버전 번호도 정하나요?

네. 커밋 이력에서 메이저, 마이너, 패치 중 어떤 상승인지 계산합니다.

모노레포에서도 쓸 수 있나요?

네. 패키지별로 변경을 걸러 범위가 정해진 변경 기록을 만들 수 있습니다.

상세 정보

작성자의 원본 설명

Use when cutting a release, writing CHANGELOG.md or deciding the next version from commits, before writing notes by hand. Lints commits with commit_linter.py, picks the semver bump with version_bumper.py and renders notes with generate_changelog.py.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9578
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬