release-notes-narrative
Release Notes Narrative
CI Automation
This skill also runs automatically post-publish via .github/workflows/release-notes.yaml (triggered by release: published, or a manual dispatch with a tag input to re-narrate). That workflow runs scripts/dispatch-release-notes.sh, which dispatches fro-bot.yaml with a prompt that loads this skill and applies the 13-step procedure against the just-published tag. Manual invocation remains the canonical path for retroactive patches and historical releases; CI automation handles forward-going releases without operator intervention.
If you are reading this as the dispatched Fro Bot run, the prompt embedded the target tag and a correlation token. Echo the correlation token as your first log line, then proceed with the procedure below.
In CI the prompt also names a Scratch directory, .context/release-notes — relative to the repository root, which is your checkout — and it is the ONLY directory you may write to (the isolated agent runtime cannot write $RUNNER_TEMP or any other external path, including /tmp and /tmp/opencode). .context/ is gitignored, so nothing here dirties the tree. File tools need absolute paths: run git rev-parse --show-toplevel first, then mkdir -p the directory under that root. Export the absolute path as SCRATCH_DIR; Steps 3, 12, and 13 use it in place of their local default paths. Local, non-CI runs leave SCRATCH_DIR unset and keep the defaults.
Overview
@semantic-release/release-notes-generator with the conventionalcommits preset builds release bodies from commit subject lines only — commit bodies and PR descriptions are never ingested. The result is mechanically correct but qualitatively thin: a bucket of one-line bullets that tells readers what changed but not why it matters. The same generator also misparses any path#fragment substring in a commit body as a Closes #N footer, emitting broken autolinks pointing at nonexistent issues.
This skill replaces the auto-generated body with AI-assisted narrative drawn from the commit log and, when the commit body is thin, from the PR description. It applies the patch via gh release edit --notes-file against an already-published release.
Core principle: The commit log is the authoritative source. Every claim in the rendered body must trace to a commit SHA, commit body, or PR description in the range. Do not invent context.
Overwrite behavior: This procedure always overwrites the existing release body unconditionally. If the release body contains manually-authored regions, those regions are replaced. Capture the pre-edit snapshot (procedure step 3) before running so you can restore it if needed.