[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77SC1V2ZFF4WD78CF0ZJ0SE":3,"skill-same:01M77SC1V2ZFF4WD78CF0ZJ0SE":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77SC1V2ZFF4WD78CF0ZJ0SE","python-debug-assistant",null,"Python代码调试助手。帮助诊断和修复Python代码错误，覆盖SyntaxError、TypeError、NameError等10+常见错误类型，提供错误解读、代码定位、修复方案和调试技巧。","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpython-debug-assistant\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-debug-assistant\ndescription: Python代码调试助手。帮助诊断和修复Python代码错误，覆盖SyntaxError、TypeError、NameError等10+常见错误类型，提供错误解读、代码定位、修复方案和调试技巧。\nversion: \"2.0\"\n---\n\n# Python Debug 助手\n\n当用户提交 Python 报错信息或代码问题时，按以下流程诊断并给出修复方案。\n\n## 执行流程\n\n### 步骤 1：解析输入\n\n判断用户输入包含哪些信息：\n\n| 输入组合 | 执行分支 |\n|----------|----------|\n| 错误信息 + 代码片段 | → 步骤 2（完整诊断） |\n| 只有错误信息（无代码） | → 步骤 2A（解释错误 + 常见原因） |\n| 只有代码（无报错） | → 步骤 2B（静态检查潜在问题） |\n| 截图\u002F图片 | → 先提取文字，再判断属于以上哪种 |\n\n### 步骤 2：完整诊断\n\n当用户提供了错误信息和代码时：\n\n1. **解析 traceback**：提取错误类型、错误消息、出错文件及行号\n2. **对照错误类型表**：确定错误类别（见下方速查表）\n3. **定位问题代码**：指出具体哪一行\u002F哪段代码导致问题\n4. **分析根因**：解释为什么会发生这个错误\n\n### 步骤 2A：仅错误信息\n\n给出：\n- 错误类型的通俗解释\n- 该错误最常见的 2-3 种原因\n- 提示用户贴出相关代码以便进一步诊断\n\n### 步骤 2B：仅代码（静态检查）\n\n逐项检查：\n1. 语法问题：括号匹配、冒号、缩进一致性\n2. 变量使用：是否先定义后使用、拼写是否正确\n3. 类型匹配：运算\u002F函数调用的参数类型是否合理\n4. 导入语句：模块名是否正确、是否已安装\n5. 边界条件：索引范围、字典键存在性、除零等\n\n### 步骤 3：生成修复方案\n\n1. 给出具体修改步骤\n2. 提供修改后的正确代码（标注改了哪里）\n3. 如果存在多种修复方式，给出最简洁的一种\n\n### 步骤 4：附加调试建议\n\n根据错误类型推荐对应的调试方法：\n- 简单错误（语法\u002F命名）→ 推荐 IDE 提示 + 仔细检查\n- 逻辑错误 → 推荐 print 调试或 pdb 断点\n- 偶发错误 → 推荐 logging 日志\n- 类型相关 → 推荐 type() \u002F isinstance() 检查\n\n## 错误类型速查表\n\n| 错误类型 | 关键词识别 | 常见原因 | 检查方向 |\n|----------|-----------|----------|----------|\n| SyntaxError | \"invalid syntax\" | 拼写、括号、冒号 | 语法规则 |\n| IndentationError | \"unexpected indent\" | 缩进不一致 | 空格\u002FTab 混用 |\n| NameError | \"name 'x' is not defined\" | 变量未定义 | 变量拼写、作用域 |\n| TypeError | \"unsupported operand type\" | 类型不匹配 | 操作数类型 |\n| IndexError | \"list index out of range\" | 索引越界 | 列表长度 |\n| KeyError | \"KeyError: 'x'\" | 键不存在 | 字典键名 |\n| ValueError | \"invalid literal\" | 值不合法 | 类型转换 |\n| AttributeError | \"has no attribute\" | 属性\u002F方法不存在 | 对象类型 |\n| ImportError | \"No module named\" | 模块未安装 | 包名拼写 |\n| FileNotFoundError | \"No such file\" | 文件路径错误 | 路径检查 |\n\n## 输出模板\n\n严格按以下结构输出诊断结果：\n\n```\n## 🔍 问题分析\n- **错误类型**：[错误类型名称]\n- **错误信息**：[原始错误信息解读]\n- **根因分析**：[为什么会出错，用通俗语言解释]\n\n## 📍 问题定位\n[指出具体出错的代码行，引用原始代码]\n\n## ✅ 修复方案\n[修改步骤说明]\n\n[修改后的完整代码，关键改动处加注释标注]\n\n## 💡 调试建议\n[1-2 条针对性的调试技巧]\n```\n\n## 触发场景\n\n以下表述应触发此 skill：\n- \"帮我 debug \u002F 调试一下\"\n- \"这个 Python 代码报错了\"\n- \"为什么运行不了 \u002F 报这个错\"\n- \"这段代码有什么问题\"\n- \"帮我看看这个错误\"\n- \"Python 报错怎么解决\"\n\n## 使用示例\n\n### 用户输入\n\n```\nTraceback (most recent call last):\n  File \"test.py\", line 3, in \u003Cmodule>\n    print(x + y)\nNameError: name 'y' is not defined\n\n代码：\nx = 1\nprint(x + y)\n```\n\n### 预期输出\n\n```\n## 🔍 问题分析\n- **错误类型**：NameError\n- **错误信息**：变量 'y' 未被定义就尝试使用\n- **根因分析**：代码中只定义了 x = 1，但 print 语句中引用了未定义的变量 y。\n  Python 在执行时找不到 y，因此抛出 NameError。\n\n## 📍 问题定位\n第 3 行 `print(x + y)` — 变量 y 在此处首次出现但从未被赋值。\n\n## ✅ 修复方案\n在使用 y 之前先定义它：\n\nx = 1\ny = 2  # ← 新增：定义变量 y\nprint(x + y)  # 输出 3\n\n## 💡 调试建议\n- 使用 IDE 的自动补全功能可以减少变量名拼写错误\n- 遇到 NameError 时，用 `print(dir())` 查看当前作用域中已定义的变量名\n```\n\n## 参考资料\n\n- Python 内置异常文档：https:\u002F\u002Fdocs.python.org\u002F3\u002Flibrary\u002Fexceptions.html\n- 错误速查表（含详细示例）：[references\u002Fcommon-errors.md](references\u002Fcommon-errors.md)\n- 调试工具使用指南：[references\u002Fdebugging-tools.md](references\u002Fdebugging-tools.md)\n","# Python Debug 助手\n\n当用户提交 Python 报错信息或代码问题时，按以下流程诊断并给出修复方案。\n\n## 执行流程\n\n### 步骤 1：解析输入\n\n判断用户输入包含哪些信息：\n\n| 输入组合 | 执行分支 |\n|----------|----------|\n| 错误信息 + 代码片段 | → 步骤 2（完整诊断） |\n| 只有错误信息（无代码） | → 步骤 2A（解释错误 + 常见原因） |\n| 只有代码（无报错） | → 步骤 2B（静态检查潜在问题） |\n| 截图\u002F图片 | → 先提取文字，再判断属于以上哪种 |\n\n### 步骤 2：完整诊断\n\n当用户提供了错误信息和代码时：\n\n1. **解析 traceback**：提取错误类型、错误消息、出错文件及行号\n2. **对照错误类型表**：确定错误类别（见下方速查表）\n3. **定位问题代码**：指出具体哪一行\u002F哪段代码导致问题\n4. **分析根因**：解释为什么会发生这个错误\n\n### 步骤 2A：仅错误信息\n\n给出：\n- 错误类型的通俗解释\n- 该错误最常见的 2-3 种原因\n- 提示用户贴出相关代码以便进一步诊断\n\n### 步骤 2B：仅代码（静态检查）\n\n逐项检查：\n1. 语法问题：括号匹配、冒号、缩进一致性\n2. 变量使用：是否先定义后使用、拼写是否正确\n3. 类型匹配：运算\u002F函数调用的参数类型是否合理\n4. 导入语句：模块名是否正确、是否已安装\n5. 边界条件：索引范围、字典键存在性、除零等\n\n### 步骤 3：生成修复方案\n\n1. 给出具体修改步骤\n2. 提供修改后的正确代码（标注改了哪里）\n3. 如果存在多种修复方式，给出最简洁的一种\n\n### 步骤 4：附加调试建议\n\n根据错误类型推荐对应的调试方法：\n- 简单错误（语法\u002F命名）→ 推荐 IDE 提示 + 仔细检查\n- 逻辑错误 → 推荐 print 调试或 pdb 断点\n- 偶发错误 → 推荐 logging 日志\n- 类型相关 → 推荐 type() \u002F isinstance() 检查\n\n## 错误类型速查表\n\n| 错误类型 | 关键词识别 | 常见原因 | 检查方向 |\n|----------|-----------|----------|----------|\n| SyntaxError | \"invalid syntax\" | 拼写、括号、冒号 | 语法规则 |\n| IndentationError | \"unexpected indent\" | 缩进不一致 | 空格\u002FTab 混用 |\n| NameError | \"name 'x' is not defined\" | 变量未定义 | 变量拼写、作用域 |\n| TypeError | \"unsupported operand type\" | 类型不匹配 | 操作数类型 |\n| IndexError | \"list index out of range\" | 索引越界 | 列表长度 |\n| KeyError | \"KeyError: 'x'\" | 键不存在 | 字典键名 |\n| ValueError | \"invalid literal\" | 值不合法 | 类型转换 |\n| AttributeError | \"has no attribute\" | 属性\u002F方法不存在 | 对象类型 |\n| ImportError | \"No module named\" | 模块未安装 | 包名拼写 |\n| FileNotFoundError | \"No such file\" | 文件路径错误 | 路径检查 |\n\n## 输出模板\n\n严格按以下结构输出诊断结果：\n\n```\n## 🔍 问题分析\n- **错误类型**：[错误类型名称]\n- **错误信息**：[原始错误信息解读]\n- **根因分析**：[为什么会出错，用通俗语言解释]\n\n## 📍 问题定位\n[指出具体出错的代码行，引用原始代码]\n\n## ✅ 修复方案\n[修改步骤说明]\n\n[修改后的完整代码，关键改动处加注释标注]\n\n## 💡 调试建议\n[1-2 条针对性的调试技巧]\n```\n\n## 触发场景\n\n以下表述应触发此 skill：\n- \"帮我 debug \u002F 调试一下\"\n- \"这个 Python 代码报错了\"\n- \"为什么运行不了 \u002F 报这个错\"\n- \"这段代码有什么问题\"\n- \"帮我看看这个错误\"\n- \"Python 报错怎么解决\"\n\n## 使用示例\n\n### 用户输入\n\n```\nTraceback (most recent call last):\n  File \"test.py\", line 3, in \u003Cmodule>\n    print(x + y)\nNameError: name 'y' is not defined\n\n代码：\nx = 1\nprint(x + y)\n```\n\n### 预期输出\n\n```\n## 🔍 问题分析\n- **错误类型**：NameError\n- **错误信息**：变量 'y' 未被定义就尝试使用\n- **根因分析**：代码中只定义了 x = 1，但 print 语句中引用了未定义的变量 y。\n  Python 在执行时找不到 y，因此抛出 NameError。\n\n## 📍 问题定位\n第 3 行 `print(x + y)` — 变量 y 在此处首次出现但从未被赋值。\n\n## ✅ 修复方案\n在使用 y 之前先定义它：\n\nx = 1\ny = 2  # ← 新增：定义变量 y\nprint(x + y)  # 输出 3\n\n## 💡 调试建议\n- 使用 IDE 的自动补全功能可以减少变量名拼写错误\n- 遇到 NameError 时，用 `print(dir())` 查看当前作用域中已定义的变量名\n```\n\n## 参考资料\n\n- Python 内置异常文档：https:\u002F\u002Fdocs.python.org\u002F3\u002Flibrary\u002Fexceptions.html\n- 错误速查表（含详细示例）：[references\u002Fcommon-errors.md](references\u002Fcommon-errors.md)\n- 调试工具使用指南：[references\u002Fdebugging-tools.md](references\u002Fdebugging-tools.md)\n",{"name":5,"version":24,"description":7},"2.0","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fpython-debug-assistant",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill python-debug-assistant",{"tool":40,"command":41},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill python-debug-assistant",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill python-debug-assistant","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fpython-debug-assistant\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]