Skill: Generating or Completing Release Notes
This skill provides instructions for creating release notes from scratch or completing existing draft release notes for OWASP Juice Shop. It follows the established structure, iconography, and formatting patterns of the project based on an analysis of historical releases.
Repository Targets & Scope
- Primary Target: Release notes Markdown files, draft notes text, or GitHub release draft bodies.
- Inspect-Only Sources: Git tags and commit logs,
package.json,config/default.yml,data/static/challenges.yml,lib/config.schema.ts,frontend/src/app/, andi18n/.
Source-of-Truth & Data Handling Rules
- Git History: Git commit logs (
git log <last_tag>..HEAD) and commit diffs are the primary source of truth for changes introduced since the last release. - Impact Classification:
data/static/challenges.ymlandlib/config.schema.tsare canonical sources for confirming challenge modifications and configuration schema breaks. - Contributor Attribution: Commit author names/handles and PR metadata are the source of truth for external contributor attribution.
Change Boundaries
- Allowed Changes:
- Authoring or editing release notes Markdown documents and draft release payloads.
- Forbidden Changes:
- Modifying application code, models, or views.
- Bumping versions in
package.jsonorfrontend/package.json. - Creating or pushing git tags or committing release preparations during notes generation.
- Editing CI/CD workflows.
Ambiguity & Unmappable Source Handling
- Unclear Commits: When commit subjects are ambiguous, inspect the diff (
git show <hash>) or PR description to determine actual user impact. - Breaking Change Criteria: Mark with
โ ๏ธonly changes that break end-user behavior or runtime environments (e.g., dropped Node.js version, removed config properties). Internal build/tooling changes must never be markedโ ๏ธ. - Maintainer & Bot Exclusion: Never add
(kudos to @...)for project maintainers (@bkimminich,@J12934) or automation bots (@dependabot,@crowdin).
Workflow
- Gather Information:
- Identify the last released tag:
git describe --tags --abbrev=0 - List all commits since the last tag:
git log <last_tag>..HEAD --oneline - Find PRs and external contributors:
git log <last_tag>..HEAD --pretty=format:"%h %s (%an)" - Check for version/dependency changes:
git diff <last_tag>..HEAD -- package.json - Check for product/user changes:
git diff <last_tag>..HEAD -- config/default.yml - Check for challenge changes:
git diff <last_tag>..HEAD -- data/static/challenges.yml(or relevant challenge files) - Check for configuration changes:
git diff <last_tag>..HEAD -- lib/config.schema.ts - Check for UI/Frontend changes:
git diff <last_tag>..HEAD -- frontend/src/app - Check for I18N updates:
git diff <last_tag>..HEAD -- i18n
- Categorize & Iconize Changes:
- Map changes to the correct section with its corresponding emoji:
๐ Runtime: Node.js version support, core library changes (e.g., XML parser).๐ฏ Challenges: New or updated challenges.๐จ User Interface/๐จ UI: Visual changes, accessibility, UI enhancements.๐ ฐ๏ธ Frontend: Angular/Material version updates.๐ณ Docker: Image updates, base image changes, size reductions.๐ Bugfixes: Fixed issues (mention PR/issue numbers if available).๐ I18N: Translation updates, new languages.๐งน Technical Debt/๐งน Housekeeping/๐งน Technical Debt Reduction: Refactorings, code quality improvements.๐ง Configuration/โ๏ธ DevOps Automation: Settings, new/removed config options, CI/CD.๐ Shop/๐ Product Inventory: New products/users.๐จโ๐ซ Tutorials: New or updated hacking instructors/tutorials.๐๏ธ Build Process: Release pipeline, build scripts, asset generation.๐ Policy: Licensing, security policy, or Code of Conduct changes.๐ Hints: Challenge hints.๐ฅ Hotfix: Urgent fixes for production issues.๐ต๏ธ Cheat Detection: Changes to cheat scoring/logic.๐ฎ Startup Validations: Boot/environment checks.- Use Status Icons to mark specific types of changes:
โก: Significant changes to challenges that might break CTF setups or solutions.โ ๏ธ: Breaking changes that affect end users of Juice Shop (e.g., dropped Node.js version support, removed/renamed config options). Internal tooling changes (build scripts, TypeScript version, dev dependencies) are never โ ๏ธ because users do not interact with them.๐: Policy or licensing changes.โญ: Challenge difficulty levels (e.g.,โญโญ-challenge).
- Format the Notes:
- Start with a blockquote disclaimer if there are
โก,โ ๏ธ, or๐changes. - Use
*for bullet points. - Add
(kudos to @username)at the end of lines for external contributors (check PR descriptions or commit logs). Neither@J12934nor@bkimminichshould ever get a kudos suffix. - Reference PRs as
#numberand commits as hashes where appropriate. These must always be prefixed to the list item (e.g.,* #1234: Fixed ...or* abcdef: Added ...), never suffixed. Use these sparingly and only for significant or external contributions.
- Review and Refine:
- Compare with the
release-notes-checklist.md. - Ensure all significant changes found in step 1 are covered.
- Avoid over-detailing: Combine related changes into single bullet points (e.g., adding a challenge and its corresponding coding challenge).
- Do not list bugfixes for features or challenges that were introduced in the same release.
- Exclude event entries, workshop announcements, or other non-product references.
Templates
Refer to specific templates for different release types:
Completing Existing Release Notes
When a user submits existing release notes to complete:
- Check if any sections are missing based on the gathered information.
- Add missing iconography (emojis) and check if disclaimers are appropriate.
- Standardize the "kudos to @username" format if incomplete.
- Ensure all sections follow the correct order (Runtime, Frontend, Challenges, UI, etc.).
Draft Release Creation (Optional)
If gh CLI is available and the environment has appropriate tokens, a draft release can be created or updated using:
gh release create <tag> --title "<tag>" --notes-file <file> --draft
Otherwise, provide the markdown content for manual creation on GitHub.
Verification Expectations
- Checklist Audit: Must review the drafted release notes against
.ai/skills/generate-release-notes/checklists/release-notes-checklist.md. - Kudos Compliance: Confirm that maintainers (
@bkimminich,@J12934) and bot accounts are never awarded kudos. - Icon and Prefix Verification: Verify that every section has the designated emoji and that PR/commit references are correctly placed as prefixes (e.g.
* #1234: ...). - Validation Commands: Code testing, linting, or build commands are not required when authoring release notes.