[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDS9RS3XV8Z5W7FHWTGK3W":3,"skill-same:01M7FDS9RS3XV8Z5W7FHWTGK3W":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7FDS9RS3XV8Z5W7FHWTGK3W","mermaid-diagram",null,"Generate Mermaid diagrams from user requirements. Save .mmd and .md files to figures\u002F with syntax verification. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and many more diagram types.","CZX-LBJ\u002Fdeepseek-science","CZX-LBJ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204594689?v=4","01M7FC59WQ9PFXT04MKGJDCFFT","czx","01M7FC59XB2GW0BKWN9JTDBQS7",1,"MIT","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Fmermaid-diagram\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: \"mermaid-diagram\"\ndescription: \"Generate Mermaid diagrams from user requirements. Save .mmd and .md files to figures\u002F with syntax verification. Supports flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and many more diagram types.\"\n---\n\n# Mermaid Diagram Generator\n\nGenerate high-quality Mermaid diagram code based on user requirements, with file output and verification.\n\n## Constants\n\n- **OUTPUT_DIR = `figures\u002F`** — Output directory for generated files\n- **MAX_ITERATIONS = 3** — Maximum refinement rounds for syntax or layout issues\n\n## Workflow: MUST EXECUTE ALL STEPS\n\n### Step 0: Pre-flight Check\n\n# Create output directory\n\n```bash\nmkdir -p figures\n```\n\n### Step 1: Understand Requirements & Select Diagram Type\n\nParse the input: **$ARGUMENTS**\n\n1. Analyze the request and choose the most suitable diagram type\n2. Read the corresponding Mermaid syntax reference below\n3. If the diagram involves mathematical notation, apply the math syntax rules from the **Math Formulas in Diagrams** section\n4. Identify all components, connections, and data flow\n5. Plan the diagram structure before writing code\n\n### Step 2: Read Documentation\n\nSelect the appropriate diagram type. Use built-in Mermaid knowledge first; if external documentation is needed and your environment provides it, fetch the up-to-date syntax reference.\n\n### Configuration & Themes\n\nChoose theme, colors, and layout before writing code. For academic diagrams, prefer clean white backgrounds, restrained colors, and readable labels over decorative styling.\n\n| Type | Use Cases |\n| ---- | --------- |\n| Flowchart | Processes, decisions, steps |\n| Sequence Diagram | Interactions, messaging, API calls |\n| Class Diagram | Class structure, inheritance, associations |\n| State Diagram | State machines, state transitions |\n| ER Diagram | Database design, entity relationships |\n| Gantt Chart | Project planning, timelines |\n| Pie Chart | Proportions, distributions |\n| Mindmap | Hierarchical structures, knowledge graphs |\n| Timeline | Historical events, milestones |\n| Git Graph | Branches, merges, versions |\n| Quadrant Chart | Four-quadrant analysis |\n| Requirement Diagram | Requirements traceability |\n| C4 Diagram | System architecture |\n| Sankey Diagram | Flow, conversions |\n| XY Chart | Line charts, bar charts |\n| Block Diagram | System components, modules |\n| Packet Diagram | Network protocols, data structures |\n| Kanban | Task management, workflows |\n| Architecture Diagram | System architecture |\n| Radar Chart | Multi-dimensional comparison |\n| Treemap | Hierarchical data visualization |\n| User Journey | User experience flows |\n| ZenUML | Sequence diagrams (code style) |\n\n### Step 3: Generate Mermaid Code & Save Files\n\nGenerate the Mermaid code and save **two** files:\n\n#### File 1: `figures\u002F\u003Cdiagram-name>.mmd` — Raw Mermaid source\n\nThe `.mmd` file contains only raw Mermaid code, no markdown fences.\n\n#### File 2: `figures\u002F\u003Cdiagram-name>.md` — Markdown with embedded Mermaid\n\nThe `.md` file wraps the same Mermaid code in a mermaid code block for preview rendering, plus a short title and description.\n\n# Diagram Title\n\nUse a concise title in the `.md` wrapper that matches the generated diagram name.\n\n**Naming convention**: use a descriptive kebab-case name derived from the request, such as `auth-flow`, `system-architecture`, or `database-er`.\n\n### Step 4: Verify Mermaid Syntax (MANDATORY)\n\nCodex MUST verify the generated Mermaid code by running the Mermaid CLI (`mmdc`).\n\n# Check if mermaid-cli is available\n\n```bash\nif command -v mmdc >\u002Fdev\u002Fnull 2>&1; then\n    mmdc -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png -b transparent \\\n        && echo \"Syntax valid — PNG rendered to figures\u002F\u003Cdiagram-name>.png\"\nelse\n    npx -y @mermaid-js\u002Fmermaid-cli@latest -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png -b transparent \\\n        && echo \"Syntax valid — PNG rendered to figures\u002F\u003Cdiagram-name>.png\"\nfi\n```\n\nIf verification fails:\n\n1. Read the error carefully\n2. Fix the syntax issue in both `.mmd` and `.md`\n3. Re-run verification\n4. Repeat up to `MAX_ITERATIONS`\n\n### Step 5: Codex STRICT Visual Review & Scoring (MANDATORY)\n\nAfter successful rendering, Codex MUST read the generated PNG and perform a strict review:\n\n```markdown\n## Codex's STRICT Review of \u003Cdiagram-name>\n\n### What I See\n[Describe the rendered diagram in detail]\n\n### Files Generated\n- `figures\u002F\u003Cdiagram-name>.mmd`\n- `figures\u002F\u003Cdiagram-name>.md`\n- `figures\u002F\u003Cdiagram-name>.png`\n\n### ═══════════════════════════════════════════════════════════════\n### STRICT VERIFICATION CHECKLIST (ALL must pass for score ≥ 9)\n### ═══════════════════════════════════════════════════════════════\n\n#### A. File Correctness\n- [ ] `.mmd` contains valid Mermaid syntax\n- [ ] `.md` wraps the Mermaid code in ```mermaid fences\n- [ ] `.mmd` and `.md` contain identical Mermaid code\n- [ ] Diagram renders without errors\n\nASCII alias for automated checks: score >= 9.\n\n#### B. Arrow Correctness Verification (CRITICAL - any failure = score ≤ 6)\nASCII alias for automated checks: CRITICAL - any failure = score \u003C= 6.\n\n- [ ] Every arrow points to the correct target\n\n#### C. Block Content Verification (any failure = score ≤ 7)\nASCII alias for automated checks: any failure = score \u003C= 7.\n\n- [ ] Every block label is correct\n- [ ] Every block contains the intended content\n\n#### D. Completeness\n- [ ] All required components are present\n- [ ] All required connections are present\n- [ ] Labels are meaningful and match the request\n\n#### E. Visual Quality\n- [ ] Layout is clean and readable\n- [ ] Colors are professional\n- [ ] Text is readable at normal zoom\n- [ ] Spacing is balanced\n- [ ] Data flow is understandable within 5 seconds\n\n### ═══════════════════════════════════════════════════════════════\n### Issues Found (BE SPECIFIC)\n1. [issue] -> [fix]\n\n### Score: X\u002F10\n\n### Score Breakdown Guide:\n- 10: correct, readable, publication-ready\n- 9: minor polish only\n- 8: usable but one visual\u002Flayout weakness remains\n- 7: one content or block-label weakness remains\n- 6 or below: arrow direction, missing component, syntax, or semantic error\n\n### Verdict\n- [ ] ACCEPT\n- [ ] FIX\n```\n\nIf the verdict is `FIX`, apply corrections to both `.mmd` and `.md`, re-render, and re-review until `ACCEPT` or `MAX_ITERATIONS` is reached.\n\n### Step 6: Final Output Summary\n\nWhen accepted, present:\n\n```text\nMermaid diagram generated successfully.\n\nFiles:\n  figures\u002F\u003Cdiagram-name>.mmd\n  figures\u002F\u003Cdiagram-name>.md\n  figures\u002F\u003Cdiagram-name>.png\n\nTo re-render manually:\n  mmdc -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png\n```\n\n## Architecture Diagram Best Practices\n\nWhen generating `architecture-beta` diagrams, apply these layout techniques for complex diagrams:\n\n### Use Junctions for Layout Control\n\nThink of the diagram as an invisible grid. Use `junction` nodes as virtual anchor points on that grid to precisely control placement. This is especially useful when a direct edge produces unexpected positioning.\n\nInstead of connecting services directly:\n\n```text\nlb:R --> L:scim\nlb:R --> L:webapi\n```\n\nRoute through junctions:\n\n```text\njunction j_lb_r\nlb:R -- L:j_lb_r\njunction j_scim_l\nj_lb_r:T -- B:j_scim_l\nj_scim_l:R --> L:scim\njunction j_webapi_l\nj_lb_r:B -- T:j_webapi_l\nj_webapi_l:R --> L:webapi\n```\n\n### Use Edges out of Groups for Floating Components\n\nFor services that have no real logical connection but still need stable placement, use a junction combined with `{group}` to anchor them without inventing a semantic edge.\n\n## CVPR\u002FICLR\u002FNeurIPS Style Guide (for Academic Diagrams)\n\nWhen the diagram is intended for academic papers, apply these style standards:\n\n### Visual Standards\n\n- Clean white background\n- Sans-serif fonts\n- Subtle coordinated color palette\n- Print-friendly grayscale readability\n- Thin professional borders\n\n### Layout Standards\n\n- Horizontal flow for pipelines\n- Clear grouping\n- Consistent sizing\n- Balanced whitespace\n\n### Arrow Standards (MOST CRITICAL)\n\n- Thick strokes\n- Clear arrowheads\n- Dark colors\n- Labeled arrows\n- No crossings\n- Correct direction\n\n### Color Palette (Academic Professional)\n\n- **Inputs**: Green (`#10B981` \u002F `#34D399`)\n- **Encoders**: Blue (`#2563EB` \u002F `#3B82F6`)\n- **Fusion**: Purple (`#7C3AED` \u002F `#8B5CF6`)\n- **Outputs**: Orange (`#EA580C` \u002F `#F97316`)\n- **Arrows**: Dark gray (`#333333` \u002F `#1F2937`)\n- **Background**: White (`#FFFFFF`)\n\n### What to AVOID\n\n- Rainbow color schemes\n- Thin hairline arrows\n- Heavy shadows or glow effects\n- 3D effects\n- Decorative icons that add no meaning\n- Tiny unreadable text\n\n## Math Formulas in Diagrams (KaTeX)\n\nMermaid supports rendering mathematical expressions via KaTeX. When the diagram content involves formulas, equations, Greek letters, subscripts, superscripts, fractions, or matrices, use KaTeX notation instead of plain-text approximations.\n\n### Supported Diagram Types for Math\n\nMath rendering with `$$...$$` is supported in:\n\n- **Flowcharts** — in node labels and edge labels\n- **Sequence Diagrams** — in participant aliases, messages, and notes\n\n### Syntax Rules\n\n1. Wrap math expressions in `$$` inside quoted strings:\n\n   ```text\n   A[\"$$x^2$$\"] -->|\"$$\\\\sqrt{x+3}$$\"| B(\"$$\\\\frac{1}{2}$$\")\n   ```\n\n2. Node labels with math must be quoted\n3. Mix text and math by placing `$$` only around the math portion\n4. Use `\\text{}` for non-math text inside `$$`\n\n### Common Math Patterns for ML\u002FScience Diagrams\n\n| Concept | KaTeX Syntax |\n| ------- | ------------ |\n| Subscript | `$$W_Q$$` |\n| Superscript | `$$x^2$$` |\n| Fraction | `$$\\\\frac{QK^T}{\\\\sqrt{d_k}}$$` |\n| Greek letters | `$$\\\\alpha, \\\\beta, \\\\gamma$$` |\n| Square root | `$$\\\\sqrt{d_k}$$` |\n| Summation | `$$\\\\sum_{i=1}^{n} x_i$$` |\n| Matrix | `$$\\\\begin{bmatrix} a & b \\\\\\\\ c & d \\\\end{bmatrix}$$` |\n| Softmax | `$$\\\\text{softmax}(z_i)$$` |\n| Norm | `$$\\\\|\\\\|x\\\\|\\\\|_2$$` |\n| Hat\u002Ftilde | `$$\\\\hat{y}, \\\\tilde{x}$$` |\n\n### Example: Attention Mechanism with Math\n\n```text\nflowchart TD\n    Q[\"$$Q \\\\in \\\\mathbb{R}^{n \\\\times d_k}$$\"]\n    K[\"$$K \\\\in \\\\mathbb{R}^{n \\\\times d_k}$$\"]\n    V[\"$$V \\\\in \\\\mathbb{R}^{n \\\\times d_v}$$\"]\n    scores[\"$$\\\\frac{QK^T}{\\\\sqrt{d_k}}$$\"]\n    softmax[\"$$\\\\text{softmax}(\\\\cdot)$$\"]\n    output[\"$$\\\\text{Attention}(Q,K,V)$$\"]\n\n    Q --> scores\n    K --> scores\n    scores --> softmax\n    softmax --> weighted[\"$$\\\\alpha V$$\"]\n    V --> weighted\n    weighted --> output\n```\n\n### When to Use Math vs Plain Text\n\n- Use math when the diagram is for academic or technical audiences and precision matters\n- Use plain text when the diagram is for general audiences or math would add clutter\n- Default to KaTeX automatically if the request already contains math notation\n\n### Gotchas\n\n- `$$` delimiters must be inside quoted strings\n- Very long formulas may overflow node boxes\n- Always verify rendering with `mmdc`\n\n## Code Quality Rules\n\nGenerated Mermaid code MUST:\n\n1. Have correct syntax that renders directly\n2. Have clear structure with proper indentation\n3. Use semantic node naming, not `A`, `B`, `C`\n4. Include styling when needed\n5. Use `\u003Cbr\u002F>` for line breaks inside node labels, never `\\n`\n6. Avoid special characters that break Mermaid parsing unless properly quoted\n\n## Output Structure\n\n```text\nfigures\u002F\n├── \u003Cdiagram-name>.mmd\n├── \u003Cdiagram-name>.md\n└── \u003Cdiagram-name>.png\n```\n\n## Key Rules (MUST FOLLOW)\n\n1. Always save files to `figures\u002F`\n2. Always generate both `.mmd` and `.md`\n3. Always read the relevant syntax guidance before generating code\n4. Always verify syntax before accepting\n5. Always review the rendered PNG\n6. Never accept score \u003C 9\n7. Verify every arrow direction\n8. Verify every block content\n9. Be specific in feedback\n10. Fix errors before accepting\n11. Use descriptive kebab-case file names\n\n---\n\nUser requirements: $ARGUMENTS\n","# Mermaid Diagram Generator\n\nGenerate high-quality Mermaid diagram code based on user requirements, with file output and verification.\n\n## Constants\n\n- **OUTPUT_DIR = `figures\u002F`** — Output directory for generated files\n- **MAX_ITERATIONS = 3** — Maximum refinement rounds for syntax or layout issues\n\n## Workflow: MUST EXECUTE ALL STEPS\n\n### Step 0: Pre-flight Check\n\n# Create output directory\n\n```bash\nmkdir -p figures\n```\n\n### Step 1: Understand Requirements & Select Diagram Type\n\nParse the input: **$ARGUMENTS**\n\n1. Analyze the request and choose the most suitable diagram type\n2. Read the corresponding Mermaid syntax reference below\n3. If the diagram involves mathematical notation, apply the math syntax rules from the **Math Formulas in Diagrams** section\n4. Identify all components, connections, and data flow\n5. Plan the diagram structure before writing code\n\n### Step 2: Read Documentation\n\nSelect the appropriate diagram type. Use built-in Mermaid knowledge first; if external documentation is needed and your environment provides it, fetch the up-to-date syntax reference.\n\n### Configuration & Themes\n\nChoose theme, colors, and layout before writing code. For academic diagrams, prefer clean white backgrounds, restrained colors, and readable labels over decorative styling.\n\n| Type | Use Cases |\n| ---- | --------- |\n| Flowchart | Processes, decisions, steps |\n| Sequence Diagram | Interactions, messaging, API calls |\n| Class Diagram | Class structure, inheritance, associations |\n| State Diagram | State machines, state transitions |\n| ER Diagram | Database design, entity relationships |\n| Gantt Chart | Project planning, timelines |\n| Pie Chart | Proportions, distributions |\n| Mindmap | Hierarchical structures, knowledge graphs |\n| Timeline | Historical events, milestones |\n| Git Graph | Branches, merges, versions |\n| Quadrant Chart | Four-quadrant analysis |\n| Requirement Diagram | Requirements traceability |\n| C4 Diagram | System architecture |\n| Sankey Diagram | Flow, conversions |\n| XY Chart | Line charts, bar charts |\n| Block Diagram | System components, modules |\n| Packet Diagram | Network protocols, data structures |\n| Kanban | Task management, workflows |\n| Architecture Diagram | System architecture |\n| Radar Chart | Multi-dimensional comparison |\n| Treemap | Hierarchical data visualization |\n| User Journey | User experience flows |\n| ZenUML | Sequence diagrams (code style) |\n\n### Step 3: Generate Mermaid Code & Save Files\n\nGenerate the Mermaid code and save **two** files:\n\n#### File 1: `figures\u002F\u003Cdiagram-name>.mmd` — Raw Mermaid source\n\nThe `.mmd` file contains only raw Mermaid code, no markdown fences.\n\n#### File 2: `figures\u002F\u003Cdiagram-name>.md` — Markdown with embedded Mermaid\n\nThe `.md` file wraps the same Mermaid code in a mermaid code block for preview rendering, plus a short title and description.\n\n# Diagram Title\n\nUse a concise title in the `.md` wrapper that matches the generated diagram name.\n\n**Naming convention**: use a descriptive kebab-case name derived from the request, such as `auth-flow`, `system-architecture`, or `database-er`.\n\n### Step 4: Verify Mermaid Syntax (MANDATORY)\n\nCodex MUST verify the generated Mermaid code by running the Mermaid CLI (`mmdc`).\n\n# Check if mermaid-cli is available\n\n```bash\nif command -v mmdc >\u002Fdev\u002Fnull 2>&1; then\n    mmdc -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png -b transparent \\\n        && echo \"Syntax valid — PNG rendered to figures\u002F\u003Cdiagram-name>.png\"\nelse\n    npx -y @mermaid-js\u002Fmermaid-cli@latest -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png -b transparent \\\n        && echo \"Syntax valid — PNG rendered to figures\u002F\u003Cdiagram-name>.png\"\nfi\n```\n\nIf verification fails:\n\n1. Read the error carefully\n2. Fix the syntax issue in both `.mmd` and `.md`\n3. Re-run verification\n4. Repeat up to `MAX_ITERATIONS`\n\n### Step 5: Codex STRICT Visual Review & Scoring (MANDATORY)\n\nAfter successful rendering, Codex MUST read the generated PNG and perform a strict review:\n\n```markdown\n## Codex's STRICT Review of \u003Cdiagram-name>\n\n### What I See\n[Describe the rendered diagram in detail]\n\n### Files Generated\n- `figures\u002F\u003Cdiagram-name>.mmd`\n- `figures\u002F\u003Cdiagram-name>.md`\n- `figures\u002F\u003Cdiagram-name>.png`\n\n### ═══════════════════════════════════════════════════════════════\n### STRICT VERIFICATION CHECKLIST (ALL must pass for score ≥ 9)\n### ═══════════════════════════════════════════════════════════════\n\n#### A. File Correctness\n- [ ] `.mmd` contains valid Mermaid syntax\n- [ ] `.md` wraps the Mermaid code in ```mermaid fences\n- [ ] `.mmd` and `.md` contain identical Mermaid code\n- [ ] Diagram renders without errors\n\nASCII alias for automated checks: score >= 9.\n\n#### B. Arrow Correctness Verification (CRITICAL - any failure = score ≤ 6)\nASCII alias for automated checks: CRITICAL - any failure = score \u003C= 6.\n\n- [ ] Every arrow points to the correct target\n\n#### C. Block Content Verification (any failure = score ≤ 7)\nASCII alias for automated checks: any failure = score \u003C= 7.\n\n- [ ] Every block label is correct\n- [ ] Every block contains the intended content\n\n#### D. Completeness\n- [ ] All required components are present\n- [ ] All required connections are present\n- [ ] Labels are meaningful and match the request\n\n#### E. Visual Quality\n- [ ] Layout is clean and readable\n- [ ] Colors are professional\n- [ ] Text is readable at normal zoom\n- [ ] Spacing is balanced\n- [ ] Data flow is understandable within 5 seconds\n\n### ═══════════════════════════════════════════════════════════════\n### Issues Found (BE SPECIFIC)\n1. [issue] -> [fix]\n\n### Score: X\u002F10\n\n### Score Breakdown Guide:\n- 10: correct, readable, publication-ready\n- 9: minor polish only\n- 8: usable but one visual\u002Flayout weakness remains\n- 7: one content or block-label weakness remains\n- 6 or below: arrow direction, missing component, syntax, or semantic error\n\n### Verdict\n- [ ] ACCEPT\n- [ ] FIX\n```\n\nIf the verdict is `FIX`, apply corrections to both `.mmd` and `.md`, re-render, and re-review until `ACCEPT` or `MAX_ITERATIONS` is reached.\n\n### Step 6: Final Output Summary\n\nWhen accepted, present:\n\n```text\nMermaid diagram generated successfully.\n\nFiles:\n  figures\u002F\u003Cdiagram-name>.mmd\n  figures\u002F\u003Cdiagram-name>.md\n  figures\u002F\u003Cdiagram-name>.png\n\nTo re-render manually:\n  mmdc -i figures\u002F\u003Cdiagram-name>.mmd -o figures\u002F\u003Cdiagram-name>.png\n```\n\n## Architecture Diagram Best Practices\n\nWhen generating `architecture-beta` diagrams, apply these layout techniques for complex diagrams:\n\n### Use Junctions for Layout Control\n\nThink of the diagram as an invisible grid. Use `junction` nodes as virtual anchor points on that grid to precisely control placement. This is especially useful when a direct edge produces unexpected positioning.\n\nInstead of connecting services directly:\n\n```text\nlb:R --> L:scim\nlb:R --> L:webapi\n```\n\nRoute through junctions:\n\n```text\njunction j_lb_r\nlb:R -- L:j_lb_r\njunction j_scim_l\nj_lb_r:T -- B:j_scim_l\nj_scim_l:R --> L:scim\njunction j_webapi_l\nj_lb_r:B -- T:j_webapi_l\nj_webapi_l:R --> L:webapi\n```\n\n### Use Edges out of Groups for Floating Components\n\nFor services that have no real logical connection but still need stable placement, use a junction combined with `{group}` to anchor them without inventing a semantic edge.\n\n## CVPR\u002FICLR\u002FNeurIPS Style Guide (for Academic Diagrams)\n\nWhen the diagram is intended for academic papers, apply these style standards:\n\n### Visual Standards\n\n- Clean white background\n- Sans-serif fonts\n- Subtle coordinated color palette\n- Print-friendly grayscale readability\n- Thin professional borders\n\n### Layout Standards\n\n- Horizontal flow for pipelines\n- Clear grouping\n- Consistent sizing\n- Balanced whitespace\n\n### Arrow Standards (MOST CRITICAL)\n\n- Thick strokes\n- Clear arrowheads\n- Dark colors\n- Labeled arrows\n- No crossings\n- Correct direction\n\n### Color Palette (Academic Professional)\n\n- **Inputs**: Green (`#10B981` \u002F `#34D399`)\n- **Encoders**: Blue (`#2563EB` \u002F `#3B82F6`)\n- **Fusion**: Purple (`#7C3AED` \u002F `#8B5CF6`)\n- **Outputs**: Orange (`#EA580C` \u002F `#F97316`)\n- **Arrows**: Dark gray (`#333333` \u002F `#1F2937`)\n- **Background**: White (`#FFFFFF`)\n\n### What to AVOID\n\n- Rainbow color schemes\n- Thin hairline arrows\n- Heavy shadows or glow effects\n- 3D effects\n- Decorative icons that add no meaning\n- Tiny unreadable text\n\n## Math Formulas in Diagrams (KaTeX)\n\nMermaid supports rendering mathematical expressions via KaTeX. When the diagram content involves formulas, equations, Greek letters, subscripts, superscripts, fractions, or matrices, use KaTeX notation instead of plain-text approximations.\n\n### Supported Diagram Types for Math\n\nMath rendering with `$$...$$` is supported in:\n\n- **Flowcharts** — in node labels and edge labels\n- **Sequence Diagrams** — in participant aliases, messages, and notes\n\n### Syntax Rules\n\n1. Wrap math expressions in `$$` inside quoted strings:\n\n   ```text\n   A[\"$$x^2$$\"] -->|\"$$\\\\sqrt{x+3}$$\"| B(\"$$\\\\frac{1}{2}$$\")\n   ```\n\n2. Node labels with math must be quoted\n3. Mix text and math by placing `$$` only around the math portion\n4. Use `\\text{}` for non-math text inside `$$`\n\n### Common Math Patterns for ML\u002FScience Diagrams\n\n| Concept | KaTeX Syntax |\n| ------- | ------------ |\n| Subscript | `$$W_Q$$` |\n| Superscript | `$$x^2$$` |\n| Fraction | `$$\\\\frac{QK^T}{\\\\sqrt{d_k}}$$` |\n| Greek letters | `$$\\\\alpha, \\\\beta, \\\\gamma$$` |\n| Square root | `$$\\\\sqrt{d_k}$$` |\n| Summation | `$$\\\\sum_{i=1}^{n} x_i$$` |\n| Matrix | `$$\\\\begin{bmatrix} a & b \\\\\\\\ c & d \\\\end{bmatrix}$$` |\n| Softmax | `$$\\\\text{softmax}(z_i)$$` |\n| Norm | `$$\\\\|\\\\|x\\\\|\\\\|_2$$` |\n| Hat\u002Ftilde | `$$\\\\hat{y}, \\\\tilde{x}$$` |\n\n### Example: Attention Mechanism with Math\n\n```text\nflowchart TD\n    Q[\"$$Q \\\\in \\\\mathbb{R}^{n \\\\times d_k}$$\"]\n    K[\"$$K \\\\in \\\\mathbb{R}^{n \\\\times d_k}$$\"]\n    V[\"$$V \\\\in \\\\mathbb{R}^{n \\\\times d_v}$$\"]\n    scores[\"$$\\\\frac{QK^T}{\\\\sqrt{d_k}}$$\"]\n    softmax[\"$$\\\\text{softmax}(\\\\cdot)$$\"]\n    output[\"$$\\\\text{Attention}(Q,K,V)$$\"]\n\n    Q --> scores\n    K --> scores\n    scores --> softmax\n    softmax --> weighted[\"$$\\\\alpha V$$\"]\n    V --> weighted\n    weighted --> output\n```\n\n### When to Use Math vs Plain Text\n\n- Use math when the diagram is for academic or technical audiences and precision matters\n- Use plain text when the diagram is for general audiences or math would add clutter\n- Default to KaTeX automatically if the request already contains math notation\n\n### Gotchas\n\n- `$$` delimiters must be inside quoted strings\n- Very long formulas may overflow node boxes\n- Always verify rendering with `mmdc`\n\n## Code Quality Rules\n\nGenerated Mermaid code MUST:\n\n1. Have correct syntax that renders directly\n2. Have clear structure with proper indentation\n3. Use semantic node naming, not `A`, `B`, `C`\n4. Include styling when needed\n5. Use `\u003Cbr\u002F>` for line breaks inside node labels, never `\\n`\n6. Avoid special characters that break Mermaid parsing unless properly quoted\n\n## Output Structure\n\n```text\nfigures\u002F\n├── \u003Cdiagram-name>.mmd\n├── \u003Cdiagram-name>.md\n└── \u003Cdiagram-name>.png\n```\n\n## Key Rules (MUST FOLLOW)\n\n1. Always save files to `figures\u002F`\n2. Always generate both `.mmd` and `.md`\n3. Always read the relevant syntax guidance before generating code\n4. Always verify syntax before accepting\n5. Always review the rendered PNG\n6. Never accept score \u003C 9\n7. Verify every arrow direction\n8. Verify every block content\n9. Be specific in feedback\n10. Fix errors before accepting\n11. Use descriptive kebab-case file names\n\n---\n\nUser requirements: $ARGUMENTS\n",{"name":5,"description":7},"main","18193d71ea3441d7c033dbf195b8a7c75ac96f75","packages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Fmermaid-diagram",0,"https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science","https:\u002F\u002Fgithub.com\u002FCZX-LBJ","一个没事喜欢随便写点代码的小菜鸡\r\n","2026-10-22 09:48:04",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add CZX-LBJ\u002Fdeepseek-science --skill mermaid-diagram",{"tool":38,"command":39},"bunx","bunx skills add CZX-LBJ\u002Fdeepseek-science --skill mermaid-diagram",{"tool":41,"command":42},"pnpm","pnpm dlx skills add CZX-LBJ\u002Fdeepseek-science --skill mermaid-diagram","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Fmermaid-diagram\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7FEEKSNMRMKW6JEK93PFDFY","bio-free-energy-calculations","Performs alchemical free-energy calculations including relative binding free energy (RBFE \u002F FEP+) and absolute binding free energy (ABFE) via OpenFE, FEP+, GROMACS, AMBER pmemd, and OpenMM with explicit lambda scheduling, soft-core potentials, MBAR\u002FBAR analysis, cycle-closure validation, and protocol-appropriate enhanced sampling. Compares ML alternatives (Boltz-2 affinity, DeepDock). Use when ranking analogs by binding affinity beyond docking accuracy, performing prospective lead optimization, or validating SAR predictions.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Ffree-energy-calculations\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7FEE5CTE5QK55CEMXNNVWY9","bio-conformer-generation","Generates 3D conformer ensembles using RDKit ETKDGv3 with knowledge-enhanced distance geometry, MMFF94\u002FUFF force-field optimization, CREST + GFN2-xTB semi-empirical refinement, and macrocycle-aware torsion preferences. Provides explicit decision rules for single vs ensemble conformer use, RMSD pruning, energy windows, conformer count, and force-field choice. Use when preparing 3D ligands for docking, generating descriptor input for 3D QSAR, or sampling macrocycle\u002Fpeptide conformational ensembles.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fconformer-generation\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7FEDNGFEMFWD1MSEDR5H7CY","bio-admet-prediction","Predicts ADMET properties using ADMETlab 3.0 (119 platform features, including 77 prediction models with modeled-endpoint uncertainty), ADMET-AI, DeepChem MolNet, and chemprop D-MPNN with explicit handling of OECD QSAR principles, applicability domain assessment, calibration, hERG\u002FCYP\u002FAMES endpoints, and PAINS \u002F Lipinski \u002F Ro5 \u002F Veber \u002F BBB druglikeness filters. Use when filtering compounds for drug-likeness, prioritizing leads by predicted safety, or building an in-house ADMET QSAR model.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fadmet-prediction\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FED69GFB54FRF7AV5066DN","writing-systems-papers","Paragraph-level structural blueprint for 10-12 page systems papers targeting OSDI, SOSP, ASPLOS, NSDI, and EuroSys. Provides page allocation, paragraph templates, and writing patterns. Use when user says \"写系统论文\", \"systems paper structure\", \"OSDI paper\", \"SOSP paper\", or wants fine-grained structural guidance for a systems conference submission.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwriting-systems-papers\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FECVVDWZ0X0VEDTCE4B4DZ","wiki-enrich","Fill in the per-paper TODO sections of research-wiki\u002Fpapers\u002F\u003Cslug>.md pages that literature-ingest skills leave as bare scaffolds. Use when user says 'enrich wiki', 'fill paper TODOs', 'wiki body 補完', '把 paper 摘要寫進 wiki', 'research-wiki 自動填', or after a batch ingest that left papers\u002F as TODO scaffolds.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwiki-enrich\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FECD4BCJ2MTSBDDSE3ZAJ5","web-debug-search","Search GitHub, Stack Exchange, Chinese technical communities, official documentation, and general developer web sources for software errors, compatibility problems, API usage questions, and real-world workarounds. Use for debugging and discovery only; results are not paper-citation evidence.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fweb-debug-search\u002FSKILL.md",[],[]]