Skip to content
bmad-integration logo

BMAD Integration Skill

bmad-integration

Integracao com BMAD Method para escala adaptativa e workflows guiados. Detecta nivel de complexidade e ajusta agentes automaticamente. Use quando: iniciar workflow, detectar complexidade, mapear agentes BMAD.

SKILL.md

Full skill instructions

BMAD Integration Skill

Proposito

Esta skill integra conceitos do BMAD Method para:

  1. Escala Adaptativa - Detectar nivel de complexidade (0-3)
  2. Workflow Mapping - Mapear workflows BMAD para agentes locais
  3. Role Alignment - Alinhar roles BMAD com agentes do SDLC

BMAD Overview

BMAD Method oferece:

  • 21 agentes especializados
  • 50+ workflows guiados
  • 3 modulos: BMM (core), BMB (builder), CIS (criativo)
  • Escala adaptativa Level 0-4

Escala Adaptativa

Level 0 - Quick Flow

trigger:
  - bug fix
  - typo
  - hotfix
  - small change
  - patch

agents: [code-author, code-reviewer]
skip_phases: [0, 1, 2, 3, 4]
estimated_time: "~5 min"
human_approval: false

Level 1 - Feature

trigger:
  - new feature in existing service
  - enhancement
  - improvement
  - minor change

agents:
  - requirements-analyst
  - code-author
  - test-author
  - code-reviewer
skip_phases: [0, 1, 3]
estimated_time: "~15-30 min"
human_approval: false

Level 2 - Product/​Service

trigger:
  - new product
  - new service
  - new integration
  - major feature
  - new domain

agents: "ALL"
skip_phases: []
estimated_time: "~1-4 hours"
human_approval: true
approval_gates: [phase-2-to-3, phase-6-to-7]

Level 3 - Enterprise

trigger:
  - compliance requirement
  - multi-team effort
  - critical system
  - security sensitive
  - high risk

agents: "ALL"
skip_phases: []
estimated_time: "variable"
human_approval: true
approval_gates: "ALL"
extra_requirements:
  - compliance_review
  - security_review
  - architecture_review
  - legal_review

Role Mapping

BMAD RoleNosso AgenteFase
Discovery Agentdomain-researcher1
Product Managerproduct-owner2
Requirements Agentrequirements-analyst2
UX Designerux-writer2
Architectsystem-architect3
Data Architectdata-architect3
Security Expertthreat-modeler3
Scrum Masterdelivery-planner4
Developercode-author5
Code Reviewercode-reviewer5
Test Engineertest-author5
QA Expertqa-analyst6
DevOpscicd-engineer7
SREobservability-engineer8

Deteccao de Complexidade

Algoritmo

def detect_complexity(request: str, context: dict) -> int:
    """Detecta nivel de complexidade baseado na request."""

    # Keywords por nivel
    level_0_keywords = [
        "fix", "typo", "bug", "hotfix", "patch",
        "corrigir", "ajustar", "pequeno"
    ]

    level_1_keywords = [
        "feature", "enhancement", "add", "improve",
        "funcionalidade", "melhoria", "adicionar"
    ]

    level_2_keywords = [
        "new service", "new product", "integration",
        "novo servico", "novo produto", "integracao"
    ]

    level_3_keywords = [
        "compliance", "security", "critical", "multi-team",
        "enterprise", "audit", "gdpr", "lgpd", "pci"
    ]

    request_lower = request.lower()

    # Verificar level 3 primeiro (mais restritivo)
    if any(kw in request_lower for kw in level_3_keywords):
        return 3

    if any(kw in request_lower for kw in level_2_keywords):
        return 2

    if any(kw in request_lower for kw in level_1_keywords):
        return 1

    # Verificar contexto
    if context.get("affected_services", 0) >= 3:
        return 3

    if context.get("new_service", False):
        return 2

    if context.get("existing_service", True):
        return 1

    # Default: feature
    return 1

Workflow Templates

Quick Flow (Level 0)

workflow: quick_flow
steps:
  - agent: code-author
    action: implement_fix
    validation: compile_check

  - agent: code-reviewer
    action: quick_review
    validation: no_blockers

  - action: commit_and_push
    validation: ci_pass

Feature Flow (Level 1)

workflow: feature_flow
steps:
  - phase: 2
    agent: requirements-analyst
    action: clarify_requirements
    output: user_story

  - phase: 5
    agents: [code-author, test-author]
    action: implement_with_tests
    output: [code, tests]

  - phase: 5
    agent: code-reviewer
    action: review
    validation: approved

  - phase: 6
    agent: qa-analyst
    action: validate
    validation: quality_ok

Full SDLC (Level 2)

workflow: full_sdlc
steps:
  - phase: 0
    agents: [intake-analyst, compliance-guardian]
    gate: phase-0-to-1

  - phase: 1
    agents: [domain-researcher, rag-curator]
    gate: phase-1-to-2

  - phase: 2
    agents: [product-owner, requirements-analyst]
    output: spec
    gate: phase-2-to-3

  - phase: 3
    agents: [system-architect, adr-author, threat-modeler]
    output: [architecture, adrs, threat_model]
    gate: phase-3-to-4

  # ... continua para todas as fases

Integracao

Com orchestrator

O orchestrator usa bmad-integration para:

  1. Detectar nivel na entrada
  2. Selecionar workflow apropriado
  3. Configurar gates necessarios
  4. Definir aprovacoes humanas

Com gate-evaluator

Complexidade afeta rigor dos gates:

  • Level 0-1: Gates simplificados
  • Level 2: Gates padrao
  • Level 3: Gates estendidos + extra reviews

Scripts

detect_level.py

#!/​usr/​bin/​env python3
"""Detecta nivel de complexidade de uma request."""
import sys
import json

def detect_level(request: str) -> dict:
    # Implementacao do algoritmo
    level = 1  # default

    keywords = {
        0: ["fix", "bug", "typo", "hotfix"],
        1: ["feature", "add", "improve"],
        2: ["new service", "integration", "new product"],
        3: ["compliance", "security", "critical", "multi-team"]
    }

    request_lower = request.lower()

    for lvl in [3, 2, 1, 0]:
        if any(kw in request_lower for kw in keywords[lvl]):
            level = lvl
            break

    return {
        "level": level,
        "workflow": ["quick_flow", "feature_flow", "full_sdlc", "enterprise_flow"][level],
        "human_approval": level >= 2,
        "estimated_time": ["~5min", "~15min", "~1-4h", "variable"][level]
    }

if __name__ == "__main__":
    request = " ".join(sys.argv[1:]) if len(sys.argv) > 1 else ""
    result = detect_level(request)
    print(json.dumps(result, indent=2))

Pontos de Pesquisa

Para melhorar:

  • BMAD Method GitHub
  • "adaptive software development workflows"
  • "complexity detection in software projects"

Referencias

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View