Skill

/hanzo-web:jira-task

Lleva una tarea de Jira de principio a fin: desde leer la issue hasta proponerte el MR.

Fuente: plugins/hanzo-web/skills/jira-task/SKILL.md · hanzo-web v0.2.0

  • Claude Code /hanzo-web:jira-task <JIRA-KEY or URL>
  • Cursor /jira-task

Cuándo usarlo

Cuando tienes la clave o el enlace de una tarea de Jira y quieres implementarla.

Qué hace

  • Lee la issue y sus comentarios, y escribe la lista de criterios de aceptación con el texto literal de la tarea.
  • Te hace todas las preguntas abiertas antes de programar.
  • Crea un worktree con la rama feature/<KEY>-<slug> (o fix/… para bugs) desde develop.
  • En tareas no triviales planifica con architect, y antes de tocar algo compartido mide el impacto con usage-finder.
  • Implementa y verifica: lint y tests, gate local de CodeClimate y revisión de code-reviewer.
  • Si algo se ve distinto, lo comprueba en local y frente a PRE.

Qué te entrega

Los criterios marcados ✅ o ❌, el impacto, los tests, la línea de CodeClimate y cómo comprobarlo tú.

Pídelo así

/hanzo-web:jira-task <JIRA-KEY or URL>

O con tus palabras: «lee e intenta ejecutar».

A tener en cuenta

Si solo preguntas si se puede hacer, se queda en el análisis y las opciones. Siempre pregunta antes de hacer commit, push o MR.

Definición en el plugin

Las instrucciones que sigue la skill, tal como están en el plugin (en inglés).

Qué hace

End-to-end flow for a Jira task in a Hanzo Next.js + Strapi project:
  • read the issue and comments
  • pin down acceptance criteria and open questions
  • worktree + branch
  • plan
  • implement
  • test
  • CodeClimate gate
  • review
  • local preview with "how to check it"
  • then ask before commit/MR

Cuándo usarlo

Use when the user pastes a Jira link or key and asks to do, implement, look at or "lee e intenta ejecutar" it.

Paths: ${CLAUDE_PLUGIN_ROOT} is this plugin's folder (Claude Code expands it). If you see it literally (e.g. in Cursor), use the "Plugin scripts" path from the session context, or the plugin folder two levels above this skill (../../ from the folder of this SKILL.md).

  • The rules are in the session context injected by the hanzo-web plugin (and the main checkout's CLAUDE.local.md for project facts).
  • Read .claude/hanzo-project.json of the main checkout if it isn't in context.
  • This skill only orders the steps and adds the lessons from past tasks.

1. Read the task properly

  • Fetch the issue and its comments with the Atlassian tools (getJiraIssue, listJiraIssueComments); look at attachments/screenshots mentioned.
  • Write an acceptance-criteria checklist quoting the task verbatim, including constraints said in passing ("must be independent", "the size must match the others", "only site X", "controls optional"). Past rework came from skipping a sentence of the task.
  • If the user only asked "can it be done / what options do we have", stop after analysis + options. Don't implement until they choose.
  • Ask the user every open question (scope, base module, CMS editor UX) before coding, in one AskUserQuestion.

2. Set up

  • Worktree config.worktrees.dir/<slug> on feature/<KEY>-<slug> (bugs: fix/…) from a fresh origin/<config.git.develop>; symlink <config.apps.next>/node_modules from the main checkout; copy the Next .env only if you'll run Next.

3. Plan

  • Non-trivial (new block, CMS + front, shared component, several modules): run the hanzo-web:architect agent with the issue text, the checklist, the user's answers and the worktree path.
  • Before touching anything shared, run hanzo-web:usage-finder (or grep yourself) and tell the user the blast radius.

4. Implement

  • Do it in this session; use specialist agents only for parallel or isolated chunks. New CMS options default to today's behaviour. Write small files/functions from the start (≤ 25-line functions, ≤ 250-line files, complexity ≤ 5). Prefer .ts/.tsx; new .js files go into .eslintignore.
  • Update the Strapi generated typings with any schema change.

5. Verify (all before proposing commit/MR)

  1. cd <wt>/<config.apps.next> && npm run lint && npx jest <paths> (+ npx stylelint <scss>).
  2. node "${CLAUDE_PLUGIN_ROOT}/scripts/quality-gate-local.mjs" <wt> → fix new issues (aim for 0).
  3. hanzo-web:code-reviewer agent with the worktree path and the acceptance checklist (give it the code, not your conclusions). Fix blockers/majors.
  4. If anything renders differently: /hanzo-web:preview-local (or the hanzo-web:qa-parity agent) — check every criterion with measurements and compare with PRE.

6. Hand over

  • Report: checklist with ✅/❌, blast radius, tests, the CodeClimate line, and how the user can check it (local URLs, Strapi admin entry + field to toggle). Leave servers running only if the user will check now.
  • Ask before commit/push/MR. MR per the rules: English template, [KEY] <short title>, target config.git.develop, push to config.gitlab.remote only, description as an md block in chat. Commits without the Jira key.