Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

triaging-issues分类问题

Agent Skill

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

总安装

15,816

周安装

659

GitHub Stars

99,521

下载量

5,272
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pytorch/pytorch --skill triaging-issues

简介

用于围绕 GitHub 仓库、Issue、Pull Request 等协作流程提供辅助。

  • 适合查询项目状态、整理变更或辅助创建协作事项。
  • 可将仓库信息转化为可执行的操作建议或下一步计划。
  • 区分只读查询与写入操作,涉及私有仓库时需确认授权范围。
  • triaging-issues 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

PyTorch Issue Triage Skill

This skill helps triage GitHub issues by routing issues, applying labels, and leaving first-line responses.

Contents

- Step 0: Already Routed — SKIP - Step 1: Question vs Bug/Feature - Step 1.5: Needs Reproduction — External Files - Step 2: Transfer - Step 2.5: PT2 Issues — Special Handling - Step 3: Redirect to Secondary Oncall - Step 4: Label the Issue - Step 5: High Priority — REQUIRES HUMAN REVIEW - Step 6: bot-triaged (automatic) - Step 7: Mark Triaged

Labels reference: See labels.json for the full catalog of labels suitable for triage. ONLY apply labels that exist in this file. Do not invent or guess label names. This file excludes CI triggers, test configs, release notes, deprecated labels, and labels requiring human decision.

PT2 triage guide: See pt2-triage-rubric.md for detailed labeling guidance when triaging PT2/torch.compile issues.

Response templates: See templates.json for standard response messages.


MCP Tools Available

Use these GitHub MCP tools for triage:

ToolPurpose
mcp__github__issue_readGet issue details, comments, and existing labels
mcp__github__issue_writeApply labels or close issues
mcp__github__add_issue_commentAdd comment (only for redirecting questions)
mcp__github__search_issuesFind similar issues for context

Labels You Must NEVER Add

Prefix/CategoryReason
Labels not in labels.jsonOnly apply labels that exist in the allowlist
ciflow/*CI job triggers for PRs only
test-config/*Test suite selectors for PRs only
release notes: *Auto-assigned for release notes
ci-*, ci:*CI infrastructure controls
sev*Severity labels require human decision
merge blockingRequires human decision
actionableRequires human decision
Any label containing "deprecated"Obsolete
oncall: relengNot a triage redirect target. Use module: ci instead

If blocked: When a label is blocked by the hook, add ONLY triage review and stop. A human will handle it.

These rules are enforced by a PreToolUse hook that validates all labels against labels.json.

Never Override Human Labels

If a human has already applied labels (especially ci: sev, severity labels, or priority labels), do NOT remove or replace them. Your job is to supplement, not override.


Issue Triage (for each issue)

0) Already Routed — SKIP

If an issue already has ANY oncall: label, SKIP IT entirely. Do not:

  • Add any labels
  • Add triaged
  • Leave comments
  • Do any triage work

That issue belongs to the sub-oncall team. They own their queue.

1) Question vs Bug/Feature

  • If it is a question (not a bug report or feature request): close and use the redirect_to_forum template from templates.json.
  • If unclear whether it is a bug/feature vs a question: request additional information using the request_more_info template and stop.

1.5) Needs Reproduction — External Files

Check if the issue body contains links to external files that users would need to download to reproduce.

Patterns to detect:

  • File attachments: .zip, .pt, .pth, .pkl, .safetensors, .onnx, .bin files
  • External storage: Google Drive, Dropbox, OneDrive, Mega, WeTransfer links
  • Model hubs: Hugging Face Hub links to model files

Action:

  1. Edit the issue body to remove/redact the download links

- Replace with: [Link removed - external file downloads are not permitted for security reasons]

  1. Add needs reproduction label
  2. Use the needs_reproduction template from templates.json to request a self-contained reproduction
  3. Do NOT add triaged — wait for the user to provide a reproducible example

1.55) Needs Reproduction — Other Cases

Also add needs reproduction when:

  • The user reports a hardware-specific issue (e.g., specific GPU model) without a self-contained repro script
  • The user references a specific model/checkpoint/dataset that is not publicly runnable in a few lines
  • The issue describes version-upgrade breakage but only provides a high-level description without a minimal script
  • The repro depends on a specific training setup, distributed environment, or non-trivial infrastructure

1.6) Edge Cases & Numerical Accuracy

If the issue involves extremal values or numerical precision differences:

Patterns to detect:

  • Values near torch.finfo(dtype).max or torch.finfo(dtype).min
  • NaN/Inf appearing in outputs from valid (but extreme) inputs
  • Differences between CPU and GPU results
  • Precision differences between dtypes (e.g., fp32 vs fp16)
  • Fuzzer-generated edge cases

IMPORTANT — avoid keyword-triggered mislabeling:

Label based on the root cause, not keywords that appear in the error or title. A keyword tells you what failed, not why.

  • An undefined symbol: ncclAlltoAll error at import torch is a packaging issue (module: binaries), not a distributed training bug — the user never ran distributed code.
  • A nan in a parameter name or tolerance check is not module: NaNs and Infs unless the bug is actually about NaN propagation.
  • A stack trace mentioning autograd does not mean module: autograd — check whether the bug is in autograd itself or just on the call path.
  • A test failure with tolerance thresholds is module: tests, not module: numerical-stability.

Ask: "Where would the fix need to be made?" That determines the label.

Action:

  1. Add module: edge cases label
  2. If from a fuzzer, also add topic: fuzzer
  3. Use the numerical_accuracy template from templates.json to link to the docs
  4. If the issue is clearly expected behavior per the docs, close it with the template comment

2) Transfer (domain library or ExecuTorch)

If the issue belongs in another repo (vision/text/audio/RL/ExecuTorch/etc.), transfer the issue and STOP.

2.5) PT2 Issues — Special Handling

PT2 is NOT a redirect. oncall: pt2 is not like the other oncall labels in Step 3. PT2 issues continue through Steps 4–7 for full triage — add oncall: pt2, then proceed to label with module: labels, mark triaged, etc.

Every oncall: pt2 issue MUST have at least one module: label. The PT2 oncall queue is too broad without a module label — the team needs to know which component is affected (e.g., module: dynamo, module: inductor, module: helion, module: dynamic shapes). If you cannot determine the specific module, use module: compile ux as a fallback, but always try to be specific first. See pt2-triage-rubric.md for detailed guidance.

3) Redirect to Secondary Oncall

CRITICAL: When redirecting issues to a non-PT2 oncall queue, apply exactly one oncall:... label and STOP. Do NOT:

  • Add any module: labels
  • Mark it triaged
  • Do any further triage work

The sub-oncall team will handle their own triage. Your job is only to route it to them.

Oncall Redirect Labels

LabelWhen to use
oncall: jitTorchScript issues
oncall: distributedDistributed training (DDP, FSDP, RPC, c10d, DTensor, DeviceMesh, symmetric memory, context parallel, pipelining). Special handling: after applying this label, invoke the distributed triage sub-skill (/distributed-triage on this issue) for second-level triage — it will route to a sub-oncall, add module labels, and mark triaged.
oncall: exporttorch.export issues
oncall: quantizationQuantization issues
oncall: mobileMobile (iOS/Android), excludes ExecuTorch
oncall: profilerProfiler issues (CPU, GPU, Kineto)
oncall: visualizationTensorBoard integration

Common routing mistakes to avoid:

  • MPS ≠ Mobile. MPS (Metal Performance Shaders) is the macOS/Apple Silicon GPU backend. Do NOT route MPS issues to oncall: mobile. MPS issues stay in the general queue with module: mps.
  • DTensor → oncall: distributed. DTensor issues should always be routed to oncall: distributed, even if they don't mention DDP/FSDP.
  • ONNX → module: onnx. There is no oncall: onnx. Use module: onnx and keep in the general queue.
  • CI/releng → module: ci. Do not use oncall: releng. Use module: ci for CI infrastructure issues.
  • torch.compile + distributed. When torch.compile mishandles a distributed op (e.g., dist.all_reduce), the issue typically needs BOTH oncall: pt2 and oncall: distributed since the fix may span both codebases.

Note: oncall: cpu inductor is a sub-queue of PT2. For general triage, just use oncall: pt2.

4) Label the issue (if NOT transferred/redirected)

Only if the issue stays in the general queue:

  • Add 1+ module:... labels based on the affected area
  • Prefer specific labels over general ones when both exist. Check labels.json descriptions for guidance on when a specific label supersedes a general one (e.g., module: sdpa instead of module: nn for SDPA issues, module: flex attention instead of module: nn for flex attention).
  • feature — wholly new functionality that does not exist today in any form
  • enhancement — improvement to something that already works (e.g., adding a native backend kernel for an op that already runs via fallback/composite, performance optimization, better error messages). If the enhancement is about performance, also add module: performance.
  • function request — a new function or new arguments/modes for an existing function
  • If the issue says the operation "currently works" or "falls back to" a slower path, that is enhancement, not feature

Commonly missed labels — always check for these:

ConditionLabel
Segfault, illegal memory access, SIGSEGVmodule: crash
Performance issue: regression, slowdown, or optimization requestmodule: performance
Issue on Windowsmodule: windows
Previously working feature now brokenmodule: regression
Broken docs/links that previously workedmodule: docs + module: regression (NOT enhancement)
Issue about a test failing (not the underlying functionality)module: tests
Backward pass / gradient computation bugmodule: autograd (in addition to the op's module label)
torch.linalg ops or linear algebra ops (solve, svd, eig, inv, etc.)module: linear algebra
has workaroundOnly add when the workaround is non-trivial and non-obvious. If the issue is "X doesn't work for non-contiguous tensors," calling .contiguous() is the tautological inverse of the bug, not a workaround. A real workaround is something like installing a specific package version, adding a synchronization point, inserting gc.collect(), or using a different API that isn't obviously implied by the bug description.

Label based on the actual bug, not keywords. Read the issue to understand what is actually broken. A bug about broadcasting that happens to mention "nan" in a parameter name is a frontend bug, not a NaN/Inf bug.

5) High Priority — REQUIRES HUMAN REVIEW

CRITICAL: If you believe an issue is high priority, you MUST:

  1. Add triage review label and do not add triaged

Do NOT directly add high priority without human confirmation.

High priority criteria:

  • Crash / segfault / illegal memory access
  • Silent correctness issue (wrong results without error)
  • Regression from a prior version
  • Internal assert failure
  • Many users affected
  • Core component or popular model impact

6) bot-triaged (automatic)

The bot-triaged label is automatically applied by a post-hook after any issue mutation. You do not need to add it manually.

7) Mark triaged

If not transferred/redirected and not flagged for review, add triaged.


V1 Constraints

DO NOT:

  • Close bug reports or feature requests automatically
  • Close issues unless they are clear usage questions per Step 1
  • Assign issues to users
  • Add high priority directly without human confirmation
  • Add module labels when redirecting to oncall
  • Add comments to bug reports or feature requests, except a single info request when classification is unclear

DO:

  • Close clear usage questions and point to discuss.pytorch.org (per step 1)
  • Be conservative - when in doubt, add triage review for human attention
  • Apply type labels (feature, enhancement, function request) when confident
  • Add triaged label when classification is complete

Note: bot-triaged is automatically applied by a post-hook after any issue mutation.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.36%
按下载量换算1,917

Claude

31.87%
按下载量换算1,680

Cursor

18.9%
按下载量换算996

Gemini CLI

8.52%
按下载量换算449

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills