changelog-generator — скилл для Claude Code: установка
Собирает changelog из Conventional Commits, предлагает SemVer-бамп и проверяет формат коммитов. Подходит для релизов, CI и хотфиксов.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering-advanced-skills@claude-code-skillsЧто делает changelog-generator
Скилл читает историю Git или переданные коммиты, разбирает сообщения по правилам Conventional Commits и определяет тип изменения версии: major, minor, patch или none. Затем он собирает запись в формате Keep a Changelog, убирает пустые разделы и может вывести результат в Markdown или JSON.
В комплекте есть scripts/generate_changelog.py для сборки записи и обновления CHANGELOG.md, scripts/version_bumper.py для расчёта следующей версии и scripts/commit_linter.py для проверки коммитов. Скрипты принимают диапазон тегов, файл или stdin; лinter в режиме --strict возвращает ошибку при нарушении формата. Для работы нужны Python 3 и входные данные из Git или файл с коммитами.
Ставьте скилл, если хотите связать Conventional Commits с выпуском релизных заметок и проверками в CI. Для полностью ручного changelog он избыточен.
Какие задачи решает
- собрать CHANGELOG.md из диапазона Git-тегов
- определить major, minor или patch-бамп
- проверить сообщения коммитов перед merge
- сформировать JSON для CI
- подготовить запись для хотфикса
Примеры запросов агенту
- Сгенерируй changelog для диапазона `v1.3.0..v1.4.0` и запиши его в Markdown.
- Определи следующую версию по выводу `git log v1.3.0..HEAD --oneline`.
- Проверь коммиты между `origin/main` и `HEAD` в строгом режиме.
Как установить changelog-generator
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install engineering-advanced-skills@claude-code-skillsКоманда ставит плагин engineering-advanced-skills целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill changelog-generator -a claude-code3Вручную: положить файлы
~/.claude/skills/changelog-generator/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/changelog-generator/
Вручную: положить файлы
.agents/skills/changelog-generator/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/changelog-generator/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills changelog-generator2Вручную: положить файлы
.github/skills/changelog-generator/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering/skills/changelog-generatorВручную: положить файлы
.devin/skills/changelog-generator/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора349
Весь набор →Похожие
Вопросы о changelog-generator
Как установить changelog-generator в Claude Code?
В Claude Code выполните /plugin marketplace add alirezarezvani/claude-skills, затем /plugin install engineering-advanced-skills@claude-code-skills. Также доступна команда npx skills add alirezarezvani/claude-skills --skill changelog-generator -a claude-code.
Что делает changelog-generator?
Он разбирает Conventional Commits, определяет SemVer-бамп и создаёт релизную запись в Markdown или JSON. Результат можно добавить в CHANGELOG.md.
Что нужно для работы changelog-generator?
Нужен Python 3 и реальный вывод git log --oneline либо файл с сообщениями коммитов. Для проверки формата используется scripts/commit_linter.py.
Исходный текст
SKILL.md · MIT
--- name: "changelog-generator" description: "Produce consistent, auditable release notes from Conventional Commits. Separates commit parsing, semantic-bump logic, and changelog rendering for automated releases with editorial control. Use when cutting a release, generating CHANGELOG.md from git history, computing the next semantic version from commits, automating release notes in CI, or planning a hotfix/rollback. Examples: 'generate the changelog for v1.4.0', 'what version bump do these commits require', 'we need an emergency hotfix process'." --- # 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 ```bash 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 ```bash 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` ```bash 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: ```bash 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 ```bash python3 scripts/commit_linter.py --from-ref origin/main --to-ref HEAD --strict --format text ``` Or file/stdin: ```bash 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](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 — Medium | Minor issues, limited impact | Next release cycle | Standard PR review | Hotfix branch comes from the last stable tag, contains the minimal fix only, and gets its own patch-bump changelog entry via the workflow above. ## Rollback Triggers Pre-commit to these thresholds before tagging; roll back when any fires: | Trigger | Threshold | |---|---| | Error rate spike | > 2x baseline within 30 min | | Performance degradation | > 50% latency increase | | Feature failure | Core functionality broken | | Security incident | Vulnerability being exploited | | Data corruption | Database integrity compromised | Prefer feature-flag disable over code rollback; database rollbacks only for non-destructive migrations (forward-only migrations preferred). See [references/hotfix-procedures.md](references/hotfix-procedures.md). ## References - [references/ci-integration.md](references/ci-integration.md) - [references/changelog-formatting-guide.md](references/changelog-formatting-guide.md) - [references/monorepo-strategy.md](references/monorepo-strategy.md) - [references/hotfix-procedures.md](references/hotfix-procedures.md) - [README.md](README.md) ## 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.
© Alireza Rezvani · MIT · alirezarezvani/claude-skills