Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

create-mermaid-diagramscreate Mermaid diagrams 搜索

Agent Skill

create-mermaid-diagrams 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

499

周安装

21

GitHub Stars

2

下载量

175
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-mermaid-diagrams(create Mermaid diagrams 搜索)
来源仓库:https://github.com/liatrio-labs/ai-prompts
仓库路径:skills/create-mermaid-diagrams
安装命令:
npx skills add https://github.com/liatrio-labs/ai-prompts --skill create-mermaid-diagrams
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/liatrio-labs/ai-prompts --skill create-mermaid-diagrams

简介

自动生成清晰且语法正确的 Mermaid 图表,附带重复验证机制捕获渲染错误。

  • 适用于文档说明、架构展示和流程可视化,优先选择最小化图表表达核心逻辑。
  • 支持手动触发模式,结合项目上下文生成符合正體中文规范的页面内容。
  • 安装前需评估是否涉及外部资源引用,确认输出格式与目标平台渲染能力匹配。
  • create-mermaid-diagrams 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Create Mermaid Diagrams

Overview

Create clear Mermaid diagrams and always validate output through a repeatable loop that catches syntax and rendering errors before final delivery.

Context Marker

Always begin your response with all active emoji markers, in the order they were introduced.

Format: "<marker1><marker2><marker3>\n<response>"

The marker for this skill is: 🎨

Manual Triggering

When manual invocation is needed, trigger this skill using whatever mechanism your assistant/tool provides for manual skill selection or activation.

Workflow

  1. Define communication intent and choose the smallest diagram type that fits:

- flowchart for process and architecture flow. - sequenceDiagram for interaction timelines. - stateDiagram-v2 for state transitions.

  1. Generate markdown with exactly one Mermaid fence per requested diagram:

- Opening fence must be exactly ``mermaid (no leading space; any spaced example is only Markdown escaping). - Closing fence must be exactly `` (no leading space; any spaced example is only Markdown escaping). - Keep fence markers at column 0.

  1. Validate the full markdown file with mmdc: mmdc -i <input.md> -o /tmp/<name>-rendered.md -a /tmp/<name>-mermaid-artifacts
  2. If validation fails:

- Read raw Mermaid CLI output from mmdc. - Apply the minimal targeted fix in the failing Mermaid fence. - Re-run the same full-file validation command.

  1. Repeat failure analysis and correction up to 3 attempts.
  2. If still failing after 3 attempts, return:

- Best-effort corrected diagram. - Validation summary with likely root cause. - Raw error excerpt from Mermaid CLI output. - Next manual fix suggestion.

Feedback Loop Rules

  • Do not change diagram type unless the error indicates the type keyword is invalid.
  • Prefer minimal edits per retry to avoid introducing new syntax errors.
  • Preserve user intent and semantic meaning while repairing syntax.
  • Stop retrying early when validation succeeds.

Runtime Requirements

  • mmdc must be available in PATH.
  • If running in a sandboxed AI tool, allow execution of mmdc explicitly.
  • Treat mmdc stdout/stderr as the source of truth for pass/fail and diagnosis.

Existing Documentation with Multiple Mermaid Diagrams

When validating an existing markdown file that includes multiple Mermaid blocks:

  1. Run one full-file validation command with mmdc.
  2. Parse CLI output to identify discovered block count and rendered artifacts.
  3. For failures, use parse error snippet and caret location to identify the failing fence.
  4. Patch only failing blocks, then re-run full-file validation.
  5. Provide a final rollup: total blocks, passed, failed, fixed, unresolved.

Error Handling

Treat any non-zero mmdc exit as a failure and use Mermaid CLI output as the source of truth for diagnosis and repair. For dependency, access, or input failures (for example mmdc not executable in sandbox), stop immediately and do not continue retries. When validation cannot run, the response must clearly state that validation did not occur and include:

  • the exact mmdc command that failed
  • exit code (if available)
  • a raw stderr excerpt
  • explicit next steps to grant mmdc execution access or fix file/path permissions

Output Requirements

  • Always include the final Mermaid markdown block.
  • Include a short validation result summary.
  • On failure, include the actionable error context and exact next steps.

References

  • Mermaid best practices and templates: references/mermaid-best-practices.md
  • Advanced diagram patterns and constructs: references/advanced-patterns.md
  • Error classes and repair strategies: references/error-patterns.md
  • Multi-diagram markdown validation workflow: references/multi-diagram-validation.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.85%
按下载量换算61

Claude

29.33%
按下载量换算51

Cursor

19.56%
按下载量换算34

Gemini CLI

9.84%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills