Agent skill

Neva To Mermaid

by nevalang in nevalang/neva

Convert Neva programs to valid Mermaid flowchart diagrams. An agent skill from nevalang/neva.

MITAuto-check passedDevelopment

Install Neva To Mermaid

skills CLI
$ npx skills add nevalang/neva --skill neva-to-mermaid -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nevalang/neva neva-to-mermaid --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nevalang/neva.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/neva-to-mermaid .claude/skills/neva-to-mermaid && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
neva-to-mermaid
GitHub stars
1.1k
Token cost
~795 tokens
SKILL.md length
364 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Convert Neva programs to valid Mermaid flowchart diagrams. An agent skill from nevalang/neva.

  • Works in 4 steps: Read the Neva code to be converted. → Generate a Mermaid flowchart TB diagram… → Do not look up other files in the repo… → …
  • Asked to visualize Neva code as Mermaid
  • SKILL.md covers Instructions and Reference Example
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Neva To Mermaid is an agent skill from nevalang/neva. Convert Neva programs to valid Mermaid flowchart diagrams. Use when asked to visualize Neva code as Mermaid.

Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Diagrams. It works with Mermaid. The repository describes itself as: Dataflow programming language where you write a program as a message-passing graph and everything runs in parallel by default. It has strong static types, compiles to machine… The licence is MIT.

When your agent uses it

  • Asked to visualize Neva code as Mermaid
  • Tasks that involve Diagrams

Example prompts

  • “/neva-to-mermaid”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read the Neva code to be converted.
  2. Generate a Mermaid flowchart TB diagram using the following rules
  3. Do not look up other files in the repo or call web search; this text
  4. Ensure the output is ready to be pasted into the Mermaid playground.

What it can do on your machine

Read from SKILL.md and the folder at commit 127afd9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are neva).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Neva To Mermaid loads about 795 tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 364 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~795

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nevalang/neva at commit 127afd9, republished under its MIT licence (© nevalang). 364 words, ~795 tokens.

Download SKILL.mdSave it as .claude/skills/neva-to-mermaid/SKILL.md (or your agent's skills folder).
name
neva-to-mermaid
description
Convert Neva programs to valid Mermaid flowchart diagrams. Use when asked to visualize Neva code as Mermaid.

Neva to Mermaid

Use this skill to convert any Neva source code into a Mermaid flowchart.

Instructions

  1. Read the Neva code to be converted.

  2. Generate a Mermaid flowchart TB diagram using the following rules:

    • Layout: Always include this header at the top:

      mermaid
      ---
      config:
        layout: elk
      ---
      flowchart TB
    • Ports:

      • Use stadium shapes for external ports :in / :out:
        • ([":data"]), ([":res"]), ([":err"]), etc.
      • In edges, label with the port name (data, res, err, sig, case[0], etc).
    • Components:

      • Use unique Mermaid node IDs.
      • Render component nodes as regular boxes using only their declared instance name: id["name"].
      • Do not annotate component nodes with type names, generic parameters, or usage information.
    • Literals:

      • Render numeric and string literals as rectangles using Mermaid shape syntax:
        • zero@{ label: "0", shape: rect }
        • dot@{ label: "'.'", shape: rect }
    • Connections:

      • Use -- <port> --> labels for the wire’s port name.
      • For a:out -> b:in, label the edge with the output port name (out), unless Neva explicitly uses the input port name in the wiring (e.g., b:sig).
      • Only label an edge with a port name when the Neva source explicitly names a port on that connection.
        • Examples that MUST be labeled:
        • x:res -> y → label edge as res
        • x -> y:sig → label edge as sig
        • x:case[0] -> y → label edge as case[0]
    • If a port name is omitted in Neva, do not infer or guess it. Render an unlabeled edge:

      • x -> y → x --> y
    • Fan-out / Fan-in (IMPORTANT):

      • Mermaid edges do not create real “ports as objects”, so list-wiring must be represented explicitly with virtual junction nodes.
      • A junction node is a small circle: jX(( )) where jX is a unique ID.

      Fan-out: src -> [a, b, :out]

      • Insert a junction node jX(( )).
      • Wire: src -- <port> --> jX
      • Then wire: jX --> a, jX --> b, jX --> out_port

      Fan-in: [a, b] -> dst:port

      • Insert a junction node jX(( )).
      • Wire: a --> jX and b --> jX
      • Then wire: jX -- <port> --> dst
    • Grouping (&):

      • You MAY use & to reduce clutter only when it does not hide fan-in/fan-out topology.
      • If Neva uses list-wiring ([...]), prefer junction nodes over &.
  3. Do not look up other files in the repo or call web search; this text describes the conversion rules.

  4. Ensure the output is ready to be pasted into the Mermaid playground.

Show full SKILL.md (3 more words)Show less

Reference Example

Neva
neva
pub def Tap<T>(data T) (res T, err error) {
    pass1 Pass<T>
    pass2 Pass<T>
    lock Lock<T>
    handler ITapHandler<T>
    ---
    :data -> [lock:data, handler]
    handler:res -> pass1
    handler:err -> [pass2, :err]
    [pass1, pass2] -> lock:sig
    lock -> :res
}

© nevalang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/neva-to-mermaid of nevalang/neva.

Open the folder on GitHubat commit 127afd9

Compare with similar skills

Neva To Mermaid next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Neva To Mermaid compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Neva To Mermaid this skillnevalang/neva1.1k—~795Automated safety check: PassMIT
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design49k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    49k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Mermaid

    WH-2099/mermaid-skill

    Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.

    288 GitHub starsUsed in 4 repos~958 tokens
    DevelopmentAuto-check passed

More from nevalang/neva

All 8 skills in this repo
  • Release Neva

    nevalang/neva

    Prepare a Neva GitHub release draft from merged PRs, previous release style, and local multi-platform artifacts.

    1.1k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Create a Discord-ready Neva release announcement from a GitHub release payload.

    1.1k GitHub stars~500 tokensUpdated 1 mo ago
    Auto-check passed
  • Create a Telegram-ready Neva release announcement from a GitHub release payload.

    1.1k GitHub stars~439 tokensUpdated 1 mo ago
    Auto-check passed
  • Papercut

    nevalang/neva

    Capture or triage small Neva repository and engineering-harness frictions without derailing feature work.

    1.1k GitHub stars~400 tokensUpdated 1 mo ago
    Auto-check passed
  • Review

    nevalang/neva

    A skill your agent uses for focused review of a Neva pull request, branch, diff, or patch.

    1.1k GitHub stars~382 tokensUpdated 1 mo ago
    Auto-check passed
  • Go

    nevalang/neva

    A skill your agent uses for Go changes in Neva: authoring, refactoring, debugging, or review.

    1.1k GitHub stars~388 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Neva To Mermaid

What does Neva To Mermaid do?

Convert Neva programs to valid Mermaid flowchart diagrams. An agent skill from nevalang/neva. Neva To Mermaid is an agent skill from nevalang/neva. Convert Neva programs to valid Mermaid flowchart diagrams.

When should I use Neva To Mermaid?

Neva To Mermaid fits situations like: asked to visualize Neva code as Mermaid; tasks that involve Diagrams.

How do I install Neva To Mermaid in Claude Code?

Run `npx skills add nevalang/neva --skill neva-to-mermaid -a claude-code`. Or copy the skill folder (.codex/skills/neva-to-mermaid in nevalang/neva) into .claude/skills/neva-to-mermaid in your project. Claude Code loads it when a task matches its description.

How do I install Neva To Mermaid in Codex?

Run `npx skills add nevalang/neva --skill neva-to-mermaid -a codex`. Or copy the skill folder (.codex/skills/neva-to-mermaid in nevalang/neva) into .agents/skills/neva-to-mermaid in your project. Codex loads it when a task matches its description.

Can I use Neva To Mermaid in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nevalang/neva --skill neva-to-mermaid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/neva-to-mermaid, .gemini/skills/neva-to-mermaid, .github/skills/neva-to-mermaid and .opencode/skills/neva-to-mermaid in your project.

What does Neva To Mermaid need to run?

SKILL.md names no scripts, command-line tools or credentials: Neva To Mermaid is instructions for the agent only.

Does Neva To Mermaid access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Neva To Mermaid safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Neva To Mermaid use?

Neva To Mermaid is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Neva To Mermaid use?

About 795 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Neva To Mermaid?

Skills that share tags, products or a category with Neva To Mermaid: Archify Diagrams (tt-a1i/archify, 82k stars), Diagram Design (cathrynlavery/diagram-design, 49k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Neva To Mermaid?

nevalang (a GitHub organization) maintains it in nevalang/neva, which has 1,085 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on August 23, 2026.

Source: nevalang/neva on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.