# Release Core

> Release Core is an Agent Skill for devops & security published in the web-infra-dev/rsbuild repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when asked to release `@rsbuild/core` for a specific version.

- Skill name: `release-core`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/web-infra-dev/rsbuild/blob/HEAD/.agents/skills/release-core/SKILL.md
- Repository: web-infra-dev/rsbuild (3,353 GitHub stars when collected)

## SKILL.md

# Release Core

## Input

- Target version, for example `1.2.3`

If the version is missing, ask for it before making changes.

## Steps

1. Check the worktree with `git status --short`. If there are uncommitted edits, stop and ask the user how to proceed.

2. Update release versions:
   - `packages/core/package.json`: `version`
   - `packages/create-rsbuild/package.json`: `version`
   - `packages/create-rsbuild/template-*/package.json`: `@rsbuild/core` to `^<version>`

3. Create and switch to branch `release/v<version>`. If the branch already exists, stop and ask the user how to proceed.

4. Review the diff and confirm it is limited to the fields above. Run `rg -n '"@rsbuild/core":' packages/create-rsbuild/template-*/package.json` and confirm every template uses `^<version>`.

5. Create a commit with this exact message: `release: v<version>`

6. Push the branch. If running in Codex, create the PR with the GitHub connector/plugin. Otherwise, use the GitHub workflow available in the current environment. Use the same text for the PR title as the commit message: `release: v<version>`

7. If `.github/PULL_REQUEST_TEMPLATE.md` exists, keep its structure.
   Fill it with:
   - `Summary`: `Release @rsbuild/core and create-rsbuild <version>.`
   - `Related Links`: `https://github.com/web-infra-dev/rsbuild/releases/tag/v<version>`

---

Source: https://www.openparable.com/skill/devops-security/release-core (OpenParable). Cite the canonical URL above.
