skills/43-wentorai-research-plugins/skills/tools/diagram/plantuml-guide/SKILL.md
Create UML diagrams and architecture visualizations with PlantUML
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research plantuml-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create UML diagrams, architecture visualizations, flowcharts, and other technical diagrams using PlantUML's text-based notation for reproducible, version-controllable diagrams.
PlantUML generates diagrams from plain text descriptions. Diagrams are defined in .puml files and rendered to PNG, SVG, or PDF.
| Method | Command / URL | Best For |
|--------|--------------|----------|
| VS Code extension | Install "PlantUML" by jebbs | IDE integration |
| CLI (Java JAR) | java -jar plantuml.jar diagram.puml | Batch processing |
| Online server | plantuml.com/plantuml | Quick prototyping |
| Docker | docker run plantuml/plantuml-server | Self-hosted server |
| Python | pip install plantuml | Python integration |
| Jupyter | pip install iplantuml | Notebook integration |
@startuml
title My First Diagram
Alice -> Bob: Hello
Bob --> Alice: Hi there!
@enduml
Model interactions between components over time:
@startuml
title Research Paper Submission Workflow
actor Author
participant "Submission\nSystem" as SS
participant "Editor" as Ed
participant "Reviewer 1" as R1
participant "Reviewer 2" as R2
Author -> SS: Submit manuscript
activate SS
SS -> Ed: Notify new submission
activate Ed
Ed -> SS: Assign reviewers
SS -> R1: Review request
SS -> R2: Review request
activate R1
activate R2
R1 -> SS: Submit review (Accept)
deactivate R1
R2 -> SS: Submit review (Minor revision)
deactivate R2
Ed -> SS: Decision: Minor revision
SS -> Author: Revision request
deactivate Ed
deactivate SS
Author -> SS: Submit revised manuscript
activate SS
SS -> Ed: Notify revision
Ed -> SS: Accept
SS -> Author: Acceptance notification
deactivate SS
@enduml
Model system structure and relationships:
@startuml
title Research Data Model
class Paper {
+id: UUID
+title: String
+abstract: String
+doi: String
+year: Integer
+venue: String
--
+getCitations(): List<Paper>
+getAuthors(): List<Author>
+getBibTeX(): String
}
class Author {
+id: UUID
+name: String
+orcid: String
+affiliation: String
+h_index: Integer
--
+getPapers(): List<Paper>
+getCoauthors(): List<Author>
}
class Dataset {
+id: UUID
+name: String
+doi: String
+license: String
+size_bytes: Long
--
+download(): File
+getCitation(): String
}
class Experiment {
+id: UUID
+description: String
+date: Date
+config: JSON
--
+run(): Results
+getMetrics(): Map
}
Paper "1" -- "*" Author : authored by >
Paper "1" -- "*" Dataset : uses >
Paper "1" -- "*" Experiment : contains >
Dataset "1" -- "*" Experiment : used in >
Paper "1" -- "*" Paper : cites >
@enduml
Model workflows and decision processes:
@startuml
title Systematic Review Screening Process
start
:Import records from databases;
:Remove duplicates;
:Screen title and abstract;
if (Meets inclusion criteria?) then (yes)
:Retrieve full text;
if (Full text available?) then (yes)
:Screen full text;
if (Meets all criteria?) then (yes)
:Include in review;
:Extract data;
if (Suitable for meta-analysis?) then (yes)
:Include in meta-analysis;
else (no)
:Include in narrative synthesis;
endif
else (no)
:Exclude with reason;
endif
else (no)
:Mark as unavailable;
endif
else (no)
:Exclude;
endif
:Compile PRISMA flow diagram;
stop
@enduml
Model system architecture:
@startuml
title Research Platform Architecture
package "Web Frontend" {
[React SPA] as SPA
[Dashboard] as Dash
[Skills Browser] as Skills
}
package "API Gateway" {
[FastAPI Server] as API
[Auth Service] as Auth
[Rate Limiter] as RL
}
package "Backend Services" {
[Paper Search] as PS
[Citation Graph] as CG
[Skill Registry] as SR
}
package "Data Layer" {
database "PostgreSQL" as PG
database "Redis Cache" as Redis
database "Elasticsearch" as ES
}
package "External APIs" {
[Unpaywall] as UP
[CrossRef] as CR
[OpenAlex] as OA
}
SPA --> API : HTTPS
Dash --> API : HTTPS
Skills --> API : HTTPS
API --> Auth : validate token
API --> RL : check rate limit
API --> PS : search request
API --> CG : graph query
API --> SR : skill lookup
PS --> ES : full-text search
PS --> S2 : paper metadata
PS --> CR : DOI resolution
CG --> PG : citation data
CG --> OA : citation graph
SR --> PG : skill metadata
SR --> Redis : cache
@enduml
Model system states and transitions:
@startuml
title Paper Lifecycle States
[*] --> Draft
Draft --> Submitted : Author submits
Submitted --> UnderReview : Editor assigns reviewers
Submitted --> DeskRejected : Editor rejects
UnderReview --> RevisionRequired : Minor/Major revision
UnderReview --> Accepted : Accept as is
UnderReview --> Rejected : Reject
RevisionRequired --> UnderReview : Author resubmits
RevisionRequired --> Withdrawn : Author withdraws
Accepted --> InProduction : Copy editing
InProduction --> Published : Online first
Published --> [*]
DeskRejected --> [*]
Rejected --> [*]
Withdrawn --> [*]
@enduml
Plan research timelines:
@startuml
title Research Project Timeline
Project starts 2025-01-01
[Literature Review] starts 2025-01-01 and lasts 8 weeks
[Research Design] starts at [Literature Review]'s end and lasts 4 weeks
[IRB Approval] starts at [Research Design]'s end and lasts 6 weeks
[Data Collection] starts at [IRB Approval]'s end and lasts 12 weeks
[Data Analysis] starts at [Data Collection]'s end and lasts 8 weeks
[Paper Writing] starts at [Data Analysis]'s end and lasts 10 weeks
[Peer Review] starts at [Paper Writing]'s end and lasts 12 weeks
[Revision] starts at [Peer Review]'s end and lasts 6 weeks
-- Milestones --
[Proposal Defense] happens at [Research Design]'s end
[Conference Presentation] happens at [Data Analysis]'s end
[Submission] happens at [Paper Writing]'s end
@enduml
Organize research topics:
@startmindmap
title Machine Learning Research Landscape
* Machine Learning
** Supervised Learning
*** Classification
**** SVM
**** Decision Trees
**** Neural Networks
*** Regression
**** Linear Regression
**** Gradient Boosting
** Unsupervised Learning
*** Clustering
**** K-Means
**** DBSCAN
*** Dimensionality Reduction
**** PCA
**** t-SNE
**** UMAP
** Reinforcement Learning
*** Model-Free
**** DQN
**** PPO
*** Model-Based
**** Dreamer
**** MuZero
** Deep Learning
*** CNNs
*** Transformers
*** GANs
*** Diffusion Models
@endmindmap
\usepackage{plantuml}
\begin{plantuml}
@startuml
Alice -> Bob: Hello
Bob --> Alice: Hi
@enduml
\end{plantuml}
% Compile with: pdflatex -shell-escape paper.tex
Many Markdown renderers (GitHub, GitLab, Notion) support Mermaid natively. PlantUML can be used via plugins or pre-rendering:
# Pre-render PlantUML to SVG for Markdown embedding
import plantuml
server = plantuml.PlantUML(url="http://www.plantuml.com/plantuml/svg/")
svg_content = server.processes("""
@startuml
Alice -> Bob: Hello
@enduml
""")
with open("diagram.svg", "wb") as f:
f.write(svg_content)
.puml files alongside code/documentation in git.note left of, note right of, or legend blocks to clarify semantics.development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.