[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2YBKD15R8G78NV69AD8QX":3,"skill-same:01M7F2YBKD15R8G78NV69AD8QX":54},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":12,"updatedAt":33,"install":34,"resources":47},"01M7F2YBKD15R8G78NV69AD8QX","issue-triage",null,"3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'\u002F'fr' for language, no arg = audit only.","313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","313DEVGRP","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34762848?v=4","01M7F2M535Z5X8XGHYD8TDVAB3","A-RMS by 313DEVGRP","01M7F2M54CR0P3631F4YM0D014",0,"MIT","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fissue-triage\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: issue-triage\ndescription: \"3-phase issue backlog management with audit, deep analysis, and validated triage actions. Use when triaging GitHub issues, sorting bug reports, cleaning up stale tickets, or detecting duplicate issues. Args: 'all' to analyze all, issue numbers to focus (e.g. '42 57'), 'en'\u002F'fr' for language, no arg = audit only.\"\nallowed-tools: Bash\neffort: medium\n---\n\n# Issue triage\n\n3-phase workflow for maintainers: automated audit of all open issues, opt-in deep analysis via parallel agents, and validated triage actions (comments, labels, closures).\n\n## When to use this skill\n\n| Skill | Usage | Output |\n|-------|-------|--------|\n| `\u002Fissue-triage` | Sort, analyze, and act on an issue backlog | Triage tables + analysis + executed actions |\n| `\u002Fpr-triage` | Sort, review, and comment on a PR backlog | Triage table + reviews + posted comments |\n\n**Triggers**:\n- Manually: `\u002Fissue-triage` or `\u002Fissue-triage all` or `\u002Fissue-triage 42 57`\n- Proactively: when >10 open issues without label, or stale issues >30 days detected\n\n---\n\n## Language\n\n- Check the argument passed to the skill\n- If `en` or `english` → tables and summary in English\n- If `fr`, `french`, or no argument → French (default)\n- Note: GitHub comments and labels (Phase 3) are ALWAYS in English (international audience)\n\n---\n\n## Configuration\n\nThresholds used throughout the workflow. Edit to match your project:\n\n| Parameter | Default | Description |\n|-----------|---------|-------------|\n| `staleness_days` | 30 | Days without activity before flagging as stale |\n| `very_stale_days` | 90 | Days without activity before flagging as very stale |\n| `jaccard_threshold` | 60% | Minimum Jaccard similarity to flag two issues as duplicates |\n| `closed_compare_count` | 20 | Number of recent closed issues to compare for duplicate detection |\n| `open_limit` | 100 | Maximum open issues to fetch and analyze |\n\n---\n\n## Preconditions\n\n```bash\ngit rev-parse --is-inside-work-tree\ngh auth status\n```\n\nIf either fails, stop and explain what is missing.\n\n---\n\n## Phase 1: Audit (always executed)\n\n### Data Gathering (parallel commands)\n\n```bash\n# Repo identity\ngh repo view --json nameWithOwner -q .nameWithOwner\n\n# Open issues (exclude PRs, limit 100)\ngh issue list --state open --limit 100 \\\n  --json number,title,author,createdAt,updatedAt,labels,body,comments,assignees,milestone\n\n# Recent closed issues (for duplicate detection)\ngh issue list --state closed --limit 20 \\\n  --json number,title,body,labels,stateReason\n\n# Open PRs (bodies for cross-reference detection)\ngh pr list --state open --limit 50 --json number,title,body\n\n# Collaborators (to distinguish reporter types)\ngh api \"repos\u002F{owner}\u002F{repo}\u002Fcollaborators\" --jq '.[].login'\n```\n\n**Collaborators fallback**: if `gh api ...\u002Fcollaborators` returns 403\u002F404:\n```bash\n# Extract authors from last 10 merged PRs\ngh pr list --state merged --limit 10 --json author --jq '.[].author.login' | sort -u\n```\nIf still ambiguous, ask via `AskUserQuestion`.\n\n**Note**: `comments` field in `gh issue list --json comments` returns the count, not content. For Phase 2, fetch full content separately: `gh issue view {num} --json comments`.\n\n### Analysis dimensions\n\nRun all 6 dimensions for each open issue:\n\n#### 1. Categorization\n\nClassify each issue by reading `title` + first 200 chars of `body`:\n\n| Category | Label | Criteria |\n|----------|-------|----------|\n| Bug | `bug` | Describes broken behavior, unexpected output, crash |\n| Feature Request | `enhancement` | Asks for new functionality |\n| Question \u002F Support | `question` | User asking how something works |\n| Documentation | `documentation` | Missing or incorrect docs |\n| Out of Scope | `wontfix` | Clearly outside project boundaries |\n| Unclear | `needs-info` | Body empty, too vague to categorize |\n\nIf body is empty → category is always `Unclear` (never assume).\n\n#### 2. Cross-reference to PRs\n\nScan each open PR body for references to the issue number:\n- Patterns: `fixes #N`, `closes #N`, `resolves #N`, `fix #N`, `close #N` (case-insensitive, `N` = issue number)\n- Use regex locally on the `body` fields already fetched; do NOT make N additional API calls\n- If found: flag issue as \"PR-linked\" with PR number\n\n#### 3. Duplicate detection via Jaccard similarity\n\n**Algorithm (self-contained, no external library)**:\n\nFor each open issue, compute Jaccard similarity against all other open issues AND the 20 most recent closed issues.\n\n```\nStep 1: Normalize title + first 300 chars of body:\n  - Lowercase the full text\n  - Strip category prefixes: \"feat:\", \"fix:\", \"bug:\", \"chore:\", \"docs:\", \"test:\", \"refactor:\"\n  - Remove punctuation: .,!?;:'\"()[]{}-_\u002F\\@#\n\nStep 2: Tokenize:\n  - Split on whitespace\n  - Remove stop words: the a an is in on to for of and or with this that it can not no be\n  - Remove tokens shorter than 3 characters\n\nStep 3: Compute Jaccard:\n  tokens_A = set of tokens from issue A\n  tokens_B = set of tokens from issue B\n  jaccard = |tokens_A ∩ tokens_B| \u002F |tokens_A ∪ tokens_B|\n\nStep 4: Flag:\n  - If jaccard >= 0.60: mark as potential duplicate\n  - Report: \"Similar to #N (Jaccard: 0.72)\"\n  - Keep the OLDER issue as canonical; newer = duplicate candidate\n```\n\nJaccard is computed at runtime using the fetched data; no API calls beyond Phase 1 gather.\n\n#### 4. Risk classification\n\nAssign Red \u002F Yellow \u002F Green based on signals in title + body:\n\n| Level | Color | Criteria |\n|-------|-------|----------|\n| Critical | Red | Security vulnerability, data loss, regression blocking users, crash in production |\n| Needs Attention | Yellow | Missing validation, performance degradation, breaking change undocumented, Unclear with no response for >7 days |\n| Normal | Green | Everything else |\n\n#### 5. Staleness\n\n| Status | Criterion |\n|--------|-----------|\n| Active | Updated within 30 days |\n| Stale | No activity 30–90 days |\n| Very Stale | No activity >90 days |\n\nUse `updatedAt` field. Staleness does NOT depend on comments count; a commented-on issue with old `updatedAt` is still stale.\n\n#### 6. Recommendations\n\nOne recommended action per issue:\n\n| Situation | Action |\n|-----------|--------|\n| Category = Unclear, body empty | Comment requesting details |\n| Jaccard >= 0.60 with known issue | Close as duplicate, link original |\n| Very stale + no assignee | Comment requesting status, suggest close |\n| Risk = Red | Pin to top of triage, escalate immediately |\n| Category = OOS | Close with explanation |\n| PR-linked | No action needed (tracked via PR) |\n| Normal + labeled | No action needed |\n\n### Output: Triage tables\n\n```\n## Open Issues ({count})\n\n### Critical: Immediate Attention (Risk: Red)\n| # | Title | Category | Reporter | Days Open | Action |\n|---|-------|----------|----------|-----------|--------|\n\n### PR-Linked (tracked in open PRs)\n| # | Title | Category | PR | Days Open |\n|---|-------|----------|----|-----------|\n\n### Active Issues\n| # | Title | Category | Labels | Reporter | Days | Action |\n|---|-------|----------|--------|----------|------|--------|\n\n### Duplicate Candidates\n| # | Title | Similar To | Jaccard | Action |\n|---|-------|------------|---------|--------|\n\n### Stale Issues\n| # | Title | Category | Last Activity | Reporter | Action |\n|---|-------|----------|---------------|----------|--------|\n\n### Summary\n- Total open: {N}\n- Critical (Red): {count}\n- PR-linked: {count}\n- Duplicate candidates: {count}\n- Stale (30–90d): {count}\n- Very stale (>90d): {count}\n- Unlabeled: {count}\n- Recommended actions: {comment: N, label: N, close: N}\n```\n\n0 issues → display `No open issues.` and stop.\n\n**Protection rules** (apply to all phases):\n- Never close an issue authored by a collaborator without explicit user confirmation\n- Never re-label an issue that already has labels (only add missing labels)\n- If body is empty → always request details before any other action\n- Never auto-close a Red issue without user confirmation\n\n### Automatic copy\n\nAfter displaying the triage tables, copy to clipboard using platform-appropriate command:\n\n```bash\nUNAME=$(uname -s)\nif [ \"$UNAME\" = \"Darwin\" ]; then\n  pbcopy \u003C\u003C'EOF'\n{full triage tables}\nEOF\nelif command -v xclip &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | xclip -selection clipboard\nelif command -v wl-copy &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | wl-copy\nelif command -v clip.exe &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | clip.exe\nfi\n```\n\nConfirm: `Triage tables copied to clipboard.` (EN) \u002F `Tableaux copiés dans le presse-papier.` (FR)\n\n---\n\n## Phase 2: Deep Analysis (opt-in)\n\n### Issue selection\n\n**If argument passed**:\n- `\"all\"` → all issues with recommended actions\n- Numbers (`\"42 57\"`) → only those issues\n- No argument → propose via `AskUserQuestion`\n\n**If no argument**, display:\n\n```\nquestion: \"Which issues do you want to analyze in depth?\"\nheader: \"Deep Analysis\"\nmultiSelect: true\noptions:\n  - label: \"All ({N} issues with recommended actions)\"\n    description: \"Launch parallel analysis agents for each actionable issue\"\n  - label: \"Critical only ({M} Red issues)\"\n    description: \"Focus on high-risk issues requiring immediate action\"\n  - label: \"Duplicate candidates ({K} issues)\"\n    description: \"Verify Jaccard similarity with full body + comments\"\n  - label: \"Stale only ({J} stale issues)\"\n    description: \"Decide which stale issues to close vs. revive\"\n  - label: \"Skip\"\n    description: \"Stop here, audit only\"\n```\n\nIf \"Skip\" → end workflow.\n\n### Executing analysis\n\nFor each selected issue, launch an analysis agent via **Task tool in parallel**:\n\n```\nsubagent_type: general\nmodel: sonnet\nprompt: |\n  Analyze GitHub issue #{num}: \"{title}\"\n\n  **Metadata**: Category={category}, Risk={risk}, Days open={days}, Labels={labels}\n  **Reporter**: @{author} ({collaborator? \"collaborator\" : \"external\"})\n  **Assignees**: {assignees or \"none\"}\n\n  **Body**:\n  {body}\n\n  **Comments** (fetch via: gh issue view {num} --json comments):\n  {comments[].body, truncate at 5000 chars total}\n\n  **Duplicate candidates**: {jaccard_results or \"none found\"}\n  **Linked PRs**: {pr_refs or \"none\"}\n\n  Tasks:\n  1. Verify the category assigned in Phase 1 (correct? suggest alternative if not)\n  2. If duplicate candidate: confirm or deny similarity with rationale\n  3. If Unclear\u002Fneeds-info: identify exactly what information is missing\n  4. Suggest the most appropriate action with exact text if a comment is needed\n  5. Estimate effort to fix if it's a Bug or Feature Request (XS\u002FS\u002FM\u002FL\u002FXL)\n\n  Return structured output:\n  ### Verification\n  ### Duplicate Analysis\n  ### Missing Information\n  ### Recommended Action\n  ### Effort Estimate\n```\n\n**Fallback if parallel agents unavailable**: run analysis sequentially, one issue at a time. Notify user: `Running sequential analysis (parallel agents not available).`\n\nFetch full comments via:\n```bash\ngh issue view {num} --json comments --jq '.comments[].body'\n```\n\nAggregate all reports. Display a summary after all analyses complete.\n\n---\n\n## Phase 3: Actions (mandatory validation)\n\n### Draft generation\n\nFor each analyzed issue, generate the appropriate action using the template `templates\u002Fissue-comment.md`.\n\n**3 action types**:\n\n| Type | Command | When |\n|------|---------|------|\n| Comment | `gh issue comment {num} --body-file -` | Needs info, stale ping, OOS explanation |\n| Label | `gh issue edit {num} --add-label \"{label}\"` | Unlabeled issue with clear category |\n| Close | `gh issue close {num} --reason \"not planned\"` | Duplicate, OOS, very stale |\n\n**Rules**:\n- Language for comments: **English** (international audience)\n- Labels added: use existing repo labels only (fetch with `gh label list`)\n- Close reason: `\"not planned\"` for OOS\u002Fduplicate, `\"completed\"` only if a fix was merged\n- Never post a comment AND close in the same action without user seeing both drafts\n- Always attach a comment when closing (explain why)\n\n### Display and validation\n\n**Display ALL drafted actions** in format:\n\n```\n---\n### Draft: Issue #{num}: {title}\n\n**Action**: {Comment \u002F Label \u002F Close + Comment}\n**Reason**: {1 sentence}\n\n{full comment text if applicable}\n\n---\n```\n\nThen request validation via `AskUserQuestion`:\n\n```\nquestion: \"These actions are ready. Which ones do you want to execute?\"\nheader: \"Execute Triage Actions\"\nmultiSelect: true\noptions:\n  - label: \"All ({N} actions)\"\n    description: \"Execute all drafted triage actions\"\n  - label: \"Issue #{x}: {title_truncated} ({action_type})\"\n    description: \"Execute only this action\"\n  - label: \"None\"\n    description: \"Cancel, execute nothing\"\n```\n\n(Generate one option per issue + \"All\" + \"None\")\n\n### Execution\n\nFor each validated action:\n\n```bash\n# Comment\ngh issue comment {num} --body-file - \u003C\u003C'TRIAGE_EOF'\n{comment}\nTRIAGE_EOF\n\n# Label\ngh issue edit {num} --add-label \"{label}\"\n\n# Close with comment\ngh issue comment {num} --body-file - \u003C\u003C'TRIAGE_EOF'\n{close comment}\nTRIAGE_EOF\ngh issue close {num} --reason \"not planned\"\n```\n\nConfirm each action: `Action executed on issue #{num}: {title}`\n\nIf \"None\" → `No actions executed. Workflow complete.`\n\n---\n\n## Edge cases\n\n| Situation | Behavior |\n|-----------|----------|\n| 0 open issues | Display `No open issues.` + stop |\n| Body empty | Category = Unclear, action = request details, never assume |\n| Collaborator as reporter | Protect from auto-close, flag explicitly in table |\n| Jaccard inconclusive (0.55–0.65) | Flag as \"possible duplicate, verify manually\" |\n| Label not in repo | Skip label action, notify user to create the label first |\n| Issue already closed during workflow | Skip silently, note in summary |\n| `gh api ...\u002Fcollaborators` 403\u002F404 | Fallback to last 10 merged PR authors |\n| Parallel agents unavailable | Run sequential analysis, notify user |\n| Very large body (>5000 chars) | Truncate to 5000 chars with `[truncated]` note |\n| Milestone assigned | Include in table, never close milestoned issues without confirmation |\n\n---\n\n## Notes\n\n- Always derive owner\u002Frepo via `gh repo view`, never hardcode\n- Use `gh` CLI (not `curl` GitHub API) except for collaborators list\n- `comments` in `gh issue list --json comments` = count only; full content requires `gh issue view {num} --json comments`\n- Never execute any action without explicit user validation in chat\n- Drafted actions must be visible BEFORE any `gh issue comment` or `gh issue close`\n- Jaccard is computed locally: no external API, no library, pure set operations on fetched data\n- Signature on all comments: `*Triaged via Claude Code \u002Fissue-triage*`\n\n---\n\n## Related: \u002Fpr-triage\n\n| | `\u002Fissue-triage` | `\u002Fpr-triage` |\n|--|----------------|--------------|\n| **Scope** | Issue backlog | PR backlog |\n| **Use when** | Catching up on reporter feedback, periodic issue cleanup | Catching up after PR accumulation |\n| **Phases** | 3 (audit + deep analysis + actions) | 3 (audit + deep review + comments) |\n| **Agents** | Parallel sub-agents per issue | Parallel sub-agents per PR |\n| **Duplicate detection** | Jaccard similarity on title+body | File overlap % between PRs |\n| **Actions** | Comment \u002F label \u002F close | GitHub review comment |\n| **Validation** | AskUserQuestion before executing | AskUserQuestion before posting |\n\n**Decision rule**: use `\u002Fissue-triage` for issue backlog management, `\u002Fpr-triage` for code review backlog.\n","# Issue triage\n\n3-phase workflow for maintainers: automated audit of all open issues, opt-in deep analysis via parallel agents, and validated triage actions (comments, labels, closures).\n\n## When to use this skill\n\n| Skill | Usage | Output |\n|-------|-------|--------|\n| `\u002Fissue-triage` | Sort, analyze, and act on an issue backlog | Triage tables + analysis + executed actions |\n| `\u002Fpr-triage` | Sort, review, and comment on a PR backlog | Triage table + reviews + posted comments |\n\n**Triggers**:\n- Manually: `\u002Fissue-triage` or `\u002Fissue-triage all` or `\u002Fissue-triage 42 57`\n- Proactively: when >10 open issues without label, or stale issues >30 days detected\n\n---\n\n## Language\n\n- Check the argument passed to the skill\n- If `en` or `english` → tables and summary in English\n- If `fr`, `french`, or no argument → French (default)\n- Note: GitHub comments and labels (Phase 3) are ALWAYS in English (international audience)\n\n---\n\n## Configuration\n\nThresholds used throughout the workflow. Edit to match your project:\n\n| Parameter | Default | Description |\n|-----------|---------|-------------|\n| `staleness_days` | 30 | Days without activity before flagging as stale |\n| `very_stale_days` | 90 | Days without activity before flagging as very stale |\n| `jaccard_threshold` | 60% | Minimum Jaccard similarity to flag two issues as duplicates |\n| `closed_compare_count` | 20 | Number of recent closed issues to compare for duplicate detection |\n| `open_limit` | 100 | Maximum open issues to fetch and analyze |\n\n---\n\n## Preconditions\n\n```bash\ngit rev-parse --is-inside-work-tree\ngh auth status\n```\n\nIf either fails, stop and explain what is missing.\n\n---\n\n## Phase 1: Audit (always executed)\n\n### Data Gathering (parallel commands)\n\n```bash\n# Repo identity\ngh repo view --json nameWithOwner -q .nameWithOwner\n\n# Open issues (exclude PRs, limit 100)\ngh issue list --state open --limit 100 \\\n  --json number,title,author,createdAt,updatedAt,labels,body,comments,assignees,milestone\n\n# Recent closed issues (for duplicate detection)\ngh issue list --state closed --limit 20 \\\n  --json number,title,body,labels,stateReason\n\n# Open PRs (bodies for cross-reference detection)\ngh pr list --state open --limit 50 --json number,title,body\n\n# Collaborators (to distinguish reporter types)\ngh api \"repos\u002F{owner}\u002F{repo}\u002Fcollaborators\" --jq '.[].login'\n```\n\n**Collaborators fallback**: if `gh api ...\u002Fcollaborators` returns 403\u002F404:\n```bash\n# Extract authors from last 10 merged PRs\ngh pr list --state merged --limit 10 --json author --jq '.[].author.login' | sort -u\n```\nIf still ambiguous, ask via `AskUserQuestion`.\n\n**Note**: `comments` field in `gh issue list --json comments` returns the count, not content. For Phase 2, fetch full content separately: `gh issue view {num} --json comments`.\n\n### Analysis dimensions\n\nRun all 6 dimensions for each open issue:\n\n#### 1. Categorization\n\nClassify each issue by reading `title` + first 200 chars of `body`:\n\n| Category | Label | Criteria |\n|----------|-------|----------|\n| Bug | `bug` | Describes broken behavior, unexpected output, crash |\n| Feature Request | `enhancement` | Asks for new functionality |\n| Question \u002F Support | `question` | User asking how something works |\n| Documentation | `documentation` | Missing or incorrect docs |\n| Out of Scope | `wontfix` | Clearly outside project boundaries |\n| Unclear | `needs-info` | Body empty, too vague to categorize |\n\nIf body is empty → category is always `Unclear` (never assume).\n\n#### 2. Cross-reference to PRs\n\nScan each open PR body for references to the issue number:\n- Patterns: `fixes #N`, `closes #N`, `resolves #N`, `fix #N`, `close #N` (case-insensitive, `N` = issue number)\n- Use regex locally on the `body` fields already fetched; do NOT make N additional API calls\n- If found: flag issue as \"PR-linked\" with PR number\n\n#### 3. Duplicate detection via Jaccard similarity\n\n**Algorithm (self-contained, no external library)**:\n\nFor each open issue, compute Jaccard similarity against all other open issues AND the 20 most recent closed issues.\n\n```\nStep 1: Normalize title + first 300 chars of body:\n  - Lowercase the full text\n  - Strip category prefixes: \"feat:\", \"fix:\", \"bug:\", \"chore:\", \"docs:\", \"test:\", \"refactor:\"\n  - Remove punctuation: .,!?;:'\"()[]{}-_\u002F\\@#\n\nStep 2: Tokenize:\n  - Split on whitespace\n  - Remove stop words: the a an is in on to for of and or with this that it can not no be\n  - Remove tokens shorter than 3 characters\n\nStep 3: Compute Jaccard:\n  tokens_A = set of tokens from issue A\n  tokens_B = set of tokens from issue B\n  jaccard = |tokens_A ∩ tokens_B| \u002F |tokens_A ∪ tokens_B|\n\nStep 4: Flag:\n  - If jaccard >= 0.60: mark as potential duplicate\n  - Report: \"Similar to #N (Jaccard: 0.72)\"\n  - Keep the OLDER issue as canonical; newer = duplicate candidate\n```\n\nJaccard is computed at runtime using the fetched data; no API calls beyond Phase 1 gather.\n\n#### 4. Risk classification\n\nAssign Red \u002F Yellow \u002F Green based on signals in title + body:\n\n| Level | Color | Criteria |\n|-------|-------|----------|\n| Critical | Red | Security vulnerability, data loss, regression blocking users, crash in production |\n| Needs Attention | Yellow | Missing validation, performance degradation, breaking change undocumented, Unclear with no response for >7 days |\n| Normal | Green | Everything else |\n\n#### 5. Staleness\n\n| Status | Criterion |\n|--------|-----------|\n| Active | Updated within 30 days |\n| Stale | No activity 30–90 days |\n| Very Stale | No activity >90 days |\n\nUse `updatedAt` field. Staleness does NOT depend on comments count; a commented-on issue with old `updatedAt` is still stale.\n\n#### 6. Recommendations\n\nOne recommended action per issue:\n\n| Situation | Action |\n|-----------|--------|\n| Category = Unclear, body empty | Comment requesting details |\n| Jaccard >= 0.60 with known issue | Close as duplicate, link original |\n| Very stale + no assignee | Comment requesting status, suggest close |\n| Risk = Red | Pin to top of triage, escalate immediately |\n| Category = OOS | Close with explanation |\n| PR-linked | No action needed (tracked via PR) |\n| Normal + labeled | No action needed |\n\n### Output: Triage tables\n\n```\n## Open Issues ({count})\n\n### Critical: Immediate Attention (Risk: Red)\n| # | Title | Category | Reporter | Days Open | Action |\n|---|-------|----------|----------|-----------|--------|\n\n### PR-Linked (tracked in open PRs)\n| # | Title | Category | PR | Days Open |\n|---|-------|----------|----|-----------|\n\n### Active Issues\n| # | Title | Category | Labels | Reporter | Days | Action |\n|---|-------|----------|--------|----------|------|--------|\n\n### Duplicate Candidates\n| # | Title | Similar To | Jaccard | Action |\n|---|-------|------------|---------|--------|\n\n### Stale Issues\n| # | Title | Category | Last Activity | Reporter | Action |\n|---|-------|----------|---------------|----------|--------|\n\n### Summary\n- Total open: {N}\n- Critical (Red): {count}\n- PR-linked: {count}\n- Duplicate candidates: {count}\n- Stale (30–90d): {count}\n- Very stale (>90d): {count}\n- Unlabeled: {count}\n- Recommended actions: {comment: N, label: N, close: N}\n```\n\n0 issues → display `No open issues.` and stop.\n\n**Protection rules** (apply to all phases):\n- Never close an issue authored by a collaborator without explicit user confirmation\n- Never re-label an issue that already has labels (only add missing labels)\n- If body is empty → always request details before any other action\n- Never auto-close a Red issue without user confirmation\n\n### Automatic copy\n\nAfter displaying the triage tables, copy to clipboard using platform-appropriate command:\n\n```bash\nUNAME=$(uname -s)\nif [ \"$UNAME\" = \"Darwin\" ]; then\n  pbcopy \u003C\u003C'EOF'\n{full triage tables}\nEOF\nelif command -v xclip &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | xclip -selection clipboard\nelif command -v wl-copy &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | wl-copy\nelif command -v clip.exe &>\u002Fdev\u002Fnull; then\n  echo \"{full triage tables}\" | clip.exe\nfi\n```\n\nConfirm: `Triage tables copied to clipboard.` (EN) \u002F `Tableaux copiés dans le presse-papier.` (FR)\n\n---\n\n## Phase 2: Deep Analysis (opt-in)\n\n### Issue selection\n\n**If argument passed**:\n- `\"all\"` → all issues with recommended actions\n- Numbers (`\"42 57\"`) → only those issues\n- No argument → propose via `AskUserQuestion`\n\n**If no argument**, display:\n\n```\nquestion: \"Which issues do you want to analyze in depth?\"\nheader: \"Deep Analysis\"\nmultiSelect: true\noptions:\n  - label: \"All ({N} issues with recommended actions)\"\n    description: \"Launch parallel analysis agents for each actionable issue\"\n  - label: \"Critical only ({M} Red issues)\"\n    description: \"Focus on high-risk issues requiring immediate action\"\n  - label: \"Duplicate candidates ({K} issues)\"\n    description: \"Verify Jaccard similarity with full body + comments\"\n  - label: \"Stale only ({J} stale issues)\"\n    description: \"Decide which stale issues to close vs. revive\"\n  - label: \"Skip\"\n    description: \"Stop here, audit only\"\n```\n\nIf \"Skip\" → end workflow.\n\n### Executing analysis\n\nFor each selected issue, launch an analysis agent via **Task tool in parallel**:\n\n```\nsubagent_type: general\nmodel: sonnet\nprompt: |\n  Analyze GitHub issue #{num}: \"{title}\"\n\n  **Metadata**: Category={category}, Risk={risk}, Days open={days}, Labels={labels}\n  **Reporter**: @{author} ({collaborator? \"collaborator\" : \"external\"})\n  **Assignees**: {assignees or \"none\"}\n\n  **Body**:\n  {body}\n\n  **Comments** (fetch via: gh issue view {num} --json comments):\n  {comments[].body, truncate at 5000 chars total}\n\n  **Duplicate candidates**: {jaccard_results or \"none found\"}\n  **Linked PRs**: {pr_refs or \"none\"}\n\n  Tasks:\n  1. Verify the category assigned in Phase 1 (correct? suggest alternative if not)\n  2. If duplicate candidate: confirm or deny similarity with rationale\n  3. If Unclear\u002Fneeds-info: identify exactly what information is missing\n  4. Suggest the most appropriate action with exact text if a comment is needed\n  5. Estimate effort to fix if it's a Bug or Feature Request (XS\u002FS\u002FM\u002FL\u002FXL)\n\n  Return structured output:\n  ### Verification\n  ### Duplicate Analysis\n  ### Missing Information\n  ### Recommended Action\n  ### Effort Estimate\n```\n\n**Fallback if parallel agents unavailable**: run analysis sequentially, one issue at a time. Notify user: `Running sequential analysis (parallel agents not available).`\n\nFetch full comments via:\n```bash\ngh issue view {num} --json comments --jq '.comments[].body'\n```\n\nAggregate all reports. Display a summary after all analyses complete.\n\n---\n\n## Phase 3: Actions (mandatory validation)\n\n### Draft generation\n\nFor each analyzed issue, generate the appropriate action using the template `templates\u002Fissue-comment.md`.\n\n**3 action types**:\n\n| Type | Command | When |\n|------|---------|------|\n| Comment | `gh issue comment {num} --body-file -` | Needs info, stale ping, OOS explanation |\n| Label | `gh issue edit {num} --add-label \"{label}\"` | Unlabeled issue with clear category |\n| Close | `gh issue close {num} --reason \"not planned\"` | Duplicate, OOS, very stale |\n\n**Rules**:\n- Language for comments: **English** (international audience)\n- Labels added: use existing repo labels only (fetch with `gh label list`)\n- Close reason: `\"not planned\"` for OOS\u002Fduplicate, `\"completed\"` only if a fix was merged\n- Never post a comment AND close in the same action without user seeing both drafts\n- Always attach a comment when closing (explain why)\n\n### Display and validation\n\n**Display ALL drafted actions** in format:\n\n```\n---\n### Draft: Issue #{num}: {title}\n\n**Action**: {Comment \u002F Label \u002F Close + Comment}\n**Reason**: {1 sentence}\n\n{full comment text if applicable}\n\n---\n```\n\nThen request validation via `AskUserQuestion`:\n\n```\nquestion: \"These actions are ready. Which ones do you want to execute?\"\nheader: \"Execute Triage Actions\"\nmultiSelect: true\noptions:\n  - label: \"All ({N} actions)\"\n    description: \"Execute all drafted triage actions\"\n  - label: \"Issue #{x}: {title_truncated} ({action_type})\"\n    description: \"Execute only this action\"\n  - label: \"None\"\n    description: \"Cancel, execute nothing\"\n```\n\n(Generate one option per issue + \"All\" + \"None\")\n\n### Execution\n\nFor each validated action:\n\n```bash\n# Comment\ngh issue comment {num} --body-file - \u003C\u003C'TRIAGE_EOF'\n{comment}\nTRIAGE_EOF\n\n# Label\ngh issue edit {num} --add-label \"{label}\"\n\n# Close with comment\ngh issue comment {num} --body-file - \u003C\u003C'TRIAGE_EOF'\n{close comment}\nTRIAGE_EOF\ngh issue close {num} --reason \"not planned\"\n```\n\nConfirm each action: `Action executed on issue #{num}: {title}`\n\nIf \"None\" → `No actions executed. Workflow complete.`\n\n---\n\n## Edge cases\n\n| Situation | Behavior |\n|-----------|----------|\n| 0 open issues | Display `No open issues.` + stop |\n| Body empty | Category = Unclear, action = request details, never assume |\n| Collaborator as reporter | Protect from auto-close, flag explicitly in table |\n| Jaccard inconclusive (0.55–0.65) | Flag as \"possible duplicate, verify manually\" |\n| Label not in repo | Skip label action, notify user to create the label first |\n| Issue already closed during workflow | Skip silently, note in summary |\n| `gh api ...\u002Fcollaborators` 403\u002F404 | Fallback to last 10 merged PR authors |\n| Parallel agents unavailable | Run sequential analysis, notify user |\n| Very large body (>5000 chars) | Truncate to 5000 chars with `[truncated]` note |\n| Milestone assigned | Include in table, never close milestoned issues without confirmation |\n\n---\n\n## Notes\n\n- Always derive owner\u002Frepo via `gh repo view`, never hardcode\n- Use `gh` CLI (not `curl` GitHub API) except for collaborators list\n- `comments` in `gh issue list --json comments` = count only; full content requires `gh issue view {num} --json comments`\n- Never execute any action without explicit user validation in chat\n- Drafted actions must be visible BEFORE any `gh issue comment` or `gh issue close`\n- Jaccard is computed locally: no external API, no library, pure set operations on fetched data\n- Signature on all comments: `*Triaged via Claude Code \u002Fissue-triage*`\n\n---\n\n## Related: \u002Fpr-triage\n\n| | `\u002Fissue-triage` | `\u002Fpr-triage` |\n|--|----------------|--------------|\n| **Scope** | Issue backlog | PR backlog |\n| **Use when** | Catching up on reporter feedback, periodic issue cleanup | Catching up after PR accumulation |\n| **Phases** | 3 (audit + deep analysis + actions) | 3 (audit + deep review + comments) |\n| **Agents** | Parallel sub-agents per issue | Parallel sub-agents per PR |\n| **Duplicate detection** | Jaccard similarity on title+body | File overlap % between PRs |\n| **Actions** | Comment \u002F label \u002F close | GitHub review comment |\n| **Validation** | AskUserQuestion before executing | AskUserQuestion before posting |\n\n**Decision rule**: use `\u002Fissue-triage` for issue backlog management, `\u002Fpr-triage` for code review backlog.\n",{"name":5,"effort":24,"description":7,"allowed-tools":25},"medium","Bash","main","f2cc95bc769ca4c3a398965b767dfb41cdf8d698","reference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fissue-triage",2,"https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace","https:\u002F\u002Fgithub.com\u002F313DEVGRP","https:\u002F\u002Fwww.a-rms.net","2026-10-18 12:48:10",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill issue-triage",{"tool":40,"command":41},"bunx","bunx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill issue-triage",{"tool":43,"command":44},"pnpm","pnpm dlx skills add 313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace --skill issue-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fissue-triage\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"templates\u002Fissue-comment.md","REFERENCE","参考文档",3467,"https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fissue-triage\u002Ftemplates\u002Fissue-comment.md",[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7F343WNVHZWWYJDD77QEJ7J","voice-refine","Transform verbose voice input into structured, token-efficient Claude prompts. Use when cleaning up voice memos, dictation output, or speech-to-text transcriptions that contain filler words, repetitions, and unstructured thoughts.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvoice-refine\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7F3417SNXASFTDA1B2X4XYZ","validate-changes","Evaluate staged changes using LLM-as-a-Judge before committing","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fvalidate-changes\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7F33YN9QK88H2B81PVHMNG1","update-threat-db","Delegate threat-intelligence research and updates to AgentSec, then validate the guide and landing mirrors.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Fupdate-threat-db\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7F33SXQ57G2FVFK094T4584","token-audit","Audit Claude Code configuration to measure fixed-context token overhead and produce a prioritized action plan. Use when hitting rate limits, experiencing early context compression, or after adding significant config files.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftoken-audit\u002Fskill.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7F33NAWXFPHW59CF52EAGGK","talk-stage6-revision","Produces revision sheets with quick navigation by act, a master concept-to-URL table, Q&A cheat-sheet with 6-10 anticipated questions, glossary, and external resources list. Use when preparing for a talk with Q&A, creating shareable reference material for attendees, or building a safety-net glossary for live delivery.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-6-revision\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7F33G9V96HVZKAGZ84J4EBR","talk-stage5-script","Produces a complete 5-act pitch with speaker notes, a slide-by-slide specification, and a ready-to-paste Kimi prompt for AI slide generation. Requires validated angle and title from Stage 4. Use when you have a confirmed talk angle and need the full script, slide spec, and AI-generated presentation prompt.","https:\u002F\u002Fgithub.com\u002F313DEVGRP\u002FJava-Service-Tree-Framework-Multi-Agent-Workspace\u002Fblob\u002Fmain\u002Freference\u002Fclaude-code-ultimate-guide-main\u002Fexamples\u002Fskills\u002Ftalk-pipeline\u002Fstage-5-script\u002FSKILL.md",[],[]]