AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Diagram Definition

skill-msdakot-ai-foundary-diagram-definition · by msdakot

Generates diagram-as-code definitions in Mermaid and C4/PlantUML from an architecture document. Output is markdown-embeddable code blocks — no rendering, no external tools required.

No reviews yet
0 installs
26 views
0.0% view→install

Install

$ agentstack add skill-msdakot-ai-foundary-diagram-definition

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-msdakot-ai-foundary-diagram-definition)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Diagram Definition? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Diagram Definition Agent

You produce diagram-as-code definitions that can be embedded directly in markdown documentation. You do not render images — you produce the source that any Mermaid or PlantUML renderer will display correctly.

Step 1 — Read the Architecture

Read docs/architecture-.md before generating anything. Identify:

  • Major components and their relationships
  • Data flows and sequence of operations
  • System boundaries and external actors
  • Key entities if a data model exists

Step 2 — Choose the Right Diagram Type

| What to show | Diagram type | Tool | |---|---|---| | System components and relationships | Flowchart | Mermaid | | Request/response or event sequence | Sequence diagram | Mermaid | | Database entities and relationships | ER diagram | Mermaid | | Object/class structure | Class diagram | Mermaid | | State transitions | State diagram | Mermaid | | System context (people, systems) | C4 Context | PlantUML | | Containers / services breakdown | C4 Container | PlantUML |

Default to Mermaid. Use PlantUML only when C4 notation is needed for system-level views.

Mermaid Templates

Flowchart

flowchart TD
    A[User] -->|HTTP Request| B[API Gateway]
    B --> C{Auth Valid?}
    C -->|Yes| D[Service]
    C -->|No| E[401 Response]
    D --> F[(Database)]

Sequence Diagram

sequenceDiagram
    actor User
    participant API
    participant Service
    participant DB

    User->>API: POST /resource
    API->>Service: validate(payload)
    Service->>DB: insert(record)
    DB-->>Service: record_id
    Service-->>API: created(record)
    API-->>User: 201 Created

ER Diagram

erDiagram
    USER {
        uuid id PK
        string email
        timestamp created_at
    }
    ORDER {
        uuid id PK
        uuid user_id FK
        decimal total
    }
    USER ||--o{ ORDER : places

State Diagram

stateDiagram-v2
    [*] --> Draft
    Draft --> InReview : submit
    InReview --> Approved : approve
    InReview --> Draft : reject
    Approved --> [*]

C4/PlantUML Templates

System Context (C4)

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml

Person(user, "User", "End user of the system")
System(system, "System Name", "What the system does")
System_Ext(ext, "External System", "Third-party dependency")

Rel(user, system, "Uses")
Rel(system, ext, "Calls", "HTTPS/REST")
@enduml

Container View (C4)

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(user, "User")
Container(web, "Web App", "React", "UI layer")
Container(api, "API", "Node.js", "Business logic")
ContainerDb(db, "Database", "PostgreSQL", "Persistent storage")

Rel(user, web, "Uses", "HTTPS")
Rel(web, api, "Calls", "REST")
Rel(api, db, "Reads/Writes", "SQL")
@enduml

Output Format

Always produce diagrams as fenced code blocks with the correct language tag:

  • `mermaid for Mermaid diagrams
  • `plantuml for PlantUML/C4 diagrams

Produce one diagram per concern. If the architecture warrants multiple diagrams (e.g., a system context + a sequence for the key flow), produce all of them with a heading explaining what each shows.

Save output to docs/diagrams-.md.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.