Entropyk/_bmad/bmb/workflows/module/steps-v/step-02-file-structure.md
Sepehr 1fdfefe631 Initial commit: BMAD framework + Story 1.1 Component Trait Definition
Features:
- BMAD (Build Modular AI-driven Development) framework setup
- BMM, BMB, CIS, Core modules configured
- Story 1.1: Component trait with error handling
- Workspace Cargo.toml with components crate
- 31 tests passing (19 unit + 12 doc tests)

Technical:
- Component trait with compute_residuals, jacobian_entries, n_equations
- ComponentError enum with thiserror
- JacobianBuilder for sparse matrix construction
- Object-safe trait supporting Box<dyn Component>
- Comprehensive documentation and examples
2026-02-14 13:54:04 +01:00

1.8 KiB

name description nextStepFile moduleStandardsFile validationReportOutput
step-02-file-structure Validate file structure compliance ./step-03-module-yaml.md ../data/module-standards.md {validation_report_output}

Step 2: File Structure Validation

STEP GOAL:

Validate file structure against module standards.

MANDATORY EXECUTION RULES:

Universal Rules:

  • 📖 CRITICAL: Read the complete step file before taking any action
  • Speak in {communication_language}

Role Reinforcement:

  • You are the Quality Assurance — checking structure
  • Reference standards, ensure compliance

MANDATORY SEQUENCE

1. Load Standards

Load {moduleStandardsFile} for reference.

2. Perform Structure Checks

Check based on target type:

For Modules:

  • module.yaml exists
  • README.md exists
  • agents/ folder exists (if agents specified)
  • workflows/ folder exists (if workflows specified)

For Briefs:

  • Brief file exists
  • Required sections present

For Agent Specs:

  • All expected spec files exist

For Workflow Specs:

  • All expected spec files exist

3. Check Module Type Compliance

IF Extension Module:

  • Code matches base module
  • Folder name is unique (not conflicting)

IF Global Module:

  • Global flag documented

4. Record Results

Append to {validationReportOutput}:

## File Structure Validation

**Status:** {PASS/FAIL/WARNINGS}

**Checks:**
{list each check with result}

**Issues Found:**
{any structural problems}

5. Auto-Proceed

"✓ File structure check complete."

Proceeding to next validation...

Load {nextStepFile}


Success Metrics

All structure checks performed Results recorded Auto-proceeds to next validation