# Meta Diagram Triangulation

> Scan a target codebase path, classify the most informative diagram kind, then render it as BOTH a PlantUML source file AND a draw.io XML in parallel, and compose them into a single architecture doc. Use when writing an RFC or onboarding doc and you want a text-friendly (PlantUML) and an editable (drawio) view of the same architecture.

- Skill: `gabrielmoreira/meta-diagram-triangulation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gabrielmoreira/meta-diagram-triangulation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gabrielmoreira/meta-diagram-triangulation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gabrielmoreira (https://skillmd.com/u/gabrielmoreira)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/gabrielmoreira/meta-diagram-triangulation

---


# Diagram Triangulation (Meta-Skill)

A **classifier + parallel render** meta-skill. After scanning a target
path, an `llm_classify` step picks the most informative diagram kind
(one of `class | sequence | component | deploy | flow`), then **two
independent render branches** synthesize PlantUML source and draw.io
XML for the same scan — running in parallel because they are
independent tools serving different downstream uses (git-friendly text
review vs. editable canvas).

## Trigger surface

Fire by saying `diagram triangulation` or one of the localized triggers listed
in the frontmatter, with the target path or module reference in the same turn.

## Fallback

If either render step fails, `compose_doc` should still produce the
docx referencing whichever render succeeded; manually re-run the
failed render via `sub-agent` with the same scan output as input.

