Skip to content

Commit 581d94b

Browse files
committed
docs: update release skill with mandatory build verification step and guardrail
1 parent 31cfde3 commit 581d94b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.claude/skills/release/SKILL.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ Ask the user up front (single message, both questions):
1717

1818
If the working tree is dirty, stop and tell the user — this skill assumes a clean tree.
1919

20+
## Step 0 — Build Verification
21+
22+
Before making any changes, run the build to ensure the current state is stable:
23+
24+
```bash
25+
./gradlew assembleDebug --quiet
26+
```
27+
28+
If the build fails, stop and report the errors to the user. Do not proceed with the release until the build is fixed.
29+
2030
## Step 1 — Bump version
2131

2232
Read `app/build.gradle.kts`, find:
@@ -95,6 +105,7 @@ After `gh release edit` succeeds, print the release URL (`gh release view v<vers
95105

96106
## Guardrails
97107

108+
- Never release if the local build (`./gradlew assembleDebug`) fails.
98109
- Never run with a dirty tree.
99110
- Never force-push, never `--amend`, never skip hooks.
100111
- Tag format is `v<versionName>` (with the `v`). The deploy workflow only triggers on `v*`.

0 commit comments

Comments
 (0)