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

  • Claude Code /hanzo-web:release
  • Cursor /release

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_YY desde 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_YY from 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.

  1. Ask first whether every MR meant for this release is already merged into develop (one gets forgotten sometimes). After git fetch origin, show git log --merges --first-parent --format='%s' origin/<production>..origin/<develop>.
  2. Version = today's date: branch release/vDD_MM_YY (always with the v), tag vDD_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_YY from origin/<develop>. Single commit Bump version to vDD_MM_YY. A release branch diffed against develop shows almost nothing — don't build the changes list that way.
  3. 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 and See merge request …!N). One bullet per MR: - <MR title> (!N); commits made directly on the branch as - <subject>.
  4. Show the user the title (Release vDD_MM_YY) and the description (English, md block) and ask before pushing/creating. Push to gitlab.remote only.
  5. Two MRs with the same title and description: one into <production>, one into <develop> (check git log --first-parent origin/<production> to confirm past releases went to production). Create them with the GitLab MCP — it can't edit them afterwards.
  6. 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>/edit in the built-in browser if the user is signed in to GitLab there, otherwise ask the user to do it before merging.
  7. 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 commit Bump version to vDD_MM_YY+1, push and open two new MRs titled Release 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.
  8. Report both MR links and their squash/delete-branch state.