# Compose diagram

> Compose diagram is an open-source agent skill for enterprise it. Builds and edits LeanIX diagrams from fact sheets, relations and plain shapes. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/SAP/leanix-ai-plugins/tree/main/skills/compose-diagram
- **Repository:** https://github.com/sap/leanix-ai-plugins
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** compose-diagram
- **Collection:** https://github.com/SAP/leanix-ai-plugins
- **Categories:** [enterprise it](https://ai-powered.com/categories/enterprise-it)
- **Listing updated:** 2026-12-03

## About

Compose Diagram lets an agent create or modify LeanIX diagrams through the LeanIX MCP server. The agent opens a draft, places fact sheets found by name or attribute, adds dependency or drill-down relations, and adds plain shapes, labels and connectors where needed before committing the result as a diagram with a shareable link.

The skill sets out a working discipline: changes go through tool calls rather than hand-written XML, calls run one at a time, and each placed element's ID is taken from the returned diff so later steps can connect or remove it. It also includes layout guidance so cells do not overlap and dependency rows are positioned clear of existing content. Single relations are usually shown as nested drill-downs, while multiple or chained relations use connected dependency nodes.

Using it requires an authenticated LeanIX MCP connection with the diagram and fact sheet tools available. The skill is Apache-2.0 licensed and ships as part of SAP's leanix-ai-plugins collection.

## When your agent uses it

> Use when the user wants to create, edit, or visualize a diagram or canvas. Covers building a diagram/canvas from scratch, changing an existing one (add/remove/connect/ restyle/move elements), and visualizing an entity's relations, dependencies, or hierarchy as a diagram ("visualize this", "show SAP's dependencies", "diagram our finance apps", "drill down into X", "put this on a canvas", "lay this out visually"). Prefer this whenever the user wants to SEE the result as a diagram/canvas rather than read it. NOT for answering as text/lists/counts or general Q&A.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/SAP/leanix-ai-plugins/tree/HEAD/skills/compose-diagram)
- [Asks for: mcp__leanix__create_diagram_draft, mcp__leanix__commit_diagram_draft, mcp__leanix__get_diagram_by_id, mcp__leanix__add_diagram_fact_sheet_cell, mcp__leanix__add_diagram_dependencies, mcp__leanix__add_diagram_drill_down, mcp__leanix__add_diagram_cell, mcp__leanix__add_diagram_edge…](https://github.com/SAP/leanix-ai-plugins/blob/HEAD/skills/compose-diagram/SKILL.md)
- [License: Apache-2.0](https://github.com/SAP/leanix-ai-plugins/tree/HEAD/skills/compose-diagram)

## Features

- **Draft-based diagram editing:** Opens, mutates and commits a diagram draft so changes persist only when committed.
- **Fact sheet placement:** Resolves LeanIX fact sheets by name or attribute and places them as diagram cells.
- **Relation visualization:** Shows a fact sheet's relations as nested drill-downs or connected dependency nodes.
- **Dependency layout rules:** Positions dependency rows so edges avoid overlapping cells and each other.
- **Plain visual shapes:** Adds titles, legends, containers and connectors for non-LeanIX elements.
- **Shareable diagram links:** Returns a stable diagram URL after each commit for sharing.

## Good for

- Diagram the dependencies of a named application
- Drill down into the IT components of an application
- Build a diagram of finance applications from a search
- Add a fact sheet to an existing diagram and connect it
- Create a titled legend or summary box on a complex diagram

## Install

### Claude Code

This skill ships in the `sap-leanix` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add SAP/leanix-ai-plugins
/plugin install sap-leanix@leanix-ai-plugins
```

Or copy only this skill to `~/.claude/skills/compose-diagram`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/compose-diagram &&
cp -R "$tmp/skills/compose-diagram" ~/.claude/skills/compose-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/compose-diagram` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/compose-diagram` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/compose-diagram &&
cp -R "$tmp/skills/compose-diagram" ~/.agents/skills/compose-diagram &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/compose-diagram` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/compose-diagram` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/compose-diagram &&
cp -R "$tmp/skills/compose-diagram" ~/.cursor/skills/compose-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/compose-diagram` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/SAP/leanix-ai-plugins.git --path skills/compose-diagram
```

Or copy the folder to `~/.gemini/skills/compose-diagram` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/compose-diagram`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/compose-diagram &&
cp -R "$tmp/skills/compose-diagram" ~/.copilot/skills/compose-diagram &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/compose-diagram` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/SAP/leanix-ai-plugins.git
```

Then copy `leanix-ai-plugins/skills/compose-diagram` into your agent's skills folder as `compose-diagram`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It requires an authenticated LeanIX MCP server exposing the mcp__leanix__ diagram, search and workspace tools.

### When does Compose diagram trigger?

When a user wants to create, edit or visualize a diagram or canvas, or see an entity's relations as a diagram rather than as text.

### Does Compose diagram save changes automatically?

No. Nothing persists until the draft is committed, and the agent then returns the diagram URL.

### Does Compose diagram write XML directly?

No. The server owns the diagram XML and the skill changes it only through tool calls.

### How do I install Compose diagram in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/compose-diagram to use it in all your projects, or to .claude/skills/compose-diagram in one project. Or install the sap-leanix plugin, which includes it: /plugin marketplace add SAP/leanix-ai-plugins, then /plugin install sap-leanix@leanix-ai-plugins.

### Does Compose diagram run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Compose diagram?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Compose diagram?

The closest alternatives to Compose diagram are Sap integration wiki, Strategic, Development, Delivery and Modules.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sap integration wiki](https://ai-powered.com/skills/sap-integration-wiki): Sap integration wiki is an open-source agent skill for enterprise it.
- [Strategic](https://ai-powered.com/skills/strategic): Strategic is an open-source agent skill for enterprise it.
- [Development](https://ai-powered.com/skills/development): Development is an open-source agent skill for developer tools.
- [Delivery](https://ai-powered.com/skills/delivery): Delivery is an open-source agent skill for enterprise it.
- [Modules](https://ai-powered.com/skills/modules): Modules is an open-source agent skill for enterprise it.
- [Meta](https://ai-powered.com/skills/meta-vigneshbarani24): Meta is an open-source agent skill for developer tools.
- [System admin](https://ai-powered.com/skills/system-admin): System admin is an open-source agent skill for enterprise it.
- [Consulting](https://ai-powered.com/skills/consulting): Consulting is an open-source agent skill for enterprise it.

---
Source: https://ai-powered.com/skills/compose-diagram
