Release Info Drafting
Draft entries for RELEASE_INFO-6.x.md and UPGRADE-6.x.md in the Shopware core repository. The skill auto-generates the mechanical "what changed" from code analysis but requires human input for "why external developers should care."
File write scope: Edit only RELEASE_INFO-6.*.md and UPGRADE-6.*.md. Read everything else.
Phase 1 — Detect Target Files
Parse .danger.php in the repo root to get the canonical file names CI enforces.
- Read
.danger.php - Look for lines matching
matches('RELEASE_INFO-— extract the file name from the string argument (e.g.,RELEASE_INFO-6.7.md) - Look for lines matching
matches('UPGRADE-or referencingUPGRADE-in failure messages — extract the file name (e.g.,UPGRADE-6.8.md) - Fallback: If parsing fails, glob for
RELEASE_INFO-6.*.mdandUPGRADE-6.*.mdin the repo root. Pick the file with the highest version number. - Last resort: Ask the user for the file names.
Verify both files exist before proceeding.
Phase 2 — Analyze Branch Scope
Understand the full story of the branch, not just individual changes.
- Get the full diff against
trunk:- If a PR exists, use the PR diff and PR files tools
- Otherwise, run
git diff trunk...HEAD --statandgit log trunk..HEAD --oneline
- Use session context — what the user has been working on and why
- Synthesize the narrative: a PR may touch features, fixes, and cleanups. Identify what's most important — what's the story of these changes?
- Classify using the decision tree below
- If the changes are not externally relevant: tell the user with reasoning, offer to proceed anyway
Classification Decision Tree
Step 1 — Is this externally relevant?
Skip if ALL are true:
- No public API changes (no new/changed/removed public methods, interfaces, routes)
- No behavioral changes visible to extensions or integrations
- No new features, extension points, or config options
- No deprecation annotations added
- Only test files, internal refactoring, or non-critical bug fixes
Step 2 — Which files need entries?
| Signal in diff | RELEASE_INFO | UPGRADE |
|---|---|---|
| New public feature / extension point | Yes | No |
| New/changed config option | Yes | No |
Deprecation added (@deprecated) | Yes | Yes (next major) |
| Method/class removed | No | Yes |
| Method signature changed (breaking) | Possibly | Yes |
| Behavioral change (non-breaking but notable) | Yes | No |
| Behavioral change (breaking) | Yes | Yes |
| Critical bug fix | Yes | No |
| New API endpoint | Yes | No |
| API endpoint removed/changed | Yes | Yes |
Step 3 — Present classification to user:
"Based on the branch changes, this looks like [classification]. I'd suggest entries in [file(s)]. Does that match your intent?"
The user can override — they know the story better than the diff.
Phase 3 — Gather Context
- After the user confirms the classification, ask targeted questions the skill cannot infer from code. Ask only what's needed — skip questions the session context already answers:
- "Why should external developers care about this change?"
- "Are there migration steps needed?" (only if UPGRADE entry required)
- "Is this behind a feature flag?"
- Load
references/writing-rules.mdfor style guidance - Read 2-3 existing entries from the target category in the target file for voice and density calibration
Phase 4 — Draft Entries
- Load
references/entry-examples.mdfor sizing calibration - Load
references/file-structure.mdfor heading hierarchy and placement rules - Scan all categories in the entire target file (not just the upcoming section) to discover the full category set
- Propose a category based on file paths changed. Present the full category list and let the user confirm or pick a different one.
- Draft the entry/entries:
- Size to the magnitude of change (see entry-examples.md for tiers)
- Follow the writing rules (see writing-rules.md)
- Match the voice and density of recent entries in the same file
- Present the draft(s) to the user for review. Show each entry clearly with its target file and category.
Phase 5 — Validate and Write
- Anti-slop validation pass — load
references/writing-rules.md, then check the draft literally (not from memory):- First: search the draft text for em dash (—) and en dash (–) characters. Remove every instance. This is the most common violation and must be checked first as a literal character search, not a mental scan.
- Then re-read each sentence against: banned vocabulary, banned sentence patterns, banned formats, colon/semicolon overuse, sentence rhythm, tone
- If any violations found, rewrite the affected sentences and re-check the rewritten sentences
- On user approval, use
Editto insert the entry under the correct heading in the correct file - Place as the last entry in the target category section
- If both RELEASE_INFO and UPGRADE need entries, write both
- After writing, show the diff so the user can verify placement
Do not commit. The user decides when to commit.
Boundaries
- Never touch
changelog/_unreleased/— warn the user if files exist there (old format rejected by CI) - Never create new version headings — write into existing sections only
- Never auto-commit or create PRs
- Only operates in repositories that contain
RELEASE_INFO-6.*.mdfiles


