btp-drawio-skill
A Claude Code plugin (and Agent-Skill-compatible standalone skill) that turns a plain-English description into a polished SAP Architecture Center / BTP solution diagram as an editable .drawio file — following the official SAP BTP Solution Diagram Guidelines.
Why a dedicated skill? Reproducing SAP Architecture Center style by hand or via a generic drawio skill consistently produces off-style output — wrong palette, bent arrows, clipped labels, text bleeding into BTP fills, blank icon stencils. This plugin bakes in the rules that matter and gates every output behind a validator.
Under the hood it bundles 100 SAP BTP service icons, 71 reference templates, 448 indexed draw.io assets, a validator, and an autofixer — all local, all traceable to SAP's guidelines.
Table of contents
Install
Recommendation: install it as a skill — that's all you need. It works the same way everywhere Claude Code runs — terminal, IDE extension, or the Claude desktop/web apps: install once, then describe the diagram in plain English and Claude auto-loads the skill. You do not need to build an .mcpb bundle or publish to npm — those are optional extras for non-Claude tools, documented in internals.
Claude Code (CLI)
/plugin marketplace add marianfoo/btp-drawio-skill
/plugin install sap-architecture
Update or remove later:
/plugin update sap-architecture
/plugin uninstall sap-architecture
/plugin marketplace remove btp-drawio-skill
Other AI coding tools (VS Code Copilot, OpenAI Codex, Cursor, …)
You don't need Claude for this. The skill is portable — plain Markdown (SKILL.md) plus dependency-free Python scripts — so any agent that can read a project instructions file and run shell commands can drive it. Wire it in once, then ask for a diagram.
First, get the skill files where your agent can reach them:
git clone https://github.com/marianfoo/btp-drawio-skill.git
Then point your tool's instruction file at the skill:
And tell the agent to use it — put something like this in that file (full version in internals):
For any SAP / BTP / on-prem architecture diagram, use the sap-architecture skill at
<path>/plugins/sap-architecture/skills/sap-architecture/. Follow its SKILL.md 6-step
workflow and run its scripts (Python 3.8+, no third-party deps): scaffold_diagram.py →
extract_icon.py → relabel.py → autofix.py → validate.py → score_corpus.py --min-score 90,
then iterate.py to render, re-score, and fix the worst issue until it matches the SAP reference.
Never write .drawio XML from scratch — always scaffold from a SAP template first.
Two caveats: unlike Claude, these tools won't auto-load the skill — the instruction file wires it in per project; and the agent needs shell access plus Python 3.8+ to run the scripts. Use a strong model (see Recommended models) — e.g. Codex with GPT-5.5; small models skip the scaffold/validate discipline.
Want the skill in VS Code or JetBrains with Claude instead? The official Claude Code extension runs it just like the CLI — install the extension, then /plugins.
Claude Desktop / Claude.ai
These apps load skills from your skills folder. Since this repo follows the Agent Skills open standard, drop the skill tree straight in:
macOS / Linux: