AgentSkillsCN

problem-analyzer

通过定位受影响文件、追溯根本原因并提出最小化修复方案,深入分析问题根源

SKILL.md
--- frontmatter
name: problem-analyzer
description: Analyze a problem by locating affected files, root cause, and proposing minimal fixes
argument-hint: PROBLEM=<problem-description>
<problem> $PROBLEM </problem>

Tasks:

  1. Locate all files/modules affected by the issue. List paths and why each is implicated.
  2. Explain the root cause(s): what changed, how it propagates to the failure, and any environmental factors.
  3. Propose the minimal, safe fix. Include code-level steps, side effects, and tests to add/update.
  4. Flag any missing or outdated documentation/configs/schemas that should be updated or added (especially if code appears outdated vs. current behavior). Specify exact docs/sections to create or amend.

Output format:

  • Affected files:
    • <path>: <reason>
  • Root cause:
    • <concise explanation>
  • Proposed fix:
    • <steps/patch outline>
    • Tests:
  • Documentation gaps:
    • <doc_section_what_to_update_add>
  • Open questions/assumptions:
    • <items>