diagram-generator
Fungsinya
Agent ini membuat diagram visual dari deskripsi teks. Agent dapat menghasilkan berbagai jenis diagram, seperti flowchart, sequence diagram, dan mind map, sehingga ide Anda berubah menjadi visual yang jelas.
Kapan dipakai
- ✓Saat Anda perlu memvisualisasikan sebuah proses atau alur kerja.
- ✓Untuk menyusun ide yang kompleks ke dalam mind map.
- ✓Saat menjelaskan interaksi antara berbagai bagian dari sebuah sistem.
Link skill
https://github.com/zhaoxuya520/reverse-skill/blob/main/skills/diagram-generator/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Buatkan flowchart yang menunjukkan proses login pengguna, termasuk jalur saat berhasil dan saat gagal.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Anda menjelaskan apa yang ingin ditampilkan dalam diagram, lalu agent memilih cara terbaik untuk merepresentasikannya menggunakan kode khusus. Setelah itu, agent membuat kodenya dan menampilkan diagram visualnya kepada Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Diagram Generator
ACTION REQUIRED(读完后立刻执行)
NOW:确认当前任务是否命中本 skill 的适用范围NOW:读取../tool-index.md,校验工具可用性和实际路径NEXT:缺工具时调用 bootstrap,不要猜路径ACT:进入"工作流"第一步并执行,不要停在确认状态
Purpose
Create clear, editable diagrams from messy or structured inputs. Prefer text-based diagram source first so the result can be reviewed, versioned, and refined. Render to files only when the user asks for an image/PDF or when a downloadable artifact would materially help.
Default workflow
- Identify the user's intent, audience, and source material.
- Choose the diagram family and language using the decision table below.
- Normalize entities, relationships, labels, states, branches, and time/order information before writing diagram code.
- Generate concise, readable diagram source.
- Validate the syntax mentally and, when creating files, run
scripts/render_diagram.py. - Return the diagram source plus a short note about assumptions. When files are generated, include links to the output files.
Do not over-ask for clarification. If the request is underspecified, make reasonable assumptions and label them briefly.
Diagram language decision table
Use Mermaid unless another language is clearly better.
| User wants | Prefer | Why |
|---|---|---|
| process flow, decision tree, simple swimlane | Mermaid flowchart | readable and easy to paste into Markdown |
| sequence of system/user interactions | Mermaid sequenceDiagram or PlantUML sequence | Mermaid for docs; PlantUML for UML formality |
| lifecycle, state machine, transitions | Mermaid stateDiagram-v2 or PlantUML state | compact transition syntax |
| database schema, entities, relationships | Mermaid erDiagram | portable ER notation |
| class/interface/object model | Mermaid classDiagram or PlantUML class | Mermaid for docs; PlantUML for detailed UML |
| project schedule | Mermaid gantt | concise timeline syntax |
| hierarchy, ideas, notes | Mermaid mindmap | good default for idea maps |
| customer/product journey | Mermaid journey | built-in journey notation |
| git history | Mermaid gitGraph | built-in git notation |
| dependency graph, package graph, large network | Graphviz DOT | better layout engines for dense graphs |
| architecture with layers, clusters, boundaries | Mermaid flowchart with subgraphs, Graphviz clusters, or PlantUML C4-style | choose based on requested fidelity |
| weighted flow/sankey-like relationship | Mermaid sankey-beta when supported, otherwise SVG or Graphviz | Mermaid support may vary by renderer |
| custom visual where source languages fit poorly | SVG | precise control over layout and styling |
Output policy
- Always provide editable source unless the user explicitly asks only for an image.
- Default to a single best diagram. Offer alternatives only when genuinely useful.
- Prefer stable, simple syntax over fancy features that may not render in older Mermaid/PlantUML versions.
- Use short labels. Split long text into notes outside the diagram when needed.
- Avoid ambiguous node IDs. Use ASCII IDs and human-readable labels.
- Preserve user terminology, but standardize capitalization within a diagram.
- For technical diagrams, include boundaries such as client, service, database, queue, external API, and operator/user when they are implied.
- For business-process diagrams, distinguish happy path, decision points, failures, retries, and manual steps when present.
- For diagrams created from uncertain text, include an
Assumptionssection after the code.
Mermaid generation rules
Consult references/diagram-patterns.md for compact templates.
General Mermaid rules:
- Start with the correct diagram directive, for example
flowchart TD,sequenceDiagram,erDiagram,gantt,mindmap, orjourney. - For flowcharts, use
flowchart TDunless the user asks for left-to-right; useflowchart LRfor architecture and pipelines. - Use subgraphs for swimlanes or architecture layers. Name subgraphs with readable labels.
- Keep node IDs stable and ASCII-only, for example
ingest_service[Ingest Service]. - Quote labels that contain punctuation likely to confuse the parser.
- Use decision diamonds for branching:
decision{Condition?}. - Use consistent edge labels:
-- yes -->,-- no -->,-. async .->, or== critical ==>only when meaningful. - In sequence diagrams, declare participants before messages. Use
actorfor humans andparticipantfor systems.
…
Pertanyaan umum
Jenis diagram apa saja yang bisa dibuat?
Agent dapat membuat flowchart, sequence diagram, mind map, org chart, state diagram, ER diagram, class diagram, dependency graph, Gantt chart, user journey, Sankey flow, network graph, dan model visual lainnya.
Apakah saya perlu bisa coding untuk menggunakannya?
Tidak perlu. Anda cukup mendeskripsikan diagram dengan bahasa sehari-hari. Agent yang menangani bagian teknisnya, yaitu membuat kode dan gambar diagramnya.
Bisakah saya mengedit diagramnya nanti?
Bisa. Agent selalu menyertakan kode sumber diagram yang bisa diedit, sehingga Anda mudah menyempurnakan atau mengubahnya.
Detail
Deskripsi asli dari pembuat
generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. sup
Popularitas
- Bintang GitHub
- 42k
- Peringkat
- #6472
- Lisensi
- MIT
- Diperbarui
- 22/9/2026
Komentar
- …
Skill lain dari repositori ini
competition-ad-certificate-abuse
42kMembantu agent Anda menganalisis serangan pada sistem sertifikat digital. Agent menyelidiki bagaimana sertifikat bisa disalahgunakan untuk mendapatkan akses.
competition-agent-cloud
42kMembantu agent menganalisis tantangan keamanan pada sistem AI dan cloud. Agent menyelidiki bagaimana prompt, tool, dan cloud bisa dieksploitasi.
competition-android-hooking
42kMembantu agent Anda menyelidiki aplikasi Android. Agent menganalisis cara kerja aplikasi secara internal serta kemungkinan untuk dimodifikasi atau dieksploitasi.
competition-browser-persistence
42kMembantu agent Anda menganalisis cara website menyimpan informasi di browser. Agent menyelidiki cookie dan data lain untuk memahami cara kerja sesi.
Skill serupa
gifgrep
394kMemungkinkan agent Anda mencari GIF, melihat pratinjau hasil, mengunduh GIF, dan mengambil satu bingkai diam atau lembar kontak darinya.
meme-maker
394kMemungkinkan agent Anda memilih templat meme, menambahkan teks sendiri, dan membuat meme sebagai gambar SVG atau PNG.
ios-icon-gen
280kMemungkinkan agent Anda membuat ikon untuk aplikasi iOS. Menggunakan simbol Apple atau ikon dari sumber lain untuk membuat file yang tepat.