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.
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspaceWrote 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.
[](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/diagram-architect)<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/diagram-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/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.
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/diagram-architect"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/diagram-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.00922 |
| Opus 5 | $0.00014 | $0.00461 |
| Sonnet 5 | $0.00006 | $0.00184 |
| Haiku 4.5 | $0.00003 | $0.00092 |
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 11d 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.
This is a copy
100% identical to diagram-architect — 0 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.
How it starts
The opening of the file, as written. The whole thing — 114 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-generatecuando el proyecto tiene >10 componentes - Desde
/diagram-importpara validar la arquitectura antes de generar work items - Petición directa: "analiza la arquitectura del diagrama"
Modelo
claude-sonnet-4-6 — Balance entre capacidad de análisis y velocidad
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
- Diagrama en formato Mermaid (siempre disponible como copia local)
projects/{proyecto}/CLAUDE.md— Stack y decisiones arquitectónicasprojects/{proyecto}/RULES.md (o reglas-negocio.md)— Reglas de dominiodocs/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
Sugerir agrupación de entidades en:
- Features — Un Feature por bounded context o módulo mayor
- PBIs — Un PBI por funcionalidad implementable de forma independiente
- Tasks — Derivadas de la skill
pbi-decomposition(no duplicar lógica)
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.
- 11d ago First seen · 114 lines · 28 tokens per session scan A 5cbac3a82785
diagram-architect is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 5d ago), licensed MIT. It adds 28 tokens to every session and 922 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to diagram-architect, differing in 0 lines, and is treated as a copy.
Other agents, from other repositories
ux-flow-auditor
Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…
ijfw-accessibility-reviewer
Design-phase WCAG 2.1 AA review of UI artefacts: contrast, semantics, focus, ARIA. Trigger per design review pass.
Design System Auditor
Design system accessibility auditor. Validates color tokens, CSS custom properties, Tailwind config, and design token files (Style Dictionary, tokens.json) for WCAG AA/AAA contrast compliance. Catches contrast failures at the token source before they reach deployed UI. Also validates focus ring tokens (WCAG 2.4.13…
design
Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.
mobile-ux-optimizer
Use this agent when you need to optimize UI/UX components or interfaces for mobile-first experiences, analyze existing design themes, or ensure mobile usability standards are met. Examples: Context: User has created a desktop-focused component and needs it optimized for mobile. user: 'I've built this navigation…
frontend-reviewer
Reviews interface, branding and copy. Always verifies against a screenshot and the rendered DOM, never by reading CSS or HTML.