Skip to content
Skill

Compose diagram

Builds and edits LeanIX diagrams from fact sheets, relations and plain shapes

Compose diagram is an open-source agent skill for enterprise it. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
12
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Compose diagram

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Compose diagram 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.

More from SAP/leanix-ai-plugins

  1. Lets your agent build, debug and deploy LeanIX automations via MCP

    • Open source
    • 12 GitHub stars
    • Developer tools
  2. Guides an agent through building, debugging and managing LeanIX calculated fields

    • Open source
    • 12 GitHub stars
    • Enterprise it
  3. Lets an agent search and read LeanIX fact sheets through the LeanIX MCP server

    • Open source
    • 12 GitHub stars
    • Enterprise it