doncheli-diagram skill
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".
A100/100content scan
Is the doncheli-diagram skill safe?
Clean: nothing in its files matched our rules. We read 1 file in the folder on 2026-09-28.
No findings.
Install the doncheli-diagram skill
A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.
git clone --depth 1 https://github.com/doncheli/don-cheli-sdd.git /tmp/don-cheli-sdd mkdir -p ~/.claude/skills cp -r /tmp/don-cheli-sdd/.agent/skills/doncheli-diagram ~/.claude/skills/doncheli-diagram
available in every project
In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub
The instructions your agent would load
SKILL.md as published, without the frontmatter. Read it on GitHub
Don Cheli: Diagram Generator
Instructions
- Determine the diagram type from the request or flag: class, sequence, architecture, erd, flowchart
- Identify the scope: specific file, module, feature, or full project
- 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
- Build the Mermaid diagram — validate syntax mentally before outputting
- Keep diagrams readable: maximum 20 nodes, split into subdiagrams if larger
- Never invent relationships not present in the code
- Add a generation timestamp as a Mermaid comment
- 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
More skills from doncheli/don-cheli-sdd
- Adoncheli-api-contractDesign complete API contracts covering endpoints, auth, rate limiting, error handling, retries, circuit breaker and idempotency. Activate when user mentions "api contract", "api design", "endpoint", "webhook", "REST", "GraphQL", "OpenAPI", "design the API".
- Adoncheli-api-contractDesign complete API contracts covering endpoints, auth, rate limiting, error handling, retries, circuit breaker and idempotency. Activate when user mentions "api contract", "api design", "endpoint", "webhook", "REST", "GraphQL", "OpenAPI", "design the API".
- Adoncheli-audit-trailRecord and query the decision log for a project. Activate when user mentions "audit", "trail", "log decisions", "decision history", "why was this decided", "ADR", "architecture decision".
- Adoncheli-audit-trailRecord and query the decision log for a project. Activate when user mentions "audit", "trail", "log decisions", "decision history", "why was this decided", "ADR", "architecture decision".
- Adoncheli-changelogAuto-generate CHANGELOG.md entries from git commit history. Activate when user mentions "changelog", "release notes", "what changed", "generate changelog", "CHANGELOG", "release history".
- Adoncheli-changelogAuto-generate CHANGELOG.md entries from git commit history. Activate when user mentions "changelog", "release notes", "what changed", "generate changelog", "CHANGELOG", "release history".
- Adoncheli-context-healthReport the current state of the context window and recommend compression or cleanup actions. Activate when user mentions "context health", "context window", "how much context", "context full", "running out of context", "compress context".
- Adoncheli-context-healthReport the current state of the context window and recommend compression or cleanup actions. Activate when user mentions "context health", "context window", "how much context", "context full", "running out of context", "compress context".
- Adoncheli-data-policyAudit and document what personal or sensitive data the project collects, processes, and stores. Activate when user mentions "privacy", "data policy", "what data", "GDPR", "personal data", "data retention", "PII".
- Adoncheli-data-policyAudit and document what personal or sensitive data the project collects, processes, and stores. Activate when user mentions "privacy", "data policy", "what data", "GDPR", "personal data", "data retention", "PII".
- Adoncheli-debateRun an adversarial multi-role debate to surface trade-offs and reach a reasoned decision. Activate when user mentions "debate", "discuss", "trade-off", "decision", "compare options", "pros and cons", "choose between".
- Adoncheli-debateRun an adversarial multi-role debate to surface trade-offs and reach a reasoned decision. Activate when user mentions "debate", "discuss", "trade-off", "decision", "compare options", "pros and cons", "choose between".