Search

PythonReactSEOPDF
GitHub Skill

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

ben-mad-jlp☆ 2 Repository stars0 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

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:

  1. Reads the work item details from the design doc
  2. Spawns the systematic-debugging agent to investigate
  3. Updates the design doc with the diagnostic report
  4. 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_skill is not null: Invoke that skill
  • If next_skill is null: Workflow complete

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-01-20
Index updated
2026-01-31
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!