本文へ移動
cccskills
無料GitHub で公開

mermaids-treasure

Mermaid diagram syntax reference for all diagram types — flowchart, sequence, class, state, ER, gantt, git graph, mindmap, timeline, user journey, pie, quadrant, XY chart, block, sankey, C4, kanban, and more. Use when constructing or debugging any Mermaid diagram definition.

インストール方法を見る

含まれるファイル(17)

  • SKILL.md4.8 KB
  • references/advanced-diagrams.md9.4 KB
  • references/class-diagram.md6.5 KB
  • references/data-charts.md3.2 KB
  • references/edge-syntax.md6.7 KB
  • references/er-diagram.md3.1 KB
  • references/flowchart-construction.md5.7 KB
  • references/gantt.md5.3 KB
  • references/git-graph.md3.7 KB
  • references/mindmap.md3.5 KB
  • references/node-shapes.md12.5 KB
  • references/sequence-diagram.md6.0 KB
  • references/state-diagram.md3.3 KB
  • references/styling-and-config.md10.1 KB
  • references/subgraphs-and-layout.md7.2 KB
  • references/timeline-journey.md4.7 KB
  • SKILL-GOALS.md464 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Mermaid Diagram Syntax

Scope

Use when constructing, selecting, or debugging Mermaid syntax. Choose the diagram family that best expresses the intended semantics, then load only the relevant reference below. This skill covers Mermaid construction and parser/rendering constraints; it does not define the process/system being represented.

Workflow

flowchart TD
    Start([Task received]) --> Q1{Diagram type?}
    Q1 -->|flowchart/graph| FC[Load node-shapes.md + edge-syntax.md]
    Q1 -->|sequence| SEQ[Load sequence-diagram.md]
    Q1 -->|class| CLS[Load class-diagram.md]
    Q1 -->|state| ST[Load state-diagram.md]
    Q1 -->|er| ER[Load er-diagram.md]
    Q1 -->|gantt| GNT[Load gantt.md]
    Q1 -->|gitGraph| GIT[Load git-graph.md]
    Q1 -->|mindmap| MM[Load mindmap.md]
    Q1 -->|timeline/journey| TL[Load timeline-journey.md]
    Q1 -->|pie/quadrant/XY/sankey| DC[Load data-charts.md]
    Q1 -->|block/C4/kanban/packet| ADV[Load advanced-diagrams.md]
    Q1 -->|fix broken syntax| Debug["Identify diagram family and failing construct; load only references that govern it"]
    FC --> Construct[Construct diagram using syntax reference]
    SEQ --> Construct
    CLS --> Construct
    ST --> Construct
    ER --> Construct
    GNT --> Construct
    GIT --> Construct
    MM --> Construct
    TL --> Construct
    DC --> Construct
    ADV --> Construct
    Debug --> Construct

Reference Files

Load only references needed by the current diagram branch.

Flowchart References

Node Shapes — Load for node syntax or shape selection.

Edge Syntax — Load for connections, labels, edge types, or edge styling.

Subgraphs and Layout — Load for grouping, layout, direction, or escaping.

Styling and Configuration — Load for styling, configuration, renderer, or interactivity.

Flowchart Construction — Load when choosing flowchart elements from scratch.

Other Diagram Types

Sequence Diagram — Actors, messages, loops, alt/opt/par blocks, activations, notes, and autonumbering. Load when constructing sequence diagrams.

Class Diagram — Classes, attributes, methods, visibility, relationships (inheritance, composition, aggregation, dependency), and namespaces. Load when constructing class diagrams.

State Diagram — States, transitions, composite states, fork/join, concurrency, and notes. Load when constructing state diagrams.

ER Diagram — Entities, attributes, relationship cardinality, and keys. Load when constructing entity-relationship diagrams.

Gantt — Tasks, sections, dependencies, date formats, exclusions, and milestones. Load when constructing gantt charts.

Timeline and Journey — Timeline events with dates and sections; user journey tasks with scores and actors. Load when constructing timeline or user journey diagrams.

Git Graph — Commits, branches, merges, cherry-picks, tags, and theme variables. Load when constructing git graph diagrams.

Mindmap — Root nodes, child nodes, icons, classes, and shapes. Load when constructing mindmap diagrams.

Data Charts — Pie charts, quadrant charts, XY charts, and sankey diagrams. Load when constructing data visualization diagrams.

Advanced Diagrams — Block diagrams, C4 architecture diagrams, kanban boards, and packet diagrams. Load when constructing advanced or specialized diagram types.

Critical Constraints

  • The word end in all lowercase breaks flowcharts — capitalize as End or END
  • Starting a node connection with o or x creates circle/cross edges — add a space or capitalize
  • Subgraph direction is ignored when any subgraph node links to an external node
  • Click interactivity requires securityLevel='loose' — disabled in strict mode
  • Commas in stroke-dasharray must be escaped as \, in classDef statements

References

[1] Mermaid Flowchart Syntax Documentation (accessed 2026-03-07)

[2] Mermaid Official Site — Flowchart Syntax (accessed 2026-03-07)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

日本語の概要は準備中です。原文の説明を表示しています。

Jamie-BitFlight/claude_skills672026年10月12日 更新

Jamie-BitFlight のスキルをすべて見る

このスキルの問題を報告する