Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eusilvio-release)
---
name: release
description: "Merge a release PR (integration branch into the default branch) with a merge commit, preserving the integration branch. Human-only."
argument-hint: "<pr-number>"
allowed-tools: Bash(gh:*), Bash(git:*)
model: sonnet
disable-model-invocation: true
---
Merge release PR #$ARGUMENTS into the default branch.
Use this only for the release PR: an integration branch (e.g. `development`)
into the repo default branch (e.g. `main`). For feature PRs targeting the
integration branch, use `/flow:merge`.
Speed rule: batch independent `gh`/`git` calls in one parallel message; chain
strictly sequential git steps with `&&` in a single Bash call.
## 1. Fetch everything up front (one parallel message)
```
gh pr view $ARGUMENTS --json number,state,headRefName,baseRefName,mergeStateStatus,author,body,url,statusCheckRollup
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name
```
Extract `headRefName` (source integration branch) and `baseRefName` (must be
the default branch). If `state` is `MERGED` or `CLOSED`, skip to step 4.
**Branch guard:** if `baseRefName` is not the default branch, STOP: this is
not a release merge. Merging into the default branch must never happen
silently, so ALSO ask the user to explicitly confirm before proceeding, even
when the base is correct.
**CI guard:** inspect `statusCheckRollup`. Empty (no CI): continue. Any check
FAILURE / TIMED_OUT / CANCELLED: report the failing checks and STOP - do not
merge over red CI. Any check PENDING: report it and STOP; the user reruns
after checks finish (or explicitly tells you to merge anyway).
## 2. Merge (merge commit, never squash, never delete the branch)
```
gh pr merge $ARGUMENTS --merge
```
- `--merge` (real merge commit), not `--squash`: squashing rewrites history
and makes the default branch diverge from the still-living integration
branch, breaking future release PRs.
- Do not pass `--delete-branch`: `headRefName` is long-lived and must be
preserved.
If merge fails (conflicts, checks failing), report the error and stop. Do
not force-merge.
## 3. Sync local branches (single chained call)
```
git checkout <baseRefName> && git pull origin <baseRefName> && git checkout <headRefName> && git merge --ff-only origin/<baseRefName> && git push origin <headRefName>
```
If the fast-forward is rejected, report it and stop (do not force). Leave
the user on `<headRefName>` ready to keep working.
## 4. Issues
On merge into the default branch, only issues referenced with a
`Closes/Fixes/Resolves #N` keyword auto-close. Report which linked issues
(from the PR body) are still open, so the user can close leftovers with
`/flow:merge` semantics or `gh issue close`. Do not close issues
silently here.
## 5. Confirm
Report: PR URL + merge status (merge commit SHA), CI status, integration
branch preserved, default and integration branches in sync, current branch
`<headRefName>` at latest commit, any still-open linked issues.