Skip to content
Back to skills

Diagram To Adr

ASecurity

Draft a MADR Architecture Decision Record from an Excalidraw, draw.io, Mermaid, or BPMN diagram. Use when the user wants to capture the decision, options, and drivers shown by an architecture or process diagram.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentsgonodegit

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add me-cedric/agent-compass --skill diagram-to-adr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagram To Adr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagram To Adr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/me-cedric-diagram-to-adr/badge)](https://www.skillsdirectory.com/skills/me-cedric-diagram-to-adr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagram-to-adr
description: >
  Draft a MADR Architecture Decision Record from an Excalidraw, draw.io,
  Mermaid, or BPMN diagram. Use when the user wants to capture the decision,
  options, and drivers shown by an architecture or process diagram.
risk_level: low
writes_files: true
requires_tools: []
license: MIT
metadata:
  version: "2"
---

# Diagram to ADR

Read a diagram, infer the decision it shows, and draft a Markdown Architecture
Decision Record in [MADR 4.0](https://adr.github.io/madr/) format.

Its siblings are [`adr-from-meeting`](../adr-from-meeting/SKILL.md), which starts
from a transcript, and [`diagram-to-likec4`](../diagram-to-likec4/SKILL.md),
which turns an architecture diagram into a model.

## Inputs

Use a file the user names. Otherwise, look under `docs/drawings/`.

| Extension | Format | Read |
| --- | --- | --- |
| `.excalidraw` | Excalidraw JSON | Shape labels, arrow labels, and free text in `elements` |
| `.drawio` | draw.io XML | Cell labels and all pages |
| `.drawio.svg` | SVG with an embedded draw.io model | The root `content` attribute |
| `.mmd`, `.mermaid` | Mermaid text | Node text, link labels, and subgraph names |
| `.bpmn` | BPMN 2.0 XML | Task, event, gateway, and lane names |

Ignore HTML markup inside draw.io labels. When a draw.io page is compressed,
use `diagram-to-likec4` to decode it before you interpret its content.

A BPMN diagram describes a process. Focus its ADR on sequence, ownership,
exceptions, or the choice represented by a gateway.

## Output

Write `docs/decisions/NNN-<kebab-title>.md`, unless the host defines another ADR
path or numbering convention. Match the width and format of existing ADR names.
If none exist, start at `001`. Do not renumber or edit existing ADRs.

## MADR template

```markdown
---
status: "proposed"
date: <YYYY-MM-DD>
decision-makers: []
consulted: []
informed: []
---

# <short title>

## Context and Problem Statement

<Problem or decision question. Reference the source diagram.>

## Decision Drivers

- <driver>

## Considered Options

- <option>

## Decision Outcome

Chosen option: "<option>", because <reason>.

### Consequences

- Good, because <positive consequence>.
- Bad, because <negative consequence>.

## Pros and Cons of the Options

### <option>

- Good, because <argument>.
- Neutral, because <argument>.
- Bad, because <argument>.

## More Information

<Source diagram path and follow-up links.>
```

## Procedure

1. Identify the decision, options, and drivers shown by the diagram.
2. Determine the next ADR number from the host convention.
3. Write the complete MADR. Keep `status: "proposed"` and set the current date.
4. Use `TODO:` for every field the diagram does not establish.
5. Reference the source diagram under **More Information**.

Never fabricate decision-makers, options, or an outcome. A diagram is evidence,
not proof that the team agreed to a decision.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.