Générateur de changelog

VérifiéSûr

Générez des notes de version cohérentes à partir des commits conventionnels. Automatisez les releases en séparant analyse des commits, calcul de version sémantique et rendu du changelog.

Spar Skills Guide Bot
DocumentationIntermédiaire
30/08/2026
Claude CodeCursorWindsurfCopilotCodex
#changelog#semantic-versioning#conventional-commits#release-management#git

Recommandé pour

Synthèse automatique

Ce skill génère des notes de version cohérentes et auditables à partir de commits Conventional Commits, en séparant l'analyse des commits, le calcul du bump sémantique et le rendu du changelog.

Points forts

  • Sépare l'analyse des commits, la logique de version SemVer et le rendu pour garder un contrôle éditorial sur les releases
  • Fournit des scripts dédiés : generate_changelog.py, version_bumper.py et commit_linter.py
  • Supporte plusieurs entrées (plages git, stdin, fichier) et sorties markdown ou JSON pour l'intégration CI
  • Inclut le linting des messages de commit pour bloquer les formats invalides avant merge

Limites

  • Dépend fortement du respect strict du format Conventional Commits par l'équipe
  • Le parsing des commits de merge est signalé comme un piège courant à gérer manuellement
  • Les scripts Python ne sont pas décrits en détail au-delà de leurs options CLI
Quand l'utiliser

À utiliser avant de publier un tag de release, pour automatiser les notes de version en CI ou pour déterminer le prochain numéro de version sémantique à partir de l'historique git.

Quand l'éviter

À éviter si le dépôt n'utilise pas Conventional Commits ou si vous cherchez un outil de gestion de release complet incluant build et déploiement.

Analyse de sécurité

Sûr
Score qualité84/100

The skill is purely an instruction/documentation file for release-note generation. All commands shown are ordinary git log piped into local Python scripts, plus an optional in-place changelog prepend and advisory git tag commands. There are no obfuscated payloads, no curl|sh patterns, no secret/token exfiltration, and no safety-disabling instructions. The only residual concern is that the referenced helper scripts are not shown, so a reviewer would need to inspect them before trusting --write behavior; the described usage itself carries no meaningful execution risk.

Points d'attention
  • •Skill invokes bundled scripts (scripts/generate_changelog.py, version_bumper.py, commit_linter.py) whose source is not included in SKILL.md, so their behavior cannot be audited from this file alone
  • •Includes a mutating operation (--write CHANGELOG.md) and suggested git tag commands, but both are scoped, non-destructive, and clearly disclosed
Comment cette analyse est faite

Exemples

Generate changelog for a tag range
Generate the changelog for v1.4.0 from commits between v1.3.0 and HEAD and prepend it to CHANGELOG.md.
Compute the next version
Look at the commits since v1.3.0 and tell me what version bump they require, then recommend the next version.
Lint commits in a PR
Lint the commit messages between origin/main and HEAD in strict mode and list any that violate the Conventional Commits format.

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

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 — 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

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.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/changelog-generator-mtfbwmfx/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/changelog-generator-mtfbwmfx' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/changelog-generator-mtfbwmfx/download' --output '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md.part' && mv '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md.part' '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && test -s '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/changelog-generator' && cp -R '.skill-downloads/changelog-generator-mtfbwmfx' '.claude/skills/changelog-generator'

Cursor
test -f '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && test -s '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/changelog-generator' && cp -R '.skill-downloads/changelog-generator-mtfbwmfx' '.cursor/skills/changelog-generator'

Codex
test -f '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && test -s '.skill-downloads/changelog-generator-mtfbwmfx/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/changelog-generator' && cp -R '.skill-downloads/changelog-generator-mtfbwmfx' '.agents/skills/changelog-generator'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/changelog-generator-mtfbwmfx'

openskills read 'changelog-generator-mtfbwmfx'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/changelog-generator-mtfbwmfx/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires