Token导航 LogoToken导航

Agent Skill · 研究检索

scrub-issue(擦洗问题)

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

scrub-issue 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 38,909。

总安装 1,493周安装 61GitHub Stars 99,508下载 478核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pytorch/pytorch --skill scrub-issue

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于围绕 GitHub 仓库、Issue 和 Pull Request 提供辅助能力。适合查询项目状态、整理变更或辅助创建协作事项。使用时需区分只读查询和写入操作类型。scrub-issue 属于研究检索类 Skill,可作为该场景下的辅助能力补充。涉及 PR 创建或分支推送时应确认 token 权限。

建议优先使用只读接口,避免修改他人仓库。

来源仓库内路径:skills/scrub-issue

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pytorch/pytorch --skill scrub-issue;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

scrub-issue 怎么安装?

在终端执行 npx skills add https://github.com/pytorch/pytorch --skill scrub-issue。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

scrub-issue 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

scrub-issue 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

scrub-issue 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

scrub-issue 用的人多吗?

公开数据是累计安装 1,493 次,近一周安装 61 次,下载 478 次,GitHub 99,508 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

scrub-issue 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 99,508 星,维护活跃度相对可查。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
scrub-issue

擦洗问题 · 本页

1,49399,508接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Minimize Issue Reproduction

Fetch a GitHub issue, evaluate whether it has a reasonable repro, check if it still reproduces, and systematically minimize the repro to the smallest possible self-contained script.

Tools

Assume the current environment is correct and run python directly. Only use conda run -n <env> for version bisection (step 5a) where you need to temporarily use a different environment. Use the Bash tool's timeout parameter to enforce timeouts when running repro scripts.

  • gh issue view <NUMBER> --repo pytorch/pytorch to fetch the issue body
  • gh issue view --comments <NUMBER> --repo pytorch/pytorch to fetch comments
  • python <script> to run repro scripts
  • gh issue comment <NUMBER> --repo pytorch/pytorch --body <BODY> to comment
  • gh issue edit <NUMBER> --repo pytorch/pytorch --add-label <LABEL> to add labels

Multiple gh issue edit flags can be combined in a single command (e.g. --add-label "bug,help wanted" --add-assignee "@me"). Prefer batching edits into one command to minimize API calls and reduce the chance of auto-subscribing to notifications.

Preserving notification subscription state

Modifying an issue (commenting, adding labels) auto-subscribes you to notifications. Use tools/stale_issues.py to save and restore subscription state:

  1. Before the first modification, save the current state. This can be run in parallel with fetching the issue body/comments, but it must complete before any gh issue edit, gh issue comment, or gh issue close command is executed: python tools/stale_issues.py subscription save <NUMBER>
  2. After the last modification, restore the saved state — unless the issue was closed (via gh issue close), in which case skip the restore so the user stays subscribed to follow any responses to the closure. The restore must be the very last GitHub API call — do not run it in the background or in parallel with any gh issue edit or gh issue comment commands: python tools/stale_issues.py subscription restore <NUMBER>

If either the save or restore command fails, warn the user and continue without the save/restore mechanism.

Important: Never run gh issue edit, gh issue comment, gh issue close, or subscription save/restore commands in the background. These must all run in the foreground so their completion can be verified before proceeding. If commenting or editing fails because the issue is locked, report this to the user and skip the modification.

Security review checklist

Before running any repro code, check for the following concerns:

  • Network requests to untrusted URLs (requests, urllib, curl, wget)
  • File operations outside /tmp/
  • Shell command execution (os.system, subprocess, eval, exec) — but subprocess used to launch torchrun or mp.spawn for distributed repros is expected and not a concern
  • Downloading or loading external files (model weights, pickled objects, data files) — especially torch.load on untrusted .pt/.pth files
  • Obfuscated code (base64-encoded strings, encoded bytes, unusual escapes)
  • Package installation (pip install, conda install)
  • Environment variable manipulation that could affect the host system — but setting MASTER_ADDR, MASTER_PORT, RANK, WORLD_SIZE, CUDA_VISIBLE_DEVICES, or other standard PyTorch/CUDA env vars is expected and not a concern

If any of these are present, explain the concern to the user and ask whether to proceed, skip, or modify the repro to remove the risky parts. If the user chooses to skip, still refresh the triaged label timestamp (remove and re-add, or just add if not present) before reporting that the analysis is finished.

Even if the repro passes the checklist above, check whether the author of the repro code is a PyTorch collaborator by running python tools/stale_issues.py collaborator-check <username>. If the command exits with a non-zero status (user is not a collaborator), show the repro code to the user and ask them to verify it is safe to run before executing it.

Steps

1) Fetch the issue

Fetch the issue body and comments in parallel. Identify the reported repro script and error. If multiple repros are present, prefer the most recent one from the original poster. If a commenter has posted a strictly shorter and more self-contained repro that doesn't require additional context from the issue description, prefer that one. Note which repro you selected. If the repro code is only present in screenshots or images rather than copyable text, stop and report this to the user.

2) Check if the issue is actionable

Before investing effort in reproduction, check whether the issue is actionable. Do not proceed to later steps if any of the following apply:

  • Already closed or resolved in comments. Report to the user and stop. Do not modify labels on closed issues.
  • Duplicate of another issue (linked or obviously the same bug)
  • Not a bug report (feature request, question, discussion, refactoring / code cleanup task). If the issue is a feature request and doesn't already have the feature label, add it via gh issue edit. If the issue is a better-engineering / refactoring task and doesn't already have the better-engineering label, add it via gh issue edit. If the issue includes a repro script that demonstrates the current behavior, apply the security review checklist first, then run it to verify the behavior persists. If the repro needed to be modernized (e.g. updated imports for renamed APIs), or if you verified that the behavior still persists, comment on the issue with the findings and updated repro. After adding any applicable labels (and optionally running/commenting on a repro), report the analysis to the user and do not proceed to later steps.
  • Tracking/meta issue (umbrella issue tracking multiple bugs, burn-down lists, improvement proposals without a specific repro). If the issue doesn't already have the tracker label, add it via gh issue edit. Then stop and report to the user.
  • Requires unavailable hardware (specific GPU models, TPUs, multi-node) with no path to simplify. Note: CUDA is available on the current machine, so single-GPU CUDA repros can be run directly.

For non-actionable issues that are old (more than ~1 year), have no assignees, no recent progress, and are underspecified or lack concrete motivation, suggest closing them as "not planned" (gh issue close --reason "not planned") with a comment explaining the rationale. Ask the user before closing.

If the issue is not actionable and no GitHub-visible modification was made (no label added, no comment posted — saving subscription state does not count), refresh the triaged label to update the issue's "last updated" timestamp. A single gh issue edit with both --remove-label and --add-label doesn't work because the remove and add cancel each other out. Instead, chain both edits in a single Bash tool call: gh issue edit... --remove-label triaged && gh issue edit... --add-label triaged. If the issue doesn't have the triaged label, just add it.

Then summarize why the issue is not actionable. If a label or other update was made, just report that the analysis is finished. Only ask the user how to proceed if no update was made and the situation is ambiguous. Always ask the user before closing an issue.

3) Analyze the repro

Evaluate whether the issue has a reasonable repro:

  • Is there a code snippet that can be run?
  • Are the dependencies available (CUDA, distributed, specific hardware)? Note: torch.distributed repros often don't require special hardware — they can be launched with torchrun --nproc_per_node=1 or mp.spawn on a single machine.
  • Is the expected error described?
  • Is the repro self-contained or does it need external data/models?

If there is no repro code at all, or the issue is missing critical info (no error message, no description of expected vs actual behavior), add the needs reproduction label (if not already present) via gh issue edit, then stop and report to the user. Do not attempt to write a repro from the description without being asked.

Conversely, if the issue already has the needs reproduction label but does have a valid repro, remove the label via gh issue edit --remove-label "needs reproduction".

Apply the security review checklist (see above) to the repro before running it.

If the repro requires third-party packages that are not installed (e.g. transformers, torchvision, numpy), stop and ask the user how to proceed rather than installing them yourself.

Summarize your assessment before proceeding.

4) Check for recent verification

If a comment from the last six months already confirms the issue still reproduces (with a matching error and a reasonable repro), stop and ask the user whether they want to re-verify or skip ahead to minimization.

5) Check if it still reproduces

Extract the repro code into a temporary file under /tmp/ and run it with a timeout of 120 seconds. For repros involving torch.compile that call compile multiple times in the same process, add torch._dynamo.reset() between invocations to reset in-memory Dynamo state. This is unnecessary for scripts that compile once and exit.

If the script times out, consider whether a hang is the reported bug or an unrelated issue, and report to the user.

Record the PyTorch version before running (python -c "import torch; print(torch.__version__)") for inclusion in the report.

Check both the exit code and output to determine the result. An exit code > 128 indicates the process was killed by a signal (e.g. segfault = 139, OOM kill = 137) — this is a valid crash reproduction even without a Python traceback. If the repro crashes with a CUDA out-of-memory error and OOM is not the reported bug, try reducing tensor sizes before concluding it doesn't reproduce. For correctness bugs (wrong numerical results rather than crashes), the repro should include an assertion that fails when the bug is present. If the original repro only prints output without asserting, add a simple assertion based on the expected behavior described in the issue (e.g. assert torch.allclose(actual, expected)) so the repro has a clear pass/fail signal.

If the result is inconsistent across runs, run 3-5 times to assess flakiness. For non-deterministic bugs, try setting PYTHONHASHSEED=0 and a fixed torch.manual_seed to stabilize reproduction. Report the success/failure ratio to the user. Flaky repros are still valid bugs — note the flakiness in the issue comment (step 8) and include the success/failure ratio.

Three possible outcomes (to determine which outcome applies, match on the exception class and a distinctive substring of the error message — the substring should be specific enough to identify the bug, e.g. RuntimeError: expected scalar type Float rather than just RuntimeError):

  • Same error as reported: the bug still reproduces. Continue to step 6.
  • No error (passes): the bug may have been fixed. Try to identify the fixing PR (see step 5a), then report to the user. The issue will be closed in step 8.
  • Different error: distinguish between setup issues (missing import, renamed API) that can be fixed and genuinely different bugs. If the error is due to API changes between the reported version and the current version (renamed functions, moved modules, changed signatures), adapt the repro to use the current API while preserving the original intent. If the error is unclear, consider re-running with TORCH_LOGS=+dynamo or other relevant logging flags for more diagnostic output. Report genuinely different errors to the user.

5a) Identify when and how it was fixed

When the bug no longer reproduces, try to determine which version fixed it and which PR introduced the fix.

Version bisection: Check if conda environments named pytorch-<version> (e.g. pytorch-2.6, pytorch-2.8) are available (conda env list | grep pytorch-). If they exist, binary-search across them to find the first version where the bug is fixed. Run from /tmp in a subshell and clear PYTHONPATH to avoid picking up the local source tree (which would cause torch._C import errors): (cd /tmp && PYTHONPATH= conda run -n pytorch-<version> python /tmp/repro_....py). To speed up bisection, pick 2-3 evenly-spaced probe points from the candidate range and test them in parallel each round (e.g. if candidates are 2.2 through 2.8, test 2.4 and 2.6 simultaneously to split the range into thirds). If no versioned conda environments are available, skip bisection and just report that the bug no longer reproduces on the current version.

PR identification: Try to find the specific PR that fixed the bug. Use version control blame on the relevant fix code to find the changeset, then look up the commit message for the PR number (format (#NNNNN)). Alternatively, search version control history for commits touching the relevant file with a related keyword. If this doesn't yield a clear answer quickly, just report the version — don't spend extra time on PR identification.

6) Minimize the repro

Save the original working repro to /tmp/repro_<issue_number>_original.py before making any changes.

First, assess whether the repro is already reasonably minimal. Only minimize if the repro has significant unnecessary complexity (large models, unused code paths, unnecessary dependencies, etc.). When counting complexity, don't count irreducible boilerplate — e.g. a tensor subclass definition that only contains the required dunder methods (__new__, __init__, __torch_dispatch__, __tensor_flatten__, __tensor_unflatten__) is not reducible even if it's 20+ lines. Focus on whether the trigger code and model/setup complexity can be meaningfully reduced. If the only possible "simplifications" are cosmetic (inlining variables, removing __repr__), skip minimization.

Systematically reduce the repro by testing whether each simplification still triggers the same error. Use a shorter timeout (30-60 seconds) during minimization since simplified repros should run faster. Run multiple candidate simplifications in parallel when they are independent (i.e. they modify non-overlapping parts of the code and neither depends on what the other removes).

Reduction strategies (apply in roughly this order):

  1. Remove unnecessary imports and setup (distributed init, env vars, logging)
  2. Shrink the model (replace large modules with minimal equivalents)
  3. Remove the class/module wrapper if a bare function suffices
  4. Reduce tensor sizes (large dims → small dims like 4 or 8)
  5. Remove device/dtype requirements (try CPU and float32 first)
  6. Simplify the computation (replace complex ops with minimal ones that still trigger the bug)
  7. Remove unnecessary control flow (branches, loops, conditions)
  8. Try simpler backends (e.g. aot_eager instead of inductor) if the bug is not backend-specific

After each round, verify the error still reproduces — same exception class and a distinctive error message substring as described in step 5 (minor traceback differences are fine). For correctness bugs, preserve the assertion that demonstrates the wrong result and verify it still shows the same incorrect behavior. When merging multiple successful parallel simplifications, verify the combined result still reproduces since independent simplifications can interact. Stop minimizing when the repro is under ~20 lines of non-blank non-import code, or when two consecutive rounds (where a round is one full pass through the applicable reduction strategies) fail to simplify further.

7) Apply trivial fixes

If the analysis reveals a trivial fix (e.g. removing a stale xfailIfTorchDynamo or expectedFailure annotation from a test because the underlying issue is fixed), report the fix to the user and ask whether to apply it. Do not modify source files without the user's approval. In step 8, mention the fix regardless of whether it was applied or declined.

8) Report findings

If the repro was minimized, save it to /tmp/repro_<issue_number>.py so the user can run it directly.

Present findings to the user including:

  • Whether the bug still reproduces (and on what PyTorch version)
  • The fixing PR, if identified (only if the bug no longer reproduces)
  • The minimized repro script (only if we minimized it)
  • The necessary conditions to trigger the bug
  • Any trivial fix identified in step 7 (whether applied or not)
  • Recommended next action (e.g. "still a valid bug", "appears fixed", "needs more info from reporter")

After presenting findings, always comment on the issue with the results. Keep the comment concise — don't repeat information already on the issue. Only include a repro if it was materially changed from the original (e.g. minimized, modernized imports, fixed to run on current API). Only include trigger conditions if they are new findings not already discussed in prior comments. If the only finding is "still reproduces" or "no longer reproduces", a short comment is sufficient.

This issue [still reproduces / no longer reproduces] on PyTorch <version>.

[If fixed and PR identified:]
Fixed by #NNNNN.

[If minimized or modernized — only include repro if changed from original:]
Minimized repro:

\`\`\`python
<repro script>
\`\`\`

[Only if new findings about trigger conditions:]
All of the following are necessary to trigger the bug:
- <condition 1>
- <condition 2>

(Analysis done by Claude.)

If the bug no longer reproduces, after commenting close the issue: gh issue close <NUMBER> --repo pytorch/pytorch --reason completed --comment "Closing as this was fixed in PyTorch <version>.". Do not ask the user before closing — fixed bugs should always be closed.

After the last GitHub modification, restore the notification subscription state (see "Preserving notification subscription state" above) — unless the issue was closed, in which case skip the restore.

平台分布

Codex

38.29%
按下载量换算183

Claude

32.32%
按下载量换算154

Cursor

17.5%
按下载量换算84

Gemini CLI

8.88%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills