student-llm-wiki: Skill for Claude Code

.claude/skills/wiki-diagram/SKILL.md

wiki-diagram is a skill for Claude Code from IssacW228/student-llm-wiki. It costs 70 tokens per session (714 once invoked), scanned A, original, MIT.

A guide for adding Mermaid diagrams to wiki pages. Mermaid is a text-based format that turns simple descriptions into diagrams such as flows, timelines, hierarchies, and relationship maps.

In plain words
What is it for?
Use it while creating or reviewing concepts that involve several steps, system parts, interactions, states, or related ideas. It selects a suitable diagram type and places a bilingual Mermaid section in the page.
Why use it?
It helps show processes, architecture, sequences, and classifications when written explanations are harder to follow. It also limits diagrams to cases where they improve understanding and keeps them small enough to read.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is IssacW228/student-llm-wiki's own configuration. It tells Claude Code how to work on student-llm-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything student-llm-wiki configures →

Part of the student-llm-wiki plugin — 6 skills, 5 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to IssacW228/student-llm-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IssacW228/student-llm-wiki/main/.claude/skills/wiki-diagram/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/IssacW228/student-llm-wiki

Made for: Claude Code.

Or install student-llm-wiki, the plugin that ships this one along with the rest of its 6 skills, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/issacw228/student-llm-wiki/wiki-diagram/github.svg)](https://agentmods.dev/skills/issacw228/student-llm-wiki/wiki-diagram)
Your own site
<a href="https://agentmods.dev/skills/issacw228/student-llm-wiki/wiki-diagram"><img src="https://agentmods.dev/badge/skills/issacw228/student-llm-wiki/wiki-diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/issacw228/student-llm-wiki/wiki-diagram"><img src="https://agentmods.dev/badge/skills/issacw228/student-llm-wiki/wiki-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 714 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00714
Opus 5 $0.00035 $0.00357
Sonnet 5 $0.00014 $0.00143
Haiku 4.5 $0.00007 $0.00071

Measured 12d ago against content hash 4bb0eabe9e44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

wiki-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/wiki-diagram/SKILL.md · 60 lines

What it actually says

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} 命令,针对指定概念页生成/补充图表
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 60 lines · 70 tokens per session scan A 4bb0eabe9e44

Subscribe to this mod's changes

wiki-diagram is a skill published in the GitHub repository IssacW228/student-llm-wiki (176 stars, last pushed 2mo ago), licensed MIT. It adds 70 tokens to every session and 714 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

llm-wiki

Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern from Andrej Karpathy's April 2026 gist. Use this skill whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent compounding knowledge base, ask a question against accumulated notes, lint or…

praneybehl/llm-wiki-plugin · 221 tokens

wiki-ingest

A workflow for bringing URLs, files, and pasted external material into a LoreKit knowledge collection, then saving it as wiki pages with source links and tracking records.

GYF0311/lorekit · 62 tokens

wiki-lint

A health-check skill for a document knowledge base, also called a corpus. It reports missing metadata, broken links, isolated pages, unreadable sources, and reviews that are overdue.

GYF0311/lorekit · 60 tokens

wiki-output

A workflow for creating outward-facing slides, article drafts, charts, and briefing materials from an existing knowledge base. It saves the finished materials in designated output folders.

GYF0311/lorekit · 95 tokens

corpus-ingest

A cross-project entry point for saving URLs, articles, PDFs, files, and other outside material into a configured LoreKit knowledge collection. It routes the work to that collection's own filing rules.

GYF0311/lorekit · 45 tokens

wiki-ingest

Ingest exactly one research paper or source document into an open-llm-wiki vault. Use when the user explicitly asks to add, ingest, process, or publish a paper into the wiki. The workflow parses the source, drafts a source page, runs independent QA, publishes only after the quality gate passes, extracts and normalizes…

AIwork4me/open-llm-wiki · 116 tokens