d1zzy4/agent-skills

mermaid-diagrams-expert

Create maintainable Mermaid diagrams for software documentation, including flowcharts, sequence, class, ER, C4, architecture, state, git, gantt, chart, kanban, packet, venn, and ishikawa diagrams.

Vedi sorgente

Come usare

  1. Copia il comando e controlla il pacchetto prima di installarlo nel tuo ambiente agente.
  2. Controlla strumenti, credenziali e ambienti richiesti nel documento originale.
  3. Descrivi input e risultato desiderato; confronta l’output con le fonti.
npx skills add https://github.com/d1zzy4/agent-skills --skill mermaid-diagrams-expert

Prima di iniziare

  • L’installazione non include abbonamenti, quote API o accesso ai file.
  • Stelle e installazioni indicano attività, non un test indipendente di qualità o sicurezza.
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

Mermaid Diagrams Expert

Purpose

Create maintainable Mermaid diagrams for software documentation when structure, relationships, sequencing, or architecture would be clearer visually: flowcharts, sequence, class, ER, C4, architecture, state, git, gantt, chart, kanban, packet, venn, and ishikawa diagrams. Verify the target renderer and Mermaid version before using version-sensitive or beta syntax. Load the references needed for the chosen diagram type.

Step 0: Decide whether a diagram earns its keep

Use a diagram when the reader must reason about relationships, sequence, state, topology, branching, or dependencies. Do not force a diagram onto a simple fact that prose explains more clearly.

For persistent documentation, treat the target renderer as a compatibility constraint.

Step 1: Choose the diagram type

Read references/diagram-type-selection.md. Match the diagram to the structure being modeled:

StructurePreferred type
Process or decision treeFlowchart
Interactions over timeSequence
Domain objects and relationshipsClass or ER
Service architectureC4 or architecture
Cloud and deployment topologyArchitecture
LifecycleState
Repository historyGit graph
Schedule with dependenciesGantt
Simple proportionsPie or xychart
Work stages and handoffKanban
Packet layout by bit rangePacket
Set overlapVenn
Cause and effectIshikawa
Hierarchy or brainstormMindmap, treemap, or timeline

Use a specialized diagram only when its semantics help the reader. For venn, ishikawa, kanban, packet, radar, treemap, mindmap, timeline, journey, and sankey, read references/new-diagrams.md first.

Step 2: Establish compatibility

Identify the target renderer and Mermaid version when the diagram will live in a repository. If the renderer is unknown, avoid syntax known to be version-sensitive and state the assumption.

Read references/renderer-adapters.md before using beta syntax, newer directives, themes, or icon packs. Beta types require an explicit fallback or a pinned version for persistent docs.

Step 3: Model before styling

Define nodes, edges, labels, direction, and boundaries first. Keep labels short and meaningful. Use subgraphs or C4 boundaries to make ownership and system boundaries explicit.

Keep styling minimal until the structure is correct. Add color and layout only after the relationships read clearly in plain form.

Step 4: Validate

Read references/validation-and-rendering.md, references/security.md, and the diagram-type reference as needed. Check:

  • syntax parses in the target renderer,
  • labels are unambiguous and quoted where needed,
  • direction and edge semantics are correct,
  • IDs are stable and unique,
  • special characters are safely quoted,
  • beta syntax has a fallback or pinned version when the doc is long-lived,
  • the diagram is readable at its intended size,
  • no secrets, credentials, or personal data are embedded.

If a renderer is available, render-test it. Otherwise perform static syntax checks and clearly label the result as unrendered.

Step 5: Deliver for the destination

For chat, provide the Mermaid block plus a short interpretation when useful. For README/wiki/PR content, preserve the exact fenced block and any required surrounding explanation.

Anti-patterns

  • Assuming Mermaid support is identical across platforms.
  • Using new or beta syntax without checking renderer and version support.
  • Using beta diagrams in long-lived docs without a fallback or pinned version.
  • Turning every paragraph into a diagram.
  • Overloading nodes with prose.
  • Encoding secrets, credentials, or real personal data into examples.
  • Claiming a diagram was rendered when it was only linted.
  • Inventing keywords, config keys, or version support from memory.
  • Using em dashes in documentation.

Bundled references

Load references/diagram-type-selection.md, the chosen diagram-type reference, and any advanced feature reference needed for the requested syntax:

  • references/diagram-type-selection.md: decision guide for choosing the right diagram type based

on what is being modeled.

  • references/flowcharts.md: flowchart syntax, structure, and common patterns.
  • references/sequence-diagrams.md: sequence diagram syntax, actor/participant patterns, and

common idioms.

  • references/class-diagrams.md: class diagram syntax, relationships, and common patterns.
  • references/erd-diagrams.md: ER diagram syntax, cardinality, and common patterns.
  • references/c4-diagrams.md: C4 model syntax, context/container/component boundaries, and common

patterns.

  • references/architecture-diagrams.md: architecture diagram syntax, cloud/deployment topology, and

common patterns.

  • references/misc-diagrams.md: state diagrams, git graphs, gantt charts, and pie/bar charts.
  • references/new-diagrams.md: kanban, packet, venn, ishikawa, radar, treemap, mindmap, timeline, journey, sankey, and other specialized types with version minima and beta rules.
  • references/security.md: secrets, personal data, injection risks, and safe validation boundaries.
  • references/advanced-features.md: newer syntax, directives, themes, and version-sensitive

features.

  • references/renderer-adapters.md: target renderer and version compatibility checks.
  • references/validation-and-rendering.md: how to validate diagrams before delivering, common

pitfalls, export options, and where diagrams render without export.

  • references/proactive-trigger.md: when to reach for a diagram without being asked, and when to

stay quiet.

  • references/verification-and-failure.md: shared verification and failure-handling principles.

Correlati per attività

dallo stesso repository

Altri Skills

Tutti gli Skills
d1zzy4
Community

commit-expert

Guide safe, repository-aware Git commits and pushes. Inspect repository policy, working-tree state, diffs, hooks, tests, branch/upstream configuration, and commit conventions before any mutation. Never commit, push, stage, restore, or discard changes without explicit authorization for that side effect. Use Conventional Commits only when repository policy or the user requires it.

installazioni
1
GitHub Stars
1
Aggiornato
28 set
d1zzy4
Community

copywriting-expert

Write, audit, or improve user-facing product and UI copy including buttons, labels, empty states, errors, tooltips, dialogs, toasts, onboarding, accessibility text, and CLI output such as help text, flags, deprecation warnings, and terminal errors. Trigger when a feature adds or changes user-visible language, or when copy is being reviewed for clarity, tone, consistency, localization, or accessibility. Check project-specific content guidance first and adapt to the product's language and audience

installazioni
1
GitHub Stars
1
Aggiornato
28 set
d1zzy4
Community

create-readme-expert

Create comprehensive, well-structured README.md files for software projects. Trigger when a project needs a README, when onboarding documentation is missing, when a repository lacks clear usage instructions, or when README content is being reviewed or rewritten. Follow the project's own style and audience; do not impose generic README templates where the project already has strong conventions.

installazioni
1
GitHub Stars
1
Aggiornato
28 set
d1zzy4
Community

redis-expert

All-in-one Redis expertise covering data modeling and key naming, client connections (pooling, pipelining, client-side caching, timeouts), clustering and replication, Redis Search (FT.CREATE, vector and hybrid search, RAG pipelines), observability and incident triage, production security hardening, semantic caching for LLM responses via LangCache, and agent memory via Redis Iris (session events, long-term memory, background promotion). Use whenever designing, writing, reviewing, or debugging any

installazioni
1
GitHub Stars
1
Aggiornato
28 set