用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill mermaid-generator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Index of Build Systems Skills
Coordination patterns for distributed dataflow systems including barriers, epochs, and distributed snapshots
Windowing, sessionization, time-series aggregation, and late data handling for streaming systems
基于 SOC 职业分类
正在显示 SKILL.md
| name | mermaid-generator |
| description | This skill generates interactive workflow diagrams using the Mermaid JavaScript library |
Generate simple minimalist but colorful interactive workflow diagrams using Mermaid.js for intelligent textbooks. Creates complete MicroSim packages with standalone HTML files, MkDocs integration, and Dublin Core metadata. Each diagram features colorful node backgrounds, 16-point fonts for optimal readability, and follows the educational MicroSim pattern.
Because this skill is part of the workflow for creation of textbooks using mkdocs, the design goal is to create simple unadorned diagrams without any complex padding, borders or decoration. This is because our focus is to educate, not entertain and show off our ability to do rounded corners and gradient shading.
Before generating any Mermaid MicroSim, you MUST read the template files in assets/templates/mermaid/:
| File | Purpose |
|---|---|
main-template.html | HTML shell with 2/3 + 1/3 layout, references external CSS/JS |
style.css | All styling for layout, panels, and hover effects |
script.js | Hover interaction logic for info panel |
software-lifecycle-example.html | Complete working example demonstrating all patterns |
index-template.md | Documentation template with proper YAML frontmatter |
metadata-template.json | Dublin Core metadata structure |
File Structure for Each MicroSim:
docs/sims/[diagram-name]/
├── main.html # HTML with mermaid code and nodeInfo data
├── style.css # Copy from template (customize if needed)
├── script.js # Copy from template (rarely needs changes)
├── index.md # Documentation page
└── metadata.json # Dublin Core metadata
CRITICAL: Copy the structural patterns exactly. The default layout uses:
overflow:auto inside diagram/notes panelsThe standard Mermaid MicroSim layout reserves the right third of the canvas for a persistent info panel:
+----------------------------------+----------------+
| | |
| DIAGRAM PANEL | INFO PANEL |
| (66.67%) | (33.33%) |
| | |
| flowchart TD | Details |
| | | -------- |
| v | |
| [Node] | Hover over |
| | | a node to |
| v | see details |
| [Node] | |
| | |
+----------------------------------+----------------+
Benefits of this layout:
Use the mermaid-generator skill when users request:
Example user requests:
Analyze the user's description to extract:
If the description is incomplete or unclear, prompt the user for additional information:
To create an accurate workflow diagram, I need more information:
1. What are the main steps in this process?
2. Are there any decision points where the flow branches?
3. What happens in success vs. error scenarios?
4. Should this flow top-down or left-right?
Required information before proceeding:
Consult references/mermaid-flowchart-syntax.md for detailed syntax guidance.
Design decisions:
Choose node shapes based on purpose:
("Label") for start/end["Label"] for process steps{"Decision?"} for decision points(("Label")) for connectorsSelect color palette from reference guide:
Define style classes for consistent theming:
classDef startNode fill:#667eea,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef processNode fill:#764ba2,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef decisionNode fill:#f093fb,stroke:#333,stroke-width:2px,color:#333,font-size:16px
Ensure 16pt fonts for all nodes and edge labels:
font-size:16px in all classDef declarationslinkStyle default font-size:16pxUse top-down direction unless user specifies otherwise:
flowchart TD
Use <br/> for line breaks in node labels — never \n:
Mermaid v11 does not interpret \n escape sequences inside labels when
htmlLabels: true (the default). Always use <br/>:
Node["First line<br/>Second line<br/>Third line"]:::processNode
Avoid these characters inside node labels — they break the Mermaid parser:
| Character | Problem | Safe alternative |
|---|---|---|
\n | Not parsed as newline | Use <br/> |
$ or $$ | Triggers MathJax / parser confusion | Spell out "dollars" or omit |
Example Mermaid code structure:
flowchart TD
Start("Start Process"):::startNode
Step1["Gather Input"]:::processNode
Decision{"Valid Input?"}:::decisionNode
Step2["Process Data"]:::processNode
Success("Success"):::successNode
Error("Error - Retry"):::errorNode
Start --> Step1 --> Decision
Decision -->|Yes| Step2 --> Success
Decision -->|No| Error --> Step1
classDef startNode fill:#667eea,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef processNode fill:#764ba2,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef decisionNode fill:#f093fb,stroke:#333,stroke-width:2px,color:#333,font-size:16px
classDef successNode fill:#4facfe,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef errorNode fill:#fa709a,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
linkStyle default stroke:#999,stroke-width:2px,font-size:16px
Create the diagram directory following the MicroSim pattern:
mkdir -p /docs/sims/[diagram-name]
Naming convention:
software-lifecycle, scientific-method, network-troubleshootingUse the template files in assets/templates/mermaid/ as a starting point. Replace placeholders with actual content.
IMPORTANT: Read software-lifecycle-example.html first to see a complete working implementation.
Copy assets/templates/mermaid/main-template.html and replace these placeholders:
{{TITLE}}: Diagram title (e.g., "Software Development Lifecycle"){{SUBTITLE}}: Brief subtitle (e.g., "Interactive Workflow Diagram"){{MERMAID_CODE}}: The complete Mermaid flowchart code (from Step 2){{DESCRIPTION}}: 2-3 sentence explanation of the diagram{{TOOLTIP_DATA}}: JavaScript object mapping node IDs to hover descriptionsImportant: Ensure proper indentation of the Mermaid code within the <div class="mermaid"> tag.
Interactive Tooltips (Required Default Feature):
Every Mermaid diagram MUST include interactive hover tooltips for all nodes. This provides educational context when users hover over each step in the workflow. The tooltip system uses a robust polling approach that works reliably in iframes.
Copy assets/templates/mermaid/style.css directly. No modifications needed unless custom styling is requested.
The default stylesheet provides:
Common customizations:
.diagram-panel background color (default: aliceblue).info-panel width for different layouts.info-title color to match diagram themeCopy assets/templates/mermaid/script.js directly. This file rarely needs modification.
The script provides:
Note: The nodeInfo object must be defined in main.html BEFORE script.js is loaded.
Copy assets/templates/mermaid/index-template.md and replace placeholders:
{{TITLE}}: Same as main.html title{{OVERVIEW}}: 1-paragraph overview of the workflow{{DESCRIPTION}}: Detailed description of the process{{WORKFLOW_STEPS}}: Bulleted list of main steps:
1. **Step Name** - Description of what happens
2. **Decision Point** - What decision is being made
3. **Final Step** - How the process concludes
{{KEY_CONCEPTS}}: Bulleted list of educational concepts illustrated{{RELATED_CONCEPTS}}: Links to related textbook sections or conceptsCopy assets/templates/mermaid/metadata-template.json and replace placeholders:
{{TITLE}}: Diagram title{{DESCRIPTION}}: Brief description{{SUBJECT}}: Educational subject area (e.g., "Computer Science", "Biology"){{DATE}}: Current date in ISO format (YYYY-MM-DD){{COVERAGE}}: Scope of content (e.g., "Introductory", "Advanced"){{AUDIENCE}}: Target audience (e.g., "High School", "Undergraduate"){{NODE_COUNT}}: Number of nodes in diagram{{EDGE_COUNT}}: Number of edges/arrows in diagram{{CONCEPTS_LIST}}: JSON array of concept labels (e.g., "Algorithm Design", "Data Validation"){{BLOOM_LEVEL}}: Highest Bloom's Taxonomy level addressed (e.g., "Understand", "Apply", "Analyze")Example metadata.json:
{
"title": "Software Development Lifecycle",
"description": "Interactive workflow diagram showing the phases of software development from planning through deployment",
"subject": "Computer Science",
"creator": "Claude AI with Mermaid Generator Skill",
"date": "2025-11-06",
"type": "Interactive Workflow Diagram",
"format": "text/html",
"language": "en-US",
"coverage": "Introductory",
"rights": "CC BY-NC-SA 4.0",
"audience": "Undergraduate",
"diagram_type": "flowchart",
"direction": "TD",
"node_count": "8",
"edge_count": "10",
"concepts": [
"Requirements Analysis",
"System Design",
"Implementation",
"Testing",
"Deployment",
"Maintenance"
],
"bloom_taxonomy": "Understand",
"version": "1.0"
}
Add the new diagram to the textbook's navigation in mkdocs.yml:
nav:
- Visualizations:
- Software Lifecycle: sims/software-lifecycle/index.md
Or integrate into relevant chapter navigation:
nav:
- Chapter 3 - Software Engineering:
- Introduction: chapters/03/index.md
- Lifecycle Diagram: sims/software-lifecycle/index.md
Perform quality checks:
{{PLACEHOLDERS}} remainfont-family: Arial, Helvetica, sans-serifoverflow:auto on diagram/notes containers and no wheel handlers that trap page scrollTest the diagram:
cd /docs
mkdocs serve
# Navigate to http://localhost:8000/sims/[diagram-name]/
Open main.html directly in browser to test standalone functionality.
Provide a summary of what was created:
Created interactive Mermaid workflow diagram: [Diagram Name]
Location: /docs/sims/[diagram-name]/
Files generated:
✓ main.html - Standalone interactive diagram with 2/3 + 1/3 layout
✓ style.css - Layout and styling (customizable)
✓ script.js - Hover interaction logic
✓ index.md - MkDocs integration page
✓ metadata.json - Dublin Core metadata
Features:
• 2/3 diagram panel + 1/3 info panel layout
• Top-down flowchart with vertical columns
• Colorful node backgrounds for visual clarity
• 16-point fonts for optimal readability
• Hover info panel (no floating tooltips)
• Minimal padding for iframe embedding
• [X] nodes and [Y] edges
The diagram illustrates: [brief description]
To view:
1. Standalone: Open /docs/sims/[diagram-name]/main.html
2. In textbook: Run `mkdocs serve` and navigate to the page
Next steps:
- Add navigation link in mkdocs.yml
- Reference from relevant chapter content
- Consider creating related diagrams for connected concepts
Every Mermaid diagram MUST include interactive hover descriptions. Prefer a right-side info panel/card (not floating tooltip overlays) so content remains readable inside iframes.
Place the color-key legend at the top of the info panel as a normal-flow block element — not absolutely positioned inside the diagram panel.
This is the correct placement because:
<div class="info-panel">
<div class="legend"> <!-- legend first, normal flow -->
<div class="legend-title">Color Key</div>
<div class="legend-item"><div class="legend-dot" style="background:#2e7d32"></div>Start / success</div>
<!-- ... more items ... -->
</div>
<h3>Step Details</h3> <!-- header below legend -->
<div id="panelWrap">
<div id="panel">Hover a node for details.</div>
</div>
</div>
.legend {
margin-bottom: 12px;
font-size: 12px;
border: 1px solid #cbd5e1;
border-radius: 4px;
padding: 8px 10px;
background: #fff;
}
Use a right-side panel with an inner card that can move vertically:
<section id="notes">
<h3>Workflow Notes</h3>
<div id="panelWrap">
<div id="panel">Hover a node for details.</div>
</div>
</section>
Use fixed-height containers with no internal scroll capture:
html, body {
overflow: hidden;
}
.diagram-panel, .info-panel {
overflow: visible; /* never auto/scroll */
}
#panelWrap {
position: relative;
height: 920px; /* adjust after render test */
}
#panel {
position: absolute;
left: 0;
right: 0;
top: 8px;
background-color: #f8fafc;
color: #334155;
border: 1px solid #e2e8f0;
padding: 10px;
border-radius: 6px;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
.node {
cursor: pointer;
}
Define tooltip content as a JavaScript object mapping node IDs to descriptive text:
const tooltips = {
'Start': 'Begin the process here - this is the entry point',
'Step1': 'First action to take in the workflow',
'Decision': 'Evaluate the condition and choose a path',
'Success': 'Process completed successfully!',
'Error': 'Handle the error condition and retry if needed'
};
Important: Node IDs must match the IDs used in your Mermaid flowchart code (the part before the brackets/parentheses).
Use this polling-based initialization. Do NOT use fixed one-shot timing. Position the right info card near mouse Y and clamp to panel bounds:
const panel = document.getElementById('panel');
const panelWrap = document.getElementById('panelWrap');
function positionPanel(evt) {
const r = panelWrap.getBoundingClientRect();
const panelH = panel.offsetHeight || 120;
// Use offsetHeight (full CSS height), NOT r.height (visible viewport slice).
// r.height shrinks when the element is partially scrolled out of view,
// making Math.min() push the panel below the canvas for bottom nodes.
const wrapH = panelWrap.offsetHeight;
const y = evt.clientY - r.top - 20;
// Bottom buffer of 200px: accounts for the gap between panelWrap bottom
// and the iframe bottom (legend height + h3 + padding). Increase if the
// last-node infobox still clips; decrease if there is excessive empty space.
const top = Math.max(8, Math.min(wrapH - panelH - 200, y));
panel.style.top = `${top}px`;
}
function setupNodeHover() {
const nodes = document.querySelectorAll('.node');
nodes.forEach(node => {
const nodeId = node.id.replace('flowchart-', '').split('-')[0];
if (nodeInfo[nodeId]) {
node.addEventListener('mouseenter', (e) => {
panel.textContent = nodeInfo[nodeId];
positionPanel(e);
});
node.addEventListener('mousemove', (e) => {
positionPanel(e);
});
node.addEventListener('mouseleave', () => {
panel.textContent = 'Hover a node for details.';
});
}
});
}
// Robust polling approach - waits for Mermaid to finish rendering
function waitForMermaid() {
const mermaidDiv = document.querySelector('.mermaid');
const svg = mermaidDiv.querySelector('svg');
if (svg && document.querySelectorAll('.node').length > 0) {
setupNodeHover();
} else {
// Check again after a short delay
setTimeout(waitForMermaid, 100);
}
}
// Start checking after initial load
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => setTimeout(waitForMermaid, 100));
} else {
setTimeout(waitForMermaid, 100);
}
After rendering, verify the full workflow is visible (especially bottom branches/labels). Then set iframe height to match rendered content plus padding.
Three heights must stay in sync whenever you change diagram size:
| Location | Typical value | Notes |
|---|---|---|
index.md iframe height attribute | e.g. 1850px | What MkDocs embeds |
.container height in main.html CSS | iframe − 10px | Prevents inner scrollbar |
#panelWrap height in main.html CSS | container − ~50px | Accounts for legend + h3 above it |
Update all three together. Changing only the iframe height leaves the inner layout clipped or showing a scrollbar.
Here is a complete template demonstrating the tooltip implementation:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{TITLE}}</title>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
mermaid.initialize({
startOnLoad: true,
theme: 'default',
flowchart: {
useMaxWidth: true,
htmlLabels: true,
curve: 'basis'
}
});
</script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
}
.mermaid {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: aliceblue;
}
.mermaid svg {
max-width: 100%;
max-height: 100vh;
}
#tooltip {
position: absolute;
background-color: #333;
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
max-width: 280px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
z-index: 1000;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#tooltip.visible {
opacity: 1;
}
.node {
cursor: pointer;
}
</style>
</head>
<body>
<div class="mermaid">
{{MERMAID_CODE}}
</div>
<div id="tooltip"></div>
<script>
const tooltips = {
{{TOOLTIP_DATA}}
};
const tooltip = document.getElementById('tooltip');
function setupTooltips() {
const nodes = document.querySelectorAll('.node');
nodes.forEach(node => {
const nodeId = node.id.replace('flowchart-', '').split('-')[0];
if (tooltips[nodeId]) {
node.addEventListener('mouseenter', (e) => {
tooltip.textContent = tooltips[nodeId];
tooltip.classList.add('visible');
});
node.addEventListener('mousemove', (e) => {
const x = e.pageX + 15;
const y = e.pageY + 15;
const tooltipRect = tooltip.getBoundingClientRect();
const maxX = window.innerWidth - tooltipRect.width - 20;
const maxY = window.innerHeight - tooltipRect.height - 20;
tooltip.style.left = Math.min(x, maxX) + 'px';
tooltip.style.top = Math.min(y, maxY) + 'px';
});
node.addEventListener('mouseleave', () => {
tooltip.classList.remove('visible');
});
}
});
}
// Robust polling approach - waits for Mermaid to finish rendering
function waitForMermaid() {
const mermaidDiv = document.querySelector('.mermaid');
const svg = mermaidDiv.querySelector('svg');
if (svg && document.querySelectorAll('.node').length > 0) {
setupTooltips();
} else {
setTimeout(waitForMermaid, 100);
}
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => setTimeout(waitForMermaid, 100));
} else {
setTimeout(waitForMermaid, 100);
}
</script>
</body>
</html>
When writing tooltip descriptions:
Example tooltip content:
| Node Label | Tooltip Description |
|---|---|
| "Identify Learning Objective" | "What specific concept should students understand? Be precise!" |
| "Test in p5.js Editor" | "Run the code immediately - does it work as expected?" |
| "Meets Learning Objective?" | "Does this MicroSim effectively teach the intended concept?" |
Linear Process Flow:
Start → Step 1 → Step 2 → Step 3 → End
Decision Tree:
Start → Decision 1 (Yes/No)
├─ Yes → Action A → End
└─ No → Decision 2 (Yes/No)
├─ Yes → Action B → End
└─ No → Action C → End
Loop/Iteration:
Start → Initialize → Process → Check Complete?
├─ No → Process (loop back)
└─ Yes → End
Error Handling:
Start → Try Action → Success?
├─ Yes → Continue → End
└─ No → Error Handler → Retry or Exit
Issue: Mermaid code doesn't render
flowchart TD directive is first lineIssue: Fonts not 16px
font-size:16px in all classDef declarationslinkStyle default font-size:16px is present.mermaid .node text stylingIssue: Colors not showing
:::className syntax on nodesIssue: Diagram too large/small
Issue: Labels cut off or truncated
A["Text **bold**"]Issue: Tooltips not appearing
waitForMermaid() polling is used instead of fixed setTimeout#tooltip div exists after the mermaid containeropacity: 0 initially and .visible class sets opacity: 1Issue: Tooltips not working in iframes
setTimeout(setupTooltips, 500) with polling-based waitForMermaid().node elements existingIssue: Tooltip positioning incorrect
e.pageX/e.pageY for positioning relative to the documentwindow.innerWidth and window.innerHeightpointer-events: none on tooltip to prevent mouse interferenceIssue: Info panel card renders below the visible canvas for bottom nodes
Two causes, both in positionPanel:
r.height instead of offsetHeight — getBoundingClientRect().height
returns the viewport-clipped height. When the user scrolls down,
r.height shrinks and r.height - panelH - 8 goes negative, pushing the
card off screen. Fix: use panelWrap.offsetHeight (the full CSS height).
Insufficient bottom buffer — Even with offsetHeight, the last node's
card can still clip because panelWrap ends before the iframe bottom
(legend + header height above panelWrap). Increase the bottom buffer:
// Change -8 to -200 (tune up/down in increments of 20)
const top = Math.max(8, Math.min(wrapH - panelH - 200, y));
references/mermaid-flowchart-syntax.md: Comprehensive Mermaid syntax guide with examples, node shapes, styling options, and color palettesLocated in assets/templates/mermaid/:
main-template.html: HTML shell with 2/3 + 1/3 layout, references external CSS/JSstyle.css: All styling for layout, info panel, and hover effects (easily customizable)script.js: Hover interaction logic with robust Mermaid pollingsoftware-lifecycle-example.html: Complete working example with all patterns implementedindex-template.md: MkDocs integration template with YAML frontmattermetadata-template.json: Dublin Core metadata templateUser Request: "Create a diagram showing the steps of making coffee"
Generated Mermaid Code:
flowchart TD
Start("Start"):::startNode
Step1["Boil Water"]:::processNode
Step2["Grind Coffee Beans"]:::processNode
Step3["Add Coffee to Filter"]:::processNode
Step4["Pour Hot Water"]:::processNode
Step5["Wait 4 Minutes"]:::processNode
End("Enjoy Coffee!"):::endNode
Start --> Step1 --> Step2 --> Step3 --> Step4 --> Step5 --> End
classDef startNode fill:#4ecdc4,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef processNode fill:#95e1d3,stroke:#333,stroke-width:2px,color:#333,font-size:16px
classDef endNode fill:#6c5ce7,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
linkStyle default stroke:#999,stroke-width:2px,font-size:16px
Generated Tooltip Data:
const tooltips = {
'Start': 'Begin making your perfect cup of coffee',
'Step1': 'Heat water to 200°F (93°C) - just below boiling',
'Step2': 'Grind beans fresh for maximum flavor',
'Step3': 'Use 2 tablespoons per 6 oz of water',
'Step4': 'Pour slowly in circular motion for even extraction',
'Step5': 'Patience! This allows full flavor development',
'End': 'Your fresh coffee is ready to enjoy!'
};
User Request: "Create a flowchart for troubleshooting a computer that won't start"
Generated Mermaid Code:
flowchart TD
Start("Computer Won't Start"):::startNode
Check1{"Is it plugged in?"}:::decisionNode
Fix1["Plug in power cable"]:::processNode
Check2{"Does it have power?"}:::decisionNode
Check3{"Do you hear beeps?"}:::decisionNode
Fix2["Check power supply"]:::processNode
Fix3["Check RAM seating"]:::processNode
Fix4["Call technician"]:::processNode
Success("Computer Started!"):::successNode
Start --> Check1
Check1 -->|No| Fix1 --> Check2
Check1 -->|Yes| Check2
Check2 -->|No| Fix2 --> Success
Check2 -->|Yes| Check3
Check3 -->|Yes| Fix3 --> Success
Check3 -->|No| Fix4
classDef startNode fill:#667eea,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef processNode fill:#764ba2,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef decisionNode fill:#f093fb,stroke:#333,stroke-width:2px,color:#333,font-size:16px
classDef successNode fill:#4facfe,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
linkStyle default stroke:#999,stroke-width:2px,font-size:16px
User Request: "Visualize a simple search algorithm"
Generated Mermaid Code:
flowchart TD
Start("Start Search"):::startNode
Input["Get search target"]:::processNode
Init["Set index = 0"]:::processNode
Loop["Check array[index]"]:::processNode
Match{"Match found?"}:::decisionNode
End{"More items?"}:::decisionNode
Increment["index = index + 1"]:::processNode
Success("Return index"):::successNode
Fail("Return -1"):::errorNode
Start --> Input --> Init --> Loop --> Match
Match -->|Yes| Success
Match -->|No| End
End -->|Yes| Increment --> Loop
End -->|No| Fail
classDef startNode fill:#0083b0,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef processNode fill:#00b4d8,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef decisionNode fill:#90e0ef,stroke:#333,stroke-width:2px,color:#333,font-size:16px
classDef successNode fill:#48cae4,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
classDef errorNode fill:#0077b6,stroke:#333,stroke-width:2px,color:#fff,font-size:16px
linkStyle default stroke:#999,stroke-width:2px,font-size:16px
This skill works well with other intelligent textbook skills:
v1.0 - Initial release
{ } |
| Conflicts with diamond-node syntax |
| Spell out or use plain English |
\( \[ \ce{} | Backslash sequences break tokenizer | Use plain English descriptions |
Bare ( ) inside [] nodes | Can confuse the parser | Wrap the entire label in "..." |
Rule of thumb: If a label character has special meaning in Markdown, LaTeX, or JavaScript, replace it with a plain English equivalent.