Create GitHub draft releases with notes derived from commit history between the new release tag and the previous tag. Use when the user asks to prepare or draft a release (not publish it), especially when they want release notes generated from commits.
Install
npx skillscat add elegantchaos/draft-release-skill Install via the SkillsCat registry.
SKILL.md
GH Draft Release
Create a draft GitHub release and stop before publishing.
Workflow
- Confirm release inputs.
- Determine the new release tag (for example
v2.1.0). - Determine the target branch/commit (default to
mainunless the user specifies otherwise).
- Verify branch is
mainand push outstanding commits.
- Check current branch:
git branch --show-current
- If branch is not
main, stop and report that draft releases must be prepared frommain. - Push
mainbefore drafting:git push origin main
- If push fails, stop and report the exact push error.
- Generate release notes with
rt changes.
- Run from the repository root:
rt changes --end <target> > /tmp/<new_tag>-notes.md- use
rt changes --helpfor options to customize the output. - do not use the
--summaryflag, as the notes will be improved with LLM in the next step.
- The command auto-detects the previous tag when
--startis omitted.
- Impove the generated notes with LLM.
- Update the generated notes file.
- It should begin with a human friendly paragraph summarising key changes.
- Create or update a draft release with
gh.
- Create draft release:
gh release create <new_tag> --target <target> --draft --title "<new_tag>" --notes-file /tmp/<new_tag>-notes.md
- If release already exists, update it:
gh release edit <new_tag> --draft --title "<new_tag>" --notes-file /tmp/<new_tag>-notes.md
- Hand off for manual review/publish.
- Report the draft release URL.
- Explicitly state that publishing is left for manual user review.
- Do not run publish commands unless the user explicitly asks.
Output Checklist
- Provide chosen
new_tag,previous_tag, andtarget. - Provide the exact commit range used for notes.
- Provide the draft release URL.
- Confirm the release remains in draft state.