[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MBG8NXT8XH7GSH9WBR9QB":3,"skill-same:01M75MBG8NXT8XH7GSH9WBR9QB":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M75MBG8NXT8XH7GSH9WBR9QB","bmad-method",null,"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.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fleonaaardob\u002Flb-bmad-skill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: bmad-method\ndescription: \"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.\"\n---\n\n# BMad Method Skill\n\n> Use BMad framework for AI-driven development with autonomous agent workflows.\n\n**For detailed reference, see:**\n- [docs\u002Freference\u002Fcommands.md](docs\u002Freference\u002Fcommands.md) - Complete command reference\n- [docs\u002Freference\u002Fagents.md](docs\u002Freference\u002Fagents.md) - Available agents\n- [docs\u002Fhow-to\u002Finstall-bmad.md](docs\u002Fhow-to\u002Finstall-bmad.md) - Detailed installation guide\n- [docs\u002Ftutorials\u002Fgetting-started.md](docs\u002Ftutorials\u002Fgetting-started.md) - Quick start\n\n## DEPENDENCY\n\n**This skill requires coding-agent skill with Claude Code installed.**\n- Claude Code must be installed (`~\u002F.local\u002Fbin\u002Fclaude`)\n- Use `bash pty:true` for all Claude Code invocations\n\n## Description\n\nBMad (Breakthrough Method of Agile AI Driven Development) is a 4-phase framework:\n1. **Analysis** — Explore the problem space\n2. **Planning** — Define what to build\n3. **Solutioning** — Decide how to build it\n4. **Implementation** — Build it\n\nEach phase produces documents that become context for the next phase.\n\n---\n\n## Installation\n\nTo use BMad in a project:\n\n> ⚠️ **Security Note:** `npx bmad-method install` fetches code from npm. Only run this if you trust the BMad package. Review the package before installing.\n\n```bash\ncd ~\u002Fproject && npx bmad-method install\n```\n\nSelect Claude Code when prompted.\n\n### ⚠️ Installation is Interactive\n\n**⚠️ npx bmad-method install asks questions!**\n\nFor installation:\n- **DO NOT use background:true** - you need to respond to prompts\n- **Stay in the session** and answer each question\n- **Monitor the log** for these common prompts:\n\n| Prompt in Log | Expected Answer | Notes |\n|---------------|----------------|-------|\n| \"Where should BMad be installed?\" | `.` or `~path\u002Fto\u002Fproject` | Current directory |\n| \"Which AI tool are you using?\" | `Claude Code` or number | Select Claude |\n| \"Select modules to install\" | `a` or `enter` | Select all\u002Fdefault |\n| \"Install BMad in current directory?\" | `y` or `enter` | Confirm |\n\n```bash\n# Installation must be interactive!\nbash pty:true workdir:~\u002Fproject command:\"cd ~\u002Fproject && npx bmad-method install\"\n# Stay present, answer each prompt:\n# - Monitor log for prompts\n# - Submit answer via: process action:submit sessionId:XXX data:\"y\"\n```\n\n### ⚠️ Pre-Flight Check\n\n**Before running any \u002Fbmad- command, verify BMad is installed:**\n\n```bash\nls -la ~\u002Fproject\u002F_bmad\u002F  # or _bmad-output\u002F\n```\n\nIf not found → run installation first:\n```bash\nbash pty:true workdir:~\u002Fproject command:\"cd ~\u002Fproject && npx bmad-method install\"\n```\n\n---\n\n## Model Selection\n\n**Strategic model selection for efficiency:**\n\n| Model | Best Use Cases |\n|-------|----------------|\n| **Sonnet** | Architecture, Solutioning, Quick-dev (complex tasks) |\n| **Haiku** | Brainstorming, Story generation, Code review (repetitive\u002Fstructured) |\n| **Opus** | Large refactoring, complex architecture decisions |\n\n```bash\n# Examples\nclaude --model sonnet \"Create the architecture\"\nclaude --model haiku \"Generate stories from the epic\"\n```\n\n---\n\n## Available Commands (via \u002Fbmad-)\n\n| Command | Purpose | Output |\n|---------|---------|--------|\n| `\u002Fbmad-help` | Interactive guide | - |\n| `\u002Fbmad-brainstorming` | Brainstorm project ideas (use sparingly - see Notes) | `brainstorming-report.md` |\n| `\u002Fbmad-bmm-create-prd` | Define requirements | `PRD.md` |\n| `\u002Fbmad-bmm-create-ux-design` | Design UX | `ux-spec.md` |\n| `\u002Fbmad-bmm-create-architecture` | Technical decisions | `architecture.md` + ADRs |\n| `\u002Fbmad-bmm-create-epics-and-stories` | Break into stories | Epic files in `_bmad-output\u002F` |\n| `\u002Fbmad-bmm-check-implementation-readiness` | Gate check | PASS\u002FCONCERNS\u002FFAIL |\n| `\u002Fbmad-bmm-sprint-planning` | Initialize sprint | `sprint-status.yaml` |\n| `\u002Fbmad-bmm-create-story` | Prepare next story | `story-[slug].md` |\n| `\u002Fbmad-bmm-dev-story` | Implement story | Working code + tests |\n| `\u002Fbmad-bmm-code-review` | Validate quality | Approved\u002Fchanges requested |\n| `\u002Fbmad-bmm-quick-spec` | Quick spec (skip phases 1-3) | `tech-spec.md` |\n| `\u002Fbmad-bmm-quick-dev` | Quick implementation | Working code |\n\n---\n\n## ⚠️ Important: Claude Code Execution\n\n### Use Non-Interactive Mode When Possible\n\nFor commands that don't need real-time interaction:\n\n```bash\n# Non-interactive (recommended for most BMad workflows)\nclaude -p --dangerously-skip-permissions \"Your prompt\"\n```\n\n### When to Use Background Mode\n\nUse `background:true` only when:\n- Running multiple BMad workflows in sequence\n- The workflow is expected to take a long time\n\n**Always monitor with `process action:log` every 10-30 seconds** to detect if Claude Code is waiting for input.\n\n### Permission Configuration\n\nTo avoid Claude Code blocking on permission requests:\n\n> ⚠️ **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.\n\n```bash\n# Skip all permission prompts (use with caution!)\nclaude --dangerously-skip-permissions \"prompt\"\n\n# Or use specific permission mode\nclaude --permission-mode bypassPermissions \"prompt\"\n```\n\n### Permission Loop Detection\n\n**If Claude Code waits for confirmation (Y\u002Fn, Commit, etc.):**\n\n1. Check the log: `process action:log sessionId:XXX`\n2. Identify the type of prompt:\n   - **Shell command (Y\u002Fn):** → submit \"y\"\n   - **Git commit proposal:** → submit \"n\" (see below)\n   - **Other:** → evaluate if you know the answer, otherwise ask user\n\n### Task Completion Detection (Background Mode)\n\n**How to know Claude Code is really done:**\n\n1. **Success message in log:** Look for \"Task completed\", \"Done!\", \"All tasks finished\"\n2. **Prompt available:** The command prompt is back\n3. **Timeout:** If log is silent for **2+ minutes** without completion message → check process:\n   ```bash\n   ps aux | grep claude\n   process action:log sessionId:XXX\n   ```\n\n**⚠️ Only consider task complete when you see explicit success message or prompt is back.**\n\n### Session Heartbeat (Long Running Tasks)\n\nFor workflows lasting 5+ minutes (\u002Fbmad-bmm-dev-story, large refactoring):\n\n**Every 60 seconds with no new log output:**\n```bash\n# Check if process is still alive\nps aux | grep claude\n\n# If stalled but alive → check if waiting for input\nprocess action:log sessionId:XXX\n\n# If process died → trigger recovery (see below)\n```\n\n---\n\n## Autonomous Workflow Patterns\n\n### Pattern 1: Full Analysis + Planning Request\n\n**User says:** \"Analyze the current architecture and generate the product brief for project X\"\n\n**Agent should:**\n1. **Pre-flight check:** Verify BMad installed (`ls _bmad\u002F`)\n2. **Check project-context.md:** If absent or outdated, generate it first (see below)\n3. Launch Claude Code in the project directory:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-architecture'\"\n   ```\n4. Monitor progress with `process action:log` (check every 10-30s)\n5. If Claude Code needs information → ask the user directly\n6. When complete → run: `ls _bmad-output\u002F` to confirm files generated\n7. **Verify output:** `grep -i \"error\" _bmad-output\u002Farchitecture.md || head -20 _bmad-output\u002Farchitecture.md`\n8. Read `architecture.md` to verify coherence with user's request\n9. Then launch product brief: `\u002Fbmad-bmm-create-product-brief`\n\n### Pattern 2: Sprint Preparation with Story Generation\n\n**User says:** \"Prepare sprint 1 and add tasks to OCM (OpenClaw Mission Center)\"\n\n**Agent should:**\n1. **Pre-flight check:** Verify BMad installed\n2. Launch Claude Code:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-sprint-planning && \u002Fbmad-bmm-create-epics-and-stories'\"\n   ```\n3. Wait for stories to be generated in `_bmad-output\u002Fepics\u002F`\n4. **Refresh context**: run `ls -R _bmad-output\u002F` to confirm files exist\n5. **Read stories efficiently** (see \"Reading Stories Safely\" below)\n6. **Create OCM tasks from each story** (use task-manager skill)\n7. Report completion with task list\n\n#### OCM Task Traceability\n\n**When creating OCM tasks, ALWAYS include the BMad story reference:**\n\n```\nTask: Implement login form validation\nDescription: [full story content]\n---\nRef: _bmad-output\u002Fepics\u002Fauth\u002Fstories\u002Fstory-login-validation.md\nEpic: auth\nCreated from: BMad Sprint 1\n```\n\n**Why:** This links the OCM task back to the source story for traceability.\n\n### Pattern 3: Quick Feature Implementation\n\n**User says:** \"Implement feature X using quick-dev\"\n\n**Agent should:**\n1. Launch Claude Code with quick-dev:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-quick-dev [feature description]'\"\n   ```\n\n---\n\n## ⚠️ Quick-Dev vs Standard: The Red Line\n\n**Quick-dev is faster but lacks safeguards. Use wisely.**\n\n| ✅ OK with Quick-Dev | ❌ NEVER with Quick-Dev |\n|---------------------|------------------------|\n| UI tweaks | Authentication changes |\n| Bug fixes | Encryption\u002FSecurity |\n| New endpoints | Database migrations |\n| Simple features | Payment logic |\n| | Breaking schema changes |\n\n**Rule:** If the change touches security, auth, encryption, or database migrations → **Use full BMad cycle** (Analysis → Solutioning → Implementation)\n\n---\n\n## project-context.md Management\n\nBMad relies on `project-context.md` as the project's \"brain\". It's the persistent context that guides all decisions.\n\n### Before \u002Fbmad-bmm-create-prd\n\n**Always check:**\n\n```bash\nls ~\u002Fproject\u002Fproject-context.md\n```\n\n### If Missing or Outdated\n\n**Generate or update it:**\n```bash\n# Option 1: Generate from codebase\nbash pty:true workdir:~\u002Fproject command:\"claude '\u002Fbmad-bmm-generate-project-context'\"\n\n# Option 2: Update manually with user's latest direction\n# Ask user: \"What's the current vision for this project?\"\n# Then create\u002Fupdate project-context.md with that info\n```\n\n### When User Changes Direction\n\nIf user pivots mid-project (new features, different direction):\n1. Update `project-context.md` with new intentions\n2. Regenerate `architecture.md` if architecture is affected\n3. Proceed with updated context\n\n---\n\n## Reading Stories Safely (Avoid Context Overflow)\n\n**Don't dump all stories at once!** Follow this process:\n\n1. **List first:**\n   ```bash\n   ls _bmad-output\u002Fepics\u002F*\u002Fstories\u002F\n   ```\n\n2. **Check each story header** before reading full:\n   ```bash\n   head -10 _bmad-output\u002Fepics\u002F*\u002Fstories\u002Fstory-*.md\n   ```\n\n3. **Read one at a time** for task creation:\n   - Read story 1 → create OCM task\n   - Read story 2 → create OCM task\n   - etc.\n\n4. **For batch operations**, group by epic:\n   ```bash\n   for f in _bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md; do head -20 \"$f\"; done | head -100\n   ```\n\n---\n\n## Command Chain Safety\n\n### ❌ Avoid This (Silent Failures)\n```bash\nclaude \"\u002Fbmad-cmd1 && \u002Fbmad-cmd2\"  # If cmd1 fails, cmd2 still runs\n```\n\n### ✅ Prefer Sequential Execution\n```bash\n# Step 1: Run cmd1\nbash pty:true background:true command:\"claude '\u002Fbmad-cmd1'\"\n\n# Step 2: Verify output exists\nls _bmad-output\u002Frequired-file.md\ngrep -q \"expected content\" _bmad-output\u002Frequired-file.md || { echo \"FAILED\"; exit 1; }\n\n# Step 3: Run cmd2 only if cmd1 succeeded\nbash pty:true command:\"claude '\u002Fbmad-cmd2'\"\n```\n\n**Rule:** Verify each step before proceeding to the next.\n\n---\n\n## Recovery After Crash\n\n**Scenario:** Claude Code crashes (API error 500, timeout, killed process)\n\n### Step 0: Kill Zombie Processes (BEFORE Restart!)\n\n**⚠️ Always check for stale processes first:**\n\n```bash\n# Check if Claude is still running\nps aux | grep claude\n\n# Kill any zombie processes for this project\npkill -f \"claude.*projects\u002Froundvision\" || echo \"No zombie processes\"\n\n# Also kill any hanging node processes\npkill -f \"npx.*bmad\" || echo \"No zombie npx\"\n```\n\n### Step 1: Check what was generated\n\n1. **Check what was generated:**\n   ```bash\n   ls -lt _bmad-output\u002F*.md | head -10\n   ```\n\n2. **Find the last valid file:**\n   ```bash\n   # Read the most recently modified output\n   ls -t _bmad-output\u002F*.md | head -1 | xargs head -30\n   ```\n\n3. **Resume from where it stopped:**\n   - If `architecture.md` exists but `stories\u002F` missing → run story generation\n   - If `stories\u002F` exist but no OCM tasks → create tasks from existing stories\n   - If partial output → check coherence, regenerate only what's missing\n\n4. **Never restart from zero** if partial output exists\n\n---\n\n## Handling Claude Code Questions\n\nWhen Claude Code asks questions during execution:\n\n1. **Check the log first** with `process action:log sessionId:XXX` to see what it asked\n2. **If you know the answer** → provide it via `process action:submit`\n3. **If you need to ask the user** → pause and get clarification first\n4. **If Claude Code is blocked** → tell it to ask for what it needs, then come back to you\n\nExample:\n```bash\n# Claude asks: \"What's your preferred authentication provider?\"\n# If you don't know → ask user: \"Claude needs to know auth provider - Auth0, Firebase, or Supabase?\"\n\n# Then provide the answer:\nprocess action:submit sessionId:XXX data:\"Auth0\"\n```\n\n---\n\n## When to Use BMad vs Direct Coding-Agent\n\n### Use BMad for:\n- New features or epics\n- Architecture changes or refactoring\n- Sprint planning with story generation\n- Technical documentation (PRD, architecture)\n- Anything security-sensitive\n\n### Use coding-agent directly (without BMad) for:\n- Quick fixes and small corrections\n- Simple code reviews\n- One-file changes\n- Experiments\u002Fprototyping\n\n**Rule of thumb:** If it needs a story breakdown and sprint planning → BMad. If it's a simple edit → coding-agent directly.\n\n---\n\n## Reading BMad Outputs\n\nAfter BMad workflows complete, documents are in:\n\n```\nproject\u002F\n├── _bmad\u002F\n│   └── config.yaml\n├── _bmad-output\u002F\n│   ├── brainstorming-report.md\n│   ├── product-brief.md\n│   ├── PRD.md\n│   ├── ux-spec.md\n│   ├── architecture.md\n│   ├── epics\u002F\n│   │   └── epic-[name]\u002F\n│   │       └── stories\u002F\n│   │           └── story-[slug].md\n│   └── sprint-status.yaml\n└── project-context.md\n```\n\n**⚠️ Always verify files exist** by running `ls _bmad-output\u002F` or `ls -R _bmad-output\u002F` after each workflow.\n\n**Verify output validity** before reading:\n```bash\n# Quick check\nls -la _bmad-output\u002Farchitecture.md\n\n# Validate content\nhead -20 _bmad-output\u002Farchitecture.md\n\n# Check for errors\ngrep -i \"error\\|fail\" _bmad-output\u002Farchitecture.md\n```\n\n### Cache Refresh (Perception Reset)\n\n**⚠️ After Claude Code modifies source files, your cached view is stale!**\n\n**Rule:** After each successful Claude Code intervention on source code:\n1. **Don't assume** your previous read of a file is still valid\n2. **Re-read** the file if you need to work on it further\n3. **Clear mental cache** - explicitly read the file again\n\n```bash\n# Bad: Assuming old read is still valid\nread path:\"~\u002Fproject\u002Fsrc\u002Fauth.js\"  # ❌ May be outdated\n\n# Good: Read fresh after Claude modified it\nexec command:\"cat ~\u002Fproject\u002Fsrc\u002Fauth.js\"  # ✅ Fresh content\n```\n\n---\n\n## Validation Step\n\nBefore moving to Implementation phase:\n\n1. Read the generated `architecture.md` (or `tech-spec.md` for quick-dev)\n2. Verify it aligns with user's original request\n3. If misaligned → regenerate or clarify with user\n\n---\n\n## Error Handling\n\n| Error | Solution |\n|-------|----------|\n| `Command not found` | Check PATH: `echo $PATH` and `which claude` |\n| `npx: command not found` | Install Node.js 20+ |\n| `_bmad\u002F not found` | Run `npx bmad-method install` first |\n| Claude stuck on permission | Use `--dangerously-skip-permissions` |\n| API 500 error | Trigger recovery (see \"Recovery After Crash\") |\n| Session timeout | Check if process still running, resume if possible |\n\n### ⚠️ Safety Rules\n- **Never run `rm -rf` via Claude Code without explicit human validation**\n- **Never use quick-dev for security-sensitive changes**\n- **Default Git answer: \"n\" (let OpenClaw handle commits)**\n\n---\n\n## Git Commit Handling\n\nClaude Code often asks: \"Do you want to commit these changes? [y\u002FN]\"\n\n- **Reply \"n\"** to keep Git control with OpenClaw\n- **Reply \"y\"** ONLY if user explicitly requested full Git autonomy\n\n```bash\n# When Claude asks to commit, default to \"n\"\nprocess action:submit sessionId:XXX data:\"n\"\n```\n\n---\n\n## Examples\n\n### Example 1: Architecture Analysis + Product Brief (Sequential)\n\n**User:** \"On project PingRoot, analyze the current architecture and generate the product brief\"\n\n**Agent does:**\n```bash\n# 1. Pre-flight check\nls ~\u002Fprojects\u002Fpingroot\u002F_bmad\u002F || echo \"Need to install BMad\"\n\n# 2. Check\u002Fupdate project-context.md\nls ~\u002Fprojects\u002Fpingroot\u002Fproject-context.md || echo \"Need to create project-context.md\"\n\n# 3. Launch architecture workflow\nbash pty:true workdir:~\u002Fprojects\u002Fpingroot background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-architecture'\"\n\n# 4. Monitor, wait for completion\nprocess action:poll sessionId:XXX\n\n# 5. Verify output\nls _bmad-output\u002Farchitecture.md\nhead -20 _bmad-output\u002Farchitecture.md\ngrep -i \"error\" _bmad-output\u002Farchitecture.md || echo \"OK\"\n\n# 6. If OK, verify coherence with user request\n# 7. If coherent, launch product brief\nbash pty:true workdir:~\u002Fprojects\u002Fpingroot command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-product-brief'\"\n\n# 8. Deliver outputs\n```\n\n### Example 2: Sprint Preparation + OCM Tasks (with safety checks)\n\n**User:** \"Prepare sprint 1 for RoundVision and add tasks to OCM\"\n\n**Agent does:**\n```bash\n# 1. Pre-flight check\nls ~\u002Fprojects\u002Froundvision\u002F_bmad\u002F || npx bmad-method install\n\n# 2. Check project-context.md\nls ~\u002Fprojects\u002Froundvision\u002Fproject-context.md || echo \"Update this first!\"\n\n# 3. Launch sprint planning + story creation\nbash pty:true workdir:~\u002Fprojects\u002Froundvision background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-sprint-planning && \u002Fbmad-bmm-create-epics-and-stories'\"\n\n# 4. Monitor and wait for completion\nprocess action:poll sessionId:XXX  # repeat until done\n\n# 5. Refresh context - verify files exist\nls -R ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F\n\n# 6. List stories first (don't dump all at once!)\nls ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F\n\n# 7. Read and process stories one by one\nfor story in ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md; do\n  echo \"=== $(basename $story) ===\"\n  head -20 \"$story\"\n  # Create OCM task from this story\ndone\n\n# 8. Report: \"Created X tasks in OCM for Sprint 1\"\n#    IMPORTANT: Each OCM task must include story path as reference!\n```\n\n### Example 3: Quick Fix (No BMad Needed)\n\n**User:** \"Fix the typo in the login page\"\n\n**Agent does:**\n```bash\n# Direct coding-agent, no BMad workflow needed\nbash pty:true workdir:~\u002Fprojects\u002Flogin command:\"claude 'Fix the typo on line 42: \\\"Passowrd\\\" → \\\"Password\\\"'\"\n```\n\n### Example 4: Recovery After Crash\n\n**Scenario:** Claude Code crashes during story generation\n\n**Agent does:**\n```bash\n# 0. Cleanup zombies FIRST!\nps aux | grep claude\npkill -f \"claude.*projects\u002Froundvision\" || echo \"Clean\"\n\n# 1. Check what was generated\nls -lt ~\u002Fproject\u002F_bmad-output\u002F | head -10\n\n# 2. Find last valid file\nls -t ~\u002Fproject\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F | head -1\n\n# 3. Check if partial stories exist\nls ~\u002Fproject\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md | wc -l\n\n# 4. If partial → resume from last point\n# If 3 stories out of 5 → generate remaining 2\n# If 0 stories → restart story generation\n\n# 5. Continue without restarting from zero\n```\n\n---\n\n## ⚠️ CRITICAL: Sub-Agent (Minion) Access\n\n**The minion does NOT automatically have access to project files! sub-agent to implement**\n\nWhen spawning a a task, you MUST provide:\n\n### 1. Project Directory Access\n\n```bash\n# Minion needs workdir to access project files\nsessions_spawn workdir:\"~\u002Fprojects\u002Froundvision\" ...\n```\n\n### 2. Story + Context + Architecture\n\n**⚠️ NEVER give only the story to a minion!**\n\nThe story says \"Add a login button\" but doesn't say:\n- Is this React, Vue, or vanilla JS?\n- Does it use Tailwind or Bootstrap?\n- What's the existing auth pattern?\n\n**You MUST provide:**\n\n1. **Story** (what to build)\n2. **project-context.md** (project rules, tech stack)\n3. **architecture.md** (technical decisions)\n\n```bash\n# Step 1: Read all three\ncat ~\u002Fprojects\u002Froundvision\u002Fproject-context.md\ncat ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Farchitecture.md  \ncat ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002Fauth.md\n\n# Step\u002Fstories\u002Fstory-login 2: Combine into a comprehensive prompt\nsessions_spawn task:\"You are implementing this story: [STORY]. \nProject context: [CONTEXT].\nArchitecture: [ARCHITECTURE].\nFollow the patterns defined in architecture.md.\"\n```\n\n### 3. OCM Task Should Include Story Path\n\n```json\n{\n  \"title\": \"Implement login form validation\",\n  \"description\": \"Full story content...\",\n  \"source\": \"_bmad-output\u002Fepics\u002Fauth\u002Fstories\u002Fstory-login.md\"\n}\n```\n\n**⚠️ Without workdir + story content + context + architecture, the minion is blind and cannot implement anything!**\n\n---\n\n## Notes\n\n- **BMad brainstorming**: Use sparingly. OpenClaw itself is a brainstorming agent. Use BMad for technical structuring, keep high-level strategy with OpenClaw.\n- BMad generates files in `_bmad-output\u002F`\n- `project-context.md` is the project's brain - keep it updated\n- `\u002Fbmad-help` provides interactive guidance\n- Always use `pty:true` with Claude Code\n- For model restrictions, use `--model \u003Csonnet|haiku|opus>`\n- **Token efficiency**: Use direct coding-agent for small tasks, reserve BMad for complex workflows\n- **Sequential over chained**: Verify each step before proceeding\n\n---\n\n## Related Skills\n\n- **coding-agent** — Required for launching Claude Code\n- **task-manager** — For creating OCM tasks from BMad stories\n","# BMad Method Skill\n\n> Use BMad framework for AI-driven development with autonomous agent workflows.\n\n**For detailed reference, see:**\n- [docs\u002Freference\u002Fcommands.md](docs\u002Freference\u002Fcommands.md) - Complete command reference\n- [docs\u002Freference\u002Fagents.md](docs\u002Freference\u002Fagents.md) - Available agents\n- [docs\u002Fhow-to\u002Finstall-bmad.md](docs\u002Fhow-to\u002Finstall-bmad.md) - Detailed installation guide\n- [docs\u002Ftutorials\u002Fgetting-started.md](docs\u002Ftutorials\u002Fgetting-started.md) - Quick start\n\n## DEPENDENCY\n\n**This skill requires coding-agent skill with Claude Code installed.**\n- Claude Code must be installed (`~\u002F.local\u002Fbin\u002Fclaude`)\n- Use `bash pty:true` for all Claude Code invocations\n\n## Description\n\nBMad (Breakthrough Method of Agile AI Driven Development) is a 4-phase framework:\n1. **Analysis** — Explore the problem space\n2. **Planning** — Define what to build\n3. **Solutioning** — Decide how to build it\n4. **Implementation** — Build it\n\nEach phase produces documents that become context for the next phase.\n\n---\n\n## Installation\n\nTo use BMad in a project:\n\n> ⚠️ **Security Note:** `npx bmad-method install` fetches code from npm. Only run this if you trust the BMad package. Review the package before installing.\n\n```bash\ncd ~\u002Fproject && npx bmad-method install\n```\n\nSelect Claude Code when prompted.\n\n### ⚠️ Installation is Interactive\n\n**⚠️ npx bmad-method install asks questions!**\n\nFor installation:\n- **DO NOT use background:true** - you need to respond to prompts\n- **Stay in the session** and answer each question\n- **Monitor the log** for these common prompts:\n\n| Prompt in Log | Expected Answer | Notes |\n|---------------|----------------|-------|\n| \"Where should BMad be installed?\" | `.` or `~path\u002Fto\u002Fproject` | Current directory |\n| \"Which AI tool are you using?\" | `Claude Code` or number | Select Claude |\n| \"Select modules to install\" | `a` or `enter` | Select all\u002Fdefault |\n| \"Install BMad in current directory?\" | `y` or `enter` | Confirm |\n\n```bash\n# Installation must be interactive!\nbash pty:true workdir:~\u002Fproject command:\"cd ~\u002Fproject && npx bmad-method install\"\n# Stay present, answer each prompt:\n# - Monitor log for prompts\n# - Submit answer via: process action:submit sessionId:XXX data:\"y\"\n```\n\n### ⚠️ Pre-Flight Check\n\n**Before running any \u002Fbmad- command, verify BMad is installed:**\n\n```bash\nls -la ~\u002Fproject\u002F_bmad\u002F  # or _bmad-output\u002F\n```\n\nIf not found → run installation first:\n```bash\nbash pty:true workdir:~\u002Fproject command:\"cd ~\u002Fproject && npx bmad-method install\"\n```\n\n---\n\n## Model Selection\n\n**Strategic model selection for efficiency:**\n\n| Model | Best Use Cases |\n|-------|----------------|\n| **Sonnet** | Architecture, Solutioning, Quick-dev (complex tasks) |\n| **Haiku** | Brainstorming, Story generation, Code review (repetitive\u002Fstructured) |\n| **Opus** | Large refactoring, complex architecture decisions |\n\n```bash\n# Examples\nclaude --model sonnet \"Create the architecture\"\nclaude --model haiku \"Generate stories from the epic\"\n```\n\n---\n\n## Available Commands (via \u002Fbmad-)\n\n| Command | Purpose | Output |\n|---------|---------|--------|\n| `\u002Fbmad-help` | Interactive guide | - |\n| `\u002Fbmad-brainstorming` | Brainstorm project ideas (use sparingly - see Notes) | `brainstorming-report.md` |\n| `\u002Fbmad-bmm-create-prd` | Define requirements | `PRD.md` |\n| `\u002Fbmad-bmm-create-ux-design` | Design UX | `ux-spec.md` |\n| `\u002Fbmad-bmm-create-architecture` | Technical decisions | `architecture.md` + ADRs |\n| `\u002Fbmad-bmm-create-epics-and-stories` | Break into stories | Epic files in `_bmad-output\u002F` |\n| `\u002Fbmad-bmm-check-implementation-readiness` | Gate check | PASS\u002FCONCERNS\u002FFAIL |\n| `\u002Fbmad-bmm-sprint-planning` | Initialize sprint | `sprint-status.yaml` |\n| `\u002Fbmad-bmm-create-story` | Prepare next story | `story-[slug].md` |\n| `\u002Fbmad-bmm-dev-story` | Implement story | Working code + tests |\n| `\u002Fbmad-bmm-code-review` | Validate quality | Approved\u002Fchanges requested |\n| `\u002Fbmad-bmm-quick-spec` | Quick spec (skip phases 1-3) | `tech-spec.md` |\n| `\u002Fbmad-bmm-quick-dev` | Quick implementation | Working code |\n\n---\n\n## ⚠️ Important: Claude Code Execution\n\n### Use Non-Interactive Mode When Possible\n\nFor commands that don't need real-time interaction:\n\n```bash\n# Non-interactive (recommended for most BMad workflows)\nclaude -p --dangerously-skip-permissions \"Your prompt\"\n```\n\n### When to Use Background Mode\n\nUse `background:true` only when:\n- Running multiple BMad workflows in sequence\n- The workflow is expected to take a long time\n\n**Always monitor with `process action:log` every 10-30 seconds** to detect if Claude Code is waiting for input.\n\n### Permission Configuration\n\nTo avoid Claude Code blocking on permission requests:\n\n> ⚠️ **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.\n\n```bash\n# Skip all permission prompts (use with caution!)\nclaude --dangerously-skip-permissions \"prompt\"\n\n# Or use specific permission mode\nclaude --permission-mode bypassPermissions \"prompt\"\n```\n\n### Permission Loop Detection\n\n**If Claude Code waits for confirmation (Y\u002Fn, Commit, etc.):**\n\n1. Check the log: `process action:log sessionId:XXX`\n2. Identify the type of prompt:\n   - **Shell command (Y\u002Fn):** → submit \"y\"\n   - **Git commit proposal:** → submit \"n\" (see below)\n   - **Other:** → evaluate if you know the answer, otherwise ask user\n\n### Task Completion Detection (Background Mode)\n\n**How to know Claude Code is really done:**\n\n1. **Success message in log:** Look for \"Task completed\", \"Done!\", \"All tasks finished\"\n2. **Prompt available:** The command prompt is back\n3. **Timeout:** If log is silent for **2+ minutes** without completion message → check process:\n   ```bash\n   ps aux | grep claude\n   process action:log sessionId:XXX\n   ```\n\n**⚠️ Only consider task complete when you see explicit success message or prompt is back.**\n\n### Session Heartbeat (Long Running Tasks)\n\nFor workflows lasting 5+ minutes (\u002Fbmad-bmm-dev-story, large refactoring):\n\n**Every 60 seconds with no new log output:**\n```bash\n# Check if process is still alive\nps aux | grep claude\n\n# If stalled but alive → check if waiting for input\nprocess action:log sessionId:XXX\n\n# If process died → trigger recovery (see below)\n```\n\n---\n\n## Autonomous Workflow Patterns\n\n### Pattern 1: Full Analysis + Planning Request\n\n**User says:** \"Analyze the current architecture and generate the product brief for project X\"\n\n**Agent should:**\n1. **Pre-flight check:** Verify BMad installed (`ls _bmad\u002F`)\n2. **Check project-context.md:** If absent or outdated, generate it first (see below)\n3. Launch Claude Code in the project directory:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-architecture'\"\n   ```\n4. Monitor progress with `process action:log` (check every 10-30s)\n5. If Claude Code needs information → ask the user directly\n6. When complete → run: `ls _bmad-output\u002F` to confirm files generated\n7. **Verify output:** `grep -i \"error\" _bmad-output\u002Farchitecture.md || head -20 _bmad-output\u002Farchitecture.md`\n8. Read `architecture.md` to verify coherence with user's request\n9. Then launch product brief: `\u002Fbmad-bmm-create-product-brief`\n\n### Pattern 2: Sprint Preparation with Story Generation\n\n**User says:** \"Prepare sprint 1 and add tasks to OCM (OpenClaw Mission Center)\"\n\n**Agent should:**\n1. **Pre-flight check:** Verify BMad installed\n2. Launch Claude Code:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-sprint-planning && \u002Fbmad-bmm-create-epics-and-stories'\"\n   ```\n3. Wait for stories to be generated in `_bmad-output\u002Fepics\u002F`\n4. **Refresh context**: run `ls -R _bmad-output\u002F` to confirm files exist\n5. **Read stories efficiently** (see \"Reading Stories Safely\" below)\n6. **Create OCM tasks from each story** (use task-manager skill)\n7. Report completion with task list\n\n#### OCM Task Traceability\n\n**When creating OCM tasks, ALWAYS include the BMad story reference:**\n\n```\nTask: Implement login form validation\nDescription: [full story content]\n---\nRef: _bmad-output\u002Fepics\u002Fauth\u002Fstories\u002Fstory-login-validation.md\nEpic: auth\nCreated from: BMad Sprint 1\n```\n\n**Why:** This links the OCM task back to the source story for traceability.\n\n### Pattern 3: Quick Feature Implementation\n\n**User says:** \"Implement feature X using quick-dev\"\n\n**Agent should:**\n1. Launch Claude Code with quick-dev:\n   ```bash\n   bash pty:true workdir:~\u002Fpath\u002Fto\u002Fproject command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-quick-dev [feature description]'\"\n   ```\n\n---\n\n## ⚠️ Quick-Dev vs Standard: The Red Line\n\n**Quick-dev is faster but lacks safeguards. Use wisely.**\n\n| ✅ OK with Quick-Dev | ❌ NEVER with Quick-Dev |\n|---------------------|------------------------|\n| UI tweaks | Authentication changes |\n| Bug fixes | Encryption\u002FSecurity |\n| New endpoints | Database migrations |\n| Simple features | Payment logic |\n| | Breaking schema changes |\n\n**Rule:** If the change touches security, auth, encryption, or database migrations → **Use full BMad cycle** (Analysis → Solutioning → Implementation)\n\n---\n\n## project-context.md Management\n\nBMad relies on `project-context.md` as the project's \"brain\". It's the persistent context that guides all decisions.\n\n### Before \u002Fbmad-bmm-create-prd\n\n**Always check:**\n\n```bash\nls ~\u002Fproject\u002Fproject-context.md\n```\n\n### If Missing or Outdated\n\n**Generate or update it:**\n```bash\n# Option 1: Generate from codebase\nbash pty:true workdir:~\u002Fproject command:\"claude '\u002Fbmad-bmm-generate-project-context'\"\n\n# Option 2: Update manually with user's latest direction\n# Ask user: \"What's the current vision for this project?\"\n# Then create\u002Fupdate project-context.md with that info\n```\n\n### When User Changes Direction\n\nIf user pivots mid-project (new features, different direction):\n1. Update `project-context.md` with new intentions\n2. Regenerate `architecture.md` if architecture is affected\n3. Proceed with updated context\n\n---\n\n## Reading Stories Safely (Avoid Context Overflow)\n\n**Don't dump all stories at once!** Follow this process:\n\n1. **List first:**\n   ```bash\n   ls _bmad-output\u002Fepics\u002F*\u002Fstories\u002F\n   ```\n\n2. **Check each story header** before reading full:\n   ```bash\n   head -10 _bmad-output\u002Fepics\u002F*\u002Fstories\u002Fstory-*.md\n   ```\n\n3. **Read one at a time** for task creation:\n   - Read story 1 → create OCM task\n   - Read story 2 → create OCM task\n   - etc.\n\n4. **For batch operations**, group by epic:\n   ```bash\n   for f in _bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md; do head -20 \"$f\"; done | head -100\n   ```\n\n---\n\n## Command Chain Safety\n\n### ❌ Avoid This (Silent Failures)\n```bash\nclaude \"\u002Fbmad-cmd1 && \u002Fbmad-cmd2\"  # If cmd1 fails, cmd2 still runs\n```\n\n### ✅ Prefer Sequential Execution\n```bash\n# Step 1: Run cmd1\nbash pty:true background:true command:\"claude '\u002Fbmad-cmd1'\"\n\n# Step 2: Verify output exists\nls _bmad-output\u002Frequired-file.md\ngrep -q \"expected content\" _bmad-output\u002Frequired-file.md || { echo \"FAILED\"; exit 1; }\n\n# Step 3: Run cmd2 only if cmd1 succeeded\nbash pty:true command:\"claude '\u002Fbmad-cmd2'\"\n```\n\n**Rule:** Verify each step before proceeding to the next.\n\n---\n\n## Recovery After Crash\n\n**Scenario:** Claude Code crashes (API error 500, timeout, killed process)\n\n### Step 0: Kill Zombie Processes (BEFORE Restart!)\n\n**⚠️ Always check for stale processes first:**\n\n```bash\n# Check if Claude is still running\nps aux | grep claude\n\n# Kill any zombie processes for this project\npkill -f \"claude.*projects\u002Froundvision\" || echo \"No zombie processes\"\n\n# Also kill any hanging node processes\npkill -f \"npx.*bmad\" || echo \"No zombie npx\"\n```\n\n### Step 1: Check what was generated\n\n1. **Check what was generated:**\n   ```bash\n   ls -lt _bmad-output\u002F*.md | head -10\n   ```\n\n2. **Find the last valid file:**\n   ```bash\n   # Read the most recently modified output\n   ls -t _bmad-output\u002F*.md | head -1 | xargs head -30\n   ```\n\n3. **Resume from where it stopped:**\n   - If `architecture.md` exists but `stories\u002F` missing → run story generation\n   - If `stories\u002F` exist but no OCM tasks → create tasks from existing stories\n   - If partial output → check coherence, regenerate only what's missing\n\n4. **Never restart from zero** if partial output exists\n\n---\n\n## Handling Claude Code Questions\n\nWhen Claude Code asks questions during execution:\n\n1. **Check the log first** with `process action:log sessionId:XXX` to see what it asked\n2. **If you know the answer** → provide it via `process action:submit`\n3. **If you need to ask the user** → pause and get clarification first\n4. **If Claude Code is blocked** → tell it to ask for what it needs, then come back to you\n\nExample:\n```bash\n# Claude asks: \"What's your preferred authentication provider?\"\n# If you don't know → ask user: \"Claude needs to know auth provider - Auth0, Firebase, or Supabase?\"\n\n# Then provide the answer:\nprocess action:submit sessionId:XXX data:\"Auth0\"\n```\n\n---\n\n## When to Use BMad vs Direct Coding-Agent\n\n### Use BMad for:\n- New features or epics\n- Architecture changes or refactoring\n- Sprint planning with story generation\n- Technical documentation (PRD, architecture)\n- Anything security-sensitive\n\n### Use coding-agent directly (without BMad) for:\n- Quick fixes and small corrections\n- Simple code reviews\n- One-file changes\n- Experiments\u002Fprototyping\n\n**Rule of thumb:** If it needs a story breakdown and sprint planning → BMad. If it's a simple edit → coding-agent directly.\n\n---\n\n## Reading BMad Outputs\n\nAfter BMad workflows complete, documents are in:\n\n```\nproject\u002F\n├── _bmad\u002F\n│   └── config.yaml\n├── _bmad-output\u002F\n│   ├── brainstorming-report.md\n│   ├── product-brief.md\n│   ├── PRD.md\n│   ├── ux-spec.md\n│   ├── architecture.md\n│   ├── epics\u002F\n│   │   └── epic-[name]\u002F\n│   │       └── stories\u002F\n│   │           └── story-[slug].md\n│   └── sprint-status.yaml\n└── project-context.md\n```\n\n**⚠️ Always verify files exist** by running `ls _bmad-output\u002F` or `ls -R _bmad-output\u002F` after each workflow.\n\n**Verify output validity** before reading:\n```bash\n# Quick check\nls -la _bmad-output\u002Farchitecture.md\n\n# Validate content\nhead -20 _bmad-output\u002Farchitecture.md\n\n# Check for errors\ngrep -i \"error\\|fail\" _bmad-output\u002Farchitecture.md\n```\n\n### Cache Refresh (Perception Reset)\n\n**⚠️ After Claude Code modifies source files, your cached view is stale!**\n\n**Rule:** After each successful Claude Code intervention on source code:\n1. **Don't assume** your previous read of a file is still valid\n2. **Re-read** the file if you need to work on it further\n3. **Clear mental cache** - explicitly read the file again\n\n```bash\n# Bad: Assuming old read is still valid\nread path:\"~\u002Fproject\u002Fsrc\u002Fauth.js\"  # ❌ May be outdated\n\n# Good: Read fresh after Claude modified it\nexec command:\"cat ~\u002Fproject\u002Fsrc\u002Fauth.js\"  # ✅ Fresh content\n```\n\n---\n\n## Validation Step\n\nBefore moving to Implementation phase:\n\n1. Read the generated `architecture.md` (or `tech-spec.md` for quick-dev)\n2. Verify it aligns with user's original request\n3. If misaligned → regenerate or clarify with user\n\n---\n\n## Error Handling\n\n| Error | Solution |\n|-------|----------|\n| `Command not found` | Check PATH: `echo $PATH` and `which claude` |\n| `npx: command not found` | Install Node.js 20+ |\n| `_bmad\u002F not found` | Run `npx bmad-method install` first |\n| Claude stuck on permission | Use `--dangerously-skip-permissions` |\n| API 500 error | Trigger recovery (see \"Recovery After Crash\") |\n| Session timeout | Check if process still running, resume if possible |\n\n### ⚠️ Safety Rules\n- **Never run `rm -rf` via Claude Code without explicit human validation**\n- **Never use quick-dev for security-sensitive changes**\n- **Default Git answer: \"n\" (let OpenClaw handle commits)**\n\n---\n\n## Git Commit Handling\n\nClaude Code often asks: \"Do you want to commit these changes? [y\u002FN]\"\n\n- **Reply \"n\"** to keep Git control with OpenClaw\n- **Reply \"y\"** ONLY if user explicitly requested full Git autonomy\n\n```bash\n# When Claude asks to commit, default to \"n\"\nprocess action:submit sessionId:XXX data:\"n\"\n```\n\n---\n\n## Examples\n\n### Example 1: Architecture Analysis + Product Brief (Sequential)\n\n**User:** \"On project PingRoot, analyze the current architecture and generate the product brief\"\n\n**Agent does:**\n```bash\n# 1. Pre-flight check\nls ~\u002Fprojects\u002Fpingroot\u002F_bmad\u002F || echo \"Need to install BMad\"\n\n# 2. Check\u002Fupdate project-context.md\nls ~\u002Fprojects\u002Fpingroot\u002Fproject-context.md || echo \"Need to create project-context.md\"\n\n# 3. Launch architecture workflow\nbash pty:true workdir:~\u002Fprojects\u002Fpingroot background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-architecture'\"\n\n# 4. Monitor, wait for completion\nprocess action:poll sessionId:XXX\n\n# 5. Verify output\nls _bmad-output\u002Farchitecture.md\nhead -20 _bmad-output\u002Farchitecture.md\ngrep -i \"error\" _bmad-output\u002Farchitecture.md || echo \"OK\"\n\n# 6. If OK, verify coherence with user request\n# 7. If coherent, launch product brief\nbash pty:true workdir:~\u002Fprojects\u002Fpingroot command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-create-product-brief'\"\n\n# 8. Deliver outputs\n```\n\n### Example 2: Sprint Preparation + OCM Tasks (with safety checks)\n\n**User:** \"Prepare sprint 1 for RoundVision and add tasks to OCM\"\n\n**Agent does:**\n```bash\n# 1. Pre-flight check\nls ~\u002Fprojects\u002Froundvision\u002F_bmad\u002F || npx bmad-method install\n\n# 2. Check project-context.md\nls ~\u002Fprojects\u002Froundvision\u002Fproject-context.md || echo \"Update this first!\"\n\n# 3. Launch sprint planning + story creation\nbash pty:true workdir:~\u002Fprojects\u002Froundvision background:true command:\"claude --dangerously-skip-permissions '\u002Fbmad-bmm-sprint-planning && \u002Fbmad-bmm-create-epics-and-stories'\"\n\n# 4. Monitor and wait for completion\nprocess action:poll sessionId:XXX  # repeat until done\n\n# 5. Refresh context - verify files exist\nls -R ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F\n\n# 6. List stories first (don't dump all at once!)\nls ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F\n\n# 7. Read and process stories one by one\nfor story in ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md; do\n  echo \"=== $(basename $story) ===\"\n  head -20 \"$story\"\n  # Create OCM task from this story\ndone\n\n# 8. Report: \"Created X tasks in OCM for Sprint 1\"\n#    IMPORTANT: Each OCM task must include story path as reference!\n```\n\n### Example 3: Quick Fix (No BMad Needed)\n\n**User:** \"Fix the typo in the login page\"\n\n**Agent does:**\n```bash\n# Direct coding-agent, no BMad workflow needed\nbash pty:true workdir:~\u002Fprojects\u002Flogin command:\"claude 'Fix the typo on line 42: \\\"Passowrd\\\" → \\\"Password\\\"'\"\n```\n\n### Example 4: Recovery After Crash\n\n**Scenario:** Claude Code crashes during story generation\n\n**Agent does:**\n```bash\n# 0. Cleanup zombies FIRST!\nps aux | grep claude\npkill -f \"claude.*projects\u002Froundvision\" || echo \"Clean\"\n\n# 1. Check what was generated\nls -lt ~\u002Fproject\u002F_bmad-output\u002F | head -10\n\n# 2. Find last valid file\nls -t ~\u002Fproject\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F | head -1\n\n# 3. Check if partial stories exist\nls ~\u002Fproject\u002F_bmad-output\u002Fepics\u002F*\u002Fstories\u002F*.md | wc -l\n\n# 4. If partial → resume from last point\n# If 3 stories out of 5 → generate remaining 2\n# If 0 stories → restart story generation\n\n# 5. Continue without restarting from zero\n```\n\n---\n\n## ⚠️ CRITICAL: Sub-Agent (Minion) Access\n\n**The minion does NOT automatically have access to project files! sub-agent to implement**\n\nWhen spawning a a task, you MUST provide:\n\n### 1. Project Directory Access\n\n```bash\n# Minion needs workdir to access project files\nsessions_spawn workdir:\"~\u002Fprojects\u002Froundvision\" ...\n```\n\n### 2. Story + Context + Architecture\n\n**⚠️ NEVER give only the story to a minion!**\n\nThe story says \"Add a login button\" but doesn't say:\n- Is this React, Vue, or vanilla JS?\n- Does it use Tailwind or Bootstrap?\n- What's the existing auth pattern?\n\n**You MUST provide:**\n\n1. **Story** (what to build)\n2. **project-context.md** (project rules, tech stack)\n3. **architecture.md** (technical decisions)\n\n```bash\n# Step 1: Read all three\ncat ~\u002Fprojects\u002Froundvision\u002Fproject-context.md\ncat ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Farchitecture.md  \ncat ~\u002Fprojects\u002Froundvision\u002F_bmad-output\u002Fepics\u002Fauth.md\n\n# Step\u002Fstories\u002Fstory-login 2: Combine into a comprehensive prompt\nsessions_spawn task:\"You are implementing this story: [STORY]. \nProject context: [CONTEXT].\nArchitecture: [ARCHITECTURE].\nFollow the patterns defined in architecture.md.\"\n```\n\n### 3. OCM Task Should Include Story Path\n\n```json\n{\n  \"title\": \"Implement login form validation\",\n  \"description\": \"Full story content...\",\n  \"source\": \"_bmad-output\u002Fepics\u002Fauth\u002Fstories\u002Fstory-login.md\"\n}\n```\n\n**⚠️ Without workdir + story content + context + architecture, the minion is blind and cannot implement anything!**\n\n---\n\n## Notes\n\n- **BMad brainstorming**: Use sparingly. OpenClaw itself is a brainstorming agent. Use BMad for technical structuring, keep high-level strategy with OpenClaw.\n- BMad generates files in `_bmad-output\u002F`\n- `project-context.md` is the project's brain - keep it updated\n- `\u002Fbmad-help` provides interactive guidance\n- Always use `pty:true` with Claude Code\n- For model restrictions, use `--model \u003Csonnet|haiku|opus>`\n- **Token efficiency**: Use direct coding-agent for small tasks, reserve BMad for complex workflows\n- **Sequential over chained**: Verify each step before proceeding\n\n---\n\n## Related Skills\n\n- **coding-agent** — Required for launching Claude Code\n- **task-manager** — For creating OCM tasks from BMad stories\n",{"name":5,"description":7},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fleonaaardob\u002Flb-bmad-skill",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill bmad-method",{"tool":39,"command":40},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill bmad-method",{"tool":42,"command":43},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill bmad-method","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fleonaaardob\u002Flb-bmad-skill\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":55},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":55},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":55},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":55},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]