# dxaraujo/sabia architecture

> Architecture diagram of the GitHub repository dxaraujo/sabia, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dxaraujo/sabia
- Repository: https://github.com/dxaraujo/sabia

## Overview

Sabiá is an AI-assisted product-development workflow framework: people and agents move work from intake through refinement, planning, specification, implementation, review, and acceptance, with optional IBM ELM traceability. Its skills define the domain procedures; the CLI compiles and generates agent configurations and provides project status, Kanban, ceremonies, and metrics. The README documents the major workflow transitions; sampled CLI excerpts support the internal command and reporting links. Other skill-level relationships are shown only where the README explicitly documents them.

Main entry points: [`skills/sa-desenvolver/SKILL.md`](https://github.com/dxaraujo/sabia/blob/main/skills/sa-desenvolver/SKILL.md) (Development), [`cli/sabia.mjs`](https://github.com/dxaraujo/sabia/blob/main/cli/sabia.mjs) (CLI Router), [`skills/sa-refinar/SKILL.md`](https://github.com/dxaraujo/sabia/blob/main/skills/sa-refinar/SKILL.md) (Refinement), [`cli/kanban.mjs`](https://github.com/dxaraujo/sabia/blob/main/cli/kanban.mjs) (Kanban Board)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Intake and Refinement"]
  node_triage["Triage<br/>[SKILL.md]"]
  node_research["Research and Interview<br/>[SKILL.md]"]
  node_refinement["Refinement<br/>[SKILL.md]"]
end

subgraph group_planning["Planning and Specification"]
  node_prd["Product Requirements<br/>[SKILL.md]"]
  node_planning_work["Team Planning<br/>[SKILL.md]"]
  node_plan["Technical Plan<br/>[SKILL.md]"]
  node_specification["Specification<br/>[SKILL.md]"]
  node_elm["ELM Integration"]
end

subgraph group_delivery["Build and Acceptance"]
  node_development["Development<br/>[SKILL.md]"]
  node_support["Sustaining Work<br/>[SKILL.md]"]
  node_review["Code Review<br/>[SKILL.md]"]
  node_verification["Verification and Acceptance<br/>[SKILL.md]"]
end

subgraph group_cli["CLI and Agent Setup"]
  node_setup["Project Setup<br/>[SKILL.md]"]
  node_compiler["Skill Compiler<br/>[compilar.mjs]"]
  node_agents["Agent Generator<br/>[agentes.mjs]"]
  node_command["CLI Router<br/>[sabia.mjs]"]
end

subgraph group_visibility["Project Visibility"]
  node_status["Project Status<br/>[status.mjs]"]
  node_kanban["Kanban Board<br/>[kanban.mjs]"]
  node_actions["Board Actions<br/>[acoes.mjs]"]
  node_metrics["Flow Metrics<br/>[metricas.mjs]"]
  node_ceremonies["Team Ceremonies<br/>[cerimonia.mjs]"]
  node_status_skill["Status Workflows<br/>[SKILL.md]"]
end

node_people(("People and Agents"))

node_people -->|"registers work"| node_triage
node_triage -->|"routes accepted work"| node_refinement
node_refinement -->|"invested epic"| node_prd
node_prd -->|"enables slicing"| node_refinement
node_refinement -.->|"feeds backlog"| node_planning_work
node_people -->|"requests facts"| node_research
node_people -->|"plans iteration"| node_planning_work
node_people -->|"records decisions"| node_specification
node_people -->|"starts implementation"| node_development
node_development -->|"uses plan"| node_plan
node_development -->|"opens merge request"| node_review
node_review -->|"supports acceptance"| node_verification
node_verification -.->|"returns accepted work"| node_development
node_development -->|"archives spec"| node_specification
node_specification -.->|"publishes optionally"| node_elm
node_people -->|"handles sustaining"| node_support
node_people -->|"configures project"| node_setup
node_setup -.->|"configures agents"| node_agents
node_command -->|"generates agents"| node_agents
node_agents -->|"loads framework"| node_compiler
node_command -.->|"reads project state"| node_status
node_command -->|"opens board"| node_kanban
node_kanban -.->|"builds board view"| node_status
node_kanban -->|"submits actions"| node_actions
node_actions -->|"uses state readers"| node_status
node_command -->|"opens ceremonies"| node_ceremonies
node_ceremonies -->|"loads sprint summary"| node_metrics
node_ceremonies -->|"uses board helpers"| node_kanban
node_metrics -->|"reads sprint data"| node_status
node_people -->|"checks work"| node_status_skill
node_status_skill -->|"supports daily planning"| node_planning_work

click node_triage "https://github.com/dxaraujo/sabia/blob/main/skills/sa-triar/SKILL.md"
click node_research "https://github.com/dxaraujo/sabia/blob/main/skills/sa-pesquisar/SKILL.md"
click node_refinement "https://github.com/dxaraujo/sabia/blob/main/skills/sa-refinar/SKILL.md"
click node_prd "https://github.com/dxaraujo/sabia/blob/main/skills/sa-prd/SKILL.md"
click node_planning_work "https://github.com/dxaraujo/sabia/blob/main/skills/sa-planejamento/SKILL.md"
click node_plan "https://github.com/dxaraujo/sabia/blob/main/skills/sa-plano/SKILL.md"
click node_specification "https://github.com/dxaraujo/sabia/blob/main/skills/sa-especificar/SKILL.md"
click node_elm "https://github.com/dxaraujo/sabia/tree/main/fluxo/sa-elm"
click node_development "https://github.com/dxaraujo/sabia/blob/main/skills/sa-desenvolver/SKILL.md"
click node_support "https://github.com/dxaraujo/sabia/blob/main/skills/sa-atender/SKILL.md"
click node_review "https://github.com/dxaraujo/sabia/blob/main/skills/sa-revisar/SKILL.md"
click node_verification "https://github.com/dxaraujo/sabia/blob/main/skills/sa-verificar/SKILL.md"
click node_setup "https://github.com/dxaraujo/sabia/blob/main/skills/sa-setup/SKILL.md"
click node_compiler "https://github.com/dxaraujo/sabia/blob/main/cli/compilar.mjs"
click node_agents "https://github.com/dxaraujo/sabia/blob/main/cli/agentes.mjs"
click node_command "https://github.com/dxaraujo/sabia/blob/main/cli/sabia.mjs"
click node_status "https://github.com/dxaraujo/sabia/blob/main/cli/status.mjs"
click node_kanban "https://github.com/dxaraujo/sabia/blob/main/cli/kanban.mjs"
click node_actions "https://github.com/dxaraujo/sabia/blob/main/cli/acoes.mjs"
click node_metrics "https://github.com/dxaraujo/sabia/blob/main/cli/metricas.mjs"
click node_ceremonies "https://github.com/dxaraujo/sabia/blob/main/cli/cerimonia.mjs"
click node_status_skill "https://github.com/dxaraujo/sabia/blob/main/skills/sa-status/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_triage,node_research,node_refinement toneBlue
class node_prd,node_planning_work,node_plan,node_specification,node_elm toneAmber
class node_development,node_support,node_review,node_verification toneMint
class node_setup,node_compiler,node_agents,node_command toneRose
class node_status,node_kanban,node_actions,node_metrics,node_ceremonies,node_status_skill,node_people toneIndigo
```

## Components

### Intake and Refinement

- [Triage](https://github.com/dxaraujo/sabia/blob/main/skills/sa-triar/SKILL.md): `skills/sa-triar/SKILL.md`
- [Research and Interview](https://github.com/dxaraujo/sabia/blob/main/skills/sa-pesquisar/SKILL.md): `skills/sa-pesquisar/SKILL.md`
- [Refinement](https://github.com/dxaraujo/sabia/blob/main/skills/sa-refinar/SKILL.md): `skills/sa-refinar/SKILL.md`

### Planning and Specification

- [Product Requirements](https://github.com/dxaraujo/sabia/blob/main/skills/sa-prd/SKILL.md): `skills/sa-prd/SKILL.md`
- [Team Planning](https://github.com/dxaraujo/sabia/blob/main/skills/sa-planejamento/SKILL.md): `skills/sa-planejamento/SKILL.md`
- [Technical Plan](https://github.com/dxaraujo/sabia/blob/main/skills/sa-plano/SKILL.md): `skills/sa-plano/SKILL.md`
- [Specification](https://github.com/dxaraujo/sabia/blob/main/skills/sa-especificar/SKILL.md): `skills/sa-especificar/SKILL.md`
- [ELM Integration](https://github.com/dxaraujo/sabia/tree/main/fluxo/sa-elm): `fluxo/sa-elm`

### Build and Acceptance

- [Development](https://github.com/dxaraujo/sabia/blob/main/skills/sa-desenvolver/SKILL.md): `skills/sa-desenvolver/SKILL.md`
- [Sustaining Work](https://github.com/dxaraujo/sabia/blob/main/skills/sa-atender/SKILL.md): `skills/sa-atender/SKILL.md`
- [Code Review](https://github.com/dxaraujo/sabia/blob/main/skills/sa-revisar/SKILL.md): `skills/sa-revisar/SKILL.md`
- [Verification and Acceptance](https://github.com/dxaraujo/sabia/blob/main/skills/sa-verificar/SKILL.md): `skills/sa-verificar/SKILL.md`

### CLI and Agent Setup

- [Project Setup](https://github.com/dxaraujo/sabia/blob/main/skills/sa-setup/SKILL.md): `skills/sa-setup/SKILL.md`
- [Skill Compiler](https://github.com/dxaraujo/sabia/blob/main/cli/compilar.mjs): `cli/compilar.mjs`
- [Agent Generator](https://github.com/dxaraujo/sabia/blob/main/cli/agentes.mjs): `cli/agentes.mjs`
- [CLI Router](https://github.com/dxaraujo/sabia/blob/main/cli/sabia.mjs): `cli/sabia.mjs`

### Project Visibility

- [Project Status](https://github.com/dxaraujo/sabia/blob/main/cli/status.mjs): `cli/status.mjs`
- [Kanban Board](https://github.com/dxaraujo/sabia/blob/main/cli/kanban.mjs): `cli/kanban.mjs`
- [Board Actions](https://github.com/dxaraujo/sabia/blob/main/cli/acoes.mjs): `cli/acoes.mjs`
- [Flow Metrics](https://github.com/dxaraujo/sabia/blob/main/cli/metricas.mjs): `cli/metricas.mjs`
- [Team Ceremonies](https://github.com/dxaraujo/sabia/blob/main/cli/cerimonia.mjs): `cli/cerimonia.mjs`
- [Status Workflows](https://github.com/dxaraujo/sabia/blob/main/skills/sa-status/SKILL.md): `skills/sa-status/SKILL.md`

### Other components

- **People and Agents**

## Connections

- People and Agents → Triage: registers work (evidence: `README.md`)
- Triage → Refinement: routes accepted work (evidence: `README.md`)
- Refinement → Product Requirements: invested epic (evidence: `README.md`)
- Product Requirements → Refinement: enables slicing (evidence: `README.md`)
- Refinement → Team Planning: feeds backlog
- People and Agents → Research and Interview: requests facts (evidence: `README.md`)
- People and Agents → Team Planning: plans iteration (evidence: `README.md`)
- People and Agents → Specification: records decisions (evidence: `README.md`)
- People and Agents → Development: starts implementation (evidence: `README.md`)
- Development → Technical Plan: uses plan (evidence: `README.md`)
- Development → Code Review: opens merge request (evidence: `README.md`)
- Code Review → Verification and Acceptance: supports acceptance (evidence: `README.md`)
- Verification and Acceptance → Development: returns accepted work
- Development → Specification: archives spec (evidence: `README.md`)
- Specification → ELM Integration: publishes optionally (evidence: `README.md`)
- People and Agents → Sustaining Work: handles sustaining (evidence: `README.md`)
- People and Agents → Project Setup: configures project (evidence: `README.md`)
- Project Setup → Agent Generator: configures agents
- CLI Router → Agent Generator: generates agents (evidence: `cli/sabia.mjs`)
- Agent Generator → Skill Compiler: loads framework (evidence: `cli/agentes.mjs`)
- CLI Router → Project Status: reads project state (evidence: `cli/sabia.mjs`)
- CLI Router → Kanban Board: opens board (evidence: `cli/sabia.mjs`)
- Kanban Board → Project Status: builds board view (evidence: `cli/kanban.mjs`)
- Kanban Board → Board Actions: submits actions (evidence: `cli/kanban.mjs`)
- Board Actions → Project Status: uses state readers (evidence: `cli/acoes.mjs`)
- CLI Router → Team Ceremonies: opens ceremonies (evidence: `cli/sabia.mjs`)
- Team Ceremonies → Flow Metrics: loads sprint summary (evidence: `cli/cerimonia.mjs`)
- Team Ceremonies → Kanban Board: uses board helpers (evidence: `cli/cerimonia.mjs`)
- Flow Metrics → Project Status: reads sprint data (evidence: `cli/metricas.mjs`)
- People and Agents → Status Workflows: checks work (evidence: `README.md`)
- Status Workflows → Team Planning: supports daily planning (evidence: `README.md`)
