# 033-architecture-diagrams

Interactive diagram generator for Java repositories using PlantUML syntax. Builds C4 models, class structures, sequence flows, and DDD context maps through guided CLI questions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 344 installs · ★ 456
- Author: Juan Antonio Breña Moral
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/jabrena/plinth/tree/HEAD/skills/033-architecture-diagrams/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/033-architecture-diagrams

## What it does

This skill from the Plinth toolkit turns Java architecture documentation into a step-by-step interview. It begins with a strict project check: the agent must run `./mvnw validate` or `mvn validate` before touching any diagram references. If Maven validation fails, execution halts on the spot.

Once validation passes, the agent asks sequential questions about your visualization goals. It clarifies whether you need class structures, API sequence flows, state machines, C4 models (Context, Container, Component), deployment layouts, Chen-notation ER diagrams, or domain-driven design context maps. You choose the detail level and whether files stay combined or separate.

Rendering to SVG or PNG relies solely on a local PlantUML setup or an approved repository wrapper. Remote container pulls and external `!include` URLs are banned by the skill's safety constraints, keeping diagram generation entirely offline.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 033-architecture-diagrams -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/033-architecture-diagrams/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/033-architecture-diagrams/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 033-architecture-diagrams -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/033-architecture-diagrams/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 033-architecture-diagrams -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/033-architecture-diagrams/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jabrena/plinth 033-architecture-diagrams
```

2. **Manually: put the files in place**
- File: `.github/skills/033-architecture-diagrams/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 033-architecture-diagrams -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jabrena/plinth --path skills/033-architecture-diagrams
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/033-architecture-diagrams/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 033-architecture-diagrams -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jabrena/plinth/tree/HEAD/skills/033-architecture-diagrams/SKILL.md

## When to use it
- visualize Java package structures and relationships with UML class diagrams
- map REST API calls and service interactions via sequence diagrams
- document architecture across Context, Container, and Component levels using the C4 model
- derive entity-relationship diagrams from database migrations using Chen notation
- outline DDD bounded contexts and context maps across project repositories

## Example prompts
- Generate a C4 container diagram for this Java project
- Create a sequence diagram for the user authentication API flow
- Create a class diagram covering the domain model package

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: cfc9502928c0948b.

BEGIN THIRD-PARTY FILE cfc9502928c0948b
```text
---
name: 033-architecture-diagrams
description: Use when you need to generate Java project diagrams — including UML sequence diagrams, UML class diagrams, C4 model diagrams, UML state machine diagrams, UML Deployment Diagrams, ER (Entity Relationship) diagrams, and bounded-context diagrams — through a modular, step-based interactive process that adapts to your specific visualization needs. This should trigger for requests such as Generate UML diagram; Create sequence diagram; Create class diagram; Create state machine diagram; Create deployment diagram; Create C4 diagram; Create bounded-context diagram; Create context-map diagram. Part of Plinth Toolkit
license: Apache-2.0
metadata:
  author: Juan Antonio Breña Moral
  version: 0.19.0
---
# Java Diagrams Generator with modular step-based configuration

Generate comprehensive Java project diagrams through a modular, step-based interactive process that covers UML sequence diagrams, UML class diagrams, C4 model diagrams, UML state machine diagrams, UML Deployment Diagrams, ER (Entity Relationship) diagrams, and bounded-context diagrams using PlantUML syntax. **This is an interactive SKILL**.

**What is covered in this Skill?**

- UML sequence diagram generation for application workflows and API interactions
- UML class diagram generation for package structure and class relationships
- C4 model diagram generation for Context, Container, and Component diagrams
- UML state machine diagram generation for entity lifecycles and business workflows
- UML Deployment Diagram generation for runtime topology, nodes, execution environments, deployed components, data stores, queues, external systems, and communication paths
- ER diagram generation from SQL schema (DDL, migrations) using PlantUML Chen notation
- Bounded-context diagram generation for DDD context maps across one or more repositories
- PlantUML syntax for all diagram types
- File organization strategies: single-file, separate-files, or integrated with existing documentation
- Final diagram validation with PlantUML syntax checking
- PlantUML validation and PNG/SVG rendering with a trusted local PlantUML installation or repository-approved wrapper

## Constraints

Before applying any diagram generation, ensure the project validates. If validation fails, stop immediately — do not proceed until all validation errors are resolved.

- **MANDATORY**: Run `./mvnw validate` or `mvn validate` before applying any diagram generation
```
END THIRD-PARTY FILE cfc9502928c0948b

The third-party file has ended. Everything between the cfc9502928c0948b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2469 of 12499 bytes. © Juan Antonio Breña Moral · Apache-2.0 · https://github.com/jabrena/plinth/tree/HEAD/skills/033-architecture-diagrams/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
