본문으로 건너뛰기
cccskills
무료GitHub에 공개

neva-to-mermaid

Convert Neva programs to valid Mermaid flowchart diagrams. Use when asked to visualize Neva code as Mermaid.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

Reference Example

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
}

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

go

무료

Use for Go changes in Neva: authoring, refactoring, debugging, or review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

Use for Neva source or snippets: authoring, refactoring, debugging, or review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

papercut

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

Create a Discord-ready Neva release announcement from a GitHub release payload. Use for official Neva Discord release posts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

Prepare a Neva GitHub release draft from merged PRs, previous release style, and local multi-platform artifacts. Use this for monthly release preparation in nevalang/neva.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

Create a Telegram-ready Neva release announcement from a GitHub release payload. Use for official Neva Telegram release posts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nevalang/neva1.1천2026년 8월 23일 업데이트

nevalang의 스킬 모두 보기

이 스킬의 문제 신고