[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78D3GKZ2WZKWWV38EEWQWJD":3,"skill-same:01M78D3GKZ2WZKWWV38EEWQWJD":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M78D3GKZ2WZKWWV38EEWQWJD","jira-writeback",null,"Post the run's verdict comment (rendered from the plugins\u002Fjira-pack\u002Ftemplates\u002F template matching verdict + ticket class) and, when the verdict allows it, transition the ticket to jira.qaStatus by exact match. Idempotent via a hidden marker carrying verdict and class; the comment always precedes the transition attempt. NOT for classifying the ticket (that's jira-triage) and NOT for the board card (that's swarmery-board-card).","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fjira-pack\u002Fskills\u002Fjira-writeback\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jira-writeback\ndescription: \"Post the run's verdict comment (rendered from the plugins\u002Fjira-pack\u002Ftemplates\u002F template matching verdict + ticket class) and, when the verdict allows it, transition the ticket to jira.qaStatus by exact match. Idempotent via a hidden marker carrying verdict and class; the comment always precedes the transition attempt. NOT for classifying the ticket (that's jira-triage) and NOT for the board card (that's swarmery-board-card).\"\nversion: \"0.2.0\"\nowner: \"swarmery-core\"\ndocs:\n  status: reviewed\n  source_sha: abec8fdeeb3c\n  updated: 2026-08-06\n---\n\n# Purpose\n\nThe only skill in `jira-pack` that calls `addCommentToJiraIssue` or\n`transitionJiraIssue`. It takes `jira-triage`'s verdict and evidence bundle,\nrenders the matching template from `plugins\u002Fjira-pack\u002Ftemplates\u002F`, posts it,\nand — only when the caller says the verdict allows it — attempts the QA\ntransition. It never decides the verdict itself and never touches the board\ncard.\n\n# Inputs (from the caller, `@jira-task-runner`)\n\n- `verdict` — one of `already-fixed`, `cannot-reproduce`, `needs-info`,\n  `needs-fix` (Phase 7) — never called for `too-large`, which Phase 7's\n  `jira-escalation` handles on its own.\n- `class` — `defect` or `change`, from `jira-triage`. It selects the template\n  for `needs-fix` (see [Templates](#templates-plugins-jira-pack-templates)) and\n  is recorded in the idempotency marker. A `needs-fix` call that arrives\n  without a class is a caller bug: stop and report it rather than defaulting to\n  `defect`, which would post a root-cause comment on a feature ticket.\n- The evidence bundle from `jira-triage` (command, exit code, output\n  fragment, commit\u002Ftest reference, or the specific questions for\n  `needs-info`) — used to fill the chosen template's placeholders.\n- `attemptTransition: yes | no` — `no` only for `needs-info`; `yes` for every\n  other verdict this skill is called with.\n- `cloudId`, `issueIdOrKey`, and the pinned Atlassian MCP tool prefix, all\n  resolved by `jira-access-preflight`.\n- A run tag (the board card's `externalId`, or a timestamp-less tag if the\n  board is unavailable) for the idempotency marker.\n\n# Step 1 — resolve the transition, before composing the comment\n\nCall `getTransitionsForJiraIssue` (a **read**, always allowed, even in\n`--dry-run`, even when `attemptTransition: no` — see the note at the end of\nthis section). Search for a transition whose target status is an **exact**\nmatch against `jira.qaStatus` from the config: case-insensitive, leading\u002F\ntrailing whitespace trimmed, and nothing fuzzier than that. The config exists\nprecisely so this skill never has to guess which status is \"the QA one\" —\na partial or fuzzy match would silently pick the wrong transition on a\nworkflow with several similarly-named statuses.\n\n- **Found** → note the transition `id`; the comment will not need an extra\n  line, and Step 4 will actually call `transitionJiraIssue`.\n- **Not found** → the comment (composed in Step 2) gains a line naming every\n  available transition, and Step 4 never fires — the ticket's status is left\n  exactly as it was.\n\nThis read happens **first**, ahead of composing the comment body, because its\nresult decides whether the comment needs that extra \"status not changed\"\nline. Running it first does not violate the comment-before-transition\nordering below — that ordering is about the two **write** calls\n(`addCommentToJiraIssue`, `transitionJiraIssue`); a read is free to happen\nwhenever it is needed to make the write correct.\n\nWhen `attemptTransition: no` (the `needs-info` path): still call\n`getTransitionsForJiraIssue` only if the caller wants the dry-run\u002Ffor-the-record\nanswer; in a real (non-dry-run) `needs-info` run this read is not needed at\nall, since no transition of any kind will ever be attempted regardless of\nwhat it would return — skip it to avoid an unnecessary call.\n\n# Step 2 — compose the comment\n\nRender the template matching the verdict (see\n[Templates](#templates-plugins-jira-pack-templates)) with the evidence bundle,\nplus — only if Step 1 found no match — the \"status not changed\" line:\n\n```\nStatus not changed: no transition to \"\u003Cjira.qaStatus>\" exists in the current\nworkflow.\nAvailable transitions: \u003Ccomma-separated list of transition names>.\n```\n\nEvery rendered comment ends with a hidden idempotency marker as its **literal\nlast line**, and the marker carries this run's verdict so a later run can\ndecide whether to skip **without** re-deriving the verdict from the comment's\nrendered prose:\n\n```\n\u003C!-- swarmery:jira-task-runner run=\u003Cexternal_id or run tag> verdict=\u003Calready-fixed|cannot-reproduce|needs-fix|needs-info|too-large> class=\u003Cdefect|change> -->\n```\n\n`class` is recorded alongside the verdict because the two together are what a\nlater run needs to decide whether anything changed: the same ticket can\nlegitimately move from `needs-info` (criteria weren't testable) to `needs-fix`\n(they are now), and a marker carrying only the verdict cannot distinguish a\nre-run of the same conclusion from a genuinely new one on a re-classified\nticket.\n\n**Language**: the same language the ticket is written in (read off\n`summary`\u002F`description`); English if that is ambiguous.\n\n# Step 3 — idempotency check\n\nBefore posting, scan the ticket's existing comments (already fetched during\n`jira-triage`'s Step 1 read — no extra call needed) for markers matching this\nagent's tag, `\u003C!-- swarmery:jira-task-runner run=\u003Ctag> verdict=\u003Cslug> -->`. If\nmore than one such marker exists on the ticket, take the **most recent** one —\nnever an older one. The skip decision is read straight off that marker's\n`verdict` field — never reconstructed by reading the surrounding comment\nprose:\n\n- **No marker with this run's tag** (first run, or the board card is new) →\n  write.\n- **Marker found, `verdict` differs from this run's verdict** — e.g. the most\n  recent marker carries `verdict=needs-info` and this run just produced\n  `cannot-reproduce` (more information became available, or the environment\n  got fixed) → write; only a truly identical repeat write is what idempotency\n  guards against.\n- **Marker found, `verdict` matches this run's verdict** → skip the write,\n  recording `comment: skipped (identical verdict already posted)`.\n\nUse the exact verdict slugs `jira-triage` assigns: `already-fixed`,\n`cannot-reproduce`, `needs-fix`, `needs-info`, `too-large` — never a\nparaphrase, so the marker's `verdict` field always matches one of the five.\n\n# Step 4 — post, in order: comment, then transition\n\n1. **Write** the comment via `addCommentToJiraIssue`\n   (`contentFormat: \"markdown\"`, `cloudId`, `issueIdOrKey`, `commentBody`) —\n   unless Step 3 said to skip.\n2. **Only then**, if `attemptTransition: yes` and Step 1 found a match, call\n   `transitionJiraIssue` with `transition: {id}`.\n\n**Why this order, specifically**: if the transition call fails after the\ncomment succeeded, the ticket already carries the explanation of what the run\nfound — a human reading it is not left guessing. The reverse order (transition\nfirst) would risk leaving the ticket moved to a new status with no comment\nexplaining why, which is a worse failure mode than a transition that simply\ndidn't happen yet.\n\n# Dry-run\n\nNo call to `addCommentToJiraIssue` or `transitionJiraIssue` — those are the\nonly two calls this mode suppresses. `getTransitionsForJiraIssue` (Step 1) and\nthe idempotency scan (Step 3, over already-fetched comments) still run, so the\ndry-run's printed answer is honest rather than a guess. Print, instead of the\ntwo write calls:\n\n```\nDRY-RUN jira comment \u003CKEY>\n\u003Cfull rendered comment text, including the hidden marker line>\nDRY-RUN jira transition \u003CKEY> → \"\u003Cjira.qaStatus>\" (transition id=\u003Cid> | NOT AVAILABLE)\n```\n\nIf Step 3 would have skipped the write (identical verdict already posted),\nprint that instead of the `DRY-RUN jira comment` line:\n`would skip: identical verdict already posted`.\n\n# Templates (`plugins\u002Fjira-pack\u002Ftemplates\u002F`)\n\n| Verdict | Class | Template |\n|---|---|---|\n| `already-fixed` | either | `comment-already-fixed.md` |\n| `cannot-reproduce` | `defect` only (a `change` ticket can never carry this verdict — `jira-triage`) | `comment-cannot-reproduce.md` |\n| `needs-info` | either | `comment-needs-info.md` |\n| `needs-fix` | `defect` | `comment-fix-summary.md` |\n| `needs-fix` | `change` | `comment-change-summary.md` |\n| `too-large` (posted by `jira-escalation`, not this skill) | either | `comment-too-large.md` |\n\nThe `needs-fix` split is the whole reason `class` is an input: the defect\ntemplate opens with a root cause, which a change ticket does not have, and the\nchange template pairs each acceptance criterion with the test that now asserts\nit, which a defect fix has no list for. Rendering the wrong one produces a\ncomment whose first line is a fabrication.\n\n**A `cannot-reproduce` call for a `class: change` ticket is a caller bug** —\nstop and report it instead of rendering the template. `jira-triage` cannot\nproduce that combination; if it arrives here, something upstream reclassified\nor lost the class, and posting it would move unimplemented work to QA.\n\nEvery template ships with placeholders only — no real ticket keys, hostnames,\nor team names (`docs\u002FNEUTRALITY.md`).\n\n# Placeholders \u002F neutrality\n\nAny example this skill's own report prints uses only `\u003Cjira-base-url>`-style\nhosts, `\u003CKEY>`, and `\u003CPROJECT-KEY>` — `scripts\u002Fscan-flavor.sh` must stay\n`✓ clean` for `plugins\u002F**`.\n\n# Self-check before returning\n\n- [ ] `getTransitionsForJiraIssue` ran before the comment body was finalized,\n      whenever a transition might be attempted\n- [ ] The rendered comment ends with the hidden marker as its literal last\n      line, carrying both `verdict=` and `class=`\n- [ ] The template was selected by verdict **and** class — `needs-fix` on a\n      `change` ticket rendered `comment-change-summary.md`, never the\n      root-cause-shaped `comment-fix-summary.md`\n- [ ] No `cannot-reproduce` comment was rendered for a `class: change` ticket\n- [ ] The idempotency check read the verdict off the most recent marker's\n      `verdict` field — never skipped on marker presence alone, and never\n      guessed the prior verdict from the comment's rendered prose\n- [ ] `addCommentToJiraIssue` was called (or explicitly skipped, with a\n      recorded reason) before any `transitionJiraIssue` call in the same run\n- [ ] `needs-info` calls never resulted in a `transitionJiraIssue` call\n- [ ] Dry-run made zero calls to `addCommentToJiraIssue`\u002F`transitionJiraIssue`\n\n# Common mistakes to avoid\n\n- Calling `transitionJiraIssue` before `addCommentToJiraIssue` \"to save a\n  round trip\" — never; the ordering exists specifically for the failure case.\n- Fuzzy-matching `jira.qaStatus` (\"QA\" matching \"QA Review\") — exact,\n  case-insensitive, trimmed, nothing looser.\n- Skipping a comment merely because *any* marker is present, without checking\n  its `verdict` field matches this run's verdict — and never inferring that\n  prior verdict from the comment's rendered text instead of the marker.\n- Posting the \"status not changed\" line even when a matching transition was\n  found (it belongs only in the not-found branch).\n\n# Related\n\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-triage\u002FSKILL.md` — produces the verdict and\n  evidence bundle this skill renders and posts.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-config\u002FSKILL.md` — source of `jira.qaStatus`.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-access-preflight\u002FSKILL.md` — source of the\n  pinned Atlassian MCP tool prefix and `cloudId`.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fswarmery-board-card\u002FSKILL.md` — moves the board\n  card after this skill completes; this skill never calls the board API\n  itself.\n- `plugins\u002Fjira-pack\u002Ftemplates\u002F` — the five comment templates this skill\n  renders from.\n\n# How to use\n\n## What it does\n\nThis skill is the only thing in the pack that writes to a ticket. You hand it a verdict and the evidence behind it, and it renders the matching comment template, posts it, and — when the verdict allows — moves the ticket to your configured QA status. It never decides the verdict itself, and it never touches the board card.\n\n## When to use it\n\n- A triage step has produced a verdict and evidence bundle, and the ticket now needs that result written back as a comment.\n- The run finished successfully and the ticket should move to the configured QA status.\n- You want a rerun on the same ticket to stay safe: an identical verdict posts nothing twice.\n- You are checking a run end to end and want the dry-run output of exactly what would be posted.\n\n## When not to use it\n\n- To decide whether a ticket is already fixed, needs a fix, or needs more information — use `jira-triage`.\n- To move the tracking card on the board after the comment lands — use `swarmery-board-card`.\n- To post the over-budget plan comment on a `too-large` ticket — use `jira-escalation`.\n- To find the QA status name or the connection details — use `jira-config` and `jira-access-preflight`.\n\n## How to invoke\n\n```\nSkill(skill: \"jira-pack:jira-writeback\")\n```\n\nCall it once per run, after triage has finished. It is normally invoked by the task runner rather than typed by hand.\n\n## Inputs\n\n- `verdict` — one of `already-fixed`, `cannot-reproduce`, `needs-info`, `needs-fix` — required.\n- `class` — `defect` or `change` — required; it picks which `needs-fix` template renders.\n- Evidence bundle — the command, exit code, output fragment, commit or test reference, or the questions to ask — required.\n- `attemptTransition` — `yes` or `no`; `no` only for `needs-info` — required.\n- `cloudId`, ticket key, and the pinned tool prefix — required, all resolved by the preflight skill.\n- Run tag — the identifier written into the hidden idempotency marker — required.\n\n## What you get back\n\nA comment on the ticket, written in the ticket's own language, ending with a hidden marker that records the verdict and class. If no transition matching your QA status exists, the comment names every transition that does exist and the status is left alone. The comment is always written before the transition is attempted, so a failed move never leaves an unexplained status change. In dry-run mode nothing is written — you get the full rendered comment and the transition decision printed instead.\n\n## Worked example\n\n```\nSkill(skill: \"jira-pack:jira-writeback\")\nverdict: cannot-reproduce, class: defect, attemptTransition: yes, key: \u003CKEY>\n\n→ reads available transitions, finds one matching the configured QA status\n→ renders comment-cannot-reproduce.md with the repro command and exit code\n→ no prior marker for this run tag, so it posts the comment\n→ then transitions \u003CKEY> to the QA status\n```\n\nYou end up with one comment carrying the evidence and a hidden marker, and the ticket sitting in QA. Rerun it with the same verdict and it reports `comment: skipped (identical verdict already posted)`.\n\n## Related\n\n- `jira-triage` — produces the verdict and evidence this skill renders.\n- `jira-escalation` — handles the `too-large` verdict, which this skill never receives.\n- `swarmery-board-card` — moves the board card once this skill has finished.\n- `jira-config` — supplies the QA status name matched here.\n","# Purpose\n\nThe only skill in `jira-pack` that calls `addCommentToJiraIssue` or\n`transitionJiraIssue`. It takes `jira-triage`'s verdict and evidence bundle,\nrenders the matching template from `plugins\u002Fjira-pack\u002Ftemplates\u002F`, posts it,\nand — only when the caller says the verdict allows it — attempts the QA\ntransition. It never decides the verdict itself and never touches the board\ncard.\n\n# Inputs (from the caller, `@jira-task-runner`)\n\n- `verdict` — one of `already-fixed`, `cannot-reproduce`, `needs-info`,\n  `needs-fix` (Phase 7) — never called for `too-large`, which Phase 7's\n  `jira-escalation` handles on its own.\n- `class` — `defect` or `change`, from `jira-triage`. It selects the template\n  for `needs-fix` (see [Templates](#templates-plugins-jira-pack-templates)) and\n  is recorded in the idempotency marker. A `needs-fix` call that arrives\n  without a class is a caller bug: stop and report it rather than defaulting to\n  `defect`, which would post a root-cause comment on a feature ticket.\n- The evidence bundle from `jira-triage` (command, exit code, output\n  fragment, commit\u002Ftest reference, or the specific questions for\n  `needs-info`) — used to fill the chosen template's placeholders.\n- `attemptTransition: yes | no` — `no` only for `needs-info`; `yes` for every\n  other verdict this skill is called with.\n- `cloudId`, `issueIdOrKey`, and the pinned Atlassian MCP tool prefix, all\n  resolved by `jira-access-preflight`.\n- A run tag (the board card's `externalId`, or a timestamp-less tag if the\n  board is unavailable) for the idempotency marker.\n\n# Step 1 — resolve the transition, before composing the comment\n\nCall `getTransitionsForJiraIssue` (a **read**, always allowed, even in\n`--dry-run`, even when `attemptTransition: no` — see the note at the end of\nthis section). Search for a transition whose target status is an **exact**\nmatch against `jira.qaStatus` from the config: case-insensitive, leading\u002F\ntrailing whitespace trimmed, and nothing fuzzier than that. The config exists\nprecisely so this skill never has to guess which status is \"the QA one\" —\na partial or fuzzy match would silently pick the wrong transition on a\nworkflow with several similarly-named statuses.\n\n- **Found** → note the transition `id`; the comment will not need an extra\n  line, and Step 4 will actually call `transitionJiraIssue`.\n- **Not found** → the comment (composed in Step 2) gains a line naming every\n  available transition, and Step 4 never fires — the ticket's status is left\n  exactly as it was.\n\nThis read happens **first**, ahead of composing the comment body, because its\nresult decides whether the comment needs that extra \"status not changed\"\nline. Running it first does not violate the comment-before-transition\nordering below — that ordering is about the two **write** calls\n(`addCommentToJiraIssue`, `transitionJiraIssue`); a read is free to happen\nwhenever it is needed to make the write correct.\n\nWhen `attemptTransition: no` (the `needs-info` path): still call\n`getTransitionsForJiraIssue` only if the caller wants the dry-run\u002Ffor-the-record\nanswer; in a real (non-dry-run) `needs-info` run this read is not needed at\nall, since no transition of any kind will ever be attempted regardless of\nwhat it would return — skip it to avoid an unnecessary call.\n\n# Step 2 — compose the comment\n\nRender the template matching the verdict (see\n[Templates](#templates-plugins-jira-pack-templates)) with the evidence bundle,\nplus — only if Step 1 found no match — the \"status not changed\" line:\n\n```\nStatus not changed: no transition to \"\u003Cjira.qaStatus>\" exists in the current\nworkflow.\nAvailable transitions: \u003Ccomma-separated list of transition names>.\n```\n\nEvery rendered comment ends with a hidden idempotency marker as its **literal\nlast line**, and the marker carries this run's verdict so a later run can\ndecide whether to skip **without** re-deriving the verdict from the comment's\nrendered prose:\n\n```\n\u003C!-- swarmery:jira-task-runner run=\u003Cexternal_id or run tag> verdict=\u003Calready-fixed|cannot-reproduce|needs-fix|needs-info|too-large> class=\u003Cdefect|change> -->\n```\n\n`class` is recorded alongside the verdict because the two together are what a\nlater run needs to decide whether anything changed: the same ticket can\nlegitimately move from `needs-info` (criteria weren't testable) to `needs-fix`\n(they are now), and a marker carrying only the verdict cannot distinguish a\nre-run of the same conclusion from a genuinely new one on a re-classified\nticket.\n\n**Language**: the same language the ticket is written in (read off\n`summary`\u002F`description`); English if that is ambiguous.\n\n# Step 3 — idempotency check\n\nBefore posting, scan the ticket's existing comments (already fetched during\n`jira-triage`'s Step 1 read — no extra call needed) for markers matching this\nagent's tag, `\u003C!-- swarmery:jira-task-runner run=\u003Ctag> verdict=\u003Cslug> -->`. If\nmore than one such marker exists on the ticket, take the **most recent** one —\nnever an older one. The skip decision is read straight off that marker's\n`verdict` field — never reconstructed by reading the surrounding comment\nprose:\n\n- **No marker with this run's tag** (first run, or the board card is new) →\n  write.\n- **Marker found, `verdict` differs from this run's verdict** — e.g. the most\n  recent marker carries `verdict=needs-info` and this run just produced\n  `cannot-reproduce` (more information became available, or the environment\n  got fixed) → write; only a truly identical repeat write is what idempotency\n  guards against.\n- **Marker found, `verdict` matches this run's verdict** → skip the write,\n  recording `comment: skipped (identical verdict already posted)`.\n\nUse the exact verdict slugs `jira-triage` assigns: `already-fixed`,\n`cannot-reproduce`, `needs-fix`, `needs-info`, `too-large` — never a\nparaphrase, so the marker's `verdict` field always matches one of the five.\n\n# Step 4 — post, in order: comment, then transition\n\n1. **Write** the comment via `addCommentToJiraIssue`\n   (`contentFormat: \"markdown\"`, `cloudId`, `issueIdOrKey`, `commentBody`) —\n   unless Step 3 said to skip.\n2. **Only then**, if `attemptTransition: yes` and Step 1 found a match, call\n   `transitionJiraIssue` with `transition: {id}`.\n\n**Why this order, specifically**: if the transition call fails after the\ncomment succeeded, the ticket already carries the explanation of what the run\nfound — a human reading it is not left guessing. The reverse order (transition\nfirst) would risk leaving the ticket moved to a new status with no comment\nexplaining why, which is a worse failure mode than a transition that simply\ndidn't happen yet.\n\n# Dry-run\n\nNo call to `addCommentToJiraIssue` or `transitionJiraIssue` — those are the\nonly two calls this mode suppresses. `getTransitionsForJiraIssue` (Step 1) and\nthe idempotency scan (Step 3, over already-fetched comments) still run, so the\ndry-run's printed answer is honest rather than a guess. Print, instead of the\ntwo write calls:\n\n```\nDRY-RUN jira comment \u003CKEY>\n\u003Cfull rendered comment text, including the hidden marker line>\nDRY-RUN jira transition \u003CKEY> → \"\u003Cjira.qaStatus>\" (transition id=\u003Cid> | NOT AVAILABLE)\n```\n\nIf Step 3 would have skipped the write (identical verdict already posted),\nprint that instead of the `DRY-RUN jira comment` line:\n`would skip: identical verdict already posted`.\n\n# Templates (`plugins\u002Fjira-pack\u002Ftemplates\u002F`)\n\n| Verdict | Class | Template |\n|---|---|---|\n| `already-fixed` | either | `comment-already-fixed.md` |\n| `cannot-reproduce` | `defect` only (a `change` ticket can never carry this verdict — `jira-triage`) | `comment-cannot-reproduce.md` |\n| `needs-info` | either | `comment-needs-info.md` |\n| `needs-fix` | `defect` | `comment-fix-summary.md` |\n| `needs-fix` | `change` | `comment-change-summary.md` |\n| `too-large` (posted by `jira-escalation`, not this skill) | either | `comment-too-large.md` |\n\nThe `needs-fix` split is the whole reason `class` is an input: the defect\ntemplate opens with a root cause, which a change ticket does not have, and the\nchange template pairs each acceptance criterion with the test that now asserts\nit, which a defect fix has no list for. Rendering the wrong one produces a\ncomment whose first line is a fabrication.\n\n**A `cannot-reproduce` call for a `class: change` ticket is a caller bug** —\nstop and report it instead of rendering the template. `jira-triage` cannot\nproduce that combination; if it arrives here, something upstream reclassified\nor lost the class, and posting it would move unimplemented work to QA.\n\nEvery template ships with placeholders only — no real ticket keys, hostnames,\nor team names (`docs\u002FNEUTRALITY.md`).\n\n# Placeholders \u002F neutrality\n\nAny example this skill's own report prints uses only `\u003Cjira-base-url>`-style\nhosts, `\u003CKEY>`, and `\u003CPROJECT-KEY>` — `scripts\u002Fscan-flavor.sh` must stay\n`✓ clean` for `plugins\u002F**`.\n\n# Self-check before returning\n\n- [ ] `getTransitionsForJiraIssue` ran before the comment body was finalized,\n      whenever a transition might be attempted\n- [ ] The rendered comment ends with the hidden marker as its literal last\n      line, carrying both `verdict=` and `class=`\n- [ ] The template was selected by verdict **and** class — `needs-fix` on a\n      `change` ticket rendered `comment-change-summary.md`, never the\n      root-cause-shaped `comment-fix-summary.md`\n- [ ] No `cannot-reproduce` comment was rendered for a `class: change` ticket\n- [ ] The idempotency check read the verdict off the most recent marker's\n      `verdict` field — never skipped on marker presence alone, and never\n      guessed the prior verdict from the comment's rendered prose\n- [ ] `addCommentToJiraIssue` was called (or explicitly skipped, with a\n      recorded reason) before any `transitionJiraIssue` call in the same run\n- [ ] `needs-info` calls never resulted in a `transitionJiraIssue` call\n- [ ] Dry-run made zero calls to `addCommentToJiraIssue`\u002F`transitionJiraIssue`\n\n# Common mistakes to avoid\n\n- Calling `transitionJiraIssue` before `addCommentToJiraIssue` \"to save a\n  round trip\" — never; the ordering exists specifically for the failure case.\n- Fuzzy-matching `jira.qaStatus` (\"QA\" matching \"QA Review\") — exact,\n  case-insensitive, trimmed, nothing looser.\n- Skipping a comment merely because *any* marker is present, without checking\n  its `verdict` field matches this run's verdict — and never inferring that\n  prior verdict from the comment's rendered text instead of the marker.\n- Posting the \"status not changed\" line even when a matching transition was\n  found (it belongs only in the not-found branch).\n\n# Related\n\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-triage\u002FSKILL.md` — produces the verdict and\n  evidence bundle this skill renders and posts.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-config\u002FSKILL.md` — source of `jira.qaStatus`.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fjira-access-preflight\u002FSKILL.md` — source of the\n  pinned Atlassian MCP tool prefix and `cloudId`.\n- `plugins\u002Fjira-pack\u002Fskills\u002Fswarmery-board-card\u002FSKILL.md` — moves the board\n  card after this skill completes; this skill never calls the board API\n  itself.\n- `plugins\u002Fjira-pack\u002Ftemplates\u002F` — the five comment templates this skill\n  renders from.\n\n# How to use\n\n## What it does\n\nThis skill is the only thing in the pack that writes to a ticket. You hand it a verdict and the evidence behind it, and it renders the matching comment template, posts it, and — when the verdict allows — moves the ticket to your configured QA status. It never decides the verdict itself, and it never touches the board card.\n\n## When to use it\n\n- A triage step has produced a verdict and evidence bundle, and the ticket now needs that result written back as a comment.\n- The run finished successfully and the ticket should move to the configured QA status.\n- You want a rerun on the same ticket to stay safe: an identical verdict posts nothing twice.\n- You are checking a run end to end and want the dry-run output of exactly what would be posted.\n\n## When not to use it\n\n- To decide whether a ticket is already fixed, needs a fix, or needs more information — use `jira-triage`.\n- To move the tracking card on the board after the comment lands — use `swarmery-board-card`.\n- To post the over-budget plan comment on a `too-large` ticket — use `jira-escalation`.\n- To find the QA status name or the connection details — use `jira-config` and `jira-access-preflight`.\n\n## How to invoke\n\n```\nSkill(skill: \"jira-pack:jira-writeback\")\n```\n\nCall it once per run, after triage has finished. It is normally invoked by the task runner rather than typed by hand.\n\n## Inputs\n\n- `verdict` — one of `already-fixed`, `cannot-reproduce`, `needs-info`, `needs-fix` — required.\n- `class` — `defect` or `change` — required; it picks which `needs-fix` template renders.\n- Evidence bundle — the command, exit code, output fragment, commit or test reference, or the questions to ask — required.\n- `attemptTransition` — `yes` or `no`; `no` only for `needs-info` — required.\n- `cloudId`, ticket key, and the pinned tool prefix — required, all resolved by the preflight skill.\n- Run tag — the identifier written into the hidden idempotency marker — required.\n\n## What you get back\n\nA comment on the ticket, written in the ticket's own language, ending with a hidden marker that records the verdict and class. If no transition matching your QA status exists, the comment names every transition that does exist and the status is left alone. The comment is always written before the transition is attempted, so a failed move never leaves an unexplained status change. In dry-run mode nothing is written — you get the full rendered comment and the transition decision printed instead.\n\n## Worked example\n\n```\nSkill(skill: \"jira-pack:jira-writeback\")\nverdict: cannot-reproduce, class: defect, attemptTransition: yes, key: \u003CKEY>\n\n→ reads available transitions, finds one matching the configured QA status\n→ renders comment-cannot-reproduce.md with the repro command and exit code\n→ no prior marker for this run tag, so it posts the comment\n→ then transitions \u003CKEY> to the QA status\n```\n\nYou end up with one comment carrying the evidence and a hidden marker, and the ticket sitting in QA. Rerun it with the same verdict and it reports `comment: skipped (identical verdict already posted)`.\n\n## Related\n\n- `jira-triage` — produces the verdict and evidence this skill renders.\n- `jira-escalation` — handles the `too-large` verdict, which this skill never receives.\n- `swarmery-board-card` — moves the board card once this skill has finished.\n- `jira-config` — supplies the QA status name matched here.\n",{"docs":24,"name":5,"owner":28,"version":29,"description":7},{"status":25,"updated":26,"source_sha":27},"reviewed",1785974400000,"abec8fdeeb3c","swarmery-core","0.2.0","main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fjira-pack\u002Fskills\u002Fjira-writeback",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add atretyak1985\u002Fswarmery --skill jira-writeback",{"tool":44,"command":45},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill jira-writeback",{"tool":47,"command":48},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill jira-writeback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fjira-pack\u002Fskills\u002Fjira-writeback\u002FSKILL.md",true,[],[53,60,66,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]