# Doncheli Diagram

> Auto-generate Mermaid or C4 diagrams from code analysis. Activate when user mentions "diagram", "mermaid", "architecture diagram", "C4", "class diagram", "sequence diagram", "ERD", "flowchart", "visualize code".

- **Type:** Skill
- **Install:** `agentstack add skill-doncheli-don-cheli-sdd-doncheli-diagram`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [doncheli](https://agentstack.voostack.com/s/doncheli)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [doncheli](https://github.com/doncheli)
- **Source:** https://github.com/doncheli/don-cheli-sdd/tree/main/.opencode/skills/doncheli-diagram
- **Website:** https://doncheli.tv

## Install

```sh
agentstack add skill-doncheli-don-cheli-sdd-doncheli-diagram
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Don Cheli: Diagram Generator

## Instructions

1. Determine the diagram type from the request or flag: class, sequence, architecture, erd, flowchart
2. Identify the scope: specific file, module, feature, or full project
3. Analyze the relevant source files:
   - **class**: parse class/interface definitions, inheritance, and composition
   - **sequence**: trace function calls, async flows, and inter-module communication
   - **architecture**: identify top-level modules, external services, and data flows (C4 Context/Container)
   - **erd**: parse ORM models, entity fields, and relationships
   - **flowchart**: follow conditional logic for a specific feature or endpoint
4. Build the Mermaid diagram — validate syntax mentally before outputting
5. Keep diagrams readable: maximum 20 nodes, split into subdiagrams if larger
6. Never invent relationships not present in the code
7. Add a generation timestamp as a Mermaid comment
8. Offer to embed the diagram in the target file (README, spec doc, ADR)

## Supported Outputs

- Inline Mermaid code blocks (default) — renders in GitHub, GitLab, Notion
- C4 PlantUML (with `--format c4`) for advanced architecture docs
- Save to file with `--output `

## Quality Gate

- If the analyzed scope yields fewer than 3 nodes, warn the user the diagram may not be useful
- If source files are not readable (permissions, binary), skip and report which files were skipped
- Do not use this skill to generate diagrams from memory — always analyze actual source files

## Source & license

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

- **Author:** [doncheli](https://github.com/doncheli)
- **Source:** [doncheli/don-cheli-sdd](https://github.com/doncheli/don-cheli-sdd)
- **License:** Apache-2.0
- **Homepage:** https://doncheli.tv

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-doncheli-don-cheli-sdd-doncheli-diagram
- Seller: https://agentstack.voostack.com/s/doncheli
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
