diagram

Generate architecture diagrams from system models using LikeC4 and Mermaid.

5|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/agentpatterns/craft --skill diagram-agentpatterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagram
Source: https://github.com/agentpatterns/craft/tree/main/plugins/crafter/skills/diagram
Command: npx skills add https://github.com/agentpatterns/craft --skill diagram-agentpatterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Diagramming complex software architectures is time-consuming and error-prone without consistent visuals. This skill provides a structured approach to generate architecture diagrams using LikeC4 or Mermaid, aligning diagrams with a formal model and reference syntax.

Core Features & Use Cases

  • Generate context, container, component, deployment, and dynamic/ data-flow diagrams from a model using LikeC4 DSL and Mermaid.
  • Load and apply references to ensure consistent syntax and styling across diagrams.
  • Real-world use: model a system and render multiple views for architecture reviews, documentation, and onboarding.

Quick Start

Provide a system model, choose a diagram subtype (e.g., likec4-c4 or data-flow), and instruct the AI to render the corresponding diagram.

Frequently Asked Questions about diagram

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

FAQPage Schema
How do I generate architecture diagrams from a system model?

To generate architecture diagrams, you provide a system model and choose a diagram subtype. The skill renders context, container, component, deployment, and dynamic diagrams using LikeC4 and Mermaid syntax.

What is the difference between LikeC4 and Mermaid for software visualization?

LikeC4 and Mermaid are both supported for software visualization. LikeC4 uses a DSL to align diagrams with a formal C4 model, while Mermaid provides broader syntax for rendering styled architecture and data-flow diagrams.

How do I create a data-flow diagram using a DSL?

You can create a data-flow diagram by providing your system model and selecting the data-flow subtype. The skill enforces the correct LikeC4 or Mermaid DSL syntax to yield styled, deployment-ready visualizations.

Can I use this to generate deployment diagrams for documentation?

Yes, you can generate deployment diagrams for architecture reviews and documentation. The skill applies consistent styling and syntax from reference material to produce deployment-ready visual outputs.

What's the best way to ensure consistent syntax across multiple architecture diagrams?

The best way to ensure consistent syntax is by loading reference material from the references directory. The skill applies these references to enforce correct LikeC4 and Mermaid syntax across all generated diagrams.

Do I need a predefined system model to render container diagrams?

Yes, you need to provide a system model to render container diagrams. The skill uses this model as input to apply the correct LikeC4 or Mermaid syntax for the specific container diagram view.