Skip to content
Agent Orchestration
Skill

/debug

Systematic debug workflow: research → orchestrate agents → escalate. Suggest when: stuck after 2-3 attempts, unfamiliar tooling, tempted to "try random things", or errors don't match documentation.

BOOST
From plugin
lionagi
41212 skills2 agents1 MCP
Install
$ npx -y skills add ohdearquant/lionagi --skill debug --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/debug

Context preview

The summary Claude sees to decide when to auto-load this skill.

Systematic debug workflow: research → orchestrate agents → escalate. Suggest when: stuck after 2-3 attempts, unfamiliar tooling, tempted to "try random things", or errors don't match documentation.

SKILL.md

debug.SKILL.md
name: debug
description: >
  Systematic debug workflow: research → orchestrate agents → escalate. Suggest when:
  stuck after 2-3 attempts, unfamiliar tooling, tempted to "try random things",
  or errors don't match documentation.
allowed-tools: [Bash, Read, Grep, Glob, WebSearch, WebFetch]

Debug

Systematic approach to difficult debugging. Research → Orchestrate → Escalate.

Activation Triggers

  • Stuck on error after 2-3 failed fix attempts
  • Unfamiliar library or dependency version
  • Tempted to "try things randomly"
  • Complex multi-system interactions
  • Error messages that don't match documentation

Anti-Patterns

  • **Random flailing**: Trying fixes without understanding the problem
  • **Editing generated files**: Modifying auto-generated output instead of fixing the source
  • **Shallow fixes**: Adding workarounds without understanding root cause
  • **Silent struggling**: Not asking for help when clearly stuck
  • **Cheating through**: Disabling features or tests instead of fixing them

Workflow Summary

| Phase | Action | Gate | |-------|--------|------| | **1. Research** | Check prior runs, search codebase, spawn researcher agent | 2-3 focused queries before any fix attempt | | **2. Orchestrate** | Parallel diagnostic agents via `fanout.submit`, or a focused agent via `agent.submit` | Agent must produce actionable insight | | **3. Escalate** | Generate consultation request with full evidence | Must demonstrate exhaustive research first | | **4. Document** | Write fix to `./notes/debug-log.md` | Only after resolution |

See [research-protocol.md](research-protocol.md) for detailed methodology, agent selection table, phase-by-phase MCP calls, and escalation template.

Key Principles

  • **Research before action**: Never try fixes without understanding the problem
  • **Be specific**: Vague queries yield vague answers
  • **Document attempts**: Track what was tried and what happened
  • **Ask early**: Better to ask for help than waste time flailing
  • **Store the fix**: Future sessions will thank present you

Relevant Source Files

These are the CLI-side entry points; read them if you're working inside a lionagi checkout. A plugin install has no access to them — it only sees the MCP server.

  • `lionagi/cli/agent.py` — `li agent`, the CLI counterpart of `agent.submit`
  • `lionagi/cli/orchestrate/fanout.py` — `li o fanout`, the CLI counterpart of `fanout.submit`
  • `lionagi/cli/_runs.py` — run persistence at `~/.lionagi/runs/`, also readable

through `job.status` / `job.output`

Read more
Ships withlionagi

lionagi is a governed multi-agent orchestration framework. Build agent workflows in Python with typed, inspectable state, or run them straight from the terminal with the li CLI: single agents, parallel fan-outs, and DAG flows where an orchestrator plans

Get the whole plugin

Other skills on lionagi.