PTENES
TRACK 4

πŸ—οΈ BMAD Method β€” Agent Framework

Install and configure the BMAD Method in Codex: @pm and @architect agents to create software using a professional product methodology.

6 modules ~45 minutes Node.js Β· npm Β· Intermediate

Learning path map

Detailed content

🟒 What It Is

BMAD Method is an npm framework that installs specialized agents in Codex CLI. Instead of writing prompts from scratch, you call @pm, @architect and other agents preconfigured for each stage of software development.

πŸ’‘ Why learn

With BMAD, Codex stops being a coding assistant and becomes a team: product manager, architect, developer, QA. Each agent knows exactly what to ask and what to deliver β€” without you having to build the prompt from scratch every time.

πŸ”‘ Available Agents

AgentFunctionDeliverable
@pmProduct ManagerPRD, user stories, roadmap
@architectSoftware architectDiagram, stack, API design
@devDeveloperCode, tests, refactor
@qaQuality AssuranceTest cases, bugs, coverage

🟒 What It Is

Installing the BMAD Method in your project takes less than 5 minutes. It takes 4 commands: initialize package.json, install the package, run the full setup, and integrate it with Codex.

πŸ’‘ Prerequisites

Node.js

version 18 or later

npm

comes with Node.js

Codex CLI

installed and logged in

πŸ”‘ Installation Commands

Complete step-by-step guide
# 1. Entre no seu projeto
cd meu-projeto

# 2. Inicialize o package.json (se nΓ£o existir)
npm init -y

# 3. Instale o BMAD como dependΓͺncia de dev
npm install bmad-method --save-dev

# 4. Rode o setup completo
npx bmad-method install --full

What --full does: creates the directories .agents/, docs/, copies PRD templates, installs agent definitions, and configures the base SKILL.md.

🟒 What It Is

To use BMAD with the Codex CLI (terminal), integrate it using the flag -i codex. This makes the setup recognize and load the BMAD agents into the Codex context.

πŸ”‘ Integration and Verification

Integration command
npx bmad-method install --full -i codex
Check integration status
npx bmad-method status

Returns: installed version, active agents, whether Codex integration is working.

First test task
codex "As dev, implement user login module"

πŸ’‘ What happens under the hood

Codex reads the SKILL.md created by BMAD and loads the agents’ context. β€œAs dev” activates the developer role β€” the agent responds with the right style and deliverables for that role.

🟒 What It Is

In addition to Codex CLI, you can use BMAD in the Codex Web (ChatGPT browser interface with Codex enabled). The integration uses the flag -i codex-web and generates files optimized for uploading to ChatGPT.

πŸ”‘ CLI vs. Web Comparison

FeatureCLI (-i codex)Web (-i codex-web)
Code executionβœ… directly in the terminalChatGPT sandbox
File uploadreads from the filesystemβœ… drag-and-drop
RequirementOpenAI API keyChatGPT Plus
Best forcomplete projectrapid prototyping
Command for Web integration
npx bmad-method install --full -i codex-web

This creates a file bmad-context.md optimized for pasting into ChatGPT Custom Instructions or System Prompt.

🟒 What It Is

BMAD agents are activated with a prefix @nome. Each takes on a complete professional role: @pm creates product documents, @architect defines the technical structure, @dev implements.

πŸ”‘ Essential Prompts by Agent

@pm β€” Product Manager
@pm Create PRD for a task management app with user auth

Deliverable: PRD document with objective, personas, user stories, and acceptance criteria.

@architect β€” Architect
@architect Design API structure for the task management PRD

Deliverable: tech stack, component diagram, REST endpoints, data schema.

Role-based activation (natural language)
As dev, implement user login module
As qa, write tests for the login module

🟒 What It Is

A complete BMAD project goes through these stages: PRD β†’ Architecture β†’ Implementation β†’ Tests β†’ Verification. Each stage is handled by a specialized agent, with automatic context handoff.

πŸ”‘ End-to-End Workflow

1
@pm creates PRD

Defines objectives, personas, features, acceptance criteria

2
@architect designs the structure

Stack, API, database, infrastructure

3
As dev, implement each module

Codex reads the PRD + architecture and generates the code

4
As qa, write the tests

Test cases based on the PRD acceptance criteria

5
Check and update BMAD

npx bmad-method update for new agent versions

Update command
npx bmad-method update

Keeps agents up to date without losing your local customizations.

← T3 Agent Builder Next: T5 Team β†’