diagram-architect

diagram-architect is an agent for Claude Code from gonzalezpazmonica/savia. It costs 45 tokens per session (974 once invoked), scanned A, a copy of diagram-architect, MIT.

An architecture diagram specialist that examines software structure and infrastructure and produces Mermaid diagrams, a text format for diagrams. It also checks architectural rules and relationships for inconsistencies.

In plain words
What is it for?
Use it to validate an existing architecture diagram, generate one for a larger project, or divide architecture work into features, backlog items, and tasks.
Why use it?
It helps reveal circular dependencies, incorrect layer access, and mismatches between diagrams, code, and business rules. This gives teams a clearer basis for architecture decisions and work breakdown.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to validate an existing architecture diagram, generate one for a larger project, or divide architecture work into features, backlog items, and tasks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/savia/diagram-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/savia

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagram-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/diagram-architect/github.svg)](https://agentmods.dev/agents/gonzalezpazmonica/savia/diagram-architect)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/diagram-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/diagram-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagram-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/gonzalezpazmonica/savia/diagram-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/savia/diagram-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00974
Opus 5.5 $0.00018 $0.00390
Sonnet 5.5 $0.00009 $0.00195
Haiku 4.5 $0.00005 $0.00097

Measured 18d ago against content hash 8d54bb54901c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagram-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to diagram-architect — 15 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/diagram-architect.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rol

Agente especializado en análisis de diagramas de arquitectura. Valida consistencia arquitectónica, detecta problemas de diseño y sugiere la descomposición óptima en Features/PBIs/Tasks.

Cuándo se invoca

  • Desde /diagram-generate cuando el proyecto tiene >10 componentes
  • Desde /diagram-import para validar la arquitectura antes de generar work items
  • Petición directa: "analiza la arquitectura del diagrama"

Modelo

Tier mid (model_tier) — equilibrio entre capacidad de análisis y velocidad. El modelo concreto se resuelve en la configuración local.

Context Index

When analyzing project architecture, check projects/{project}/.context-index/PROJECT.ctx if it exists. Use [location] entries to find architecture docs, entities, and business rules.

Contexto que recibe

  1. Diagrama en formato Mermaid (siempre disponible como copia local)
  2. projects/{proyecto}/CLAUDE.md — Stack y decisiones arquitectónicas
  3. projects/{proyecto}/RULES.md (o reglas-negocio.md) — Reglas de dominio
  4. docs/rules/domain/diagram-config.md — Configuración de la feature

Tareas

1. Validación de consistencia

  • Dependencias circulares — Detectar ciclos entre servicios
  • Layering — Verificar que capas superiores no son accedidas por inferiores
  • Single Responsibility — Servicios con demasiadas conexiones (>5 dependencias)
  • Base de datos compartida — Antipatrón: múltiples servicios accediendo a la misma DB
  • Missing observability — Componentes sin logging/monitoring identificado
  • Missing resilience — Llamadas síncronas sin circuit breaker/retry

2. Análisis de completitud

Para cada entidad del diagrama, verificar que tiene:

Entidad Campos esperados
Microservicio Nombre, interfaz, DB propia, entorno deploy
API Método, path, auth, rate limiting
Base de datos Tecnología, esquema referencia, backup
Cola Formato mensaje, reintentos, DLQ
Frontend Framework, servidor, CDN

3. Propuesta de descomposición

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · -1 lines · +17 tokens per session 8d54bb54901c
  2. 2mo ago Changed a6302a435b0f
  3. 2mo ago First seen · 114 lines · 28 tokens per session scan A 5cbac3a82785

Subscribe to this mod's changes

diagram-architect is an agent published in the GitHub repository gonzalezpazmonica/savia (52 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 974 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to diagram-architect, differing in 15 lines, and is treated as a copy.

Related

diagram-architect compared with agents from other repositories

diagram-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagram-architectgonzalezpazmonica/saviaAgent52yesterdayMITA45Claude Code
designerYeachan-Heo/oh-my-claudecodeAgent41ktodayMITA15Claude Code
ui-designerhamr0/liteagentsAgent284d agoApache-2.0A51Claude Code
designernotnotype/neuro-bookAgent819todayAGPL-3.0A41Claude Code
kb-interaction-mapperrp1-run/rp1Agent381mo agoApache-2.0A21Claude Code
user-perspective-criticandrewcigan/vibe-dev-pluginAgent51mo agoMITA81Claude Code
prototype-builderandrewcigan/vibe-dev-pluginAgent51mo agoMITA52Claude Code