Skip to content

/wiki-diagram

Add Mermaid diagrams to wiki pages to aid understanding. This skill should be used during ingest/review when a concept involves a process, architecture, sequence, hierarchy, or comparison that is easier to grasp visually, or when the user explicitly asks to

From plugin
student-llm-wiki
1806 skills5 commands

Claude Code

$ npx -y skills add IssacW228/student-llm-wiki --skill wiki-diagram --agent claude-code

SKILL.md

wiki-diagram.SKILL.md
name: wiki-diagram
description: Add Mermaid diagrams to wiki pages to aid understanding. This skill should be used during ingest/review when a concept involves a process, architecture, sequence, hierarchy, or comparison that is easier to grasp visually, or when the user explicitly asks to "画图"/"配图"/"diagram"/"visualize" a concept.

Wiki Diagram — Mermaid 可视化

用 Mermaid 给概念页配图。Obsidian 原生渲染 ```mermaid 代码块,无需安装插件。

何时配图 When to Diagram

只在"文字描述比图更难懂"时配图,不要每页都加。适合配图的情况:

  • 多步骤流程/算法 → flowchart
  • 协议交互/攻击步骤,含时序(适合 COMP4337) → sequenceDiagram
  • 系统架构/模型结构,含组件关系 → flowchart
  • 概念分类/知识地图 → mindmap
  • 状态转换/生命周期 → stateDiagram-v2
  • 概念间关系网(跨课程连接) → graph

不适合配图:单一定义、纯数学公式推导、线性叙述无分支无关系的内容。

图表类型映射 Diagram Type Mapping

| 内容类型 | Mermaid 类型 | |---|---| | 算法步骤/数据处理流程 | `flowchart TD` | | 协议/攻击交互序列 | `sequenceDiagram` | | 模型架构/系统组件 | `flowchart LR` | | 概念分类/知识地图 | `mindmap` | | 状态机/生命周期 | `stateDiagram-v2` | | 概念间关系网 | `graph TD` |

放置位置 Placement

在概念页的 `直觉 Intuition` 或 `详细解释 Detailed` 章节之后,新增 `## 图解 Diagram` 小节。局部插入,不重写全页。

## 图解 Diagram

\`\`\`mermaid
flowchart TD
    A[输入 Input] --> B[处理 Process]
    B --> C[输出 Output]
\`\`\`

质量规则 Quality Rules

1. **≤10 个节点**:超过就简化或只画核心路径 2. **双语标签**:节点文字用"中文 English"或保持和页面其他部分一致的语言风格 3. **一页最多 1-2 个图**:避免视觉噪音 4. **语法要对**:节点 ID、箭头、括号/引号配对正确,避免渲染失败 5. 若图表来自课件原图:先在来源页文字描述要点,再判断是否用 Mermaid 重绘成更清晰的逻辑图(不需要 1:1 还原)

触发方式 Triggers

  • **自动**:ingest/review 创建或更新概念页时,按上述标准判断是否需要配图(见 wiki-ingest 步骤)
  • **手动**:用户说"画图"/"画个图"/"配图"/"diagram this"/"visualize X",或用 `/diagram {concept}` 命令,针对指定概念页生成/补充图表
Read more
@issacw228
Ships withstudent-llm-wiki

用 AI 把课件变成你自己的知识库 Turn your course slides into a personal wiki with AI

Stars on GitHub

Momentum

stars in total
180
Star history of IssacW228/student-llm-wiki on GitHub, a chart by star-history.com

Other skills on student-llm-wiki.

exam-prep
Auto-invoked

exam-prep

Generate practice exam questions from weak concepts. This skill should be used when the user says "exam-prep", "备考", "make…

wiki-core
Auto-invoked

wiki-core

Core operating rules for the student knowledge wiki. This skill should be used whenever working inside an Obsidian vault that…

wiki-ingest
Auto-invoked

wiki-ingest

Digest a course source file into the wiki. This skill should be used when the user says "ingest", "消化", "process this PDF/slide",…

wiki-lint
Auto-invoked

wiki-lint

Health-check the wiki and apply confidence decay. This skill should be used when the user says "lint", "检查wiki", "check the…

wiki-review
Auto-invoked

wiki-review

Feynman-technique review mode for studying. This skill should be used when the user says "review", "复习", "quiz me", "test my…

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

@iofficeai@iofficeaiInstall Skill

Questions about wiki-diagram.

Which coding agents can use wiki-diagram?
wiki-diagram installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.