systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Systematic Debugging (Skill Wrapper)
This skill wraps the systematic-debugging agent for use within the collab workflow. It handles bugfix-type work items.
Overview
When a work item has Type: bugfix, the MCP state machine routes to this skill. This skill:
- Reads the work item details from the design doc
- Spawns the systematic-debugging agent to investigate
- Updates the design doc with the diagnostic report
- Calls complete_skill to proceed
Important: This skill does NOT implement fixes. It only investigates and documents root cause. Fixes happen later via rough-draft → executing-plans.
Step 1: Get Current Item Context
Read the design doc to get the current bugfix item:
Tool: mcp__plugin_mermaid-collab_mermaid__get_document
Args: { "project": "<cwd>", "session": "<session>", "id": "design" }
Find the work item marked as current (from session state's currentItem).
Step 2: Spawn Debugging Agent
Use the Task tool to invoke the systematic-debugging agent:
Tool: Task
Args: {
"subagent_type": "mermaid-collab:systematic-debugging:systematic-debugging",
"description": "Investigate bugfix: <item-title>",
"prompt": "<context about the bug from design doc>"
}
The agent will:
- Investigate the root cause
- Document findings
- NOT implement any fixes
Step 3: Update Design Doc
Take the agent's diagnostic report and add it to the work item in the design doc:
Tool: mcp__plugin_mermaid-collab_mermaid__patch_document
Args: {
"project": "<cwd>",
"session": "<session>",
"id": "design",
"old_string": "**Status:** pending",
"new_string": "**Status:** documented\n\n**Root Cause Analysis:**\n<agent's findings>\n\n**Proposed Fix:**\n<agent's recommendation>"
}
Step 4: Complete Skill
Call complete_skill to get the next workflow state:
Tool: mcp__plugin_mermaid-collab_mermaid__complete_skill
Args: { "project": "<cwd>", "session": "<session>", "skill": "systematic-debugging" }
Handle response:
- If
action == "clear": Invoke skill: collab-clear - If
next_skillis not null: Invoke that skill - If
next_skillis null: Workflow complete
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-31
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!