|
| 1 | +# 🚀 Mermaid Diagram/Chart Generator |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## Summary |
| 6 | + |
| 7 | +A universal Copilot prompt that turns any scenario, process, or concept into a clear, ready-to-use Mermaid.js diagram or chart. |
| 8 | + |
| 9 | +## Prompt 💡 |
| 10 | + |
| 11 | +You are a visualisation assistant. |
| 12 | +For [SCENARIO, PROCESS, OR CONCEPT], create a clear and user-friendly Mermaid.js diagram of type [DIAGRAM_TYPE]. |
| 13 | +Always keep labels short and readable, structure logically, and return only one mermaid fenced code block with no extra text. |
| 14 | + |
| 15 | +## Description ℹ️ |
| 16 | + |
| 17 | +This Copilot prompt helps you quickly transform any scenario, process, or concept into a Mermaid.js diagram. |
| 18 | +By specifying the content in [SCENARIO, PROCESS, OR CONCEPT] and choosing the format in [DIAGRAM_TYPE], you’ll instantly get a ready-to-use visualisation. |
| 19 | + |
| 20 | +Supported diagram types ([DIAGRAM_TYPE]): |
| 21 | +- Flowchart (`flowchart TD`, `flowchart LR`) |
| 22 | +- Sequence Diagram (`sequenceDiagram`) |
| 23 | +- Class Diagram (`classDiagram`) |
| 24 | +- State Diagram (`stateDiagram-v2`) |
| 25 | +- Entity-Relationship Diagram (`erDiagram`) |
| 26 | +- User Journey (`journey`) |
| 27 | +- Gantt Chart (`gantt`) |
| 28 | +- Pie Chart (`pie`) |
| 29 | +- Quadrant Chart (`quadrantChart`) |
| 30 | +- Requirement Diagram (`requirementDiagram`) |
| 31 | +- GitGraph (`gitGraph`) |
| 32 | +- C4 Diagram (`C4Diagram`) |
| 33 | +- Mindmap (`mindmap`) |
| 34 | +- Timeline (`timeline`) |
| 35 | +- ZenUML (`zenUML`) |
| 36 | +- Sankey (`sankey`) |
| 37 | +- XY Chart (`xyChart`) |
| 38 | +- Block Diagram (`blockDiagram`) |
| 39 | +- Packet (`packet`) |
| 40 | +- Kanban (`kanban`) |
| 41 | +- Architecture (`architecture`) |
| 42 | +- Radar (`radar`) |
| 43 | +- Treemap (`treemap`) |
| 44 | + |
| 45 | +Tip: |
| 46 | +For more specific, accurate, and visually refined results, explore the official Mermaid.js documentation. |
| 47 | +It provides syntax details, advanced options, and styling techniques to make your diagrams fit for purpose. |
| 48 | + |
| 49 | +## Contributors 👨💻 |
| 50 | + |
| 51 | +[Tanel Vahk](https://github.com/tvahk) |
| 52 | + |
| 53 | +## Version history |
| 54 | + |
| 55 | +Version|Date|Comments |
| 56 | +-------|----|-------- |
| 57 | +1.0|Aug 26, 2025|Initial release |
| 58 | + |
| 59 | +## Instructions 📝 |
| 60 | + |
| 61 | +1. Ensure that Copilot for Microsoft 365 is available in your tenant. |
| 62 | +2. Open Microsoft 365 Copilot via m365.cloud.microsoft or start a Copilot chat in Teams. |
| 63 | +3. Copy and paste the prompt provided above. |
| 64 | +4. Replace the placeholders with your own scenario, process, or concept, and adjust details as needed (for example, add specific steps or tasks). |
| 65 | +5. Copilot will generate a structured response in the form of a Mermaid.js diagram. |
| 66 | + |
| 67 | +### Improvise Usage 🚀 |
| 68 | +You can add more information to the prompt if needed to create more accurate response. |
| 69 | + |
| 70 | +## Prerequisites |
| 71 | + |
| 72 | +* [Copilot for Microsoft 365](https://developer.microsoft.com/microsoft-365/dev-program) |
| 73 | + |
| 74 | +## Help |
| 75 | + |
| 76 | +We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues. |
| 77 | + |
| 78 | +You can try looking at [issues related to this sample](https://github.com/pnp/copilot-prompts/issues?q=label%3A%22sample%3A%20YOUR-SAMPLE-NAME%22) to see if anybody else is having the same issues. |
| 79 | + |
| 80 | +If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/copilot-prompts/issues/new). |
| 81 | + |
| 82 | +Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/copilot-prompts/issues/new). |
| 83 | + |
| 84 | +## Disclaimer |
| 85 | + |
| 86 | +**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.** |
0 commit comments