[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAGCKWTDR7GDJK85MY4HPW":3,"skill-same:01M6CAGCKWTDR7GDJK85MY4HPW":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6CAGCKWTDR7GDJK85MY4HPW","issue-update","工单状态与字段更新","Update existing ticket\u002Fissue with status changes, comments, or field updates","更新现有工单\u002F问题：状态变更、评论或字段更新。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fissue-update\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"update","issue","issue update","comments","Existing","efficiency","updates","labels","ticket","project","status","edit","write","read","haiku","create","text","project-management","Bash","MCP","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nname: issue-update\nplatforms: [all]\ndescription: Update existing ticket\u002Fissue with status changes, comments, or field updates\ncommandHint:\n  argumentHint: \u003Cticket-id> [--status STATUS --comment \"text\" --assignee USER --labels \"label1,label2\" --priority LEVEL]\n  allowedTools: Read, Write, Glob, Bash, mcp__gitea__edit_issue, mcp__gitea__create_issue_comment\n  model: haiku\n  category: project-management\n  modelRole: efficiency\n  modelTier: economy\n---\n\n\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Issue Update\n\n## Output template\n\nFor comments, the matching template is required; fill every required section before posting (mark non-applicable fields with a reason): progress\u002Fstatus — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Fprogress-update.md; blocker — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Fblocker-found.md; feedback request — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Ffeedback-needed.md; task completion — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Ftask-completed.md.\n\n## Semantic Label Contract (#1789)\n\nResolve label mutations through `.aiwg\u002Faiwg.config` `issues.labels` for the\nprovider selected by `remotes.issue_tracker`. Add a role only when its declared\ncondition is true. When `resume_when` is satisfied, remove the transient role\nor replace it with `transition_to` in one read-modify-write operation that\npreserves unrelated labels. Never provision missing configured labels\nimplicitly; report them as diagnostics. Warn explicitly before legacy name\nfallback.\n\n## Purpose\n\nUpdate an existing ticket\u002Fissue with status transitions, progress comments, assignee changes, or metadata updates. Automatically uses the configured ticketing provider (Gitea, GitHub, Jira, Linear) or local file-based tracking.\n\n## Task\n\nGiven a ticket ID and update parameters:\n\n1. **Load configuration** from `.aiwg\u002Fconfig.yaml` or project `CLAUDE.md`\n2. **Validate ticket exists** on provider or in local files\n3. **Apply updates** (status, comment, assignee, labels, priority)\n4. **Return confirmation** with updated ticket details\n\n## Parameters\n\n- **`\u003Cticket-id>`** (required): Issue identifier (e.g., `ISSUE-001`, `#42`, `PROJECT-123`, `ENG-456`)\n- **`--status STATE`** (optional): Update ticket status\n  - Valid states: `open`, `in_progress`, `closed`, `blocked`, `review`\n  - Provider-specific mappings applied automatically\n- **`--comment \"text\"`** (optional): Add progress comment or note\n- **`--assignee USER`** (optional): Assign to user (or `unassigned` to clear)\n- **`--labels \"label1,label2\"`** (optional): Replace labels (comma-separated)\n- **`--add-labels \"label1,label2\"`** (optional): Add labels without replacing existing\n- **`--remove-labels \"label1,label2\"`** (optional): Remove specific labels\n- **`--priority LEVEL`** (optional): Update priority (low|medium|high|critical)\n- **`--milestone NAME`** (optional): Associate with milestone (provider-dependent)\n- **`--provider NAME`** (optional): Override configured provider\n\n## Inputs\n\n**Configuration sources** (same as `issue-create`):\n1. `.aiwg\u002Fconfig.yaml` - Project-level configuration\n2. `CLAUDE.md` - User-level configuration\n3. Default: `local` provider\n\n## Outputs\n\n**All Providers**:\n- Confirmation of update\n- Updated ticket details\n- URL or file path to view changes\n\n## Workflow\n\n### Step 1: Parse Parameters\n\nExtract from command invocation:\n\n```bash\n# Update status\n\u002Fissue-update ISSUE-001 --status in_progress\n\n# Add comment\n\u002Fissue-update ISSUE-001 --comment \"Completed authentication module, working on authorization next\"\n\n# Update status with comment\n\u002Fissue-update ISSUE-001 --status closed --comment \"Fixed in commit abc123\"\n\n# Assign ticket\n\u002Fissue-update ISSUE-001 --assignee johndoe\n\n# Update multiple fields\n\u002Fissue-update ISSUE-001 --status in_progress --assignee johndoe --priority high --comment \"Started implementation\"\n\n# Add labels without replacing\n\u002Fissue-update ISSUE-001 --add-labels \"urgent,needs-review\"\n\n# Remove labels\n\u002Fissue-update ISSUE-001 --remove-labels \"wip,blocked\"\n\n# Replace all labels\n\u002Fissue-update ISSUE-001 --labels \"completed,tested\"\n```\n\n**Parameter extraction**:\n- Issue ID: First argument (required)\n- Flags: Parse `--flag value` pairs\n- At least one update flag required (status, comment, assignee, labels, priority)\n\n### Step 2: Load Configuration\n\nSame as `issue-create` command:\n\n1. Check `.aiwg\u002Fconfig.yaml`\n2. Fallback to `CLAUDE.md`\n3. Default to `local` provider\n\nOverride with `--provider` if specified.\n\n### Step 3: Validate Issue Exists\n\n**Gitea**:\n```bash\n# Fetch issue to verify existence\ncurl -s -H \"Authorization: token $(cat ~\u002F.config\u002Fgitea\u002Ftoken)\" \\\n  \"${URL}\u002Fapi\u002Fv1\u002Frepos\u002F${OWNER}\u002F${REPO}\u002Fissues\u002F${TICKET_NUM}\"\n\n# Check HTTP status: 200 = exists, 404 = not found\n```\n\n**GitHub**:\n```bash\n# Fetch issue via gh CLI\ngh issue view \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n\n# Exit code 0 = exists, non-zero = not found\n```\n\n**Jira**:\n```bash\n# Fetch issue via REST API\ncurl -s -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\"\n\n# Check HTTP status: 200 = exists, 404 = not found\n```\n\n**Linear**:\n```bash\n# Fetch issue via GraphQL\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -d '{\"query\": \"query { issue(id: \\\"'${ISSUE_ID}'\\\") { id identifier title } }\"}'\n\n# Check if issue returned in response\n```\n\n**Local**:\n```bash\n# Check if file exists\nif [ -f \".aiwg\u002Fissues\u002F${TICKET_ID}.md\" ]; then\n  echo \"Issue exists\"\nelse\n  echo \"Issue not found\"\nfi\n```\n\n**Error if not found**:\n```\n❌ Issue not found: ISSUE-001\n\nAvailable tickets:\n- ISSUE-002: Add dark mode\n- ISSUE-003: Fix navigation bug\n\nList all tickets: \u002Fissue-list\n```\n\n### Step 4: Map Status to Provider-Specific Values\n\n**Status mapping table**:\n\n| Generic | Gitea | GitHub | Jira | Linear | Local |\n|---------|-------|--------|------|--------|-------|\n| `open` | open | open | To Do | Backlog | open |\n| `in_progress` | open | open | In Progress | In Progress | in_progress |\n| `closed` | closed | closed | Done | Done | closed |\n| `blocked` | open | open | Blocked | Blocked | blocked |\n| `review` | open | open | In Review | In Review | review |\n\n**Implementation**:\n```bash\ncase \"${PROVIDER}\" in\n  gitea|github)\n    case \"${STATUS}\" in\n      closed) PROVIDER_STATUS=\"closed\" ;;\n      *) PROVIDER_STATUS=\"open\" ;;\n    esac\n    ;;\n  jira)\n    case \"${STATUS}\" in\n      open) PROVIDER_STATUS=\"To Do\" ;;\n      in_progress) PROVIDER_STATUS=\"In Progress\" ;;\n      closed) PROVIDER_STATUS=\"Done\" ;;\n      blocked) PROVIDER_STATUS=\"Blocked\" ;;\n      review) PROVIDER_STATUS=\"In Review\" ;;\n    esac\n    ;;\n  linear)\n    case \"${STATUS}\" in\n      open) PROVIDER_STATUS=\"Backlog\" ;;\n      in_progress) PROVIDER_STATUS=\"In Progress\" ;;\n      closed) PROVIDER_STATUS=\"Done\" ;;\n      blocked) PROVIDER_STATUS=\"Blocked\" ;;\n      review) PROVIDER_STATUS=\"In Review\" ;;\n    esac\n    ;;\n  local)\n    PROVIDER_STATUS=\"${STATUS}\"\n    ;;\nesac\n```\n\n**Note**: Gitea and GitHub don't have separate \"in_progress\" state - use labels instead (e.g., add \"in-progress\" label when status changes to `in_progress`)\n\n### Step 5: Update Issue (Provider-Specific)\n\n#### Gitea\n\nUse MCP tools `mcp__gitea__edit_issue` and `mcp__gitea__create_issue_comment`:\n\n**Edit issue metadata**:\n```bash\n# Update status (state)\n# Use mcp__gitea__edit_issue\n# Parameters:\n#   owner: ${OWNER}\n#   repo: ${REPO}\n#   issue_number: ${TICKET_NUM}\n#   state: \"open\" | \"closed\"\n#   assignee: ${ASSIGNEE} (optional)\n#   labels: [${LABELS}] (optional)\n```\n\n**Add comment**:\n```bash\n# Use mcp__gitea__create_issue_comment\n# Parameters:\n#   owner: ${OWNER}\n#   repo: ${REPO}\n#   issue_number: ${TICKET_NUM}\n#   body: ${COMMENT}\n```\n\n**Combined workflow**:\n1. If status\u002Fassignee\u002Flabels specified → use `mcp__gitea__edit_issue`\n2. If comment specified → use `mcp__gitea__create_issue_comment`\n3. Both can be called in sequence if needed\n\n#### GitHub\n\nUse `gh` CLI:\n\n**Update status**:\n```bash\n# Open issue\ngh issue reopen \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n\n# Close issue\ngh issue close \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n```\n\n**Add comment**:\n```bash\ngh issue comment \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --body \"${COMMENT}\"\n```\n\n**Update assignee**:\n```bash\n# Assign\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --add-assignee \"${ASSIGNEE}\"\n\n# Unassign\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --remove-assignee \"${ASSIGNEE}\"\n```\n\n**Update labels**:\n```bash\n# Add labels\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --add-label \"label1,label2\"\n\n# Remove labels\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --remove-label \"label1,label2\"\n```\n\n#### Jira\n\nUse Jira REST API v3:\n\n**Update issue fields**:\n```bash\ncat > \u002Ftmp\u002Fjira-update.json \u003C\u003CEOF\n{\n  \"fields\": {\n    \"status\": {\n      \"name\": \"${PROVIDER_STATUS}\"\n    },\n    \"assignee\": {\n      \"name\": \"${ASSIGNEE}\"\n    },\n    \"priority\": {\n      \"name\": \"${PRIORITY}\"\n    },\n    \"labels\": [${LABELS_JSON}]\n  }\n}\nEOF\n\ncurl -X PUT \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\" \\\n  -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Fjira-update.json\n```\n\n**Add comment**:\n```bash\ncat > \u002Ftmp\u002Fjira-comment.json \u003C\u003CEOF\n{\n  \"body\": {\n    \"type\": \"doc\",\n    \"version\": 1,\n    \"content\": [\n      {\n        \"type\": \"paragraph\",\n        \"content\": [\n          {\n            \"type\": \"text\",\n            \"text\": \"${COMMENT}\"\n          }\n        ]\n      }\n    ]\n  }\n}\nEOF\n\ncurl -X POST \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\u002Fcomment\" \\\n  -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Fjira-comment.json\n```\n\n#### Linear\n\nUse Linear GraphQL API:\n\n**Update issue**:\n```bash\ncat > \u002Ftmp\u002Flinear-update.json \u003C\u003CEOF\n{\n  \"query\": \"mutation IssueUpdate(\\$issueId: String!, \\$stateId: String, \\$assigneeId: String, \\$priority: Int) { issueUpdate(id: \\$issueId, input: { stateId: \\$stateId, assigneeId: \\$assigneeId, priority: \\$priority }) { success issue { id identifier url state { name } } } }\",\n  \"variables\": {\n    \"issueId\": \"${ISSUE_ID}\",\n    \"stateId\": \"${STATE_ID}\",\n    \"assigneeId\": \"${ASSIGNEE_ID}\",\n    \"priority\": ${PRIORITY_NUM}\n  }\n}\nEOF\n\ncurl -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Flinear-update.json\n```\n\n**Add comment**:\n```bash\ncat > \u002Ftmp\u002Flinear-comment.json \u003C\u003CEOF\n{\n  \"query\": \"mutation CommentCreate(\\$issueId: String!, \\$body: String!) { commentCreate(input: { issueId: \\$issueId, body: \\$body }) { success comment { id body } } }\",\n  \"variables\": {\n    \"issueId\": \"${ISSUE_ID}\",\n    \"body\": \"${COMMENT}\"\n  }\n}\nEOF\n\ncurl -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Flinear-comment.json\n```\n\n#### Local\n\nUpdate markdown file in `.aiwg\u002Fissues\u002F`:\n\n**Read existing ticket**:\n```bash\nTICKET_FILE=\".aiwg\u002Fissues\u002F${TICKET_ID}.md\"\n\n# Extract current metadata from frontmatter\nCURRENT_STATUS=$(grep \"^status:\" \"${TICKET_FILE}\" | awk '{print $2}')\nCURRENT_ASSIGNEE=$(grep \"^assignee:\" \"${TICKET_FILE}\" | awk '{print $2}')\nCURRENT_LABELS=$(grep \"^labels:\" \"${TICKET_FILE}\" | cut -d':' -f2- | xargs)\nCURRENT_PRIORITY=$(grep \"^priority:\" \"${TICKET_FILE}\" | awk '{print $2}')\n```\n\n**Update metadata**:\n```bash\n# Update status\nif [ -n \"${STATUS}\" ]; then\n  sed -i \"s\u002F^status:.*\u002Fstatus: ${STATUS}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Status\\*\\*:\u002Fs\u002F:.*\u002F: ${STATUS}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update assignee\nif [ -n \"${ASSIGNEE}\" ]; then\n  sed -i \"s\u002F^assignee:.*\u002Fassignee: ${ASSIGNEE}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Assignee\\*\\*:\u002Fs\u002F:.*\u002F: ${ASSIGNEE}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update priority\nif [ -n \"${PRIORITY}\" ]; then\n  sed -i \"s\u002F^priority:.*\u002Fpriority: ${PRIORITY}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Priority\\*\\*:\u002Fs\u002F:.*\u002F: ${PRIORITY}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update labels\nif [ -n \"${LABELS}\" ]; then\n  sed -i \"s\u002F^labels:.*\u002Flabels: ${LABELS}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update timestamp\nsed -i \"s\u002F^updated:.*\u002Fupdated: $(date +%Y-%m-%d)\u002F\" \"${TICKET_FILE}\"\n```\n\n**Add comment**:\n```bash\n# Append comment to end of file\ncat >> \"${TICKET_FILE}\" \u003C\u003CEOF\n\n### $(date +%Y-%m-%d\\ %H:%M)\n\n${COMMENT}\nEOF\n```\n\n### Step 6: Return Confirmation\n\n**Output format** (consistent across providers):\n\n```markdown\n✅ Issue updated: {ticket-id}\n\n{view-url-or-file-path}\n\n**Updates**:\n- Status: {old-status} → {new-status}\n- Assignee: {old-assignee} → {new-assignee}\n- Priority: {old-priority} → {new-priority}\n- Labels: {old-labels} → {new-labels}\n- Comment added: \"{comment-preview...}\"\n\n## Next Steps\n\n- View ticket: {url-or-command}\n- Add another comment: `\u002Fissue-update {ticket-id} --comment \"text\"`\n- Close ticket: `\u002Fissue-update {ticket-id} --status closed`\n- List tickets: `issue-list`\n```\n\n## Examples\n\n### Example 1: Update Status (Gitea)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-042 --status in_progress --comment \"Started implementation, created auth module\"\n```\n\n**Config** (`.aiwg\u002Fconfig.yaml`):\n```yaml\nticketing:\n  provider: gitea\n  url: https:\u002F\u002Fgit.integrolabs.net\n  owner: roctinam\n  repo: ai-writing-guide\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-042\n\nView at: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n\n**Updates**:\n- Status: open → in_progress (Gitea: added 'in-progress' label)\n- Comment added: \"Started implementation, created auth module\"\n\n## Next Steps\n\n- View ticket: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n- Update status: `\u002Fissue-update ISSUE-042 --status closed`\n- Add comment: `\u002Fissue-update ISSUE-042 --comment \"Progress update\"`\n```\n\n### Example 2: Close Issue with Comment (Local)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-003 --status closed --comment \"Fixed in commit abc123. Tested on iOS Safari 17.\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-003\n\nFile: .aiwg\u002Fissues\u002FISSUE-003.md\n\n**Updates**:\n- Status: in_progress → closed\n- Comment added: \"Fixed in commit abc123. Tested on iOS Safari 17.\"\n\n## Next Steps\n\n- View ticket: cat .aiwg\u002Fissues\u002FISSUE-003.md\n- Reopen if needed: `\u002Fissue-update ISSUE-003 --status open`\n- List closed tickets: `\u002Fissue-list --status closed`\n```\n\n### Example 3: Reassign Issue (GitHub)\n\n**Command**:\n```bash\n\u002Fissue-update #128 --assignee security-team --priority critical --comment \"Escalating to security team due to severity\"\n```\n\n**Config** (`CLAUDE.md`):\n```markdown\n## Issueing Configuration\n\n- **Provider**: github\n- **Owner**: jmagly\n- **Repo**: ai-writing-guide\n```\n\n**Output**:\n```\n✅ Issue updated: #128\n\nView at: https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fissues\u002F128\n\n**Updates**:\n- Assignee: unassigned → @security-team\n- Priority: medium → critical (updated in issue body)\n- Comment added: \"Escalating to security team due to severity\"\n\n## Next Steps\n\n- View ticket: gh issue view 128\n- Track progress: `\u002Fissue-update 128 --comment \"Status update\"`\n- Close when resolved: `\u002Fissue-update 128 --status closed`\n```\n\n### Example 4: Add Labels Without Replacing (Gitea)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-042 --add-labels \"urgent,needs-review\" --comment \"Ready for code review\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-042\n\nView at: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n\n**Updates**:\n- Labels: feature, ui → feature, ui, urgent, needs-review\n- Comment added: \"Ready for code review\"\n\n## Next Steps\n\n- View ticket: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n- Remove label after review: `\u002Fissue-update ISSUE-042 --remove-labels \"needs-review\"`\n```\n\n### Example 5: Multiple Field Updates (Local)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-005 --status blocked --assignee unassigned --priority high --labels \"blocked,needs-discussion\" --comment \"Blocked on architecture decision ADR-003. Need team discussion.\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-005\n\nFile: .aiwg\u002Fissues\u002FISSUE-005.md\n\n**Updates**:\n- Status: in_progress → blocked\n- Assignee: johndoe → unassigned\n- Priority: medium → high\n- Labels: feature → blocked, needs-discussion\n- Comment added: \"Blocked on architecture decision ADR-003. Need team discussion.\"\n\n## Next Steps\n\n- View ticket: cat .aiwg\u002Fissues\u002FISSUE-005.md\n- Unblock: `\u002Fissue-update ISSUE-005 --status in_progress --comment \"Decision made, resuming work\"`\n- List blocked tickets: `\u002Fissue-list --status blocked`\n```\n\n## Error Handling\n\n### Issue Not Found\n\n```\n❌ Issue not found: ISSUE-999\n\nSearched in:\n- Provider: gitea\n- Repository: roctinam\u002Fai-writing-guide\n\nAvailable tickets:\n- ISSUE-001: Implement user auth (open)\n- ISSUE-002: Add dark mode (in_progress)\n- ISSUE-003: Fix navigation bug (closed)\n\nList all tickets: discover and load `issue-list`.\nCreate a new ticket: discover and load `issue-create`.\n```\n\n### Invalid Status\n\n```\n❌ Invalid status: 'inprogress'\n\nValid statuses:\n- open\n- in_progress\n- closed\n- blocked\n- review\n\nExample: \u002Fissue-update ISSUE-001 --status in_progress\n```\n\n### No Updates Specified\n\n```\n❌ No updates specified.\n\nAt least one update parameter required:\n- --status STATE\n- --comment \"text\"\n- --assignee USER\n- --labels \"label1,label2\"\n- --add-labels \"label1,label2\"\n- --remove-labels \"label1,label2\"\n- --priority LEVEL\n\nExample: \u002Fissue-update ISSUE-001 --status in_progress --comment \"Started work\"\n```\n\n### Provider-Specific Errors\n\n**Gitea MCP Error**:\n```\n❌ Failed to update Gitea issue:\n\nError: 403 Forbidden\n- Insufficient permissions to edit issue\n- Verify token permissions at https:\u002F\u002Fgit.integrolabs.net\u002Fuser\u002Fsettings\u002Fapplications\n- Token needs 'write:issue' scope\n\nCannot update ticket.\n```\n\n**GitHub CLI Error**:\n```\n❌ Failed to update GitHub issue:\n\nError: issue not found: #999\n- Verify issue number: gh issue list --repo jmagly\u002Fai-writing-guide\n- Check repository access: gh auth status\n\nCannot update ticket.\n```\n\n**Local File Error**:\n```\n❌ Failed to update local ticket file:\n\nError: Permission denied - .aiwg\u002Fissues\u002FISSUE-001.md\n- Check file permissions: ls -la .aiwg\u002Fissues\u002FISSUE-001.md\n- Ensure writable: chmod 644 .aiwg\u002Fissues\u002FISSUE-001.md\n\nCannot update ticket.\n```\n\n## Best Practices\n\n1. **Add meaningful comments** - Document progress, blockers, and decisions\n2. **Update status frequently** - Keep stakeholders informed\n3. **Use status transitions wisely** - Follow team workflow (e.g., open → in_progress → review → closed)\n4. **Reassign when blocked** - Don't let tickets languish without clear ownership\n5. **Remove labels when resolved** - Clean up metadata (e.g., remove \"needs-review\" after review)\n6. **Close tickets with resolution comments** - Document how issue was resolved\n7. **Link to artifacts** - Reference commits, PRs, or SDLC artifacts in comments\n8. **Batch updates** - Update multiple fields in single command when possible\n\n## Integration with SDLC Workflows\n\n**Construction Phase (Development)**:\n```bash\n# Start work\n\u002Fissue-update ISSUE-001 --status in_progress --comment \"Started implementation\"\n\n# Progress update\n\u002Fissue-update ISSUE-001 --comment \"Completed authentication module, 3 tests passing\"\n\n# Ready for review\n\u002Fissue-update ISSUE-001 --add-labels \"needs-review\" --comment \"Ready for code review, see PR #45\"\n\n# Close after merge\n\u002Fissue-update ISSUE-001 --status closed --comment \"Merged in PR #45, deployed to staging\"\n```\n\n**Testing Phase**:\n```bash\n# Found bug during testing\n\u002Fissue-update ISSUE-001 --status blocked --assignee qa-team --comment \"Failed QA: auth broken on Safari\"\n\n# Bug fixed\n\u002Fissue-update ISSUE-001 --status in_progress --assignee dev-team --comment \"Fix deployed, ready for retest\"\n\n# Passed testing\n\u002Fissue-update ISSUE-001 --status closed --comment \"Passed QA, deployed to production\"\n```\n\n**Security Review**:\n```bash\n# Start security review\n\u002Fissue-update ISSUE-001 --status review --assignee security-team --add-labels \"security-review\"\n\n# Findings identified\n\u002Fissue-update ISSUE-001 --status blocked --comment \"Security review found SQL injection risk, see ISSUE-042\"\n\n# Resolved\n\u002Fissue-update ISSUE-001 --status closed --remove-labels \"security-review\" --comment \"Security issues resolved, review passed\"\n```\n\n**Retrospectives**:\n```bash\n# Action item from retro\n\u002Fissue-update ISSUE-001 --add-labels \"process-improvement\" --comment \"Retro action: Add automated tests for this pattern\"\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fconfig\u002Fissueing-config.md - Configuration schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-create\u002FSKILL.md - Create ticket skill\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-list\u002FSKILL.md - List tickets skill\n- @CLAUDE.md - User ticketing configuration\n","\u003C!-- AIWG-SKILL-CALLOUT -->\n> **Skill access pattern (post-kernel-pivot, 2026.5+)**\n>\n> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `\u002Fskill-name` by the platform. Reach them via:\n>\n> ```bash\n> aiwg discover \"\u003Ccapability>\"\n> aiwg show skill \u003Cname> --body\n> ```\n>\n> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fskill-discovery.md).\n\n\n# Issue Update\n\n## Output template\n\nFor comments, the matching template is required; fill every required section before posting (mark non-applicable fields with a reason): progress\u002Fstatus — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Fprogress-update.md; blocker — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Fblocker-found.md; feedback request — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Ffeedback-needed.md; task completion — @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002Fissue-comments\u002Ftask-completed.md.\n\n## Semantic Label Contract (#1789)\n\nResolve label mutations through `.aiwg\u002Faiwg.config` `issues.labels` for the\nprovider selected by `remotes.issue_tracker`. Add a role only when its declared\ncondition is true. When `resume_when` is satisfied, remove the transient role\nor replace it with `transition_to` in one read-modify-write operation that\npreserves unrelated labels. Never provision missing configured labels\nimplicitly; report them as diagnostics. Warn explicitly before legacy name\nfallback.\n\n## Purpose\n\nUpdate an existing ticket\u002Fissue with status transitions, progress comments, assignee changes, or metadata updates. Automatically uses the configured ticketing provider (Gitea, GitHub, Jira, Linear) or local file-based tracking.\n\n## Task\n\nGiven a ticket ID and update parameters:\n\n1. **Load configuration** from `.aiwg\u002Fconfig.yaml` or project `CLAUDE.md`\n2. **Validate ticket exists** on provider or in local files\n3. **Apply updates** (status, comment, assignee, labels, priority)\n4. **Return confirmation** with updated ticket details\n\n## Parameters\n\n- **`\u003Cticket-id>`** (required): Issue identifier (e.g., `ISSUE-001`, `#42`, `PROJECT-123`, `ENG-456`)\n- **`--status STATE`** (optional): Update ticket status\n  - Valid states: `open`, `in_progress`, `closed`, `blocked`, `review`\n  - Provider-specific mappings applied automatically\n- **`--comment \"text\"`** (optional): Add progress comment or note\n- **`--assignee USER`** (optional): Assign to user (or `unassigned` to clear)\n- **`--labels \"label1,label2\"`** (optional): Replace labels (comma-separated)\n- **`--add-labels \"label1,label2\"`** (optional): Add labels without replacing existing\n- **`--remove-labels \"label1,label2\"`** (optional): Remove specific labels\n- **`--priority LEVEL`** (optional): Update priority (low|medium|high|critical)\n- **`--milestone NAME`** (optional): Associate with milestone (provider-dependent)\n- **`--provider NAME`** (optional): Override configured provider\n\n## Inputs\n\n**Configuration sources** (same as `issue-create`):\n1. `.aiwg\u002Fconfig.yaml` - Project-level configuration\n2. `CLAUDE.md` - User-level configuration\n3. Default: `local` provider\n\n## Outputs\n\n**All Providers**:\n- Confirmation of update\n- Updated ticket details\n- URL or file path to view changes\n\n## Workflow\n\n### Step 1: Parse Parameters\n\nExtract from command invocation:\n\n```bash\n# Update status\n\u002Fissue-update ISSUE-001 --status in_progress\n\n# Add comment\n\u002Fissue-update ISSUE-001 --comment \"Completed authentication module, working on authorization next\"\n\n# Update status with comment\n\u002Fissue-update ISSUE-001 --status closed --comment \"Fixed in commit abc123\"\n\n# Assign ticket\n\u002Fissue-update ISSUE-001 --assignee johndoe\n\n# Update multiple fields\n\u002Fissue-update ISSUE-001 --status in_progress --assignee johndoe --priority high --comment \"Started implementation\"\n\n# Add labels without replacing\n\u002Fissue-update ISSUE-001 --add-labels \"urgent,needs-review\"\n\n# Remove labels\n\u002Fissue-update ISSUE-001 --remove-labels \"wip,blocked\"\n\n# Replace all labels\n\u002Fissue-update ISSUE-001 --labels \"completed,tested\"\n```\n\n**Parameter extraction**:\n- Issue ID: First argument (required)\n- Flags: Parse `--flag value` pairs\n- At least one update flag required (status, comment, assignee, labels, priority)\n\n### Step 2: Load Configuration\n\nSame as `issue-create` command:\n\n1. Check `.aiwg\u002Fconfig.yaml`\n2. Fallback to `CLAUDE.md`\n3. Default to `local` provider\n\nOverride with `--provider` if specified.\n\n### Step 3: Validate Issue Exists\n\n**Gitea**:\n```bash\n# Fetch issue to verify existence\ncurl -s -H \"Authorization: token $(cat ~\u002F.config\u002Fgitea\u002Ftoken)\" \\\n  \"${URL}\u002Fapi\u002Fv1\u002Frepos\u002F${OWNER}\u002F${REPO}\u002Fissues\u002F${TICKET_NUM}\"\n\n# Check HTTP status: 200 = exists, 404 = not found\n```\n\n**GitHub**:\n```bash\n# Fetch issue via gh CLI\ngh issue view \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n\n# Exit code 0 = exists, non-zero = not found\n```\n\n**Jira**:\n```bash\n# Fetch issue via REST API\ncurl -s -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\"\n\n# Check HTTP status: 200 = exists, 404 = not found\n```\n\n**Linear**:\n```bash\n# Fetch issue via GraphQL\ncurl -s -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -d '{\"query\": \"query { issue(id: \\\"'${ISSUE_ID}'\\\") { id identifier title } }\"}'\n\n# Check if issue returned in response\n```\n\n**Local**:\n```bash\n# Check if file exists\nif [ -f \".aiwg\u002Fissues\u002F${TICKET_ID}.md\" ]; then\n  echo \"Issue exists\"\nelse\n  echo \"Issue not found\"\nfi\n```\n\n**Error if not found**:\n```\n❌ Issue not found: ISSUE-001\n\nAvailable tickets:\n- ISSUE-002: Add dark mode\n- ISSUE-003: Fix navigation bug\n\nList all tickets: \u002Fissue-list\n```\n\n### Step 4: Map Status to Provider-Specific Values\n\n**Status mapping table**:\n\n| Generic | Gitea | GitHub | Jira | Linear | Local |\n|---------|-------|--------|------|--------|-------|\n| `open` | open | open | To Do | Backlog | open |\n| `in_progress` | open | open | In Progress | In Progress | in_progress |\n| `closed` | closed | closed | Done | Done | closed |\n| `blocked` | open | open | Blocked | Blocked | blocked |\n| `review` | open | open | In Review | In Review | review |\n\n**Implementation**:\n```bash\ncase \"${PROVIDER}\" in\n  gitea|github)\n    case \"${STATUS}\" in\n      closed) PROVIDER_STATUS=\"closed\" ;;\n      *) PROVIDER_STATUS=\"open\" ;;\n    esac\n    ;;\n  jira)\n    case \"${STATUS}\" in\n      open) PROVIDER_STATUS=\"To Do\" ;;\n      in_progress) PROVIDER_STATUS=\"In Progress\" ;;\n      closed) PROVIDER_STATUS=\"Done\" ;;\n      blocked) PROVIDER_STATUS=\"Blocked\" ;;\n      review) PROVIDER_STATUS=\"In Review\" ;;\n    esac\n    ;;\n  linear)\n    case \"${STATUS}\" in\n      open) PROVIDER_STATUS=\"Backlog\" ;;\n      in_progress) PROVIDER_STATUS=\"In Progress\" ;;\n      closed) PROVIDER_STATUS=\"Done\" ;;\n      blocked) PROVIDER_STATUS=\"Blocked\" ;;\n      review) PROVIDER_STATUS=\"In Review\" ;;\n    esac\n    ;;\n  local)\n    PROVIDER_STATUS=\"${STATUS}\"\n    ;;\nesac\n```\n\n**Note**: Gitea and GitHub don't have separate \"in_progress\" state - use labels instead (e.g., add \"in-progress\" label when status changes to `in_progress`)\n\n### Step 5: Update Issue (Provider-Specific)\n\n#### Gitea\n\nUse MCP tools `mcp__gitea__edit_issue` and `mcp__gitea__create_issue_comment`:\n\n**Edit issue metadata**:\n```bash\n# Update status (state)\n# Use mcp__gitea__edit_issue\n# Parameters:\n#   owner: ${OWNER}\n#   repo: ${REPO}\n#   issue_number: ${TICKET_NUM}\n#   state: \"open\" | \"closed\"\n#   assignee: ${ASSIGNEE} (optional)\n#   labels: [${LABELS}] (optional)\n```\n\n**Add comment**:\n```bash\n# Use mcp__gitea__create_issue_comment\n# Parameters:\n#   owner: ${OWNER}\n#   repo: ${REPO}\n#   issue_number: ${TICKET_NUM}\n#   body: ${COMMENT}\n```\n\n**Combined workflow**:\n1. If status\u002Fassignee\u002Flabels specified → use `mcp__gitea__edit_issue`\n2. If comment specified → use `mcp__gitea__create_issue_comment`\n3. Both can be called in sequence if needed\n\n#### GitHub\n\nUse `gh` CLI:\n\n**Update status**:\n```bash\n# Open issue\ngh issue reopen \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n\n# Close issue\ngh issue close \"${TICKET_NUM}\" --repo \"${OWNER}\u002F${REPO}\"\n```\n\n**Add comment**:\n```bash\ngh issue comment \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --body \"${COMMENT}\"\n```\n\n**Update assignee**:\n```bash\n# Assign\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --add-assignee \"${ASSIGNEE}\"\n\n# Unassign\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --remove-assignee \"${ASSIGNEE}\"\n```\n\n**Update labels**:\n```bash\n# Add labels\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --add-label \"label1,label2\"\n\n# Remove labels\ngh issue edit \"${TICKET_NUM}\" \\\n  --repo \"${OWNER}\u002F${REPO}\" \\\n  --remove-label \"label1,label2\"\n```\n\n#### Jira\n\nUse Jira REST API v3:\n\n**Update issue fields**:\n```bash\ncat > \u002Ftmp\u002Fjira-update.json \u003C\u003CEOF\n{\n  \"fields\": {\n    \"status\": {\n      \"name\": \"${PROVIDER_STATUS}\"\n    },\n    \"assignee\": {\n      \"name\": \"${ASSIGNEE}\"\n    },\n    \"priority\": {\n      \"name\": \"${PRIORITY}\"\n    },\n    \"labels\": [${LABELS_JSON}]\n  }\n}\nEOF\n\ncurl -X PUT \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\" \\\n  -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Fjira-update.json\n```\n\n**Add comment**:\n```bash\ncat > \u002Ftmp\u002Fjira-comment.json \u003C\u003CEOF\n{\n  \"body\": {\n    \"type\": \"doc\",\n    \"version\": 1,\n    \"content\": [\n      {\n        \"type\": \"paragraph\",\n        \"content\": [\n          {\n            \"type\": \"text\",\n            \"text\": \"${COMMENT}\"\n          }\n        ]\n      }\n    ]\n  }\n}\nEOF\n\ncurl -X POST \"${JIRA_URL}\u002Frest\u002Fapi\u002F3\u002Fissue\u002F${ISSUE_KEY}\u002Fcomment\" \\\n  -u \"${JIRA_EMAIL}:${JIRA_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Fjira-comment.json\n```\n\n#### Linear\n\nUse Linear GraphQL API:\n\n**Update issue**:\n```bash\ncat > \u002Ftmp\u002Flinear-update.json \u003C\u003CEOF\n{\n  \"query\": \"mutation IssueUpdate(\\$issueId: String!, \\$stateId: String, \\$assigneeId: String, \\$priority: Int) { issueUpdate(id: \\$issueId, input: { stateId: \\$stateId, assigneeId: \\$assigneeId, priority: \\$priority }) { success issue { id identifier url state { name } } } }\",\n  \"variables\": {\n    \"issueId\": \"${ISSUE_ID}\",\n    \"stateId\": \"${STATE_ID}\",\n    \"assigneeId\": \"${ASSIGNEE_ID}\",\n    \"priority\": ${PRIORITY_NUM}\n  }\n}\nEOF\n\ncurl -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Flinear-update.json\n```\n\n**Add comment**:\n```bash\ncat > \u002Ftmp\u002Flinear-comment.json \u003C\u003CEOF\n{\n  \"query\": \"mutation CommentCreate(\\$issueId: String!, \\$body: String!) { commentCreate(input: { issueId: \\$issueId, body: \\$body }) { success comment { id body } } }\",\n  \"variables\": {\n    \"issueId\": \"${ISSUE_ID}\",\n    \"body\": \"${COMMENT}\"\n  }\n}\nEOF\n\ncurl -X POST https:\u002F\u002Fapi.linear.app\u002Fgraphql \\\n  -H \"Authorization: ${LINEAR_API_TOKEN}\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d @\u002Ftmp\u002Flinear-comment.json\n```\n\n#### Local\n\nUpdate markdown file in `.aiwg\u002Fissues\u002F`:\n\n**Read existing ticket**:\n```bash\nTICKET_FILE=\".aiwg\u002Fissues\u002F${TICKET_ID}.md\"\n\n# Extract current metadata from frontmatter\nCURRENT_STATUS=$(grep \"^status:\" \"${TICKET_FILE}\" | awk '{print $2}')\nCURRENT_ASSIGNEE=$(grep \"^assignee:\" \"${TICKET_FILE}\" | awk '{print $2}')\nCURRENT_LABELS=$(grep \"^labels:\" \"${TICKET_FILE}\" | cut -d':' -f2- | xargs)\nCURRENT_PRIORITY=$(grep \"^priority:\" \"${TICKET_FILE}\" | awk '{print $2}')\n```\n\n**Update metadata**:\n```bash\n# Update status\nif [ -n \"${STATUS}\" ]; then\n  sed -i \"s\u002F^status:.*\u002Fstatus: ${STATUS}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Status\\*\\*:\u002Fs\u002F:.*\u002F: ${STATUS}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update assignee\nif [ -n \"${ASSIGNEE}\" ]; then\n  sed -i \"s\u002F^assignee:.*\u002Fassignee: ${ASSIGNEE}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Assignee\\*\\*:\u002Fs\u002F:.*\u002F: ${ASSIGNEE}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update priority\nif [ -n \"${PRIORITY}\" ]; then\n  sed -i \"s\u002F^priority:.*\u002Fpriority: ${PRIORITY}\u002F\" \"${TICKET_FILE}\"\n  sed -i \"\u002F^\\*\\*Priority\\*\\*:\u002Fs\u002F:.*\u002F: ${PRIORITY}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update labels\nif [ -n \"${LABELS}\" ]; then\n  sed -i \"s\u002F^labels:.*\u002Flabels: ${LABELS}\u002F\" \"${TICKET_FILE}\"\nfi\n\n# Update timestamp\nsed -i \"s\u002F^updated:.*\u002Fupdated: $(date +%Y-%m-%d)\u002F\" \"${TICKET_FILE}\"\n```\n\n**Add comment**:\n```bash\n# Append comment to end of file\ncat >> \"${TICKET_FILE}\" \u003C\u003CEOF\n\n### $(date +%Y-%m-%d\\ %H:%M)\n\n${COMMENT}\nEOF\n```\n\n### Step 6: Return Confirmation\n\n**Output format** (consistent across providers):\n\n```markdown\n✅ Issue updated: {ticket-id}\n\n{view-url-or-file-path}\n\n**Updates**:\n- Status: {old-status} → {new-status}\n- Assignee: {old-assignee} → {new-assignee}\n- Priority: {old-priority} → {new-priority}\n- Labels: {old-labels} → {new-labels}\n- Comment added: \"{comment-preview...}\"\n\n## Next Steps\n\n- View ticket: {url-or-command}\n- Add another comment: `\u002Fissue-update {ticket-id} --comment \"text\"`\n- Close ticket: `\u002Fissue-update {ticket-id} --status closed`\n- List tickets: `issue-list`\n```\n\n## Examples\n\n### Example 1: Update Status (Gitea)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-042 --status in_progress --comment \"Started implementation, created auth module\"\n```\n\n**Config** (`.aiwg\u002Fconfig.yaml`):\n```yaml\nticketing:\n  provider: gitea\n  url: https:\u002F\u002Fgit.integrolabs.net\n  owner: roctinam\n  repo: ai-writing-guide\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-042\n\nView at: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n\n**Updates**:\n- Status: open → in_progress (Gitea: added 'in-progress' label)\n- Comment added: \"Started implementation, created auth module\"\n\n## Next Steps\n\n- View ticket: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n- Update status: `\u002Fissue-update ISSUE-042 --status closed`\n- Add comment: `\u002Fissue-update ISSUE-042 --comment \"Progress update\"`\n```\n\n### Example 2: Close Issue with Comment (Local)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-003 --status closed --comment \"Fixed in commit abc123. Tested on iOS Safari 17.\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-003\n\nFile: .aiwg\u002Fissues\u002FISSUE-003.md\n\n**Updates**:\n- Status: in_progress → closed\n- Comment added: \"Fixed in commit abc123. Tested on iOS Safari 17.\"\n\n## Next Steps\n\n- View ticket: cat .aiwg\u002Fissues\u002FISSUE-003.md\n- Reopen if needed: `\u002Fissue-update ISSUE-003 --status open`\n- List closed tickets: `\u002Fissue-list --status closed`\n```\n\n### Example 3: Reassign Issue (GitHub)\n\n**Command**:\n```bash\n\u002Fissue-update #128 --assignee security-team --priority critical --comment \"Escalating to security team due to severity\"\n```\n\n**Config** (`CLAUDE.md`):\n```markdown\n## Issueing Configuration\n\n- **Provider**: github\n- **Owner**: jmagly\n- **Repo**: ai-writing-guide\n```\n\n**Output**:\n```\n✅ Issue updated: #128\n\nView at: https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fissues\u002F128\n\n**Updates**:\n- Assignee: unassigned → @security-team\n- Priority: medium → critical (updated in issue body)\n- Comment added: \"Escalating to security team due to severity\"\n\n## Next Steps\n\n- View ticket: gh issue view 128\n- Track progress: `\u002Fissue-update 128 --comment \"Status update\"`\n- Close when resolved: `\u002Fissue-update 128 --status closed`\n```\n\n### Example 4: Add Labels Without Replacing (Gitea)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-042 --add-labels \"urgent,needs-review\" --comment \"Ready for code review\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-042\n\nView at: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n\n**Updates**:\n- Labels: feature, ui → feature, ui, urgent, needs-review\n- Comment added: \"Ready for code review\"\n\n## Next Steps\n\n- View ticket: https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fai-writing-guide\u002Fissues\u002F42\n- Remove label after review: `\u002Fissue-update ISSUE-042 --remove-labels \"needs-review\"`\n```\n\n### Example 5: Multiple Field Updates (Local)\n\n**Command**:\n```bash\n\u002Fissue-update ISSUE-005 --status blocked --assignee unassigned --priority high --labels \"blocked,needs-discussion\" --comment \"Blocked on architecture decision ADR-003. Need team discussion.\"\n```\n\n**Output**:\n```\n✅ Issue updated: ISSUE-005\n\nFile: .aiwg\u002Fissues\u002FISSUE-005.md\n\n**Updates**:\n- Status: in_progress → blocked\n- Assignee: johndoe → unassigned\n- Priority: medium → high\n- Labels: feature → blocked, needs-discussion\n- Comment added: \"Blocked on architecture decision ADR-003. Need team discussion.\"\n\n## Next Steps\n\n- View ticket: cat .aiwg\u002Fissues\u002FISSUE-005.md\n- Unblock: `\u002Fissue-update ISSUE-005 --status in_progress --comment \"Decision made, resuming work\"`\n- List blocked tickets: `\u002Fissue-list --status blocked`\n```\n\n## Error Handling\n\n### Issue Not Found\n\n```\n❌ Issue not found: ISSUE-999\n\nSearched in:\n- Provider: gitea\n- Repository: roctinam\u002Fai-writing-guide\n\nAvailable tickets:\n- ISSUE-001: Implement user auth (open)\n- ISSUE-002: Add dark mode (in_progress)\n- ISSUE-003: Fix navigation bug (closed)\n\nList all tickets: discover and load `issue-list`.\nCreate a new ticket: discover and load `issue-create`.\n```\n\n### Invalid Status\n\n```\n❌ Invalid status: 'inprogress'\n\nValid statuses:\n- open\n- in_progress\n- closed\n- blocked\n- review\n\nExample: \u002Fissue-update ISSUE-001 --status in_progress\n```\n\n### No Updates Specified\n\n```\n❌ No updates specified.\n\nAt least one update parameter required:\n- --status STATE\n- --comment \"text\"\n- --assignee USER\n- --labels \"label1,label2\"\n- --add-labels \"label1,label2\"\n- --remove-labels \"label1,label2\"\n- --priority LEVEL\n\nExample: \u002Fissue-update ISSUE-001 --status in_progress --comment \"Started work\"\n```\n\n### Provider-Specific Errors\n\n**Gitea MCP Error**:\n```\n❌ Failed to update Gitea issue:\n\nError: 403 Forbidden\n- Insufficient permissions to edit issue\n- Verify token permissions at https:\u002F\u002Fgit.integrolabs.net\u002Fuser\u002Fsettings\u002Fapplications\n- Token needs 'write:issue' scope\n\nCannot update ticket.\n```\n\n**GitHub CLI Error**:\n```\n❌ Failed to update GitHub issue:\n\nError: issue not found: #999\n- Verify issue number: gh issue list --repo jmagly\u002Fai-writing-guide\n- Check repository access: gh auth status\n\nCannot update ticket.\n```\n\n**Local File Error**:\n```\n❌ Failed to update local ticket file:\n\nError: Permission denied - .aiwg\u002Fissues\u002FISSUE-001.md\n- Check file permissions: ls -la .aiwg\u002Fissues\u002FISSUE-001.md\n- Ensure writable: chmod 644 .aiwg\u002Fissues\u002FISSUE-001.md\n\nCannot update ticket.\n```\n\n## Best Practices\n\n1. **Add meaningful comments** - Document progress, blockers, and decisions\n2. **Update status frequently** - Keep stakeholders informed\n3. **Use status transitions wisely** - Follow team workflow (e.g., open → in_progress → review → closed)\n4. **Reassign when blocked** - Don't let tickets languish without clear ownership\n5. **Remove labels when resolved** - Clean up metadata (e.g., remove \"needs-review\" after review)\n6. **Close tickets with resolution comments** - Document how issue was resolved\n7. **Link to artifacts** - Reference commits, PRs, or SDLC artifacts in comments\n8. **Batch updates** - Update multiple fields in single command when possible\n\n## Integration with SDLC Workflows\n\n**Construction Phase (Development)**:\n```bash\n# Start work\n\u002Fissue-update ISSUE-001 --status in_progress --comment \"Started implementation\"\n\n# Progress update\n\u002Fissue-update ISSUE-001 --comment \"Completed authentication module, 3 tests passing\"\n\n# Ready for review\n\u002Fissue-update ISSUE-001 --add-labels \"needs-review\" --comment \"Ready for code review, see PR #45\"\n\n# Close after merge\n\u002Fissue-update ISSUE-001 --status closed --comment \"Merged in PR #45, deployed to staging\"\n```\n\n**Testing Phase**:\n```bash\n# Found bug during testing\n\u002Fissue-update ISSUE-001 --status blocked --assignee qa-team --comment \"Failed QA: auth broken on Safari\"\n\n# Bug fixed\n\u002Fissue-update ISSUE-001 --status in_progress --assignee dev-team --comment \"Fix deployed, ready for retest\"\n\n# Passed testing\n\u002Fissue-update ISSUE-001 --status closed --comment \"Passed QA, deployed to production\"\n```\n\n**Security Review**:\n```bash\n# Start security review\n\u002Fissue-update ISSUE-001 --status review --assignee security-team --add-labels \"security-review\"\n\n# Findings identified\n\u002Fissue-update ISSUE-001 --status blocked --comment \"Security review found SQL injection risk, see ISSUE-042\"\n\n# Resolved\n\u002Fissue-update ISSUE-001 --status closed --remove-labels \"security-review\" --comment \"Security issues resolved, review passed\"\n```\n\n**Retrospectives**:\n```bash\n# Action item from retro\n\u002Fissue-update ISSUE-001 --add-labels \"process-improvement\" --comment \"Retro action: Add automated tests for this pattern\"\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fconfig\u002Fissueing-config.md - Configuration schema\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-create\u002FSKILL.md - Create ticket skill\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-list\u002FSKILL.md - List tickets skill\n- @CLAUDE.md - User ticketing configuration\n",{"name":5,"namespace":56,"platforms":57,"commandHint":59,"description":7},"aiwg",[58],"all",{"model":45,"category":48,"modelRole":36,"modelTier":60,"allowedTools":61,"argumentHint":62},"economy","Read, Write, Glob, Bash, mcp__gitea__edit_issue, mcp__gitea__create_issue_comment","\u003Cticket-id> [--status STATUS --comment \"text\" --assignee USER --labels \"label1,label2\" --priority LEVEL]","main","a602706fc62ff1cfcb18001358ac39647b08acf5","agentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fissue-update",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add jmagly\u002Faiwg --skill issue-update",{"tool":79,"command":80},"bunx","bunx skills add jmagly\u002Faiwg --skill issue-update",{"tool":82,"command":83},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill issue-update","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsdlc\u002Fskills\u002Fissue-update\u002FSKILL.md",true,[],[88,96,101,126,145,150],{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":97,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":95},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":51},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[108,109,110,111,112,44,113,114,115,116,117,118,119,49,120,121,122,123,124,125],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","plan","port","bind","access","only","retention","re","never","firewall",{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":51},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[133,134,135,136,137,43,44,138,118,124,49,139,109,140,121,141,142,125,143,144],"analysis","exposure analysis","collection","reconstruction","operator","credentials","unknown","internet","local","scope","ports","ufw",{"skillNo":146,"name":103,"nameZh":17,"description":104,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":51},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[108,109,110,123,124,125,119,122,115,112,44,113,114,116,117,118,111,49,120,121],{"skillNo":151,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":51},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[133,134,144,143,137,142,141,121,136,43,44,138,118,135,49,139,109,125,124,140]]