lllllllama/rigorpilot-skills

safe-debug

先用错误证据缩小根因,再决定是否修改

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

safe-debug 是什么?

Rigor Debug 针对深度学习仓库中的 traceback、CUDA OOM、checkpoint 加载、shape mismatch、NaN 或训练失败做保守诊断。默认先缩小根因并提出最小方案,不修改代码;debug 修复与研究贡献分开说明。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 用户给出具体错误、日志或训练/推理失败,并要求先诊断。
  • 需要明确哪些观察是事实、哪些原因仍待验证,以及最小修复方向。

这些情况不适合

  • 没有失败现象的通用仓库导览、大规模重构或自动探索性 patch。
  • 把错误附近的猜测写成已证实根因。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 safe-debug,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 safe-debug

请在 Codex 的当前工作环境中安装并检查 safe-debug 这个 Skill。

项目身份:lllllllama/rigorpilot-skills / safe-debug
来源:https://github.com/lllllllama/rigorpilot-skills/blob/fb3ccdf5aa64b1fa5b1d0463e666a8bc8bc26e01/skills/safe-debug/SKILL.md
已定位的源文件:skills/safe-debug/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供错误原文、触发命令、代码与配置范围、环境/模型信息和是否只读;默认只诊断。

会得到什么

  • debug_outputs/DIAGNOSIS.md、PATCH_PLAN.md、status.json,包含根因置信度、验证证据和变更前提。

实际使用顺序

  1. 复现或重述故障条件,先检查最短相关调用、配置和错误上下文,不用海量无关日志淹没证据。
  2. 列出区分候选原因所需的最小只读检查,标注已观察证据和未知条件。
  3. 输出 DIAGNOSIS、PATCH_PLAN 和 status;需要改动时先给最小 patch 方案并等待明确确认。
  4. 若风险中高,先明确 branch/savepoint 再讨论改动;如果可能影响实验语义或可比性,单独说明。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:针对我提供的 CUDA out-of-memory traceback 做只读诊断。先核对 batch size、模型精度、显存占用和失败层,给出能区分数据批次与模型常驻显存的检查;不要改配置、清理 checkpoint 或重跑训练。若需要修复,先提出最小方案并等待确认。
预期结果

预期得到基于 traceback 的诊断假设和最小检查路径;本站未分析或重跑示例。

使用前先看这些限制

使用条件与边界

  • 该来源要求默认不修改仓库;需要 patch 时先提案并获得批准。
  • 中高风险改动要提出分支或 savepoint;debug 修复不自动算研究贡献。
针对这个 Skill 的疑问

常见问题

OOM 就一定是 batch size 太大吗?

不能只从错误名称断定;需查看失败位置、峰值显存、模型/优化器状态和输入尺寸等证据。

诊断完会直接修复吗?

不会。该技能默认只诊断并给 patch plan,代码修改需要另行明确批准。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-19T19:32:10.677Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/safe-debug/SKILL.md · 抓取时间 2026-11-19T19:32:10.677Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Rigor Debug / Rigor Audit skill for deep learning research work. Use when the user pastes a traceback, terminal error, CUDA OOM, checkpoint load failure, shape mismatch, NaN loss symptom, or training failure and wants conservative diagnosis before any patching, with debug fixes clearly separated from research contributions. Do not use for broad refactoring, speculative adaptation, automatic exploratory patching, or general repository familiarization.

查看源文件章节 / Source sections
  • 原文:safe-debug
  • 原文:When to apply
  • 原文:When not to apply
  • 原文:Clear boundaries
  • 原文:Output expectations
  • 注意事项 / Notes
原文:safe-debug

Use this as the Rigor Debug / Rigor Audit skill. The installed slug remains `safe-debug` for compatibility. Use the shared operating principles in `../ai-research-reproduction/references/agent-operating-principles.md`; this skill should guide conservative diagnosis without blocking the model from finding the local root cause.

原文:When to apply

- The user provides a traceback, terminal error, or concrete training or inference failure symptom. - The user wants diagnosis, root-cause narrowing, and minimal patch suggestions before code is changed. - The user wants a safe debug flow with explicit human approval before mutation.

原文:When not to apply

- When the user wants a broad repository walkthrough without an active failure. - When the task is speculative experimentation or code adaptation. - When the user is asking for a large refactor or readability rewrite.

原文:Clear boundaries

- Diagnose first. - Do not modify repository code by default. - If a patch is needed, propose the smallest fix and require explicit approval first. - Escalate savepoint or branch creation before medium-risk or high-risk changes. - A debug fix is not automatically a research contribution; if it changes experiment meaning or comparability, say so explicitly.

原文:Output expectations

- `debug_outputs/DIAGNOSIS.md` - `debug_outputs/PATCH_PLAN.md` - `debug_outputs/status.json`

注意事项 / Notes

Use `references/debug-policy.md`, `../ai-research-reproduction/references/research-rigor-principles.md`, and the shared `../ai-research-reproduction/references/research-pitfall-checklist.md`.

文件 SHA256:2c3a51de17d8d37b7c92262527a8a429886942efd9fb0b392dc9b5e742ac0498

仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Rigor Debug / Rigor Audit skill for deep learning research work. Use when the user pastes a traceback, terminal error, CUDA OOM, checkpoint load failure, shape…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识safe-debug
来源仓库lllllllama/rigorpilot-skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次143
快照累计安装量175924

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源