Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计异常

issue-triage问题分类

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

186

周安装

8

GitHub Stars

4,033

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:issue-triage(问题分类)
来源仓库:https://github.com/florianbruniaux/claude-code-ultimate-guide
仓库路径:skills/issue-triage
安装命令:
npx skills add https://github.com/florianbruniaux/claude-code-ultimate-guide --skill issue-triage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/florianbruniaux/claude-code-ultimate-guide --skill issue-triage

简介

issue-triage 用于围绕 GitHub 仓库、Issue、Pull Request 提供协作辅助,适合查询状态和整理变更。

  • 适用于项目状态查询、变更整理和协作事项创建等场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。
  • 使用时需区分只读查询和写入操作,确认 token 权限和仓库范围。
  • 涉及创建 PR 或推送分支时,应确保用户授权和目标仓库正确。

SKILL.md

Issue Triage

3-phase workflow for maintainers: automated audit of all open issues, opt-in deep analysis via parallel agents, and validated triage actions (comments, labels, closures).

When to Use This Skill

SkillUsageOutput
/issue-triageSort, analyze, and act on an issue backlogTriage tables + analysis + executed actions
/pr-triageSort, review, and comment on a PR backlogTriage table + reviews + posted comments

Triggers:

  • Manually: /issue-triage or /issue-triage all or /issue-triage 42 57
  • Proactively: when >10 open issues without label, or stale issues >30 days detected

Language

  • Check the argument passed to the skill
  • If en or english → tables and summary in English
  • If fr, french, or no argument → French (default)
  • Note: GitHub comments and labels (Phase 3) are ALWAYS in English (international audience)

Configuration

Thresholds used throughout the workflow. Edit to match your project:

ParameterDefaultDescription
staleness_days30Days without activity before flagging as stale
very_stale_days90Days without activity before flagging as very stale
jaccard_threshold60%Minimum Jaccard similarity to flag two issues as duplicates
closed_compare_count20Number of recent closed issues to compare for duplicate detection
open_limit100Maximum open issues to fetch and analyze

Preconditions

git rev-parse --is-inside-work-tree
gh auth status

If either fails, stop and explain what is missing.


Phase 1 — Audit (always executed)

Data Gathering (parallel commands)

# Repo identity
gh repo view --json nameWithOwner -q .nameWithOwner

# Open issues (exclude PRs, limit 100)
gh issue list --state open --limit 100 \
  --json number,title,author,createdAt,updatedAt,labels,body,comments,assignees,milestone

# Recent closed issues (for duplicate detection)
gh issue list --state closed --limit 20 \
  --json number,title,body,labels,stateReason

# Open PRs (bodies for cross-reference detection)
gh pr list --state open --limit 50 --json number,title,body

# Collaborators (to distinguish reporter types)
gh api "repos/{owner}/{repo}/collaborators" --jq '.[].login'

Collaborators fallback: if gh api.../collaborators returns 403/404:

# Extract authors from last 10 merged PRs
gh pr list --state merged --limit 10 --json author --jq '.[].author.login' | sort -u

If still ambiguous, ask via AskUserQuestion.

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.

Analysis Dimensions

Run all 6 dimensions for each open issue:

1. Categorization

Classify each issue by reading title + first 200 chars of body:

CategoryLabelCriteria
BugbugDescribes broken behavior, unexpected output, crash
Feature RequestenhancementAsks for new functionality
Question / SupportquestionUser asking how something works
DocumentationdocumentationMissing or incorrect docs
Out of ScopewontfixClearly outside project boundaries
Unclearneeds-infoBody empty, too vague to categorize

If body is empty → category is always Unclear (never assume).

2. Cross-reference to PRs

Scan each open PR body for references to the issue number:

  • Patterns: fixes #N, closes #N, resolves #N, fix #N, close #N (case-insensitive, N = issue number)
  • Use regex locally on the body fields already fetched — do NOT make N additional API calls
  • If found: flag issue as "PR-linked" with PR number

3. Duplicate Detection via Jaccard Similarity

Algorithm (self-contained — no external library):

For each open issue, compute Jaccard similarity against all other open issues AND the 20 most recent closed issues.

Step 1 — Normalize title + first 300 chars of body:
  - Lowercase the full text
  - Strip category prefixes: "feat:", "fix:", "bug:", "chore:", "docs:", "test:", "refactor:"
  - Remove punctuation: .,!?;:'"()[]{}-_/\@#

Step 2 — Tokenize:
  - Split on whitespace
  - Remove stop words: the a an is in on to for of and or with this that it can not no be
  - Remove tokens shorter than 3 characters

Step 3 — Compute Jaccard:
  tokens_A = set of tokens from issue A
  tokens_B = set of tokens from issue B
  jaccard = |tokens_A ∩ tokens_B| / |tokens_A ∪ tokens_B|

Step 4 — Flag:
  - If jaccard >= 0.60: mark as potential duplicate
  - Report: "Similar to #N (Jaccard: 0.72)"
  - Keep the OLDER issue as canonical; newer = duplicate candidate

Jaccard is computed at runtime using the fetched data — no API calls beyond Phase 1 gather.

4. Risk Classification

Assign Red / Yellow / Green based on signals in title + body:

LevelColorCriteria
CriticalRedSecurity vulnerability, data loss, regression blocking users, crash in production
Needs AttentionYellowMissing validation, performance degradation, breaking change undocumented, Unclear with no response for >7 days
NormalGreenEverything else

5. Staleness

StatusCriterion
ActiveUpdated within 30 days
StaleNo activity 30–90 days
Very StaleNo activity >90 days

Use updatedAt field. Staleness does NOT depend on comments count — a commented-on issue with old updatedAt is still stale.

6. Recommendations

One recommended action per issue:

SituationAction
Category = Unclear, body emptyComment requesting details
Jaccard >= 0.60 with known issueClose as duplicate, link original
Very stale + no assigneeComment requesting status, suggest close
Risk = RedPin to top of triage, escalate immediately
Category = OOSClose with explanation
PR-linkedNo action needed (tracked via PR)
Normal + labeledNo action needed

Output — Triage Tables

## Open Issues ({count})

### Critical — Immediate Attention (Risk: Red)
| # | Title | Category | Reporter | Days Open | Action |
|---|-------|----------|----------|-----------|--------|

### PR-Linked (tracked in open PRs)
| # | Title | Category | PR | Days Open |
|---|-------|----------|----|-----------|

### Active Issues
| # | Title | Category | Labels | Reporter | Days | Action |
|---|-------|----------|--------|----------|------|--------|

### Duplicate Candidates
| # | Title | Similar To | Jaccard | Action |
|---|-------|------------|---------|--------|

### Stale Issues
| # | Title | Category | Last Activity | Reporter | Action |
|---|-------|----------|---------------|----------|--------|

### Summary
- Total open: {N}
- Critical (Red): {count}
- PR-linked: {count}
- Duplicate candidates: {count}
- Stale (30–90d): {count}
- Very stale (>90d): {count}
- Unlabeled: {count}
- Recommended actions: {comment: N, label: N, close: N}

0 issues → display No open issues. and stop.

Protection rules (apply to all phases):

  • Never close an issue authored by a collaborator without explicit user confirmation
  • Never re-label an issue that already has labels (only add missing labels)
  • If body is empty → always request details before any other action
  • Never auto-close a Red issue without user confirmation

Automatic Copy

After displaying the triage tables, copy to clipboard using platform-appropriate command:

UNAME=$(uname -s)
if [ "$UNAME" = "Darwin" ]; then
  pbcopy <<'EOF'
{full triage tables}
EOF
elif command -v xclip &>/dev/null; then
  echo "{full triage tables}" | xclip -selection clipboard
elif command -v wl-copy &>/dev/null; then
  echo "{full triage tables}" | wl-copy
elif command -v clip.exe &>/dev/null; then
  echo "{full triage tables}" | clip.exe
fi

Confirm: Triage tables copied to clipboard. (EN) / Tableaux copiés dans le presse-papier. (FR)


Phase 2 — Deep Analysis (opt-in)

Issue Selection

If argument passed:

  • "all" → all issues with recommended actions
  • Numbers ("42 57") → only those issues
  • No argument → propose via AskUserQuestion

If no argument, display:

question: "Which issues do you want to analyze in depth?"
header: "Deep Analysis"
multiSelect: true
options:
  - label: "All ({N} issues with recommended actions)"
    description: "Launch parallel analysis agents for each actionable issue"
  - label: "Critical only ({M} Red issues)"
    description: "Focus on high-risk issues requiring immediate action"
  - label: "Duplicate candidates ({K} issues)"
    description: "Verify Jaccard similarity with full body + comments"
  - label: "Stale only ({J} stale issues)"
    description: "Decide which stale issues to close vs. revive"
  - label: "Skip"
    description: "Stop here — audit only"

If "Skip" → end workflow.

Executing Analysis

For each selected issue, launch an analysis agent via Task tool in parallel:

subagent_type: general
model: sonnet
prompt: |
  Analyze GitHub issue #{num}: "{title}"

  **Metadata**: Category={category}, Risk={risk}, Days open={days}, Labels={labels}
  **Reporter**: @{author} ({collaborator? "collaborator" : "external"})
  **Assignees**: {assignees or "none"}

  **Body**:
  {body}

  **Comments** (fetch via: gh issue view {num} --json comments):
  {comments[].body — truncate at 5000 chars total}

  **Duplicate candidates**: {jaccard_results or "none found"}
  **Linked PRs**: {pr_refs or "none"}

  Tasks:
  1. Verify the category assigned in Phase 1 (correct? suggest alternative if not)
  2. If duplicate candidate: confirm or deny similarity with rationale
  3. If Unclear/needs-info: identify exactly what information is missing
  4. Suggest the most appropriate action with exact text if a comment is needed
  5. Estimate effort to fix if it's a Bug or Feature Request (XS/S/M/L/XL)

  Return structured output:
  ### Verification
  ### Duplicate Analysis
  ### Missing Information
  ### Recommended Action
  ### Effort Estimate

Fallback if parallel agents unavailable: run analysis sequentially, one issue at a time. Notify user: Running sequential analysis (parallel agents not available).

Fetch full comments via:

gh issue view {num} --json comments --jq '.comments[].body'

Aggregate all reports. Display a summary after all analyses complete.


Phase 3 — Actions (mandatory validation)

Draft Generation

For each analyzed issue, generate the appropriate action using the template templates/issue-comment.md.

3 action types:

TypeCommandWhen
Commentgh issue comment {num} --body-file -Needs info, stale ping, OOS explanation
Labelgh issue edit {num} --add-label "{label}"Unlabeled issue with clear category
Closegh issue close {num} --reason "not planned"Duplicate, OOS, very stale

Rules:

  • Language for comments: English (international audience)
  • Labels added: use existing repo labels only (fetch with gh label list)
  • Close reason: "not planned" for OOS/duplicate, "completed" only if a fix was merged
  • Never post a comment AND close in the same action without user seeing both drafts
  • Always attach a comment when closing (explain why)

Display and Validation

Display ALL drafted actions in format:

---
### Draft — Issue #{num}: {title}

**Action**: {Comment / Label / Close + Comment}
**Reason**: {1 sentence}

{full comment text if applicable}

---

Then request validation via AskUserQuestion:

question: "These actions are ready. Which ones do you want to execute?"
header: "Execute Triage Actions"
multiSelect: true
options:
  - label: "All ({N} actions)"
    description: "Execute all drafted triage actions"
  - label: "Issue #{x} — {title_truncated} ({action_type})"
    description: "Execute only this action"
  - label: "None"
    description: "Cancel — execute nothing"

(Generate one option per issue + "All" + "None")

Execution

For each validated action:

# Comment
gh issue comment {num} --body-file - <<'TRIAGE_EOF'
{comment}
TRIAGE_EOF

# Label
gh issue edit {num} --add-label "{label}"

# Close with comment
gh issue comment {num} --body-file - <<'TRIAGE_EOF'
{close comment}
TRIAGE_EOF
gh issue close {num} --reason "not planned"

Confirm each action: Action executed on issue #{num}: {title}

If "None" → No actions executed. Workflow complete.


Edge Cases

SituationBehavior
0 open issuesDisplay No open issues. + stop
Body emptyCategory = Unclear, action = request details, never assume
Collaborator as reporterProtect from auto-close, flag explicitly in table
Jaccard inconclusive (0.55–0.65)Flag as "possible duplicate — verify manually"
Label not in repoSkip label action, notify user to create the label first
Issue already closed during workflowSkip silently, note in summary
gh api.../collaborators 403/404Fallback to last 10 merged PR authors
Parallel agents unavailableRun sequential analysis, notify user
Very large body (>5000 chars)Truncate to 5000 chars with [truncated] note
Milestone assignedInclude in table, never close milestoned issues without confirmation

Notes

  • Always derive owner/repo via gh repo view, never hardcode
  • Use gh CLI (not curl GitHub API) except for collaborators list
  • comments in gh issue list --json comments = count only; full content requires gh issue view {num} --json comments
  • Never execute any action without explicit user validation in chat
  • Drafted actions must be visible BEFORE any gh issue comment or gh issue close
  • Jaccard is computed locally — no external API, no library, pure set operations on fetched data
  • Signature on all comments: *Triaged via Claude Code /issue-triage*

Related: /pr-triage

/issue-triage/pr-triage
ScopeIssue backlogPR backlog
Use whenCatching up on reporter feedback, periodic issue cleanupCatching up after PR accumulation
Phases3 (audit + deep analysis + actions)3 (audit + deep review + comments)
AgentsParallel sub-agents per issueParallel sub-agents per PR
Duplicate detectionJaccard similarity on title+bodyFile overlap % between PRs
ActionsComment / label / closeGitHub review comment
ValidationAskUserQuestion before executingAskUserQuestion before posting

Decision rule: use /issue-triage for issue backlog management, /pr-triage for code review backlog.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.75%
按下载量换算23

Claude

28.87%
按下载量换算19

Cursor

19.09%
按下载量换算12

Gemini CLI

10.66%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills