Skill
/hanzo-web:jira-task
Fuente: plugins/hanzo-web/skills/jira-task/SKILL.md · hanzo-web v0.2.0
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>(ofix/…para bugs) desde develop. - En tareas no triviales planifica con
architect, y antes de tocar algo compartido mide el impacto conusage-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
- 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
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 thisSKILL.md).
- The rules are in the session context injected by the hanzo-web plugin (and the main checkout's
CLAUDE.local.mdfor project facts). - Read
.claude/hanzo-project.jsonof 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>onfeature/<KEY>-<slug>(bugs:fix/…) from a freshorigin/<config.git.develop>; symlink<config.apps.next>/node_modulesfrom the main checkout; copy the Next.envonly if you'll run Next.
3. Plan
- Non-trivial (new block, CMS + front, shared component, several modules): run the
hanzo-web:architectagent 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.jsfiles go into.eslintignore. - Update the Strapi generated typings with any schema change.
5. Verify (all before proposing commit/MR)
cd <wt>/<config.apps.next> && npm run lint && npx jest <paths>(+npx stylelint <scss>).node "${CLAUDE_PLUGIN_ROOT}/scripts/quality-gate-local.mjs" <wt>→ fix new issues (aim for 0).hanzo-web:code-revieweragent with the worktree path and the acceptance checklist (give it the code, not your conclusions). Fix blockers/majors.- If anything renders differently:
/hanzo-web:preview-local(or thehanzo-web:qa-parityagent) — 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>, targetconfig.git.develop, push toconfig.gitlab.remoteonly, description as an md block in chat. Commits without the Jira key.