Skill
/hanzo-web:release
Prepara la release del día: la rama
release/vDD_MM_YY, el cambio de versión y sus dos MRs, a producción y a develop.Fuente: plugins/hanzo-web/skills/release/SKILL.md · hanzo-web v0.2.0
Cuándo usarlo
Cuando toca sacar una release, o si después de mergearla se quedó fuera algún MR.
Qué hace
- Te pregunta si ya están en develop todos los MRs de la release y te enseña los que han entrado.
- Crea la rama
release/vDD_MM_YYdesde develop, con un único commit que pone la fecha de hoy en la constante de versión. - Redacta la lista de cambios con los títulos de los MRs mergeados desde la última release.
- Te enseña el título y la descripción, y pregunta antes de hacer push y crear los MRs.
- Crea los dos MRs y comprueba que "Squash commits" y "Delete source branch" quedan desmarcados.
Qué te entrega
Los enlaces de los dos MRs y si tienen desmarcadas las opciones de squash y de borrar la rama.
Pídelo así
/hanzo-web:release
O con tus palabras: «inicia una release», «saca release», «release de hoy».
A tener en cuenta
Si se olvidó un MR: nunca reescribe producción ni develop. Avanza la rama de release y sube la versión a DD-MM-YY+1.
Definición en el plugin
Las instrucciones que sigue la skill, tal como están en el plugin (en inglés).
Qué hace
Cut a release in a Hanzo Next.js + Strapi project:
release/vDD_MM_YYfrom origin/develop- bump the version constant
- two MRs (production + develop) with the merged-MR list
- squash and delete-source-branch unticked
Also the follow-up when an MR was forgotten.
Cuándo usarlo
Use when the user says:
- "inicia una release"
- "saca release"
- "release de hoy"
Values from the main checkout's .claude/hanzo-project.json: git.develop, git.production, release.versionFile, release.versionConst, gitlab.*, worktrees.dir.
- Ask first whether every MR meant for this release is already merged into develop (one gets forgotten sometimes). After
git fetch origin, showgit log --merges --first-parent --format='%s' origin/<production>..origin/<develop>. - Version = today's date: branch
release/vDD_MM_YY(always with thev), tagvDD_MM_YY,<versionConst> = 'DD-MM-YY'in<versionFile>(e.g. 12 Nov 2026 →release/v12_11_26,'12-11-26'). Worktree<worktrees.dir>/release-vDD_MM_YYfromorigin/<develop>. Single commitBump version to vDD_MM_YY. A release branch diffed against develop shows almost nothing — don't build the changes list that way. - Changes list = titles of the MRs merged into develop since the last release:
git log --merges --first-parent --format='%B' origin/<production>..<branch>(the body holds the MR title andSee merge request …!N). One bullet per MR:- <MR title> (!N); commits made directly on the branch as- <subject>. - Show the user the title (
Release vDD_MM_YY) and the description (English, md block) and ask before pushing/creating. Push togitlab.remoteonly. - Two MRs with the same title and description: one into
<production>, one into<develop>(checkgit log --first-parent origin/<production>to confirm past releases went to production). Create them with the GitLab MCP — it can't edit them afterwards. - Untick "Squash commits" and "Delete source branch" on both: the project defaults tick them and the MCP can't change them. Read the MRs back (
squash,force_remove_source_branch); if either is true, untick them on…/-/merge_requests/<iid>/editin the built-in browser if the user is signed in to GitLab there, otherwise ask the user to do it before merging. - An MR was forgotten after the release MRs were merged: never rewrite production/develop (no force push). Once the forgotten MR is in develop, fast-forward the still-existing release branch (
git merge --ff-only origin/<develop>), bump to'DD-MM-YY+1'(then+2, …) with commitBump version to vDD_MM_YY+1, push and open two new MRs titledRelease vDD_MM_YY+1. Their list holds only the MRs added since the previous release MR (git log --merges --first-parent origin/<production>..origin/<develop>, skipping the release's own merge) plus the bump, with a line saying it follows up the earlier production MR. Same squash/delete rule. - Report both MR links and their squash/delete-branch state.