Skip to content

Commit 5d1da59

Browse files
committed
make-release: cover the prerelease checklist, always confirm detected checklist and narrate steps
1 parent af47777 commit 5d1da59

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

‎.claude/commands/make-release/SKILL.md‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: make-release
3-
description: Drive a Quarto release end-to-end from the dev-docs release checklists. Invoke explicitly with /make-release — do not auto-invoke from ambient conversation, a release cut is high-stakes. Detects whether this is the first stable release of a new major.minor cycle or a patch release on an existing stable branch, then follows the matching checklist, verifying real git/gh state at each step and pausing for explicit human confirmation before every irreversible or externally-visible action.
3+
description: Drive a Quarto release end-to-end from the dev-docs release checklists. Invoke explicitly with /make-release — do not auto-invoke from ambient conversation, a release cut is high-stakes. Handles three release types — a routine dev prerelease off main, the first stable release of a new major.minor cycle, or a patch release on an existing stable branch — by asking which one applies (or reading it from an unambiguous request), then follows the matching checklist, verifying real git/gh state at each step and pausing for explicit human confirmation before every irreversible or externally-visible action.
44
---
55

66
# Make Release
@@ -9,22 +9,32 @@ Command-only helper that drives an existing release checklist. **Do not auto-inv
99

1010
## 1. Detect which checklist applies (verify, don't trust self-report)
1111

12-
Check real repo state, not the user's description:
12+
There are three release types, each with its own checklist. Branch-existence alone doesn't distinguish all three — a routine prerelease and a first-stable-of-cycle release can both start with no `v1.x` branch yet — so first establish intent, then verify with git where that disambiguates:
13+
14+
- **Routine dev prerelease off `main`** (no version bump beyond the prerelease counter, no new branch) → drive
15+
`dev-docs/checklist-make-a-new-quarto-prerelease.md`
16+
- **First stable release of a new major.minor cycle** (cuts a new `v1.x` branch) → drive
17+
`dev-docs/checklist-make-a-new-quarto-release.md`
18+
- **Patch release on an already-cut stable branch** (e.g. another `v1.9.x`) → drive
19+
`dev-docs/checklist-make-a-new-stable-quarto-release.md`
20+
21+
If the user's request doesn't already make the type unambiguous, ask. Once it's a stable release (first or patch), confirm which with real state, don't trust self-report:
1322

1423
```bash
1524
git ls-remote --heads origin v1.x # substitute the target major.minor, e.g. v1.10
1625
```
1726

18-
- Branch **absent** → first stable release of a new cycle → drive
19-
`dev-docs/checklist-make-a-new-quarto-release.md`
20-
- Branch **present** → patch release on an existing stable branch → drive
21-
`dev-docs/checklist-make-a-new-stable-quarto-release.md`
27+
Branch absent → first stable of the cycle; branch present → patch release.
28+
29+
Out of scope: backporting an individual merged PR to a stable branch is a different task, not a release cut — see `dev-docs/checklist-backport-a-pr.md` directly, this skill doesn't drive it.
30+
31+
**Always confirm before driving anything** — even when the type seems obvious from the request. State it plainly, e.g. "I will follow this checklist: `dev-docs/checklist-make-a-new-quarto-release.md`", and wait for the user's go-ahead before starting step 1. This is the one point where a wrong detection would send the whole run down the wrong checklist, so confirm every time, not just when ambiguous.
2232

23-
If it's still ambiguous (e.g. the user's target version is unclear), ask before proceeding.
33+
## 2. Drive the checklist top to bottom, verifying real state, narrating as you go
2434

25-
## 2. Drive the checklist top to bottom, verifying real state
35+
Read the matching checklist and work it in order. Before each step (not just the hard-confirm gates in section 3), state in one line what you're about to do and why, so the user can stop you early if something looks wrong — don't silently chain multiple steps together without narrating between them.
2636

27-
Read the matching checklist and work it in order. At each step, confirm the real state with `git`/`gh` rather than trusting the checklist text or the user's word that something happened — e.g. that a branch/tag exists, a workflow run actually succeeded (`gh run view <id>`), a release's flags are set, a version field is what it should be. A step isn't done until real state confirms it.
37+
At each step, confirm the real state with `git`/`gh` rather than trusting the checklist text or the user's word that something happened — e.g. that a branch/tag exists, a workflow run actually succeeded (`gh run view <id>`), a release's flags are set, a version field is what it should be. A step isn't done until real state confirms it.
2838

2939
## 3. Hard-confirm gates (stop and get explicit human OK before running)
3040

‎dev-docs/checklist-make-a-new-quarto-prerelease.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> A Claude Code skill can drive this checklist interactively: run `/make-release` (see `.claude/commands/make-release/`). It reads this file, verifies real `git`/`gh` state at each step, and pauses for confirmation before irreversible actions. This checklist stays the source of truth — the skill just follows it.
2+
13
- [ ] ensure main is up to date and tests are passing on latest commit.
24
- [ ] create new prerelease installers
35
- Click Actions -> Build Installers -> "Run Workflow" Dropdown Menu

0 commit comments

Comments
 (0)