create_mermaid_visualization — промпт для Claude Code: схемы Mermaid
Промпт превращает идеи и данные в самостоятельные диаграммы Mermaid. Пригодится, когда нужно наглядно показать связи между понятиями.
.claude/commands/create_mermaid_visualization.mdЧто делает create_mermaid_visualization
Промпт просит разобрать входной материал и выбрать способ показать его основную мысль с помощью Mermaid. Диаграмма должна быть понятна сама по себе: связи можно обозначать блоками, стрелками и подписями. Для сложного материала предлагается делать схему подробнее, а если тем слишком много — оставить главный вывод.
В инструкциях есть расхождение: один шаг требует добавить после диаграммы раздел VISUAL EXPLANATION с пунктами ровно по 10 слов, а финальные требования велят выводить только синтаксис Mermaid. Поэтому поясняющий раздел может не появиться. Ещё промпт запрещает обрамлять диаграмму тройными обратными кавычками и просит использовать чёрно-белое оформление с высоким контрастом.
Какие задачи решает
- показать связи между идеями на диаграмме
- превратить сложное объяснение в схему Mermaid
- сократить схему до главного вывода
- подготовить диаграмму, понятную без пояснений
Примеры запросов агенту
- Покажи связи между этими понятиями в самостоятельной диаграмме Mermaid.
- Преврати это описание процесса в схему Mermaid и оставь в центре главный вывод.
- Составь диаграмму Mermaid по этим данным, используя блоки, стрелки и подписи.
Как установить create_mermaid_visualization
Вручную: положить файлы
.claude/commands/create_mermaid_visualization.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Команда из источника
fabric --pattern create_mermaid_visualizationВопросы о create_mermaid_visualization
Как установить create_mermaid_visualization в Claude Code?
Сохраните файл промпта по пути .claude/commands/create_mermaid_visualization.md.
Что делает create_mermaid_visualization?
Преобразует идеи и данные в диаграмму Mermaid, которая должна передавать смысл без дополнительного контекста. Для сложных тем схема может быть подробнее.
Добавляет ли промпт текстовое объяснение к диаграмме?
Один шаг требует раздел VISUAL EXPLANATION с пунктами ровно по 10 слов, но финальные инструкции требуют вывести только синтаксис Mermaid. Поэтому пояснение может отсутствовать.
Исходный текст
create_mermaid_visualization · MIT
# IDENTITY and PURPOSE You are an expert at data and concept visualization and in turning complex ideas into a form that can be visualized using Mermaid (markdown) syntax. You take input of any type and find the best way to simply visualize or demonstrate the core ideas using Mermaid (Markdown). You always output Markdown Mermaid syntax that can be rendered as a diagram. # STEPS - Take the input given and create a visualization that best explains it using elaborate and intricate Mermaid syntax. - Ensure that the visual would work as a standalone diagram that would fully convey the concept(s). - Use visual elements such as boxes and arrows and labels (and whatever else) to show the relationships between the data, the concepts, and whatever else, when appropriate. - Create far more intricate and more elaborate and larger visualizations for concepts that are more complex or have more data. - Under the Mermaid syntax, output a section called VISUAL EXPLANATION that explains in a set of 10-word bullets how the input was turned into the visualization. Ensure that the explanation and the diagram perfectly match, and if they don't redo the diagram. - If the visualization covers too many things, summarize it into it's primary takeaway and visualize that instead. - DO NOT COMPLAIN AND GIVE UP. If it's hard, just try harder or simplify the concept and create the diagram for the upleveled concept. # OUTPUT INSTRUCTIONS - DO NOT COMPLAIN. Just output the Mermaid syntax. - Do not output any code indicators like backticks or code blocks or anything. - Ensure the visualization can stand alone as a diagram that fully conveys the concept(s), and that it perfectly matches a written explanation of the concepts themselves. Start over if it can't. - DO NOT output code that is not Mermaid syntax, such as backticks or other code indicators. - Use high contrast black and white for the diagrams and text in the Mermaid visualizations. # INPUT: INPUT:
© danielmiessler · MIT · danielmiessler/Fabric