본문으로 건너뛰기
cccskills
무료GitHub에 공개

bug-diagnose-and-root-cause-and-fix

【Bug 诊断专用】当遇到程序错误、异常行为、性能问题、功能故障时必须使用本技能。触发关键词:报错、Bug、问题、异常、故障、不工作、诊断、排查、修复。本技能提供系统性根因分析,输出详细诊断报告和可执行修复方案,包含代码位置引用、步骤指导、注意事项。

仅提供分析和方案,不直接修改代码。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md2.6 KB
  • skill-report.json12.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Bug 诊断与根因分析技能

本技能提供系统性的 Bug 诊断能力,专注于分析问题根源并提供详细的解决方案指导。

核心功能

诊断问题根本原因,输出详细的解决方案报告,为用户提供修复指导。

执行流程

1. 信息收集

  • 确认错误症状、复现步骤、错误信息
  • 如信息不足,主动询问关键细节

2. 代码审查(强制第一步)

  • 使用 Read/Grep/Glob 查看相关代码
  • 定位可疑的文件和函数
  • 使用 Bash 运行诊断命令(如 git log、git blame、npm list 等)
  • 检查最近的代码变更

3. 根因分析

  • 基于代码和错误信息形成假设
  • 逐步验证各个假设
  • 如需查询技术文档,在报告中说明需要查询的内容

4. 方案制定

  • 确定根本原因
  • 制定详细的修复方案
  • 如有多个方案,分析优缺点并推荐最佳方案

输出格式

本技能输出完整的诊断报告,用户可根据此报告进行修复:


问题诊断报告

问题概述: 简述用户报告的问题

环境信息:

  • 相关文件:列出所有相关文件路径
  • 错误位置:精确到文件名和行号
  • 技术栈:涉及的框架、库、版本等

根本原因分析:

  • 详细的技术解释
  • 引用关键代码片段(使用 文件路径:行号 格式)
  • 解释为什么会出现这个问题

解决方案:

方案一:[推荐/备选]

  1. 步骤一:具体操作说明

    • 需要修改的文件:文件路径
    • 修改位置:第 X 行
    • 修改内容:旧代码 → 新代码
  2. 步骤二:...

  3. 验证步骤:

    • 运行命令:具体命令
    • 预期结果:...

方案二(如有):...

  • 优点:...
  • 缺点:...

注意事项:

  • 需要保留的代码或注释
  • 可能的副作用
  • 其他需要注意的点

执行准则

  • 仅提供分析和指导 - 本技能仅提供分析和指导,不执行代码修改
  • 基于证据 - 所有结论必须有代码或日志支持
  • 详细具体 - 方案要足够详细,让用户可以直接照着执行
  • 引用准确 - 使用 文件:行号 格式标注所有相关代码位置

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

Trigger for: explaining current FAR, DFARS, or agency-supplement text; determining documented acquisition-policy status for an agency and FAR part; comparing codified text, RFO model text, and agency deviations; tracing acquisition rulemaking; finding procurement comment periods; analyzing public comments; refreshing prior policy analysis; or producing an Acquisition Policy Impact Brief. Use published federal sources and supplied policy documents without making legal or procurement-specific applicability determinations. Do not use for clause selection, market research execution, opportunities, pricing, grants, or cooperative agreements.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

Systematic framework for extracting actionable items from documents and organizing them into prioritized, trackable checklists. Use when converting reports, meeting notes, audits, or any document with embedded action items into structured TODO lists.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

Run AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aiskillstore/marketplace4432026년 10월 23일 업데이트

aiskillstore의 스킬 모두 보기

이 스킬의 문제 신고