/bmad-skills:release-pleasefrom bmad-skills
Automates releases, versioning, and changelogs with GitHub Actions using Conventional Commits. Sets up release-please pipelines, handles monorepos, pre-releases, and publish steps to npm, PyPI, crates.io, Maven, or Docker.
Ships in bmad-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
release-please automates versioning and releases by analyzing Conventional Commit messages:
release-please handles version determination, changelog generation, and git tagging. You write good commit messages; it does the rest.
When a user asks for help writing a commit message (not setting up a pipeline):
If the change is breaking, always include a BREAKING CHANGE: footer explaining migration impact.
When a user wants to set up release-please, follow this interactive protocol.
If .github/workflows/release.yml (or similar) already exists, read it first, compare against the templates in references/workflow-templates.md, and suggest specific improvements rather than replacing it wholesale. Common improvement opportunities: missing concurrency groups, publish not gated on release_created, missing idempotent publish check, overly broad permissions.
Scan the repository for package manifests:
| File | Release Type |
|---|---|
package.json | node |
pyproject.toml / setup.py | python |
pom.xml | java |
go.mod | go |
Cargo.toml | rust |
*.gemspec | ruby |
composer.json | php |
pubspec.yaml | dart |
mix.exs | elixir |
Chart.yaml | helm |
If multiple manifests exist at the root, ask which is primary. If none found, use simple.
Ask these questions (skip any already answered or obvious from context):
main)0.0.0)Create three files based on the answers:
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"release-type": "node",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false,
"versioning": "default",
"extra-files": []
}
}
}
Adjust release-type based on detected project type. For monorepos, add multiple entries under packages with component names.
{
".": "1.0.0"
}
Set to the current released version. Use "0.0.0" for new projects.
For Node.js → npm public registry (most common), use this base template:
name: Release
on:
push:
branches: [main]
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}
steps:
- uses: googleapis/release-please-action@v4
id: release
publish:
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # required for npm --provenance
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
For other ecosystems, see references/workflow-templates.md for complete templates including:
Always customize:
main with the actual default branch if differentreferences/workflow-templates.mdThe options you will set most often (all go under packages.<path> in release-please-config.json):
| Option | Default | Purpose |
|---|---|---|
release-type | — | Package ecosystem (required) |
bump-minor-pre-major | false | While < 1.0.0, breaking changes bump minor instead of major |
bump-patch-for-minor-pre-major | false | While < 1.0.0, feat bumps patch instead of minor |
include-v-in-tag | true | Tag as v1.2.3 vs 1.2.3 |
extra-files | [] | Additional files with version strings to update |
For monorepos, add one entry per package path under packages (each with a component name), list every path in the manifest, and use the component name as the commit scope.
For every option, release types, monorepo setup, and Action inputs/outputs, see references/config-options.md.
release-please reads commit messages on the default branch to decide the version bump and build the changelog. Commits must follow Conventional Commits: <type>(<scope>): <description>, imperative, lowercase, no trailing period.
| Type | Bump |
|---|---|
feat | Minor |
fix, deps | Patch |
refactor, perf, test, docs, style, chore, build, ci | None (no release on their own) |
Any type with ! or a BREAKING CHANGE: footer bumps major (minor while < 1.0.0 if bump-minor-pre-major is set). A Release-As: x.x.x footer forces a specific version.
feat(api)!: redesign authentication flow
BREAKING CHANGE: /auth/login now requires OAuth2 tokens instead of API keys.
For the full spec, decision tree, scope guidance, 15+ examples, and anti-patterns, see references/commit-conventions.md.
NEVER add Co-Authored-By trailers for AI agents in commit messages. These pollute changelogs and git history.
Configure your repository to use squash merges for feature branches. This ensures each PR produces a single conventional commit, keeping the changelog clean. Set the squash commit message to use the PR title (which should be a conventional commit message).
The GitHub Action needs contents: write and pull-requests: write at minimum. Add packages: write or id-token: write for publish steps as needed. Use the principle of least privilege — grant permissions per-job, not at workflow level.
Always set cancel-in-progress: false for release workflows. Canceling a release mid-way can leave partial state (tags without releases, PRs in inconsistent state).
Never publish in the release-please job itself. Use a separate publish job gated on release_created == 'true'. This separates concerns and makes retries easier.
Check if the version already exists in the registry before publishing. This prevents failures on workflow re-runs:
- name: Check if version exists
id: check
run: |
PACKAGE_NAME=$(node -p "require('./package.json').name")
VERSION=$(node -p "require('./package.json').version")
if npm view "${PACKAGE_NAME}@${VERSION}" version 2>/dev/null; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- if: steps.check.outputs.exists == 'false'
run: npm publish
When adding release-please to a project with existing releases:
.release-please-manifest.json to your current versionchore: commitRelease-As: x.x.x footer to force a starting versionfeat, fix, deps)release-please-config.json and manifest exist and are valid JSONchore: won't trigger a release, feat: triggers minorBREAKING CHANGE: footers that may trigger an unexpected major bumpRelease-As: x.x.x footer to override if neededworkflow_dispatch, not automatic push triggers1.2.3-alpha.1next npm tag (or equivalent) for pre-releases, latest for stablereferences/workflow-templates.mdGITHUB_TOKEN works for release-please PRs and releasesNPM_TOKEN, etc.)GITHUB_TOKEN with packages: write permission| Reference | Description |
|---|---|
references/commit-conventions.md | Full Conventional Commits specification with examples and anti-patterns |
references/workflow-templates.md | Complete workflow templates for 9 ecosystems |
references/config-options.md | All configuration options, release types, and Action inputs/outputs |
| release-please GitHub | Official documentation |
| Conventional Commits | Specification |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bmad-labs/skills --plugin bmad-skills23 skills in this plugin
/architecture-designUse when the user asks for a design package, designs folder, detailed design, solution design, or contracts of a system or service before it is built — C4, project structure, module design, ERD or data model, domain events, ingress or egress API (REST, gRPC, Kafka, Pub/Sub, SQL), sequence, class, state, or data pipeline diagrams — at a high, medium, or low level of detail; or asks to review, correct, or update an existing design package against its requirements./architecture-viz-studioUse when the user wants to visualize, present, "show", animate, or build an interactive web page for a software architecture, system design, technical concept, data model, pipeline, or product story — phrases like "intro page", "architecture visualization", "interactive diagram", "scrollytelling", "3D system map", "ERD page", "design walkthrough", "make our architecture look impressive", or "present this design to stakeholders". Also use before hand-rolling Three.js, GSAP or SVG architecture diagrams from scratch, or when the user wants visual feedback on such a page through an edit mode./bmad-leaderUse when a BMAD project has intent, PRD, architecture and optionally technical design, and the user wants one long-running session to drive implementation of stories or epics through bmad-build subagents ("lead the build", "run epic N", "drive the stories"); also when resuming a build ("resume the leader"), reporting progress, closing an epic, unblocking a subagent decision, or when the user explicitly asks for a retrospective of a leader run./book-converterConvert EPUB books (.epub) to high-quality formatted Markdown using pandoc and AI-assisted formatting. Use when the user provides an EPUB file path and wants it converted to professionally formatted Markdown (ebook to markdown, epub to md). This skill handles the complete workflow from EPUB extraction through AI-driven content formatting, including joining split paragraphs, correcting code blocks, standardizing headers, and creating a proper Table of Contents./close-loop-dev-setupUse when an agent cannot validate the product the way a human would — no browser or desktop harness, no screenshots, no vision check, or bmad-leader reports a UAT level as NOT RUN; also when the user says "set up screenshot testing", "let the agent see the UI", "drive the app with Playwright" or asks for a visual check, or to set up a cua-box or tart-box sandbox. Sets up a minimal drive-and-observe loop, by default in a per-project sandbox (Docker or Tart VM), and proves it can fail./create-intentUse when turning Jira stories, tickets, or raw requirement notes into business intent documents (intent, functional and non-functional requirements, open questions) before a PRD or design, when requirements are unclear, conflicting, or incomplete and need questions for a PO, or when the user says "create intent", "summarize the stories", "what does business want", or answers earlier intent questionsOther plugins' skills for the same job