# chavatta/gbpa-dev-playbook architecture

> Architecture diagram of the GitHub repository chavatta/gbpa-dev-playbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chavatta/gbpa-dev-playbook
- Repository: https://github.com/chavatta/gbpa-dev-playbook

## Overview

GBPA Dev Playbook is a reusable AI-assisted development playbook, not a conventional application. Its primary workflow starts when an engineer invokes `/task`, which opens a task and starts the scripted workflow; specialized agent roles contribute to the work, while governance and mechanical hooks provide quality and safety controls. Task templates and handoff guidance support persistent work artifacts. Other documented branches provide engineering practices, onboarding and governance, and cost/cache telemetry. The workflow implementation and most hooks were not sampled, so several relationships are shown only where README or excerpts support them; unsampled links are omitted.

Main entry points: [`.claude/workflows/gbpa-task.js`](https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/workflows/gbpa-task.js) (Task Workflow), [`scripts/telemetria/relatorio-custos.mjs`](https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/telemetria/relatorio-custos.mjs) (Cost And Cache Report), [`.claude/agents`](https://github.com/chavatta/gbpa-dev-playbook/tree/main/.claude/agents) (Agent Roles), [`tasks/_TEMPLATE/artifacts`](https://github.com/chavatta/gbpa-dev-playbook/tree/main/tasks/_TEMPLATE/artifacts) (Task Artifacts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_taskflow["Task Workflow"]
  node_task_skill["Task Skill<br/>[SKILL.md]"]
  node_workflow["Task Workflow<br/>[gbpa-task.js]"]
  node_specialists["Agent Roles<br/>[agents]"]
  node_task_templates["Task Templates"]
  node_handoff["Handoff Protocol"]
  node_task_artifacts["Task Artifacts"]
end

subgraph group_safety["Quality And Safety"]
  node_hooks["Safety Hooks<br/>[hooks]"]
  node_claude_settings["Claude Settings<br/>[settings.json]"]
  node_governance["Governance<br/>[GOVERNANCE.md]"]
end

subgraph group_guidance["Playbook Guidance"]
  node_practices["Engineering Practices"]
  node_onboarding["Onboarding<br/>[ONBOARDING.md]"]
  node_architecture["Agent Architecture<br/>[ARCHITECTURE.md]"]
  node_quiet_runner["Quiet Command Runner<br/>[run-quiet.mjs]"]
end

subgraph group_observability["Cost Telemetry"]
  node_transcripts[("Claude Transcripts")]
  node_cost_report["Cost And Cache Report"]
  node_price_data["Model Prices<br/>[precos.json]"]
end

node_engineer(("Engineer"))

node_engineer -->|"invokes"| node_task_skill
node_task_skill -->|"starts"| node_workflow
node_workflow -->|"dispatches"| node_specialists
node_specialists -->|"produce artifacts"| node_task_artifacts
node_workflow -.->|"records checkpoints"| node_task_artifacts
node_workflow -.->|"uses handoff guidance"| node_handoff
node_claude_settings -->|"registers"| node_hooks
node_governance -->|"defines safeguards"| node_hooks
node_practices -->|"configures commands"| node_quiet_runner
node_transcripts -->|"provides usage data"| node_cost_report
node_cost_report -->|"reads prices"| node_price_data
node_cost_report -->|"writes report"| node_task_artifacts
node_onboarding -.->|"guides adoption"| node_practices
node_architecture -.->|"describes roles"| node_specialists

click node_task_skill "https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/skills/task/SKILL.md"
click node_workflow "https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/workflows/gbpa-task.js"
click node_specialists "https://github.com/chavatta/gbpa-dev-playbook/tree/main/.claude/agents"
click node_task_templates "https://github.com/chavatta/gbpa-dev-playbook/tree/main/tasks/_TEMPLATE"
click node_handoff "https://github.com/chavatta/gbpa-dev-playbook/blob/main/multi-agents/HANDOFF-PROTOCOL.md"
click node_hooks "https://github.com/chavatta/gbpa-dev-playbook/tree/main/.claude/hooks"
click node_claude_settings "https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/settings.json"
click node_governance "https://github.com/chavatta/gbpa-dev-playbook/blob/main/GOVERNANCE.md"
click node_practices "https://github.com/chavatta/gbpa-dev-playbook/tree/main/praticas"
click node_onboarding "https://github.com/chavatta/gbpa-dev-playbook/blob/main/ONBOARDING.md"
click node_architecture "https://github.com/chavatta/gbpa-dev-playbook/blob/main/multi-agents/ARCHITECTURE.md"
click node_quiet_runner "https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/quiet/run-quiet.mjs"
click node_cost_report "https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/telemetria/relatorio-custos.mjs"
click node_price_data "https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/telemetria/precos.json"
click node_task_artifacts "https://github.com/chavatta/gbpa-dev-playbook/tree/main/tasks/_TEMPLATE/artifacts"

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_task_skill,node_workflow,node_specialists,node_task_templates,node_handoff,node_task_artifacts toneBlue
class node_hooks,node_claude_settings,node_governance toneAmber
class node_practices,node_onboarding,node_architecture,node_quiet_runner toneMint
class node_transcripts,node_cost_report,node_price_data toneRose
class node_engineer toneIndigo
```

## Components

### Task Workflow

- [Task Skill](https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/skills/task/SKILL.md): `.claude/skills/task/SKILL.md`
- [Task Workflow](https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/workflows/gbpa-task.js): `.claude/workflows/gbpa-task.js`
- [Agent Roles](https://github.com/chavatta/gbpa-dev-playbook/tree/main/.claude/agents): `.claude/agents`
- [Task Templates](https://github.com/chavatta/gbpa-dev-playbook/tree/main/tasks/_TEMPLATE): `tasks/_TEMPLATE`
- [Handoff Protocol](https://github.com/chavatta/gbpa-dev-playbook/blob/main/multi-agents/HANDOFF-PROTOCOL.md): `multi-agents/HANDOFF-PROTOCOL.md`
- [Task Artifacts](https://github.com/chavatta/gbpa-dev-playbook/tree/main/tasks/_TEMPLATE/artifacts): `tasks/_TEMPLATE/artifacts`

### Quality And Safety

- [Safety Hooks](https://github.com/chavatta/gbpa-dev-playbook/tree/main/.claude/hooks): `.claude/hooks`
- [Claude Settings](https://github.com/chavatta/gbpa-dev-playbook/blob/main/.claude/settings.json): `.claude/settings.json`
- [Governance](https://github.com/chavatta/gbpa-dev-playbook/blob/main/GOVERNANCE.md): `GOVERNANCE.md`

### Playbook Guidance

- [Engineering Practices](https://github.com/chavatta/gbpa-dev-playbook/tree/main/praticas): `praticas`
- [Onboarding](https://github.com/chavatta/gbpa-dev-playbook/blob/main/ONBOARDING.md): `ONBOARDING.md`
- [Agent Architecture](https://github.com/chavatta/gbpa-dev-playbook/blob/main/multi-agents/ARCHITECTURE.md): `multi-agents/ARCHITECTURE.md`
- [Quiet Command Runner](https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/quiet/run-quiet.mjs): `scripts/quiet/run-quiet.mjs`

### Cost Telemetry

- **Claude Transcripts**
- [Cost And Cache Report](https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/telemetria/relatorio-custos.mjs): `scripts/telemetria/relatorio-custos.mjs`
- [Model Prices](https://github.com/chavatta/gbpa-dev-playbook/blob/main/scripts/telemetria/precos.json): `scripts/telemetria/precos.json`

### Other components

- **Engineer**

## Connections

- Engineer → Task Skill: invokes (evidence: `README.md`)
- Task Skill → Task Workflow: starts (evidence: `README.md`)
- Task Workflow → Agent Roles: dispatches
- Agent Roles → Task Artifacts: produce artifacts
- Task Workflow → Task Artifacts: records checkpoints
- Task Workflow → Handoff Protocol: uses handoff guidance
- Claude Settings → Safety Hooks: registers (evidence: `README.md`)
- Governance → Safety Hooks: defines safeguards (evidence: `README.md`)
- Engineering Practices → Quiet Command Runner: configures commands (evidence: `scripts/quiet/run-quiet.mjs`)
- Claude Transcripts → Cost And Cache Report: provides usage data (evidence: `scripts/telemetria/relatorio-custos.mjs`)
- Cost And Cache Report → Model Prices: reads prices (evidence: `scripts/telemetria/relatorio-custos.mjs`)
- Cost And Cache Report → Task Artifacts: writes report (evidence: `scripts/telemetria/relatorio-custos.mjs`)
- Onboarding → Engineering Practices: guides adoption
- Agent Architecture → Agent Roles: describes roles
