Pular para o conteúdo
Skillpedia
Documentação29 mil · #9578

changelog-generator

O que ela faz

Esta skill lê mensagens de commit no padrão Conventional Commits, decide se a próxima versão é maior, menor ou de correção, e escreve entradas de changelog em um formato padrão. Ela é para equipes que preparam lançamentos de software.

Quando usar

  • ✓Quando você vai fazer um lançamento e precisa do changelog e do número da versão.
  • ✓Quando você quer notas de versão geradas a partir do histórico de commits, em vez de escritas à mão.
  • ✓Quando você quer que as mensagens de commit sejam conferidas antes de um lançamento.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/changelog-generator/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero que você veja os commits desde o último lançamento, escolha o número da próxima versão e escreva o changelog.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente confere as mensagens de commit com o formato padrão, descobre o incremento de versão a partir das mudanças e gera as notas com scripts auxiliares. Você mantém o controle da redação final.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

Que formato de commit ela exige?

Conventional Commits, um jeito padrão de iniciar mensagens de commit com um tipo, como feat ou fix.

Ela escolhe o número da versão?

Sim. Ela calcula o incremento maior, menor ou de correção a partir do histórico de commits.

Funciona com monorepos?

Sim. Pode filtrar as mudanças por pacote para gerar changelogs por escopo.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
29 mil
Posição no ranking
#9578
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas