Skip to content

Commit 032e879

Browse files
authored
chore(skills): add release-please skill for triggering versioned releases (#129)
Add a new Claude Code skill that automates the release-please workflow: - Create .claude/skills/release-please/SKILL.md with instructions for triggering a specific version release via Release-As commit trailer - Update CLAUDE.md with Available Skills section documenting the new skill Usage: /release-please <version> (e.g., /release-please 2.3.0) The skill creates a branch, commits with Release-As trailer, and opens a PR that triggers release-please to create a release for that version.
1 parent 85231d4 commit 032e879

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Release Please Trigger
2+
3+
Trigger a release-please PR for a specific version.
4+
5+
## Usage
6+
7+
```
8+
/release-please <version>
9+
```
10+
11+
## Examples
12+
13+
```
14+
/release-please 2.3.0
15+
/release-please 3.0.0
16+
```
17+
18+
## Instructions
19+
20+
When this skill is invoked with a version argument:
21+
22+
1. **Validate the version format**: Ensure the version follows semantic versioning (X.Y.Z format)
23+
24+
2. **Create a new branch**: Create a branch named `chore/trigger-release-<version>`
25+
26+
```bash
27+
git switch -c chore/trigger-release-<version>
28+
```
29+
30+
3. **Create an empty commit with Release-As trailer**: The commit message must include the `Release-As: <version>` trailer to trigger release-please
31+
32+
```bash
33+
git commit --allow-empty -m "chore: trigger release <version>
34+
35+
Release-As: <version>"
36+
```
37+
38+
4. **Push the branch and create a PR**:
39+
40+
```bash
41+
git push -u origin chore/trigger-release-<version>
42+
gh pr create --title "chore: trigger release <version>" --body "Trigger release-please to create version <version>."
43+
```
44+
45+
5. **Report the PR URL** to the user
46+
47+
## Notes
48+
49+
- The `Release-As` trailer in the commit message tells release-please to use that specific version
50+
- Once the PR is merged to main, release-please will automatically create a release PR with the specified version
51+
- The release PR will update CHANGELOG.md, version files, and create a GitHub release when merged

CLAUDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88
- **Skills** (`.claude/skills/`): Manually invoked for specific integrations.
99
- **Cursor rules** (`.cursor/rules/`): Symlinks to `.claude/rules/` for consistency.
1010

11+
## Available Skills
12+
13+
| Skill | Usage | Description |
14+
| ------------------ | --------------------------- | -------------------------------------------------- |
15+
| **release-please** | `/release-please <version>` | Trigger a release-please PR for a specific version |
16+
1117
## Available Rules
1218

1319
| Rule | Applies To | Description |

0 commit comments

Comments
 (0)