debug

debug is a command for Claude Code from synaptiai/synapti-marketplace. It costs 20 tokens per session (2,898 once invoked), scanned A, original, Apache-2.0.

A guided debugging command that investigates an issue by collecting evidence, testing possible causes, applying a fix, and checking the result.

In plain words
What is it for?
Use it to investigate failing code, examine recent changes and repository state, test hypotheses, and validate fixes.
Why use it?
It helps replace guesswork with a structured search for the underlying cause of a bug.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the flow plugin — 33 skills, 20 commands, 11 agents shipped together

Good fit Use it to investigate failing code, examine recent changes and repository state, test hypotheses, and validate fixes.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add synaptiai/synapti-marketplace
Claude Code
/plugin install flow

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 33 skills, 20 commands, 11 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/debug/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/debug)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/debug"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debug

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/debug"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.02898
Opus 5.5 $0.00008 $0.01159
Sonnet 5.5 $0.00004 $0.00580
Haiku 4.5 $0.00002 $0.00290

Measured 25d ago against content hash a0d9a3e6f1f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/flow/commands/debug.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug: $ARGUMENTS

Structured debugging with root cause analysis. Follows Explore > Plan > Code > Verify loop.

Required Skills

This command operates with these domain skills loaded:

  • debugging-patterns — root cause methodology, hypothesis testing
  • change-classification — change context awareness
  • goal-contract-capture — FlowGoal creation (after the Spec Validation Gate / after hypothesis confirmation)
  • goal-evaluator — verdict on the goal once evidence is collected
  • goal-lifecycle — goal state transitions (draft → active → terminal)
  • run-state-management — FlowRun/FlowActivity records at phase boundaries (v3 runtime)
# Inline the Required Skills above so their rules are in context before the
# first phase runs (commands cannot preload skills from frontmatter). Ambient
# skills load whole; dispatched skills (context: fork / agent:) load their
# `## Contract` section and run in full when this command invokes
# Skill(<name>). Output per `references/command-output-format.md`.
"$(__fr="${CLAUDE_PLUGIN_ROOT:-}";[ -x "$__fr/bin/cascade-resolve.sh" ]||__fr=$({ printf '%s\n' plugins/flow;ls -d "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plugins/cache/synapti-marketplace/flow/*/ 2>/dev/null|sort -Vr;printf '%s\n' "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/plugins/marketplaces/synapti-marketplace/plugins/flow"; }|while read -r __p;do [ -x "${__p%/}/bin/cascade-resolve.sh" ]&&{ printf '%s\n' "${__p%/}";break;};done);printf '%s\n' "$__fr")/bin/flow-load-skills.sh" debugging-patterns change-classification goal-contract-capture goal-evaluator goal-lifecycle run-state-management

true

Phase 1: EXPLORE

Gather all evidence before theorizing. Execute in parallel:

# Output: `###`-headed sections + KEY=value per
# `references/command-output-format.md`.

printf '%s\n' "### Recent History"
# Capture into a var so an empty result emits an explicit STATE=empty
# sentinel rather than a silent heading.
RECENT_LOG=$(git log --oneline -10 2>/dev/null)
if [ -z "$RECENT_LOG" ]; then
  printf '%s\n' "STATE=empty"
else
  printf '%s\n' "$RECENT_LOG" | sed 's/^/COMMIT=/'
fi

printf '%s\n' ""
printf '%s\n' "### Recent Diff (last 3 commits)"
RECENT_DIFF=$(git diff HEAD~3..HEAD --stat 2>/dev/null)
if [ -z "$RECENT_DIFF" ]; then
  printf '%s\n' "STATE=empty"
else
  # Prefix raw stat lines with DIFF_STAT= per command-output-format.md.
  printf '%s\n' "$RECENT_DIFF" | sed 's/^/DIFF_STAT=/'
fi

printf '%s\n' ""
printf '%s\n' "### Current State"
printf '%s\n' "BRANCH=$(git branch --show-current 2>/dev/null)"
UNCOMMITTED_COUNT=$(git status --porcelain 2>/dev/null | wc -l | tr -d ' ')
printf '%s\n' "UNCOMMITTED_COUNT=$UNCOMMITTED_COUNT"
[ "$UNCOMMITTED_COUNT" != "0" ] && git status --short 2>/dev/null | head -20 | sed 's/^/UNCOMMITTED_LINE=/'

true

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed a0d9a3e6f1f9
  2. 1mo ago Changed e6138413f363
  3. 2mo ago Changed 8397a0f0cfdd
  4. 2mo ago Changed 1e23c8a5971d
  5. 2mo ago Changed · -6 lines 7a911ce0ba46
  6. 2mo ago Changed · +15 lines 4252ffaa118a
  7. 3mo ago First seen · 207 lines · 20 tokens per session scan A bbf985a32b6c

Subscribe to this mod's changes

debug is a command published in the GitHub repository synaptiai/synapti-marketplace (9 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 2,898 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

debug compared with commands from other repositories

debug next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugsynaptiai/synapti-marketplaceCommand9todayApache-2.0A20Claude Code
create-worktreeCaptainMe-AI/lead-dev-osCommand224d agoMITA0Claude Code
debugShaheerKhawaja/ProductionOSCommand87mo agoMITA25Claude Code
debug-sweepkeez97/phase-gateCommand17mo agoMITA37Claude Code
fix-fastlantisprime/claude-sdlcCommand37mo agoMITA32Claude Code
doctorModellix/modellix-pluginCommand13d agoMITA16Claude Code
productionos-helpShaheerKhawaja/ProductionOSCommand87mo agoMITA26Claude Code