bad
БесплатноБез исполняемых скриптовНе проверенBMad Autonomous Development — orchestrates parallel story implementation pipelines. Builds a dependency graph, updates PR status from GitHub, picks stories…
от lza6★ 19 звёзд на 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. You never read files, run git/gh commands, or write to disk yourself.
Coordinator-only responsibilities:
- Pick stories from subagent-reported data
- Spawn subagents (in parallel where allowed)
- 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 in subagents with fresh context.
Startup: Capture Channel Context
Before doing anything else, determine how to send notifications:
Check for a connected channel — look at the current conversation context:
- If you see a
<channel source="telegram" chat_id="..." ...>tag, saveNOTIFY_CHAT_IDandNOTIFY_SOURCE="telegram". - If another channel type is connected, save its equivalent identifier.
- If no channel is connected, set
NOTIFY_SOURCE="terminal".
- If you see a
Send the BAD started notification using the Notify Pattern:
🤖 BAD started — building dependency graph...
Then proceed to Phase 0.
Configuration
Load base values from _bmad/bad/config.yaml at startup (via /bmad-init --module bad --all). 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.
| Variable | Config Key | Default | Description |
|---|---|---|---|
MAX_PARALLEL_STORIES |
max_parallel_stories |
3 |
Max stories to run in a single batch |
WORKTREE_BASE_PATH |
worktree_base_path |
.worktrees |
Root directory for git worktrees |
MODEL_STANDARD |
model_standard |
sonnet |
Model for Steps 1, 2, 4 and Phase 3 (auto-merge) |
MODEL_QUALITY |
model_quality |
opus |
Model for Step 3 (code review) |
RETRO_TIMER_SECONDS |
retro_timer_seconds |
600 |
Auto-retrospective countdown after epic completion (10 min) |
WAIT_TIMER_SECONDS |
wait_timer_seconds |
3600 |
Post-batch wait before re-checking PR status (1 hr) |
CONTEXT_COMPACTION_THRESHOLD |
context_compaction_threshold |
80 |
Context window % at which to compact/summarise context |
TIMER_SUPPORT |
timer_support |
true |
When true, use native platform timers; when false, use prompt-based continuation |
API_FIVE_HOUR_THRESHOLD |
api_five_hour_threshold |
80 |
(Claude Code) 5-hour rate limit % that triggers a pause |
API_SEVEN_DAY_THRESHOLD |
api_seven_day_threshold |
95 |
(Claude Code) 7-day rate limit % that triggers a pause |
API_USAGE_THRESHOLD |
api_usage_threshold |
80 |
(Other harnesses) Generic API usage % that triggers a pause |
RUN_CI_LOCALLY |
run_ci_locally |
false |
When true, skip GitHub Actions and always run the local CI fallback |
AUTO_PR_MERGE |
auto_pr_merge |
false |
When true, auto-merge batch PRs sequentially (lowest → highest) before Phase 4 |
After resolving all values, print the active configuration so the user can confirm before Phase 0 begins:
⚙️ BAD config: MAX_PARALLEL_STORIES=3, RUN_CI_LOCALLY=false, AUTO_PR_MERGE=false, MODEL_STANDARD=sonnet, MODEL_QUALITY=opus, TIMER_SUPPORT=true, ...
Pipeline
Phase 0: Build (or update) dependency graph [subagent]
└─ bmad-help maps story dependencies
└─ GitHub updates PR merge status per story
└─ git pull origin main
└─ Reports: ready stories, epic completion status
│
Phase 1: Discover stories [coordinator logic]
└─ Pick up to MAX_PARALLEL_STORIES from Phase 0 report
└─ If none ready → skip to Phase 4
│
Phase 2: Run the pipeline [subagents — stories parallel, steps sequential]
├─► Story A ──► Step 1 → Step 2 → Step 3 → Step 4
├─► Story B ──► Step 1 → Step 2 → Step 3 → Step 4
└─► Story C ──► Step 1 → Step 2 → Step 3 → Step 4
│
Phase 3: Auto-Merge Batch PRs [subagents — sequential]
└─ One subagent per story (lowest → highest story number)
└─ Cleanup subagent for branch safety + git pull
│
Phase 4: Batch Completion & Continuation
└─ Print batch summary [coordinator]
└─ Epic completion check [subagent]
└─ Optional retrospective [subagent]
└─ Gate & Continue (WAIT_TIMER timer) → Phase 0 → Phase 1
Phase 0:
Установить bad в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bad?
BMad Autonomous Development — orchestrates parallel story implementation pipelines. Builds a dependency graph, updates PR status from GitHub, picks stories from the backlog, and runs each through create → dev → review → PR in parallel — each story isolated in its own git worktree — using dedicated subagents with fresh context windows. Loops through the entire sprint plan in batches, with optional epic retrospective. Use when the user says "run BAD", "start autonomous development", "automate the sprint", "run the pipeline", "kick off the sprint", or "start the dev pipeline". Run /bad setup or /bad configure to install and configure the module.
Как установить скилл bad?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bad запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub