Install
openclaw skills install claude-code-openclawDelegate implementation, review, and official BMad agent-driven workflows to local Claude Code. Use for: (1) substantial coding/refactoring/review work, (2) repos with `_bmad/` where BMad roles like SM/DEV/PM/Architect/QA/TEA should be invoked through the installed agent commands, (3) direct slash workflows such as `/bmad-bmm-*`, `/bmad-tea-*`, `/speckit.*`, or `/opsx:*`, and (4) one-shot headless Claude Code tasks.
openclaw skills install claude-code-openclawUse local Claude Code as the implementation engine. Keep the orchestration disciplined, evidence-based, and aligned with the repo's installed BMad tooling.
Use exactly one of these paths:
scripts/run_claude_task.shscripts/claude_code_run.pyscripts/run_bmad_persona.pyNever use:
claude -pexec(background:true) + poll loopsrun_bmad_persona.py can express the taskPrefer the Spawn and Yield pattern when ACP is available:
sessions_spawn--notify-parent-sessionsessions_yieldIf ACP is unavailable, use the supported local runner above. Do not invent a fourth path.
You are the Project Owner and orchestration layer.
For repos that contain _bmad/, treat BMad as the project operating system, not as loose inspiration.
Before running anything, inspect the repo's actual installed capability set:
_bmad/_config/bmad-help.csv.claude/commands/scripts/run_bmad_persona.py --cwd <repo> --listUse the official implementation cycle unless there is a deliberate reason not to:
Use direct /bmad-bmm-* or /bmad-tea-* workflows when:
Default to official agent-driven delivery when the user wants “real BMad” execution.
Use for bounded tasks such as review, summary, targeted fix, or analysis.
scripts/run_claude_task.sh --prompt "<structured task>"
Use for a specific installed workflow.
Rules:
Example:
scripts/claude_code_run.py \
--mode interactive \
--cwd <repo> \
--workflow bmad-bmm-code-review \
--prompt-file <prompt.txt>
Use for role-correct BMad execution.
Prefer the wrapper:
scripts/run_bmad_persona.py \
--cwd <repo> \
--persona sm \
--trigger CS \
--story-id 4-1-agent-api-auth-and-security
You may also pass an installed workflow command name as the trigger when recovering or matching a user-facing command exactly, for example --trigger bmad-bmm-create-story.
More examples:
scripts/run_bmad_persona.py --cwd <repo> --persona pm --trigger CP
scripts/run_bmad_persona.py --cwd <repo> --persona architect --trigger CA
scripts/run_bmad_persona.py --cwd <repo> --persona dev --trigger DS --story-id 4-1-agent-api-auth-and-security --story-path _bmad-output/implementation-artifacts/story-4-1-agent-api-auth-and-security.md
scripts/run_bmad_persona.py --cwd <repo> --persona dev --trigger CR --story-id 4-1-agent-api-auth-and-security
run_bmad_persona.py will:
_bmad/_config/bmad-help.csvKeep prompts short and structured.
Always include only what is needed:
For BMad prompts, default to:
Continue / CAdvanced Elicitation / AParty Mode / PYOLO / Y unless explicitly authorizedDo not paste long PRD / architecture / history into the prompt when files already exist. Prefer file paths and targets.
Trust artifacts over terminal vibes.
For BMad, prefer:
Do not treat spinner activity, transcript growth, or exit code alone as success.
Conserve tokens aggressively:
references/bmad-agent-trigger-cheatsheet.md — official role/trigger matrixreferences/bmad-method-integration.md — BMad operating guidance in OpenClawreferences/bmad-v6-agent-workflow-map.md — broader agent/workflow mapreferences/bmad-prompt-templates.md — prompt templatesreferences/spec-driven-workflow.md — Spec Kit / OpenSpec flowsreferences/claude-orchestrator-ops.md — operational troubleshooting and recovery commandsreferences/claude-orchestrator-profiles.yaml — workflow/profile behaviorreferences/claude-orchestration-control-plane.md — deep architecture notes; read only when modifying the control plane itselfPrimary runtime:
scripts/run_claude_task.shscripts/claude_code_run.pyscripts/run_bmad_persona.pyscripts/claude_orchestrator.pyCore runtime support:
scripts/claude_artifact_probe.pyscripts/claude_checkpoint.pyscripts/claude_workflow_adapter.pyscripts/claude_watchdog.pyscripts/install_claude_hooks.pyscripts/claude_hook_event_logger.pyscripts/claude_dispatch_update.pyOps / recovery tools:
scripts/ops/claude_run_report.pyscripts/ops/claude_latest_run_report.pyscripts/ops/claude_reconcile_runs.pyscripts/ops/claude_recover_run.pyscripts/ops/claude_user_update.pyDev / maintenance tools:
scripts/dev/claude_acceptance_check.pyscripts/dev/claude_v2_smoke.pyscripts/dev/claude_event_summary.pyWhen improving this skill, prioritize fixes that remove false-progress signals and ensure artifact-complete runs actually terminate and finalize cleanly.