Files
BMAD-METHOD/docs/reference/modules.md
T
Emmanuel Atsé cede485217 feat(docs): Add sidebar order validator for doc frontmatter (#2409)
* feat(docs): add sidebar order validator

Adds tools/validate-sidebar-order.js to validate sidebar.order values
in YAML frontmatter across English and translated docs.

Checks for duplicate orders, gaps in sequence, and missing order fields.
For translations, also warns on order drift from English counterparts.
Wired into the quality script as docs:validate-sidebar.

* fix(validate-sidebar): tighten language detection and drift guard, add docstrings

* fix(validate-sidebar): replace subdirectory heuristic with locale pattern matching

detectLanguageDirs() previously classified any top-level docs/ directory
containing subdirectories as a translation language. This was too broad —
if an English section ever gained nested subfolders it would be silently
excluded from validation.

Replaced with a BCP 47 locale-code regex (/^[a-z]{2}(?:-[a-zA-Z]{2})?$/)
that matches known patterns (cs, fr, vi-vn, zh-cn) and won't falsely
classify content sections like explanation/ or reference/.

* fix(validate-sidebar): guard drift check against undefined order values

extractSidebarOrder() returns { hasSidebar: false } when no sidebar block
exists, leaving order as undefined rather than null. The drift check only
guarded against null, allowing undefined values to emit noisy warnings
like "Order drift: ... order undefined".

Changed the guard to typeof === 'number' which correctly excludes both
undefined and null without relying on a specific sentinel value.

* chore(validate-sidebar): add JSDoc docstrings to all functions

Adds @param and @returns annotations to extractSidebarOrder,
detectLanguageDirs, getEnglishSections, checkDirectory,
checkTranslationDrift, and relativePath.

* fix(validate-sidebar): add to pre-commit hook

* refactor(validate-sidebar): harden parsing and edge-case handling

Refactor to main() wrapper with pure return-based APIs, single directory
scan, and shared reporting. Harden frontmatter parsing (anchored delimiter,
direct-child-only order extraction, flow mapping support) and validation
(Infinity/zero guard, gap flood cap, multi-segment locales, graceful ENOENT).

* docs: fix sidebar.order duplicates and gaps across all locales

Resolves all validator errors flagged by the new
tools/validate-sidebar-order.js check.

English (docs/{explanation,how-to,reference}/):
- Renumbered to remove duplicates; established reading order
  for new explanation pages added since orders were last set.

Translations (cs, fr, vi-vn, zh-cn):
- Mirrored English structural ordering where files exist, then
  compacted to 1..N within each directory to eliminate gaps
  caused by missing translation files.

Non-blocking drift warnings remain where translation directories
have fewer files than English; these are expected per the
validator's design.

---------

Co-authored-by: Brian Madison <bmadcode@gmail.com>
2026-05-25 10:15:37 -05:00

3.7 KiB

title, description, sidebar
title description sidebar
Official Modules Add-on modules for building custom agents, creative intelligence, game development, and testing
order
5

BMad extends through official modules that you select during installation. These add-on modules provide specialized agents, workflows, and tasks for specific domains beyond the built-in core and BMM (Agile suite).

:::tip[Installing Modules] Run npx bmad-method install and select the modules you want. The installer handles downloading, configuration, and IDE integration automatically. :::

BMad Builder

Create custom agents, workflows, and domain-specific modules with guided assistance. BMad Builder is the meta-module for extending the framework itself.

Provides:

  • Agent Builder -- create specialized AI agents with custom expertise and tool access
  • Workflow Builder -- design structured processes with steps and decision points
  • Module Builder -- package agents and workflows into shareable, publishable modules
  • Interactive setup with YAML configuration and npm publishing support

Creative Intelligence Suite

AI-powered tools for structured creativity, ideation, and innovation during early-stage development. The suite provides multiple agents that facilitate brainstorming, design thinking, and problem-solving using proven frameworks.

Provides:

  • Innovation Strategist, Design Thinking Coach, and Brainstorming Coach agents
  • Problem Solver and Creative Problem Solver for systematic and lateral thinking
  • Storyteller and Presentation Master for narratives and pitches
  • Ideation frameworks including SCAMPER, Reverse Brainstorming, and problem reframing

Game Dev Studio

Structured game development workflows adapted for Unity, Unreal, Godot, and custom engines. Supports rapid prototyping through Quick Flow and full-scale production with epic-driven sprints.

Provides:

  • Game Design Document (GDD) generation workflow
  • Quick Dev mode for rapid prototyping
  • Narrative design support for characters, dialogue, and world-building
  • Coverage for 21+ game types with engine-specific architecture guidance

Test Architect (TEA)

Enterprise-grade test strategy, automation guidance, and release gate decisions through an expert agent and nine structured workflows. TEA goes well beyond the built-in QA agent with risk-based prioritization and requirements traceability.

Provides:

  • Murat agent (Master Test Architect and Quality Advisor)
  • Workflows for test design, ATDD, automation, test review, and traceability
  • NFR assessment, CI setup, and framework scaffolding
  • P0-P3 prioritization with optional Playwright Utils and MCP integrations

Community Modules

Community modules and a module marketplace are coming. Check the BMad GitHub organization for updates.