bmad-run-inspector
Inspect and explain bmad-loop run artifacts under `.bmad-loop/runs/`.
Skill by tronghieu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/tronghieu-bmad-run-inspector
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/bmad-run-inspector
Tools it pre-approves 12
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
ReadGlobGrepBash(python3*)Bash(bmad-loopBash(gitBash(lsBash(psBash(wcBash(tmuxBash(psmux
What's inside
- Skill 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.
- License
- MIT
- Allowed tools
- Read, Glob, Grep, Bash(python3, *), Bash(bmad-loop, *), Bash(git, *), Bash(ls, *), Bash(ps, *), Bash(wc, *), Bash(tmux, *), Bash(psmux, *)
- Instructions
- 276 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves some shell commands
Files (15)
- README.md
- README.vi.md
- README.zh.md
- SKILL.md
- environment.md · assets/templates/
- environment.toml · assets/templates/
- project-readme.md · assets/templates/
- adapter-bootstrap.md · references/
- anomaly-triage.md · references/
- log-forensics.md · references/
- run-anatomy.md · references/
- bootstrap_adapter.py · scripts/
- extract_transcript.py · scripts/
- run_probe.py · scripts/
- test_scripts.py · tests/
SKILL.md (first lines)
# 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: ```bash 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 the project's `[environment] probes` shell. `validate --render-probe` runs each dev skill's render command and needs network. - `resolve` (any flag) and `resume` change the run. `resolve --reverify` re-runs verify and commits. - `run`, `sweep`, `clean` and `cleanup` act unless given `--dry-run`. - `tui` is not confirmed inert in every view. Treat it as not scriptable. `references/anomaly-triage.md` has the full table. ## Workflow Live watch and post-hoc forensics use the same three steps. Only the leading question differs. ### 1. Probe the state ```bash python3 <skill>/scripts/run_probe.py --project /path/to/repo ``` Prints health flags, per-task phase/attempt/review_cycle, heartbeats, log sizes, journal tail, ATTENTION metadata, any pending hard or graceful stop request, and a findings list. It also writes `.probe-snapshot.json` into the run directory. The next probe reads that file and reports what changed. The delta is what separates "working" from "hung". It also separates a new ATTENTION notice from an unchanged append-only file. One reading alone answers neither. Read thresholds from `state.json`'s `policy_snapshot`, never from memory. Every project tunes `max_dev_attempts` and `session_timeout_min` differently. A remembered 2 becomes a false alarm
From tronghieu/agent-skills, MIT.
More from tronghieu/agent-skills
- 0.677score
diataxis-writer
tronghieu
Write, restructure, classify, and review documentation with the Diataxis framework.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
manual-tester
tronghieu
Plan and run manual tests of the project's running app.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
slidewright
tronghieu
Build interactive presentation websites — slide decks projected to a room, controlled by one presenter.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
data-scientist
tronghieu
Act as an end-to-end data scientist: turn business questions into defensible analysis, validated models, and decision-ready reports.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
deep-reader
tronghieu
Read, study, and answer questions about long books and papers without loading the whole text into one context window, keeping page-anchored notes as a…
SkillAFreshness: A★ 86Claude Code +9 - 0.637score
scrum-master
tronghieu
Act as the team's Scrum Master of record, or copilot to a human one: plan sprints, run daily pulses, close sprints, prepare and follow up retrospectives…
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
socratic-questor
tronghieu
Socratic questioning partner named Gadfly for deep learning through dialogue.
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
system-prompt-creator
tronghieu
Create high-quality, model-aware system prompts for any LLM (Claude, GPT, Gemini, open-source, etc.).
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
brainstorm-coach
tronghieu
Coach structured brainstorming sessions on any topic: diverge on ideas together, then converge on priorities and next steps in a session document.
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
design-thinking
tronghieu
Facilitate a full design-thinking engagement (Empathize, Define, Ideate, Prototype, Test) grounded in real user evidence.
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
fiction-studio
tronghieu
A complete fiction-writing studio, run as a team of named specialist agents, that guides an author from a bare idea to a polished prose manuscript.
SkillBFreshness: B★ 86Claude Code +9 - 0.637score
market-researcher
tronghieu
Conduct rigorous, citation-backed desk market research: quick go/no-go market scans, market sizing (TAM/SAM/SOM), competitor analysis, customer demand…
SkillBFreshness: B★ 86Claude Code +9
Signals
- Stars
- 86
- Forks
- 32
- Open issues
- 0
- Last commit (this folder)
- Oct 18, 2026 (11 days ago)
- Last release
- Sep 19, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/tronghieu/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from tronghieu
- 0.677score
slidewright
tronghieu
Build interactive presentation websites — slide decks projected to a room, controlled by one presenter.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
data-scientist
tronghieu
Act as an end-to-end data scientist: turn business questions into defensible analysis, validated models, and decision-ready reports.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
deep-reader
tronghieu
Read, study, and answer questions about long books and papers without loading the whole text into one context window, keeping page-anchored notes as a…
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
diataxis-writer
tronghieu
Write, restructure, classify, and review documentation with the Diataxis framework.
SkillAFreshness: A★ 86Claude Code +9 - 0.677score
manual-tester
tronghieu
Plan and run manual tests of the project's running app.
SkillAFreshness: A★ 86Claude Code +9 - 0.637score
cv-scorer
tronghieu
Score candidate CVs on a 100-point scale against a Job Description.
SkillBFreshness: B★ 86Claude Code +9
Cite this page
bmad-run-inspector skill. Agent Mart. https://agentmart.dev/skills/tronghieu-bmad-run-inspector (last updated 2026-10-24)