Repository navigation
docs: add a release-cli skill and index the maintainer skills - #429
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
5e84b5b to
6181914
Compare
jrusso1020
left a comment
There was a problem hiding this comment.
Approving at 61819147. I walked every RELEASE.md step that writes something outside the local checkout against the six stop points. Each one is gated, and recovery can't delete anything without a stop.
| RELEASE.md step | Outward action | Gate in /release-cli |
|---|---|---|
| Checklist 2, open PRs | push / rebase / approve / gh pr merge |
Stop 1 names all four. Merges are pinned with --match-head-commit, and --admin is forbidden |
| 5, E2E | live API calls, credits, video delete of its own test video |
Stop 2, and it asks which key rather than searching for one |
| 6, version | none (decision) | Stop 3 when anything breaks or the bump is unclear. Stop 4 shows the version before triggering either way |
| Trigger | gh workflow run release-stable.yml (tag + release) |
Stop 4, which shows the version, commit and changelog |
| If the release fails | gh release delete --cleanup-tag, re-dispatch, re-running a job |
Stop 6 covers all three. Step 8 says "Do not delete tags or releases by hand unless that section says to", so even a prescribed delete stops first |
| Post-release 2 | gh release edit --notes-file |
Stop 5, then reads the notes back |
| Post-release 3 | curl … | bash installer |
Local only. The skill swaps RELEASE.md's install over the user's own heygen for INSTALL_DIR=<scratch>, which scripts/install.sh:6 honours |
| Dev release | gh workflow run dev-release.yml |
Stop 4 ("Triggering the release workflow" isn't limited to stable), plus "confirm the user wants one" |
Consistent with #427 (in the base, 39ee311). The skill doesn't restate the draft → publish-release → publish-cdn / cleanup flow. It sends a failure to RELEASE.md's "If the release fails", which #427 wrote, so the two can't drift apart. "Dev releases have no publish-cdn job" matches dev-release.yml, which has release, cleanup and publish-release only. The automatic tag and draft deletion stays in the workflow's cleanup job, where #427 checks that the run owns them. The only deletions the agent can reach are the manual recoveries, and those go through stop 6. Replacing the notes in post-release drops #427's run marker, which #427's own comment says is fine once the release is published.
The other skills don't mutate anything: changelog-cli only reads (git log, gh pr view). e2e-cli-test's writes are the E2E run itself, behind stop 2.
Nits (non-blocking)
- A brand-new PR or branch push isn't named. Stop 1 covers "changing any open PR", and the closing line exempts "reading, checking, building, and local edits". Opening a new PR is in neither list, for example landing the codegen examples fix as its own PR instead of pushing to the bot's. An agent would probably stop anyway, but a catch-all would close it, e.g. "anything that leaves this machine and isn't listed above also stops".
- AGENTS.md lists four of the six stops. It names merging, E2E credits, the breaking version and triggering. It leaves out publishing the notes and recovery, so an agent that reads only AGENTS.md sees a shorter list than the skill's. "Stops for the user at each outward step (see the skill's Stop points)" would avoid that.
— Rames
terencechotai2-commits
left a comment
There was a problem hiding this comment.
Reviewed at 6181914. I walked RELEASE.md step by step against the skill's six stop points. This is docs only, so it has no API or caller impact.
What holds up:
- Every outward step that RELEASE.md itself names sits behind a stop point:
- pushing to, approving or merging a PR: stop 1
- E2E: stop 2
gh workflow run release-stable.yml/dev-release.yml: stop 4gh release edit --notes-file: stop 5- every recovery in "If the release fails": stop 6. That covers re-running the cleanup job,
gh release delete --cleanup-tag, re-dispatching, and re-runningpublish-release/publish-cdn.
- Consistent with #427: stop 6 sends the agent to RELEASE.md's recovery section instead of restating it. Line 102 forbids deleting tags or releases by hand except where that section prescribes it.
- Notes replacement after #427: replacing the notes drops GoReleaser's
<!-- release-run: … -->header from the body. That's harmless:publish-releasepublishes by the recorded release ID.publish-cdndownloads by tag.- The cleanup script refuses any published release anyway.
- Consistent with #426: nothing asks the agent to install or run GoReleaser locally.
- Admin merges:
--adminis explicitly forbidden (line 63).main's required checks are enforced for non-admins only, so this line matters. - Links: every relative link and anchor in the 8 changed files resolves (scripted check). The step numbers match RELEASE.md.
Findings (all docs-level, ranked):
- Low: the gate list is a whitelist, not a default. Line 40 says what needs no approval but never says that everything else does. The skill's own flow can lead to outward actions that none of the six covers. Inline comment with suggested wording.
- Low: the doc doesn't say what counts as consent. It's unclear whether the original "cut a release" request, or a yes at an earlier stop, counts as a yes for a later one. Serial merges make this concrete: rebasing PR B after merging PR A is a new push to B. Inline comment.
- Low: the release can tag a different commit than the one shown at stop 4. The workflow checks out
ref: mainwhen the job starts (release-stable.yml, the checkout step) and tags whatever is there. A PR merged between the yes and job start goes out without having been through the changelog, surface diff or E2E. The same applies to a re-dispatch after a failed run ("buildsmainas it is then"). Inline comment. - Nit: AGENTS.md lists four of the six stop points, leaving out notes and recovery. Inline comment.
- Nit: the scratch-install instruction should spell out where
INSTALL_DIRgoes in the command. Inline comment.
— tai2
| deleting a tag or release, dispatching again, or re-running a job. Say which | ||
| job failed, what RELEASE.md prescribes, and what the action will change. | ||
|
|
||
| Reading, checking, building, and local edits need no approval. |
There was a problem hiding this comment.
Low: make the stop list default-deny. As written, an agent can read the six stops as the full list of things it needs to ask about. Following this skill can lead to these, and none of the six covers them:
- Step 4's table: "re-register the old path in
cmd/heygen/aliases.go". Acting on that means pushing a new branch and opening a PR. That isn't "changing an open PR". - Step 3: with CI red on
main, the natural move isgh run rerun. Stop 6 covers re-runs only in step 8 recovery. - Steps 1 and 2: commenting on a PR flagged as half-finished, labelling it, or closing a superseded sync PR.
- The release workflow's "Validate AWS release config" fails: the fix is a repo variable (
gh variable set), which arguably isn't a "recovery action".
Suggested wording:
| Reading, checking, building, and local edits need no approval. | |
| Reading, checking, building, and local edits need no approval. Everything else | |
| that is visible outside this machine is also a stop, even if it is not listed | |
| above: pushing any branch, opening, closing, commenting on or labelling PRs or | |
| issues, re-running or cancelling workflow runs, and changing variables, secrets, | |
| caches or repository settings. Never bypass branch protection: no `--admin`, no | |
| direct push to `main`. |
There was a problem hiding this comment.
Done in 072a427: the stop list is now default-deny. Anything else visible outside the machine (pushing any branch, opening, closing, commenting on or labelling PRs or issues, re-running or cancelling runs, changing variables, secrets, caches or settings) is also a stop, and branch protection is never bypassed: no --admin, no direct push to main.
| ## Stop points | ||
|
|
||
| Stop and ask the user before each of these, with what you found and a | ||
| recommendation. Never proceed on a guess. |
There was a problem hiding this comment.
Low: say what counts as a yes. "Stop and ask… Never proceed on a guess" is good. It doesn't settle two cases an agent will meet:
- The opening request ("cut a release and ship it") could be read as consent to trigger.
- One "yes, merge #A and #B" could be read as covering B's rebase and force-push after A lands.
Suggestion: add something like "Each stop needs an explicit yes from the user for that specific action, in this session. The original request, a yes at an earlier stop, or silence does not count. If what you would do changes after the yes (a new head after a rebase, a different commit on main), ask again."
There was a problem hiding this comment.
Done: each stop needs an explicit yes for that specific action in this session; the original request, an earlier yes or silence does not count, and a changed action (a new head after a rebase, a different main commit) asks again.
| 3. **The version** (step 6), whenever step 4 found anything breaking or you are | ||
| unsure between patch and minor. | ||
| 4. **Triggering the release workflow.** It tags `main` and publishes; show the | ||
| version, the commit, and the changelog first. |
There was a problem hiding this comment.
Low: the commit shown here isn't necessarily the commit that gets tagged. release-stable.yml checks out ref: main when the release job starts and tags HEAD. If anything merges between the user's yes and job start, or before a re-dispatch after a failed run, the release ships commits that the changelog, surface diff and E2E never covered.
Suggestion:
- Re-fetch right before dispatching and confirm
origin/mainis still the commit you showed. If it moved, stop again. - After the run, compare the tag's commit (
git rev-parse <version>^{commit}) with that commit. Report any difference rather than continuing to step 9. - Apply the same check before any re-dispatch under stop 6.
There was a problem hiding this comment.
Done, with one limit stated plainly: the skill re-fetches right before dispatch and stops if main moved, then compares the tag's commit afterwards and stops before step 9 on a difference, before and after any re-dispatch too. It can't close the window, since the workflow tags main at job start, so stop 4 now tells the user that. Pinning the workflow to an approved SHA is a separate follow-up.
| - **Pre-release E2E**: Run `/e2e-cli-test` in Claude Code before cutting a stable release. It exercises the built binary against the live API. Requires `HEYGEN_API_KEY` and spends a small number of credits. See `.claude/skills/e2e-cli-test/SKILL.md` for details. | ||
|
|
||
| ### Releasing | ||
| To cut a release, run `/release-cli` (`.claude/skills/release-cli/SKILL.md`). It follows [RELEASE.md](./RELEASE.md) step by step and stops for the user before merging PRs, spending E2E credits, settling a breaking version, and triggering the workflow. Never trigger `release-stable.yml` or `dev-release.yml` without that confirmation. All maintainer skills are listed in [.claude/skills/README.md](.claude/skills/README.md). |
There was a problem hiding this comment.
Nit: this lists four of the skill's six stop points. It leaves out replacing the release notes and every recovery action, and "merging PRs" is narrower than stop 1 (pushing to, approving or merging a PR). An agent that reads only AGENTS.md wouldn't know that deleting a tag or re-dispatching needs a yes. Suggestion: "…stops for the user at each of the six stop points listed in the skill (changing a PR, E2E, a breaking version, triggering a release, publishing notes, and any recovery action)."
There was a problem hiding this comment.
Done: AGENTS.md now names all six stop points and the default-deny rule.
| body with the saved notes once the user approves them (stop point 5) and read it | ||
| back, and verify the installer. Install into | ||
| a scratch directory (`INSTALL_DIR=<dir>`) rather than over the user's own | ||
| `heygen`, and run the installed binary's `--version`. |
There was a problem hiding this comment.
Nit: spell out the command. install.sh reads INSTALL_DIR (line 6, default $HOME/.local/bin), so the variable has to be on bash, not on curl. INSTALL_DIR=$d curl -fsSL … | bash installs over the user's own ~/.local/bin/heygen, which this line is trying to avoid.
| `heygen`, and run the installed binary's `--version`. | |
| `heygen`: `d=$(mktemp -d); curl -fsSL https://static.heygen.ai/cli/install.sh | INSTALL_DIR="$d" bash`, | |
| then run `"$d/heygen" --version`. |
There was a problem hiding this comment.
Done: the installer check now reads d=$(mktemp -d); curl -fsSL https://static.heygen.ai/cli/install.sh | INSTALL_DIR="$d" bash, then "$d/heygen" --version.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jrusso1020
left a comment
There was a problem hiding this comment.
Re-approving at 072a4272. My earlier approval was at 61819147. The only new commit is 072a427 (SKILL.md and AGENTS.md), and every change tightens the skill.
Default-deny paragraph (the part you asked about). It works. Every agent-visible action in the skill is now either one of the six stops or caught by "anything else visible outside this machine". I walked each one:
| Action | Covered by |
|---|---|
| Push, approve or merge a PR | stop 1 |
| E2E (spends credits, creates assets) | stop 2 |
| Dispatch either workflow, re-dispatch | stops 4 and 6 |
gh release edit |
stop 5 |
| Re-run or cancel a job, delete a tag or release | stop 6 and the catch-all |
Re-alias PR, gh run rerun on a red main, comments and labels, gh variable set |
catch-all, by name |
The free list is read, check, build and local edit. E2E is the only "check" with side effects, and stop 2 names it, so the specific rule wins. Neither /changelog-cli nor /e2e-cli-test contains a gh write, push or Slack call, so nothing slips in through a sub-skill. --admin and direct pushes to main are now named, and nothing in RELEASE.md uses either.
Yes per action. This closes tai2's "what counts as a yes" point. "The original request … does not count" and "if the action changes … ask again" also cover the rebase case: a new head after a rebase is a changed action.
Dispatch window. The wording is accurate. release-stable.yml tags main as it is when the job starts, so a re-fetch narrows the window but can't close it, and comparing the tag's commit afterwards catches what slips through. Agreed that pinning belongs in a separate workflow PR.
Installer. This is now correct: install.sh:6 reads INSTALL_DIR from the environment of bash, and the old form would have installed over ~/.local/bin/heygen. AGENTS.md names all six stops.
Nits (non-blocking):
git rev-parse <version>^{commit}runs in a checkout fetched before the tag existed, so it fails until you rungit fetch origin tag <version>. It fails loudly, not silently, but the step could say "fetch the tag first".- The dev section still says "confirm the user wants one before triggering it". The catch-all already makes a dev dispatch a stop that needs its own yes. Pointing it at stop 4 and the re-check/compare would make that explicit, since
dev-release.ymlalso tagsmainat job start. - The catch-all says "pushing any branch". Tags are the most consequential thing this flow creates, and creating one by hand is outward-visible either way, so "pushing any branch or tag" would leave no doubt.
— Rames
Scope
Surfaces: Repo docs and Claude Code maintainer skills | Module: Release process
Builds on #427 (merged), whose release recovery steps this skill follows.
Summary
An agent asked to cut a release had a full checklist in RELEASE.md but nothing pointing it there, and no line between what it may do alone and what needs a person. This adds
/release-cli, a skill that runs RELEASE.md in order and stops for the user at every outward-facing step, and makes the repo's three maintainer skills discoverable from README, AGENTS.md, CONTRIBUTING.md and RELEASE.md.How it works
The skill does not restate RELEASE.md; it runs it and adds two things, so the two cannot drift: where to stop and what tends to go wrong. When they disagree, RELEASE.md wins.
Reading, checking, building and local edits need no approval. The lessons it adds come from cutting v0.9.0: fixing a sync PR's missing examples (and confirming the regeneration reproduces the bot's
gen/first), merging serially under the up-to-date rule, telling the deprecated-check's false positives apart, checking the changelog's "new" flags against the previous release, and installing into a scratch directory to verify.Design decisions
Two kinds of skills, kept apart. The root
SKILL.mdis for agents that use the CLI;.claude/skills/is for maintainers of this repo. The new.claude/skills/README.mdindexes the latter and says so, and AGENTS.md's E2E line, which pointed at the rootSKILL.md, now points at the E2E skill.Existing skills keep their names.
/e2e-cli-testand/changelog-cliare referenced across the docs; each gains one line naming its release step instead of being renamed.Testing
Every relative link and anchor in the changed files resolves (scripted check). The skill's claims, step numbers and stop points were checked against RELEASE.md, the release workflows, the Makefile and the installer.
🤖 Generated with Claude Code