Skip to content

Commit d3aec6b

Browse files
committed
[ai] Some tweaks for release custom command.
1 parent 9af2f37 commit d3aec6b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.claude/commands/release.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ Read `changelog.txt` from the repository root. Note the **latest version number*
2727

2828
### 3. Determine the new version number
2929

30-
- **If a version was provided in arguments**, use it directly (append `.0` if only major.minor was given).
30+
**Important:** version numbers are shared across the beta and stable tracks — the sequence advances through both. The same `major.minor.patch` cannot be released as both beta and stable. A beta release "uses up" that number; the next stable must bump to a new patch.
31+
32+
- **If a version was provided in arguments**, use it directly (append `.0` if only major.minor was given). If the latest changelog entry already used this exact number (regardless of beta/stable), warn the user — they likely want a bumped patch.
3133
- **If no version was provided**, auto-increment from the latest changelog version:
32-
- If it was a beta, and the new release is **not** beta, reuse the same version number but drop "beta".
34+
- If it was a beta, and the new release is **not** beta, bump the patch component by 1 (do **not** reuse the beta's number for stable).
3335
- If the new release is beta and the latest was also beta with the same major.minor, bump patch.
3436
- Otherwise bump the patch component by 1.
3537
- Present the chosen version to the user and ask for confirmation before proceeding. If the user suggests a different version, use that instead.
@@ -65,6 +67,10 @@ Use this exact format (date is today in DD.MM.YY):
6567

6668
Prepend the new entry at the very top of `changelog.txt`, separated by a blank line from the previous first entry. Use the Edit tool.
6769

70+
**Never delete or edit existing entries**, even if the new stable entry merges bullets from prior beta(s). Prior beta blocks remain as historical record for beta-track users.
71+
72+
**For stable releases spanning prior beta(s):** the entry should cover everything since the last **stable** release (not just since the last beta), including noteworthy beta-shipped features, trimmed as needed to stay within 4–12 bullets.
73+
6874
### 8. Wait for approval
6975

7076
After writing the entry to `changelog.txt` (step 7), tell the user the changelog has been updated and ask them to review it in the IDE. They can edit it directly and tell you to continue, or tell you what to change in chat. Do **not** print the full entry in chat — the file itself is the review surface.

0 commit comments

Comments
 (0)