bmad-shared
Shared state and template helper skill for BMAD. Provides reusable YAML contracts and deterministic scripts used by orchestrator and phase skills.
What it does
BMAD Shared
Purpose
Provide shared workflow state contracts and helper scripts for all BMAD skills.
Language Guard (Mandatory)
Enforce language selection separately for chat responses and generated artifacts.
Chat language (communication_language) fallback order:
language.communication_languagefrombmad/project.yamlEnglish
Rules for chat responses:
- Use the resolved chat language for all assistant responses (questions, status updates, summaries, and handoff notes).
- Do not switch chat language unless the user explicitly requests a different language in the current thread.
Artifact language (document_output_language) fallback order:
language.document_output_languagefrombmad/project.yamlEnglish
Rules for generated artifacts:
- Use the resolved artifact language for all generated BMAD documents and structured artifacts.
- write prose and field values in the resolved document language
- avoid mixed-language requirement clauses with English modal verbs (for example,
System shallfollowed by non-English text) - allow English acronyms/abbreviations in non-English sentences (for example,
API,SLA,KPI,OAuth,WCAG) - Keep code snippets, CLI commands, file paths, and identifiers in their original technical form.
Mandatory Reference Load
Before executing shared helper workflows, read REFERENCE.md first.
Treat REFERENCE.md as required context for state semantics and update rules.
Workflow Variants
config-read
- Read project or global configuration safely.
status-update
- Update workflow state after completion.
next-recommendation
- Compute next intent from workflow state.
YAML Contract Files
-
workflows.registry.yaml -
REFERENCE.md -
Shared script semantics and state rules.
-
helpers.md -
Shared implementation conventions and migration notes.
Script Selection
Current scripts:
- Read project config:
bash scripts/load-project-config.sh bmad/project.yaml - Read global config:
bash scripts/load-global-config.sh - Update workflow state:
bash scripts/update-workflow-status.sh --workflow product_brief --status-file bmad/workflow-status.yaml - Recommend next workflow:
bash scripts/next-workflow.sh bmad/workflow-status.yaml
Compatibility wrappers:
scripts/load-config.sh-> wrapper toload-project-config.shscripts/update-status.sh-> wrapper toupdate-workflow-status.shscripts/check-phase.sh-> wrapper tonext-workflow.sh
Usage Rules
- prefer
yqv4+ for all YAML reads and writes - keep updates deterministic and idempotent where possible
- avoid ad-hoc parsing for nested YAML values
Quality Gates
- YAML contract files remain backward-compatible within this branch
- scripts return explicit errors for missing files or tools
- state transitions update metrics and phase status consistently
Capabilities
Install
Quality
deterministic score 0.47 from registry signals: · indexed on github topic:agent-skills · 30 github stars · SKILL.md body (2,934 chars)