Token导航 LogoToken导航TokenDH.com
前端设计执行命令unknown未标认证来源可访问许可证需确认审计未展示

plantumlplantuml 命令行

Agent Skill

plantuml 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 Local Agent 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

768

周安装

32

下载量

256
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:plantuml(plantuml 命令行)
来源仓库:https://smithery.ai
仓库路径:plantuml
安装命令:
Java JRE/JDK 8+
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 对应宿主 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.sh安装方式未标明
Java JRE/JDK 8+

简介

用于辅助前端页面、组件和交互逻辑开发。

  • 支持生成 UML 和非 UML 图表,如序列图、ER 图、甘特图等。
  • 可通过脚本验证设置、转换文件和排查问题,提升开发效率。
  • 安装前建议确认 Java 环境及权限范围,注意是否会触发命令执行。
  • plantuml 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

PlantUML Diagram Generation and Conversion

Table of Contents

- Diagram Type Identification - Resilient Workflow

- Standalone.puml Files - Markdown Processing - Direct Command-Line Usage

Purpose

This skill enables comprehensive PlantUML diagram creation and conversion workflows. PlantUML is a text-based diagramming tool that generates professional diagrams from simple, intuitive syntax.

Core capabilities:

  1. Create diagrams from natural language descriptions
  2. Convert source code to architecture diagrams (Spring Boot, FastAPI, Python ETL, Node.js, React)
  3. Convert standalone .puml files to PNG or SVG images
  4. Extract puml code blocks from markdown and convert to images
  5. Process linked .puml files in markdown (![diagram](path/to/diagram.puml))
  6. Validate PlantUML syntax without conversion
  7. Replace markdown diagrams with image links for publication (Confluence, Notion)

When to Use This Skill

Activate for:

  • Diagram creation requests (e.g., "Create a sequence diagram showing authentication flow")
  • Code architecture visualization (e.g., "Create deployment diagram for my Spring Boot app")
  • .puml file to image conversion
  • Markdown files containing ```puml code blocks or linked.puml files
  • Confluence or Notion markdown preparation (documents with PlantUML diagrams require conversion first)
  • Specific diagram types: UML (sequence, class, activity, state, component, deployment, use case, object, timing) or non-UML (ER, Gantt, mindmap, WBS, JSON/YAML, network, Archimate, wireframes)
  • PlantUML syntax validation

Confluence/Notion uploads: If markdown contains PlantUML diagrams, run conversion FIRST before upload.

Prerequisites

Before creating diagrams, verify the PlantUML setup:

python scripts/check_setup.py

Required components:

ComponentPurposeInstallation
Java JRE/JDK 8+Runtimehttps://www.oracle.com/java/technologies/downloads/
plantuml.jarDiagram generatorhttps://plantuml.com/download (place in ~/plantuml.jar or set PLANTUML_JAR)
Graphviz (optional)Complex layoutshttps://graphviz.org/download/

Creating Diagrams

Diagram Type Identification

Identify the appropriate diagram type based on user intent:

User IntentDiagram TypeReference
Interactions over timeSequencereferences/sequence_diagrams.md
System structure with classesClassreferences/class_diagrams.md
Workflows, decision flowsActivityreferences/activity_diagrams.md
Object states and transitionsStatereferences/state_diagrams.md
Database schemasER (Entity Relationship)references/er_diagrams.md
Project timelinesGanttreferences/gantt_diagrams.md
Idea organizationMindMapreferences/mindmap_diagrams.md
System architectureComponentreferences/component_diagrams.md
Actors and featuresUse Casereferences/use_case_diagrams.md
All 19 typesSee navigation hubreferences/toc.md

Syntax resources:

  • references/toc.md: Navigation hub linking to all diagram types
  • references/common_format.md: Universal elements (delimiters, metadata, comments, notes)
  • references/styling_guide.md: Modern <style> syntax for visual customization

Resilient Workflow (Primary - Recommended)

For reliable diagram generation with error recovery, follow the 4-step resilient workflow:

Step 1: Identify Diagram Type & Load Reference

  • Identify diagram type from user intent
  • Load references/[diagram_type]_diagrams.md for syntax guide
  • Consult references/toc.md if ambiguous

Step 2: Create File with Structured Naming

./diagrams/<markdown_name>_<num>_<type>_<title>.puml

Example: ./diagrams/architecture_001_sequence_user_auth.puml

Step 3: Convert with Error Handling (max 3 retries)

If conversion fails:

  1. Check references/troubleshooting/toc.md for error classification
  2. Load specific guide from references/troubleshooting/[category]_guide.md
  3. Check references/common_syntax_errors.md for diagram type

Step 4: Validate & Integrate

  1. Verify image file exists
  2. Add image link: ![title](diagrams/filename.png)
  3. Keep.puml source file for future edits

Full documentation: references/workflows/resilient-execution-guide.md

Quick Syntax Reference

Common elements:

  • Delimiters: @startuml / @enduml (required)
  • Comments: ' Single line or /' Multi-line '/
  • Relationships: -> (solid), --> (dashed), ..> (dotted)
  • Labels: A -> B: Label text

Minimal examples (see references/[type]_diagrams.md for comprehensive syntax):

' Sequence: references/sequence_diagrams.md
@startuml
Alice -> Bob: Request
Bob --> Alice: Response
@enduml
' Class: references/class_diagrams.md
@startuml
class Animal { +move() }
class Dog extends Animal { +bark() }
@enduml
' ER: references/er_diagrams.md
@startuml
entity User { *id: int }
entity Post { *id: int }
User ||--o{ Post
@enduml

Converting Source Code to Diagrams

The examples/ directory contains language-specific templates for converting common application architectures:

Application TypeDirectoryKey Diagrams
Spring Bootexamples/spring-boot/Deployment, Component, Sequence
FastAPIexamples/fastapi/Deployment, Component (async routers)
Python ETLexamples/python-etl/Architecture with Airflow
Node.jsexamples/nodejs-web/Express/Nest.js components
Reactexamples/react-frontend/SPA deployment, component architecture

Workflow:

  1. Identify application type
  2. Review example in examples/[app-type]/
  3. Map code structure to diagram patterns
  4. Copy and adapt the example .puml file
  5. Use Unicode symbols from references/unicode_symbols.md for semantic clarity

Converting Diagrams to Images

Convert Standalone.puml Files

# Convert to PNG (default)
python scripts/convert_puml.py diagram.puml

# Convert to SVG
python scripts/convert_puml.py diagram.puml --format svg

# Specify output directory
python scripts/convert_puml.py diagram.puml --format svg --output-dir images/

Extract and Convert from Markdown

CRITICAL for Confluence/Notion: Run this FIRST before upload if markdown contains PlantUML diagrams.

# Process embedded ```puml blocks AND linked ![](diagram.puml) files
python scripts/process_markdown_puml.py article.md

# Convert to SVG format
python scripts/process_markdown_puml.py article.md --format svg

# Validate syntax only (for CI/CD)
python scripts/process_markdown_puml.py article.md --validate

Outputs:

  • article_with_images.md: Markdown with image links
  • images/: Directory with generated images

IDE-Friendly Workflow: Keep diagrams as .puml files during development for IDE preview, then convert for publication.

Direct Command-Line Usage

# Basic conversion
java -jar ~/plantuml.jar diagram.puml

# SVG with custom output
java -jar ~/plantuml.jar --svg --output-dir out/ diagram.puml

# Batch conversion
java -jar ~/plantuml.jar "**/*.puml" --svg

See references/plantuml_reference.md for comprehensive command-line options.

Best Practices

Diagram Quality:

  • Use descriptive filenames from diagram content
  • Add comments with ' for clarity
  • Follow standard UML notation
  • Test incrementally before adding complexity

Format Selection:

  • PNG: Web publishing, smaller files, fixed resolution
  • SVG: Documentation, scalable, supports hyperlinks

Styling: Apply modern <style> syntax from references/styling_guide.md:

@startuml
<style>
classDiagram {
  class { BackgroundColor LightBlue }
}
</style>
' diagram content
@enduml

Themes: !theme cerulean (also: bluegray, plain, sketchy, amiga)

Unicode symbols: Add semantic meaning with symbols from references/unicode_symbols.md:

node "☁️ AWS Cloud" as aws
database "💾 PostgreSQL" as db

Troubleshooting

Quick diagnosis:

  1. Check syntax: java -jar plantuml.jar --check-syntax file.puml
  2. Identify error type
  3. Load troubleshooting guide: references/troubleshooting/toc.md

Common issues:

IssueSolution
"plantuml.jar not found"Download from https://plantuml.com/download, set PLANTUML_JAR
"Graphviz not found"Install from https://graphviz.org/download/
"Syntax Error"Check delimiters match, consult references/common_format.md
"Java not found"Install Java JRE/JDK 8+, verify with java -version

Comprehensive guides (215+ errors documented):

  • references/troubleshooting/toc.md - Navigation hub with error decision tree
  • references/troubleshooting/[category]_guide.md - 12 focused guides by error type

References

Core Syntax References

ResourcePurpose
references/toc.mdNavigation hub for all 19 diagram types
references/common_format.mdUniversal elements (delimiters, metadata, comments)
references/styling_guide.mdModern <style> syntax with CSS-like rules
references/plantuml_reference.mdInstallation, CLI, and troubleshooting

Troubleshooting Guides

ResourceCoverage
references/troubleshooting/toc.mdNavigation hub with error decision tree
references/troubleshooting/installation_setup_guide.mdSetup problems
references/troubleshooting/general_syntax_guide.mdSyntax errors
references/troubleshooting/[diagram_type]_guide.mdDiagram-specific errors

Enrichment Resources

ResourcePurpose
references/unicode_symbols.mdUnicode symbols for semantic enrichment
examples/[framework]/Code-to-diagram patterns

Summary

  1. Verify setup: python scripts/check_setup.py
  2. Navigate types: Start with references/toc.md
  3. Learn syntax: Open references/[diagram_type]_diagrams.md
  4. Apply styling: Use references/styling_guide.md
  5. Add symbols: Use references/unicode_symbols.md
  6. Convert files: scripts/convert_puml.py
  7. Process markdown: scripts/process_markdown_puml.py
  8. Troubleshoot: references/troubleshooting/toc.md

Supported diagrams:

  • UML: sequence, class, activity, state, component, deployment, use case, object, timing
  • Non-UML: ER, Gantt, mindmap, WBS, JSON/YAML, network, Archimate, wireframes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

84.22%
按下载量换算216

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 Java JRE/JDK 8+ 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills