Overview
Omni Architect implements a sequential 5-phase pipeline with built-in feedback loops. Each phase is executed by a specialized sub-skill, producing structured outputs that feed into the next phase.Phase 1: PRD Parser
Skill:prd-parsePurpose: Extract semantic structure from Markdown PRD
What It Extracts
| Element | Description |
|---|---|
features | List of functionalities with priority and complexity |
user_stories | User stories in “As X, I want Y, so that Z” format |
entities | Domain entities and their attributes |
flows | Business flows and their steps |
requirements | Functional and non-functional requirements |
acceptance_criteria | Acceptance criteria per feature |
dependencies | Dependencies between features |
personas | Identified user personas |
Parsing Algorithm
Classification Heuristics
The parser uses pattern matching to classify sections:| Pattern in Text | Classification |
|---|---|
| ”Como [persona], quero…” / “As [persona], I want…” | User Story |
| ”Requisito:”, “Deve…” / “Requirement:”, “Must…” | Functional Requirement |
| ”Performance:”, “Segurança:” / “Security:”, “Performance:“ | Non-Functional Requirement |
| Tables with attributes | Domain Entity |
| ”Fluxo:”, numbered step lists / “Flow:”, numbered lists | Business Flow |
| ”Critério de aceite”, checkboxes / “Acceptance criteria” | Acceptance Criteria |
Example Output: Parsed PRD
Example Output: Parsed PRD
Phase 2: Mermaid Generator
Skill:mermaid-genPurpose: Generate Mermaid diagrams from parsed PRD structure
PRD to Diagram Mapping
| PRD Element | Mermaid Type | Purpose |
|---|---|---|
flows | flowchart TD | Visualize business flows |
user_stories | sequenceDiagram | Show actor-system interactions |
entities | erDiagram | Model data and relationships |
features.states | stateDiagram-v2 | State machines per feature |
system_overview | C4Context | High-level architectural view |
personas + journeys | journey | User journey maps |
dependencies + timeline | gantt | Roadmap and temporal dependencies |
Generation Rules
Example: Flowchart Generation
From a checkout flow in the PRD, the generator produces:Generated Flowchart
Generated Flowchart
Example: ER Diagram Generation
Generated ER Diagram
Generated ER Diagram
Example: Sequence Diagram Generation
Generated Sequence Diagram
Generated Sequence Diagram
Automatic splitting: If a diagram would exceed 50 nodes, it’s automatically split into sub-diagrams with an index diagram linking them together.
Phase 3: Logic Validator
Skill:logic-validatePurpose: Validate diagram coherence against the original PRD This phase implements a sophisticated validation engine that analyzes diagrams against six weighted criteria. See Validation Scoring for complete details.
Validation Modes
| Mode | Behavior |
|---|---|
interactive | Present each diagram with its score, await user approval/rejection/modification |
batch | Present all diagrams with consolidated report, await bulk decision |
auto | Auto-approve if score >= validation_threshold, otherwise reject |
Validation Flow
Example Validation Report
Example Validation Report
Phase 4: Figma Generator
Skill:figma-genPurpose: Generate design assets in Figma from validated diagrams
Diagram to Figma Asset Mapping
| Mermaid Diagram | Figma Asset | Description |
|---|---|---|
flowchart | User Flow Page | Wireframe flows with connected screens |
sequenceDiagram | Interaction Spec Component | Interaction specifications per screen |
erDiagram | Data Model Documentation | Visual data model documentation |
stateDiagram | State Management Component | UI states per component |
C4Context | Architecture Overview Page | Stylized architectural diagram |
journey | User Journey Map Frame | Visual user journey map |
Generation Process
Generated Figma Structure
Rate limiting: The generator implements exponential backoff (1s, 2s, 4s, 8s) with a maximum of 5 retries to handle Figma API rate limits gracefully.
Phase 5: Asset Delivery
Skill:asset-deliverPurpose: Consolidate all outputs into a structured delivery package
Deliverables
| Artifact | Format | Description |
|---|---|---|
| PRD Parseado | JSON | Semantic structure extracted from PRD |
| Diagramas Mermaid | .mmd + SVG/PNG | Source code + rendered diagrams |
| Relatório de Validação | JSON + Markdown | Validation score and details |
| Figma Assets | Figma Nodes | Direct links to Figma frames |
| Orchestration Log | JSON | Complete log with metrics and timeline |
| Design Handoff Doc | Markdown | Handoff documentation for developers |
Output Structure
Error Handling & Edge Cases
| Scenario | Behavior |
|---|---|
| PRD incomplete (score < 0.6) | Emit warnings + suggestions, continue with available data |
| PRD without user stories | Generate only ER and C4, skip sequence diagrams |
| Invalid Mermaid syntax | Auto-retry with correction (max 3 attempts) |
| Figma API rate limit | Exponential backoff (1s, 2s, 4s, 8s) with max 5 retries |
| Expired Figma token | Clear error with token renewal instructions |
| Validation rejected (interactive) | Capture user feedback and regenerate specific diagram |
| Ambiguous entities in PRD | List ambiguities in validation_report.warnings |
| Diagram too complex (>100 nodes) | Auto-split into sub-diagrams with index diagram |
| Network timeout | Retry with progressive timeout, save state for resumption |
| PRD in different language than locale | Auto-detect language and translate labels per locale config |
Next Steps
Skills System
Learn how sub-skills are orchestrated
Validation Scoring
Deep dive into the 6-criteria validation system
Configuration
Configure the pipeline for your project
Skills Reference
Complete skills API documentation