plantuml-diagram-generator

Generates PlantUML diagram code and C4 architecture prompts from project documentation.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/MatheusFelipeCorrea/Agrofarm --skill plantuml-diagram-generator-matheusfelipecorrea
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plantuml-diagram-generator
Source: https://github.com/MatheusFelipeCorrea/Agrofarm/tree/main/.github/skills/plantuml-diagram-generator
Command: npx skills add https://github.com/MatheusFelipeCorrea/Agrofarm --skill plantuml-diagram-generator-matheusfelipecorrea

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing and maintaining software architecture diagrams by hand is slow and quickly drifts out of sync with the actual codebase. This Skill reads your project documentation (Architecture Blueprint, READMEs, folder structure) and generates accurate PlantUML diagrams plus AI image prompts, updating only what changed. ## Core Features & Use Cases - Multiple Diagram Types: Generates Use Case, Component, Class (backend), Package (frontend + backend), and Deployment diagrams as valid .puml files organized in a .github/diagrams/ folder structure. - Adaptive C4 Architecture Prompts: Creates C4 Model Level 2 container-level prompts for AI image generators that adapt to any architecture style (monolith, microservices, serverless, fullstack frameworks). - Update Mode: Detects significant changes between existing diagrams and current documentation, then regenerates only the affected diagrams after user approval. - Use Case: A team documenting a React + Express + PostgreSQL system asks for a component diagram; the Skill extracts layers, services, and external integrations from the READMEs and Blueprint, then produces a styled componentes.puml file for review. ## Quick Start Ask the assistant to generate a component diagram and a use case diagram from the project documentation using the PlantUML diagram generator skill.

Frequently Asked Questions about plantuml-diagram-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate PlantUML diagrams from project documentation?

Provide your Architecture Blueprint, READMEs, and folder structure docs, then select which diagrams to generate. The Skill extracts actors, layers, classes, and integrations from those files and produces valid .puml code one diagram at a time, waiting for your approval before continuing.

What diagram types can PlantUML generate for software projects?

This Skill supports Use Case, Component, Class (backend only), Package (frontend and backend), and Deployment diagrams. It also generates C4 Model Level 2 prompts for AI image generators, and is extensible to sequence, activity, state, and ER diagrams.

Does the PlantUML generator work with any tech stack?

Yes, it adapts to any architecture by detecting layers, background jobs, external integrations, and databases from your documentation. It handles monorepos, MVC, Clean Architecture, microservices, Next.js fullstack, and serverless patterns.

Can I update existing PlantUML diagrams when the code changes?

Yes, Update mode compares existing .puml files against current documentation and reports which diagrams changed. It only regenerates diagrams with significant changes like new models, layers, endpoints, or integrations, after your approval.

Why does the generator only create class diagrams for the backend?

Class diagrams are generated only for the backend because frontend code is organized around components and hooks rather than classical class hierarchies. Frontend structure is instead captured through Package diagrams showing folder organization and data flow.

What are the limitations of documentation-based diagram generation?

The Skill never invents components or relationships, so diagrams are only as complete as the source documentation. Missing or outdated Blueprints and READMEs produce incomplete diagrams, and each diagram requires manual review before proceeding.