neva: Skill for Codex

.codex/skills/neva-to-mermaid/SKILL.md

neva-to-mermaid is a skill for Codex from nevalang/neva. It costs 28 tokens per session (911 once invoked), scanned A, original, MIT.

A guide for turning Neva programs into Mermaid flowcharts. Neva is a statically typed dataflow programming language, and Mermaid is a text format for diagrams.

In plain words
What is it for?
Use it to create valid Mermaid diagrams showing Neva ports, components, literals, and connections.
Why use it?
It makes a Neva program's components and connections easier to inspect visually.

Skill for Codex

Written for Codex: installed under .codex/.

This is nevalang/neva's own configuration. It tells Codex how to work on neva itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything neva configures →

About the project

Neva is a statically typed programming language in which programs are message-passing graphs: nodes exchange data through ports and run concurrently by default. It is for developers building compiled programs with dataflow control, visual editing, and interoperability with Go. The catalogue includes skills and instructions for working with Neva.

nevalang/neva · 1,079 stars · on GitHub · nevalang.org

Reuse

Borrowing it

Nothing to install: this file belongs to nevalang/neva. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nevalang/neva/main/.codex/skills/neva-to-mermaid/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nevalang/neva

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neva-to-mermaid

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevalang/neva/neva-to-mermaid/github.svg)](https://agentmods.dev/skills/nevalang/neva/neva-to-mermaid)
Your own site
<a href="https://agentmods.dev/skills/nevalang/neva/neva-to-mermaid"><img src="https://agentmods.dev/badge/skills/nevalang/neva/neva-to-mermaid/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neva-to-mermaid

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevalang/neva/neva-to-mermaid"><img src="https://agentmods.dev/badge/skills/nevalang/neva/neva-to-mermaid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 911 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00911
Opus 5 $0.00014 $0.00456
Sonnet 5 $0.00006 $0.00182
Haiku 4.5 $0.00003 $0.00091

Measured 10d ago against content hash 9493c8b7c3ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

neva-to-mermaid scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/neva-to-mermaid/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

      ---
      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 -> yx --> 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

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 91 lines · 28 tokens per session scan A 9493c8b7c3ab

Subscribe to this mod's changes

neva-to-mermaid is a skill published in the GitHub repository nevalang/neva (1,079 stars, last pushed 19d ago), licensed MIT. It adds 28 tokens to every session and 911 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

write-zot-themes

Help the user create, install, or package zot themes, including theme-only extensions.

patriceckhart/zot · 23 tokens

editing-model-diagrams

Creates, edits, reviews, and regenerates C4 architecture diagrams written with goa.design/model and the mdl CLI. Use when changing Model DSL, model.go or views.go files, system landscape, context, container, component, dynamic, or deployment views, element relationships, boundaries, layout, or generated SVG diagrams.

goadesign/model · 69 tokens

archlang

Use when the user wants to create, edit, or inspect an architectural floor plan / building layout as code — e.g. "draw a 2-bedroom apartment", "add a bathroom to this plan", "make the bedroom 1 m wider", "lay out an office floor". ArchLang is a tiny text language that compiles a .arch file to a professional floor-plan…

ChanMeng666/archlang · 104 tokens

design-conventions

Scan the current TS/React project's existing UI layer and write .claude/design-conventions.md — a project-specific visual design convention file that rules/typescript.md loads before UI work. Use when starting UI work in an existing project, when design conventions have drifted, or when --refresh is passed to merge in…

addit-digital/addit-harness · 70 tokens

frontend-design

A tool for generating a complete single-file web page, such as a landing page, dashboard, form, or prototype. The output is a self-contained site.html file that can be previewed.

yrris/pro-agent · 38 tokens

wuji-dashiai-deck

Produce an editable browser-native HTML deck through the installed DashiAI runtime.

AI-wuji/wuji-legion-codex · 23 tokens