Skip to content
Agent Orchestration
Command

/debug

Find the root cause of a bug first, then fix it with a regression test.

From plugin
superlite
24919 skills8 agents19 commands6 hooks
> /plugin marketplace add iha2/superlite
> /plugin install superlite@superlite-dev

Command definition

debug.md
description: Find the root cause of a bug first, then fix it with a regression test.
argument-hint: "[the bug or failing test]"

Superlite debug mode. Problem: $ARGUMENTS

First, read `${CLAUDE_PLUGIN_ROOT}/assets/flows/debug.txt` (if the variable is not expanded, it is `assets/flows/debug.txt` in the superlite plugin directory) and print it verbatim in one ```text block, before anything else. It is stored, so never redraw or edit it. Skip it only when it was already printed this turn.

If the problem is empty, ask for it in one line (what fails, how to reproduce). Once the request is known, and BEFORE the first other `superlite-cli` call, run `superlite-cli session ensure --slug <topic>` (`<topic>`: a short slug of the request, a-z, 0-9, `-`; reuse it for plan file names). On a `SESSION worktree=<path>` line that differs from the current checkout, under Claude Code on `session: create EnterWorktree name=<n>` call `EnterWorktree name=<n>` and rerun the same command inside it, on `session: enter EnterWorktree path=<p>` call `EnterWorktree path=<p>`, on `ASK branch-name` ask the user once and rerun with `--branch-name worktree|superlite|PATTERN`, elsewhere `cd` to `<path>`; on `REDIRECT worktree=…`, do the same for that worktree. If ensure prints an `ASK` line (`ASK untracked=...` or `ASK move ...`, exit 4, nothing changed), ask exactly what the `ask:` line after it says, then do exactly what the chosen answer's `on ...:` line says (on a refusal, stop; nothing changed). If the hook printed `superlite sync:`, ask the same way; sync is fast-forward only. Then load `superlite:diagnosis` and follow it: reproduce, find the root cause, run the `superlite:inventing` **Grill** (one round: correct behavior, what must not change, how far the fix may reach) when something material is open, write the failing regression test, fix, verify. Fixes go to fix-only agents by tier. Use the project's own test command. Do not widen the change beyond the cause. After verification passes, run `superlite-cli finish` in the session checkout: it marks the session finished and leaves uncommitted work in place. Put "Run the whole test suite at finish?" (`No, affected tests only (Recommended)` / `Yes, once at finish`) in the Grill's one batch; with no batch it defaults to no.

Read more
@iha2
Ships withsuperlite

A fast software factory workflow for Claude Code: one approval gate, parallel waves, routed models

24912 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
249
Star history of iha2/superlite on GitHub, a chart by star-history.com

Other commands on superlite.

ai

ai

Command

Switch this project to the AI orchestrator: superlite plans, builds and decides on its own.

@iha2@iha2Install Command
approve

approve

Command

Approve the review plan so superlite can lint and build it.

@iha2@iha2Install Command
feature

feature

Command

Add or change a feature in an existing codebase. Research, a plan you validate, a prototype you try, then the integration build.

@iha2@iha2Install Command
finish

finish

Command

Finish the branch: verify first, then offer merge or PR. Never pushes without you.

@iha2@iha2Install Command
help

help

Command

Show the detailed superlite help: modes, who decides, how a build runs, every command, models, rules, files and commits.

@iha2@iha2Install Command
human

human

Command

Switch this project to the human orchestrator: you approve a review plan before any build.

@iha2@iha2Install Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command