Skip to content
Productivity
Skill

/bmad-run-inspector

Inspect and explain bmad-loop run artifacts under `.bmad-loop/runs/`. Use for live health checks ("is it stuck?", "is the loop alive?", "what is the agent doing?") and post-run forensics ("what happened?", "why did story X fail?", "where did the tokens go?"). Also triggers on

From plugin
agent-skills
11419 skills

Claude Code

$ npx -y skills add tronghieu/agent-skills --skill bmad-run-inspector --agent claude-code

SKILL.md

bmad-run-inspector.SKILL.md
name: bmad-run-inspector
description: >-
  Inspect and explain bmad-loop run artifacts under `.bmad-loop/runs/`. Use for
  live health checks ("is it stuck?", "is the loop alive?", "what is the agent
  doing?") and post-run forensics ("what happened?", "why did story X fail?",
  "where did the tokens go?"). Also triggers on "monitor/check/summarize the
  loop", "why did the run pause?", Vietnamese "theo dõi bmad loop", "phân tích
  run", "đọc log của run", and equivalent requests in other languages. Use only
  for bmad-loop's own run artifacts, not application runtime logs or CI-provider
  build logs.
allowed-tools: Read Glob Grep Bash(python3 *) Bash(bmad-loop *) Bash(git *) Bash(ls *) Bash(ps *) Bash(wc *) Bash(tmux *) Bash(psmux *)

BMAD Run Inspector

Verified against [bmad-loop 0.13.2](https://github.com/bmad-code-org/bmad-loop/releases/tag/v0.13.2). The bundled scripts run on Python 3.9+. `bmad-loop` itself needs 3.11+, but it often lives in an isolated environment while the host's `python3` is still stock macOS 3.9.

A run leaves a directory of evidence. This skill is about reading it honestly: saying what it proves, and refusing to say what it doesn't.

The one thing to get right

**The `.log` file is a terminal redraw capture, not a transcript.** The coding CLI paints a live TUI into a tmux or psmux pane. The capture records every repaint.

One adapter differs. `opencode-http` writes a real transcript instead. Read `references/log-forensics.md` before applying any of this to it.

Three consequences:

  • Each logical line appears hundreds of times, growing character by character. `tail -50`

returns fragments of one frame, not the last 50 things that happened.

  • Whitespace is dropped unpredictably. `Done(10tooluses·99.2ktokens·1m0s)` is one real line.
  • **Long tool output is collapsed into `… +N lines (ctrl+o to expand)` and never painted.**

Those lines do not exist in the file.

The third one decides what you may claim. Test summaries sit inside collapsed blocks. Your test runner's pass/fail line is long output, so the TUI hides it. One measured 4.35 MB log had 58 collapse markers hiding roughly 2,463 lines. Its largest single block was 484 lines.

So **never report that tests passed or failed based on the log.** Report which test *commands* ran. The verdict comes from "Deciding whether verify passed" below.

**The heuristics are stack-specific. They fail quietly.** `scripts/extract_transcript.py` matches one coding CLI's TUI vocabulary: its spinner frames, its `Done(N tool uses · T tokens · Ns)` footer, its `… +N lines (ctrl+o to expand)` marker. Its `results` and `errors` sections match one test runner's banner, one type checker's error codes, one runtime's errno names.

Change the CLI or change the test stack and the script does not error. It matches fewer patterns and still returns a result. An empty `--section errors` or `--section results` on an unfamiliar CLI or stack is a miss, not good news.

So establish which CLI and which stack the repo runs before you read anything. The next section covers that. Run `scripts/extract_transcript.py --collapsed` to print how much is hidden, then quote that number instead of hedging.

Know the project before you read it

This skill ships generic. Everything that varies between repositories lives in a project adapter at `_project/bmad-loop/`. Read it before the first inspection. Bootstrap it when it is not there.

| File | Holds | |---|---| | `_project/bmad-loop/environment.toml` | the values: which coding CLI, which test runner and type checker, which multiplexer, whether the dev skill writes `result.json`, which verify steps are non-fatal, what feeds the backlog | | `_project/bmad-loop/environment.md` | the knowledge: a dated current-state snapshot, which of the extractor's constants match here and which don't, and the judgment calls a bare value can't carry |

When `environment.toml` is missing:

python3 <skill>/scripts/bootstrap_adapter.py --repo-root /path/to/repo

It writes skeletons, never overwrites, and prints every value still marked `TODO(confirm: …)`. Those TODOs are the point. Research each one from a real file or a real `bmad-loop` command. Then show the user the drafted values and where each came from, before you inspect anything.

An adapter of plausible guesses is worse than no adapter. A wrong `coding_cli` makes the extractor match nothing and return a result that reads clean. `references/adapter-bootstrap.md` sources each field, including the ones no one can answer until a run exists.

When the adapter and a live run disagree, the run wins. The disagreement is itself a finding about the adapter. Report it. Do not quietly override either one.

Check the CLI before reading the disk

`bmad-loop` answers some questions faster and more reliably than parsing artifacts. `list`, `status`, `diagnose`, plain `validate`, `adapters` and bare `mux` are safe on a live run. Try them first.

| Command | What it gives you | |---|---| | `list`, `status` | Run state, but only for `.bmad-loop/runs/`. An archived run is invisible to both and returns `no such run`. Extract the tarball and read the artifacts by hand, starting at `## Workflow` | | `adapters` | Which coding-CLI adapter each profile selects. This is where the adapter's `orchestrator.coding_cli` comes from. Re-run it when an extraction comes back suspiciously empty | | `validate` | Live host facts no run directory holds: multiplexer availability and version, whether the coding CLI is on PATH, hook registration and staleness, worktree cleanliness. Run it when a story fails for reasons that look environmental |

**Never mutate what you are observing.** These commands read as harmless and are not:

  • `mux set` writes `policy.toml`.
  • `confirm` and `decisions` act on their target unless called with `--list`.
  • `attach` joins a live session. Any keystroke sent to it acts.
  • `probe-adapter --probe` launches a real CLI turn.
  • `validate --probes` runs t
Read more
@tronghieu
Ships withagent-skills

Language: English | Tiếng Việt | 中文 A collection of method-driven skills for people who use AI to make decisions, run projects, analyze evidence, create documents, and produce finished work.

Stars on GitHub

Momentum

stars in total
114
Star history of tronghieu/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

brainstorm-coach

brainstorm-coach

Coach structured brainstorming sessions on any topic: diverge on ideas together, then converge on priorities and next steps in a…

critical-thinking

critical-thinking

Audit the reasoning of a document or argument (memo, proposal, investment analysis, board paper, article, the user's own draft):…

cv-scorer

cv-scorer

Evaluate, score, and compare candidate CVs/resumes against a job description with a shared 100-point rubric and traceable…

data-scientist

data-scientist

Act as an end-to-end data scientist: turn business questions into defensible analysis, validated models, and decision-ready…

deep-reader

deep-reader

Read, study, and answer questions about long books and papers without loading the whole text into one context window, keeping…

design-thinking

design-thinking

Facilitate a full design-thinking engagement (Empathize, Define, Ideate, Prototype, Test) grounded in real user evidence. Use…

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills11d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about bmad-run-inspector.

Which coding agents can use bmad-run-inspector?
bmad-run-inspector installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.