bad

bad is a skill for Claude Code, Codex from stephenleo/bmad-autonomous-development. It costs 133 tokens per session (7,925 once invoked), scanned A, original, MIT.

An autonomous development coordinator for BMad projects, where work is organized into backlog stories. It sends each story through creation, implementation, review, and pull-request stages using separate worktrees.

In plain words
What is it for?
Use it to set up or configure the module, select backlog stories, run their development stages in parallel, and manage the resulting pull requests. The coordinator delegates file, Git, and GitHub work to subagents.
Why use it?
It organizes several story pipelines and keeps their code isolated, reducing interference between parallel changes. It also tracks configuration and pull-request status through delegated agents.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stephenleo/bmad-autonomous-development/bad
Any agent
npx skills add stephenleo/bmad-autonomous-development --skill bad
Clone the repo
git clone --depth 1 https://github.com/stephenleo/bmad-autonomous-development

Made for: Claude Code, Codex.

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 bad

README.md
[![agentmods](https://agentmods.dev/badge/skills/stephenleo/bmad-autonomous-development/bad.svg)](https://agentmods.dev/skills/stephenleo/bmad-autonomous-development/bad)
Your own site
<a href="https://agentmods.dev/skills/stephenleo/bmad-autonomous-development/bad"><img src="https://agentmods.dev/badge/skills/stephenleo/bmad-autonomous-development/bad.svg" alt="Measured on agentmods" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00133 $0.07925
Opus 5 $0.00067 $0.03963
Sonnet 5 $0.00027 $0.01585
Haiku 4.5 $0.00013 $0.00792

Measured 4d ago against content hash 382ec2f77c50, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bad scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/bad-statusline.sh, scripts/merge-config.py, scripts/merge-help-csv.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- gh TLS/auth error in output → stop Monitor, switch to curl poller from `references/coordinator/pattern-gh-curl-fallback.md`
skills/bad/SKILL.md · 573 lines

How it starts

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

BAD — BMad Autonomous Development

On Activation

Check if {project-root}/_bmad/config.yaml contains a bad section. If not — or if the user passed setup or configure as an argument — load ./assets/module-setup.md and complete registration before proceeding.

The setup/configure argument always triggers ./assets/module-setup.md, even if the module is already registered (for reconfiguration).

After setup completes (or if config already exists), load the bad config and continue to Startup below.

You are a coordinator. You delegate every step to subagents via the Agent tool. You never read files, run git/gh commands, or write to disk yourself.

Coordinator-only responsibilities:

  • Pick stories from subagent-reported data
  • Call the Agent tool to spawn subagents (in parallel where allowed — multiple Agent tool calls in one message)
  • Manage timers (CronCreate / CronDelete)
  • Run Pre-Continuation Checks (requires session stdin JSON — coordinator only)
  • Handle user input, print summaries, and send channel notifications

Everything else — file reads, git operations, gh commands, disk writes — happens inside Agent tool subagents with fresh context windows.

Startup: Capture Channel Context

Before doing anything else, determine how to send notifications:

  1. Check for a connected channel — look at the current conversation context:

    • If you see a <channel source="telegram" chat_id="..." ...> tag, save NOTIFY_CHAT_ID and NOTIFY_SOURCE="telegram".
    • If another channel type is connected, save its equivalent identifier.
    • If no channel is connected, set NOTIFY_SOURCE="terminal".
  2. Send the BAD started notification using the Notify Pattern:

    🤖 BAD started — building dependency graph...
    

Then proceed to Phase 0.


Configuration

Load base values from the bad section of _bmad/config.yaml at startup. Then parse any KEY=VALUE overrides from arguments passed to /bad — args win over config. For any variable not in config or args, use the default below.

Read the full file on GitHub · 573 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. 4d ago First seen · 573 lines · 133 tokens per session scan A 382ec2f77c50

Subscribe to this mod's changes

bad is a skill published in the GitHub repository stephenleo/bmad-autonomous-development (107 stars, last pushed 4mo ago), licensed MIT. It adds 133 tokens to every session and 7,925 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.