A skill for Claude Code, Codex, Open Code, Pi Agent, and other AI coding agents: turn a text description of your system architecture into an editable PowerPoint architecture diagram.
FAQ
architecture-drawer is a Claude Code plugin with 1 hand-picked skill for documentation work, indexed on Flowy. Install it with the command on its page. It includes architecture-drawer. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
> /plugin marketplace add Andy1314Chen/architecture-drawer> /plugin install architecture-drawer@architecture-drawer
English ยท ็ฎไฝไธญๆ
A skill for Claude Code, Codex, Open Code, Pi Agent, and other AI coding agents: turn a text description of your system architecture into an editable PowerPoint architecture diagram.
Turn text descriptions of an architecture into editable PPT diagrams: the agent generates an SVG from your description, auto-validates the layout, then exports to native PowerPoint shapes.
| This project | Nano Banana / GPT-Image etc. | |
|---|---|---|
| Output | Editable PPT (every shape draggable, recolorable, retextable) | Flattened image |
| Control | High (code-generated, precisely adjustable) | Low (prompt-driven, hard to reproduce) |
| Iteration | Fine-tune directly in PPT | Regenerate from scratch |
| Cost | Low | High (per-image billing) |
All diagrams below were generated entirely from text descriptions by the skill, then scored by the 13-dimension evaluator (each scored โฅ76/100). They double as the regression suite under evals/ โ including the first non-architecture case (a process flowchart).

Six-layer request pipeline (client โ API server โ engine โ paged KV cache โ execution โ optimizations). Solid edges = data flow; dashed = cache/block management. Scheme S1 Monochrome Blue.

A 4-layer ร multi-column matrix (graph optimization โ transformation โ lowering โ codegen) with vertical-fusion grouping and a concurrent multi-stream overlap timeline. 8-accent categorical palette.

Five horizontal layers (application โ orchestration โ core capabilities โ execution โ infrastructure) with a cross-cutting security/observability band. Bilingual CN/EN labels. Neutral grays + 5 colored core modules.

The first non-architecture case: a top-to-bottom process flowchart with four quality-gate decisions (Build โ Lint/SAST โ Tests โ Smoke) whose "No" branches converge via gray junction merge points onto a single Failed terminator. Green terminators ยท yellow decision diamonds ยท orange I/O hexagon ยท purple double-border subprocesses. Flowchart role palette (color = role).
evals/*/input.md) is the single biggest predictor of a quality diagram. For open-source projects, you can use the system architecture description from DeepWiki.gen.py and SVG. The evaluator automatically catches overlaps, dangles, and crossings.auto_refine or multi-round LLM correction (--llm-iter).svg_to_pptx() to get an editable PowerPoint file. Tweak colors, fonts, arrows, and layout there to match your brand or publication styleโthese belong in the presentation layer, not the generator code.Suggested workflow: first discuss with DeepWiki or your agent to produce a clear text description of the system architecture, then use this skill to quickly generate a PPTX diagram, and finally fine-tune colors, labels, and other details directly in PPT.
This repo is a plugin marketplace. Add it and install the plugin:
/plugin marketplace add Andy1314Chen/architecture-drawer
/plugin install architecture-drawer@architecture-drawer
Or from the CLI:
claude plugin marketplace add Andy1314Chen/architecture-drawer
claude plugin install architecture-drawer@architecture-drawer
Scope with --scope project (shared via version control) or --scope local (gitignored). Default is user.
Codex CLI fully supports the Agent Skills directory structure.
Copy the skill directory into Codex's skills folder (usually ~/.codex/skills/):
cp -r plugins/architecture-drawer/skills/architecture-drawer ~/.codex/skills/architecture-drawer
Or install project-scoped (recommended):
mkdir -p .codex/skills
cp -r plugins/architecture-drawer/skills/architecture-drawer .codex/skills/
Once installed, ask Codex naturally โ the workflow in SKILL.md is consumed automatically:
> Draw the architecture of vLLM and export to PPTX
Each skill is a standalone Agent Skills spec directory. Copy it into your platform's skills location (typically .agents/skills/):
| Platform | Default skills path |
|---|---|
| Gemini CLI | ~/.gemini/skills/ |
| Cursor (@rules) | .cursorrules or cursor/skills/ |
| Copilot CLI | Per-platform instructions |
cp -r plugins/architecture-drawer/skills/architecture-drawer .agents/skills/architecture-drawer
The agent generates a gen.py that imports three pure-Python modules (svg_utils.py, evaluator.py, svg2pptx.py) co-located in the skill. You don't write this code โ the agent does. Install these once so generated diagrams can render and export:
| Dependency | Required by | Install |
|---|---|---|
python-pptx >= 1.0 | PPTX export (svg2pptx.py) | pip install python-pptx |
rsvg-convert | PNG rasterization (rasterize_svg) | apt install librsvg2-bin / brew install librsvg |
pytest >= 8 | Running the test suite | pip install pytest |
The suite is layered so each layer is cheap, deterministic, and covers a distinct failure mode:
| Layer | Command | What it gates | Runs in CI |
|---|---|---|---|
| Deterministic regression | pytest | each evals/<name>/gen.py scores โฅ its threshold and matches its golden SVG | โ always |
| Spec compliance | pytest | SKILL.md frontmatter, nameโdirectory, relative refs, core scripts present | โ always |
| Doc โ API drift guard | pytest | every drawer.<m>( documented in SKILL.md/references/*.md exists on SVGDrawer; curated public API importable | โ always |
| LLM replay (Protocol A) | pytest --llm-replay | regenerate gen.py from input.md+SKILL.md (no golden), iterate, assert score โฅ80 | nightly / local |
| Agent replay (Protocol B) | pytest --agent-replay | install the skill into a leak-free sandbox, let the Pi coding agent author gen.py, assert score โฅ80 + full SVG/PPTX/PNG artifact triplet | nightly / local |
The agent-replay layer is the closest to real usage: the skill is installed (never inlined), a real agent discovers it via its native skill mechanism, and the harness โ not the agent โ re-runs the produced gen.py deterministically. It needs the pi CLI and a provider key; backend wiring lives in tests/agent_backends.py. Options: --agent-iter N caps the stateless refine rounds (default 3), --agent-eval <name> scopes it to one case for cheap debugging (a name matching nothing fails loudly rather than silently skipping), and --agent-keep retains each case's output (agent-written gen.py + SVG/PNG/PPTX + score_report.txt) under output/agent_replay/<name>/ for review (gitignored).
architecture-drawer/
โโโ .claude-plugin/marketplace.json # Claude Code marketplace registry
โโโ plugins/architecture-drawer/
โ โโโ .claude-plugin/plugin.json # plugin manifest
โ โโโ skills/architecture-drawer/
โ โโโ SKILL.md # agent-consumable workflow (spec-compliant)
โ โโโ scripts/ # svg_utils.py ยท evaluator.py ยท svg2pptx.py
โ โโโ references/design_specs.md # 4 preset color schemes (S1โS4)
โ โโโ evals/ # 8 regression cases (7 architecture + 1 flowchart, gen.py each)
โ โโโ assets/
โโโ tests/ # pytest: layered regression (see "Testing")
โ โโโ conftest.py # fixtures, thresholds, score helpers, CLI options
โ โโโ agent_backends.py # Pi coding-agent backend + leak-free sandbox builder
โ โโโ test_regression.py # deterministic quality+snapshot; opt-in LLM replay
โ โโโ test_skill_spec.py # Agent Skills spec compliance
โ โโโ test_doc_api.py # doc โ API drift guard (always on)
โ โโโ test_agent_replay.py # opt-in real-agent replay (Protocol B)
โ โโโ golden/*.svg # snapshot baselines
โโโ examples/ # minimal demo of the generate-evaluate-export loop
Thanks to the LINUX DO community. The project gained wider reach, discussion, and real-world feedback after being shared there, and those conversations have helped me keep finding issues and improving architecture-drawer.
The geometry/connection detection draws on several open-source projects (their reference docs and validators were studied): ink-graph, fireworks-tech-graph, svg-animations, svg-design, and svg2pptx (the architectural blueprint for the PPTX export module). See the full credits in SKILL.md.
MIT โ see LICENSE.
.claude-plugin/
marketplace.json
.github/
workflows/
test.yml
.gitignore
CHANGELOG.md
docs/
showcase/
agent_infra_architecture.png
cicd_pipeline_flow.png
mlir_pipeline.png
vllm_arch.png
examples/
hello_arch.py
experiments/
LESSONS.md
SUMMARY.md
LICENSE
plugins/
architecture-drawer/
.claude-plugin/
plugin.json
skills/
architecture-drawer/
evals/
20260728_120000_mlir_pipeline/
gen.py
input.md
20260728_153000_agent_infra_architecture/
gen.py
input.md
20260728_203836_llm_inference_arch/
gen.py
input.md
20260728_2157_satellite_arch/
gen.py
input.md
20260729_llama_cpp_arch/
gen.py
input.md
20260729_pi_agent_architecture/
gen.py
input.md
20260730_vllm_arch/
gen.py
input.md
20260802_100000_cicd_pipeline_flow/
gen.py
input.md
references/
design_specs.md
diagram_types.md
scripts/
evaluator.py
svg_utils.py
svg2pptx.py
SKILL.md
pyproject.toml
README.md
README.zh_CN.md
requirements-dev.txt
requirements.txt
tests/
agent_backends.py
conftest.py
golden/
20260728_120000_mlir_pipeline.svg
20260728_153000_agent_infra_architecture.svg
20260728_203836_llm_inference_arch.svg
20260728_2157_satellite_arch.svg
20260729_llama_cpp_arch.svg
20260729_pi_agent_architecture.svg
20260730_vllm_arch.svg
20260802_100000_cicd_pipeline_flow.svg
test_agent_replay.py
test_doc_api.py
test_evaluator.py
test_regression.py
test_skill_spec.py
test_svg_utils.pyยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic