bmad-method
Use BMad (Breakthrough Method of Agile AI Driven Development) framework for AI-driven development. Use for: architecture analysis, sprint planning, story generation, PRD creation, and full development workflows. Requires coding-agent skill with Claude Code.
What this skill does
# BMad Method Skill > Use BMad framework for AI-driven development with autonomous agent workflows. **For detailed reference, see:** - [docs/reference/commands.md](docs/reference/commands.md) - Complete command reference - [docs/reference/agents.md](docs/reference/agents.md) - Available agents - [docs/how-to/install-bmad.md](docs/how-to/install-bmad.md) - Detailed installation guide - [docs/tutorials/getting-started.md](docs/tutorials/getting-started.md) - Quick start ## DEPENDENCY **This skill requires coding-agent skill with Claude Code installed.** - Claude Code must be installed (`~/.local/bin/claude`) - Use `bash pty:true` for all Claude Code invocations ## Description BMad (Breakthrough Method of Agile AI Driven Development) is a 4-phase framework: 1. **Analysis** — Explore the problem space 2. **Planning** — Define what to build 3. **Solutioning** — Decide how to build it 4. **Implementation** — Build it Each phase produces documents that become context for the next phase. --- ## Installation To use BMad in a project: > ⚠️ **Security Note:** `npx bmad-method install` fetches code from npm. Only run this if you trust the BMad package. Review the package before installing. ```bash cd ~/project && npx bmad-method install ``` Select Claude Code when prompted. ### ⚠️ Installation is Interactive **⚠️ npx bmad-method install asks questions!** For installation: - **DO NOT use background:true** - you need to respond to prompts - **Stay in the session** and answer each question - **Monitor the log** for these common prompts: | Prompt in Log | Expected Answer | Notes | |---------------|----------------|-------| | "Where should BMad be installed?" | `.` or `~path/to/project` | Current directory | | "Which AI tool are you using?" | `Claude Code` or number | Select Claude | | "Select modules to install" | `a` or `enter` | Select all/default | | "Install BMad in current directory?" | `y` or `enter` | Confirm | ```bash # Installation must be interactive! bash pty:true workdir:~/project command:"cd ~/project && npx bmad-method install" # Stay present, answer each prompt: # - Monitor log for prompts # - Submit answer via: process action:submit sessionId:XXX data:"y" ``` ### ⚠️ Pre-Flight Check **Before running any /bmad- command, verify BMad is installed:** ```bash ls -la ~/project/_bmad/ # or _bmad-output/ ``` If not found → run installation first: ```bash bash pty:true workdir:~/project command:"cd ~/project && npx bmad-method install" ``` --- ## Model Selection **Strategic model selection for efficiency:** | Model | Best Use Cases | |-------|----------------| | **Sonnet** | Architecture, Solutioning, Quick-dev (complex tasks) | | **Haiku** | Brainstorming, Story generation, Code review (repetitive/structured) | | **Opus** | Large refactoring, complex architecture decisions | ```bash # Examples claude --model sonnet "Create the architecture" claude --model haiku "Generate stories from the epic" ``` --- ## Available Commands (via /bmad-) | Command | Purpose | Output | |---------|---------|--------| | `/bmad-help` | Interactive guide | - | | `/bmad-brainstorming` | Brainstorm project ideas (use sparingly - see Notes) | `brainstorming-report.md` | | `/bmad-bmm-create-prd` | Define requirements | `PRD.md` | | `/bmad-bmm-create-ux-design` | Design UX | `ux-spec.md` | | `/bmad-bmm-create-architecture` | Technical decisions | `architecture.md` + ADRs | | `/bmad-bmm-create-epics-and-stories` | Break into stories | Epic files in `_bmad-output/` | | `/bmad-bmm-check-implementation-readiness` | Gate check | PASS/CONCERNS/FAIL | | `/bmad-bmm-sprint-planning` | Initialize sprint | `sprint-status.yaml` | | `/bmad-bmm-create-story` | Prepare next story | `story-[slug].md` | | `/bmad-bmm-dev-story` | Implement story | Working code + tests | | `/bmad-bmm-code-review` | Validate quality | Approved/changes requested | | `/bmad-bmm-quick-spec` | Quick spec (skip phases 1-3) | `tech-spec.md` | | `/bmad-bmm-quick-dev` | Quick implementation | Working code | --- ## ⚠️ Important: Claude Code Execution ### Use Non-Interactive Mode When Possible For commands that don't need real-time interaction: ```bash # Non-interactive (recommended for most BMad workflows) claude -p --dangerously-skip-permissions "Your prompt" ``` ### When to Use Background Mode Use `background:true` only when: - Running multiple BMad workflows in sequence - The workflow is expected to take a long time **Always monitor with `process action:log` every 10-30 seconds** to detect if Claude Code is waiting for input. ### Permission Configuration To avoid Claude Code blocking on permission requests: > ⚠️ **Security Note:** Using `--dangerously-skip-permissions` or `--permission-mode bypassPermissions` suppresses permission checks. Use with caution - only for trusted code execution. For production workflows, prefer default permissions or validate the code first. ```bash # Skip all permission prompts (use with caution!) claude --dangerously-skip-permissions "prompt" # Or use specific permission mode claude --permission-mode bypassPermissions "prompt" ``` ### Permission Loop Detection **If Claude Code waits for confirmation (Y/n, Commit, etc.):** 1. Check the log: `process action:log sessionId:XXX` 2. Identify the type of prompt: - **Shell command (Y/n):** → submit "y" - **Git commit proposal:** → submit "n" (see below) - **Other:** → evaluate if you know the answer, otherwise ask user ### Task Completion Detection (Background Mode) **How to know Claude Code is really done:** 1. **Success message in log:** Look for "Task completed", "Done!", "All tasks finished" 2. **Prompt available:** The command prompt is back 3. **Timeout:** If log is silent for **2+ minutes** without completion message → check process: ```bash ps aux | grep claude process action:log sessionId:XXX ``` **⚠️ Only consider task complete when you see explicit success message or prompt is back.** ### Session Heartbeat (Long Running Tasks) For workflows lasting 5+ minutes (/bmad-bmm-dev-story, large refactoring): **Every 60 seconds with no new log output:** ```bash # Check if process is still alive ps aux | grep claude # If stalled but alive → check if waiting for input process action:log sessionId:XXX # If process died → trigger recovery (see below) ``` --- ## Autonomous Workflow Patterns ### Pattern 1: Full Analysis + Planning Request **User says:** "Analyze the current architecture and generate the product brief for project X" **Agent should:** 1. **Pre-flight check:** Verify BMad installed (`ls _bmad/`) 2. **Check project-context.md:** If absent or outdated, generate it first (see below) 3. Launch Claude Code in the project directory: ```bash bash pty:true workdir:~/path/to/project background:true command:"claude --dangerously-skip-permissions '/bmad-bmm-create-architecture'" ``` 4. Monitor progress with `process action:log` (check every 10-30s) 5. If Claude Code needs information → ask the user directly 6. When complete → run: `ls _bmad-output/` to confirm files generated 7. **Verify output:** `grep -i "error" _bmad-output/architecture.md || head -20 _bmad-output/architecture.md` 8. Read `architecture.md` to verify coherence with user's request 9. Then launch product brief: `/bmad-bmm-create-product-brief` ### Pattern 2: Sprint Preparation with Story Generation **User says:** "Prepare sprint 1 and add tasks to OCM (OpenClaw Mission Center)" **Agent should:** 1. **Pre-flight check:** Verify BMad installed 2. Launch Claude Code: ```bash bash pty:true workdir:~/path/to/project background:true command:"claude --dangerously-skip-permissions '/bmad-bmm-sprint-planning && /bmad-bmm-create-epics-and-stories'" ``` 3. Wait for stories to be generated in `_bmad-output/epics/` 4. **Refresh context**: run `ls -R _bmad-output/` to confirm files exist 5. **Read stories efficiently** (see "Reading Stories Safely" below) 6. **Create OCM tasks from each story** (use t
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.