How escanoreb22/project-brain works
project-brain is an engineering-discipline skill and companion toolkit for coding agents. A user describes a product; the skill routes planning and implementation through documented project artifacts, phase gates, verified work loops, and release readiness. The repository combines agent guidance, reference material, reusable production-document templates, deterministic Python checks, and multi-agent workflows. README-described connections are shown; sampled source also confirms the MCP server delegates to the Codex helper. Unsampled components are included only at the documented subsystem level.
Main entry points: pb.py Project CLI · SKILL.md Skill playbooks · plan-from-prd.js Plan from PRD · execution-engine.js Verified build loop
Components 23
Agent guidance
- Skill playbooks
SKILL.md - Engineering knowledge
references - Specialist agents
agents
Planning artifacts
- Production doc templates
assets/production-docs - Project memory
assets/project-template
Checks and tools
- Plan completeness gate
scripts/plan_check.py - Project CLI
scripts/pb.py - Memory utilities
scripts/project_brain.py - Code quality guard
scripts/code_guard.py - Security and secret scans
scripts/vuln_scan.py - Translation checks
scripts/i18n_check.py - Codex MCP server
scripts/codex_mcp.py - Codex delegation
scripts/codex_delegate.py
Agent workflows
- Plan from PRD
workflows/plan-from-prd.js - Project-map execution
workflows/map-loop.js - Verified build loop
workflows/execution-engine.js - Change review
workflows/review-changes.js - Security audit
workflows/security-audit.js - UI audit
workflows/ui-audit.js - Asset generation
workflows/asset-batch.js
Other components
- Product owner
- Codex CLI
- Real browser
Connections 20
- Product owner → Skill playbooks: describes product
README.md - Skill playbooks → Engineering knowledge: routes to knowledge
README.md - Skill playbooks → Plan from PRD: starts planning
- Plan from PRD → Production doc templates: writes plan artifacts
workflows/plan-from-prd.js - Plan from PRD → Plan completeness gate: checks completeness
workflows/plan-from-prd.js - Project CLI → Plan completeness gate: runs planning gate
README.md - Project-map execution → Project memory: follows project map
workflows/map-loop.js - Project-map execution → Verified build loop: assigns build work
workflows/map-loop.js - Verified build loop → Specialist agents: delegates roles
README.md - Verified build loop → Change review: requests batch review
- Change review → Specialist agents: runs review lenses
workflows/review-changes.js - Security audit → Specialist agents: runs audit roles
workflows/security-audit.js - UI audit → Real browser: audits pages
workflows/ui-audit.js - Asset generation → Codex MCP server: requests image work
- Codex MCP server → Codex delegation: dispatches tool calls
scripts/codex_mcp.py - Codex delegation → Codex CLI: runs Codex jobs
scripts/codex_delegate.py - Project CLI → Code quality guard: runs quality checks
README.md - Project CLI → Security and secret scans: runs security checks
README.md - Project CLI → Translation checks: runs translation checks
README.md - Skill playbooks → Project memory: resumes project work
README.md