Release Notes
description: Generate a Discourse-style commit message and PR description from current changes
Install command
npx skills add https://github.com/discourse/discourse --skill release-notesSkill File
name: discourse-pr description: Generate a Discourse-style commit message and PR description from current changes
Look at the changes made in the current branch compared to the base branch (usually main). If we're not on a branch other than main, use the changes made in the current conversation session instead.
Also read the Claude Code System Prompt for additional context on what was done and why.
From those changes, generate a commit message and PR description following these exact Discourse conventions:
Commit Message Rules
- Use exactly ONE of these uppercase prefixes, followed by a colon and space:
FIX:— A bug fixPERF:— A performance improvementUX:— A user interface changeSECURITY:— A security problem fixFEATURE:— An added featureA11Y:— An accessibility improvementI18N:— Translation updatesMT:— Changes to migrations toolingDEV:— A Discourse internals change that doesn't fit the above
- Use imperative mood (e.g., "Add X", "Fix Y") and sentence case.
- Wrap code symbols, method names, or file paths in backticks.
- Do NOT include a trailing period or a commit body.
- Output a single subject line only.
PR Description Rules
Immediately after the commit message, output a PR description using exactly this format:
Previously, [brief description of the old state or issue, in the past tense].
This change [brief description of the change and the effect it has, in the present tense].
Keep both sections extremely brief — ideally one sentence each. You may use markdown if it's useful (e.g. for short code snippets). Focus on the motivation for the change. 'why' is more important than 'what'.
Constraints
- Never use lowercase "conventional commit" prefixes (e.g.,
fix:,feat:).
Example Output
UX: Improve `UserSelector` contrast for dark mode
Previously, the text in the `UserSelector` component was difficult to read on dark backgrounds due to low contrast.
This update changes the text color to use the `--primary-medium` CSS variable, which improves readability.
Steps
- Determine the diff: run
git diff main...HEAD(or fall back to session changes). - Read through the changed files to understand the purpose of the changes.
- Pick the single most appropriate prefix based on the nature of the change.
- Write the commit message subject line.
- Write the two-sentence PR description.
- Output both together, ready to copy.
Category
Software DevelopmentMore in Software Development
Git Commit Messages
description: Generate a Discourse-style commit message and PR description from current changes
Skill Creator
description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description
Web Application Testing
description: Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
DOCX creation, editing, and analysis
description: "Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers
Astro PR Writer
description: Write and update Astro pull requests with reviewer-friendly titles and high-signal bodies. Trigger whenever the user asks to create a PR, open a PR, draft a PR, update PR title/body, or write PR notes/summary/description.