Logo von Neo4j Nvl Skill

Neo4j Nvl Skill

Organisation
neo4j
neo4j-nvl-skill

Neo4j Visualization Library (NVL) — framework-agnostic graph rendering for the browser. Covers @neo4j-nvl/base (NVL class, nodes/relationships, Canvas vs WebGL renderer), @neo4j-nvl/interaction-handlers (zoom, pan, drag, click, hover, box/lasso select, keyboard) and @neo4j-nvl/react (InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper). Use when rendering a Neo4j graph in a browser, feeding driver results through nvlResultTransformer, choosing Canvas vs WebGL, clustering or laying out nodes, wiring node/relationship/cluster interactions, or embedding NVL in React, Vite or vanilla JS apps. Does NOT handle Cypher authoring — use neo4j-cypher-skill. Does NOT handle driver lifecycle, sessions or executeQuery setup — use neo4j-driver-javascript-skill. Does NOT handle the pre-styled GraphVisualization embed — use @neo4j-ndl/react.

Übersicht

Herausgeberneo4j
Repositoryagent-skills
Skill-Nameneo4j-nvl-skill
Sterne
127
Forks
44
Mitgelieferte Dateien
85
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 85

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von neo4j auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Neo4j Nvl Skill in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/neo4j/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/neo4j-nvl-skill .claude/skills/neo4j-nvl-skill
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Neo4j Nvl Skill in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Neo4j Nvl Skill automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Neo4j Nvl Skill nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Neo4j Visualization Library (@neo4j-nvl/base)

Shipped with @neo4j-nvl/base v2.1.0. Once installed into a project this folder is detached from the package: the installed types in node_modules/@neo4j-nvl/* are the source of truth. If the project's @neo4j-nvl/base is a different version and node_modules/@neo4j-nvl/base/skills/neo4j-nvl-skill/SKILL.md exists, read that copy instead.

When to use

  • Rendering a Neo4j graph in the browser with custom interactions, rendering or data shapes
  • Visualizing driver.executeQuery results as an interactive graph
  • Zoom, pan, drag, click, hover, lasso or box-select interactions; clustering; custom layouts

Not for: a pre-styled graph view with default behaviour (GraphVisualization from @neo4j-ndl/react wraps NVL for that), Python notebooks (neo4j/python-graph-visualization), Cypher, driver setup, GDS or GraphQL.

Rules

  • Types win. Confirm every option, callback and method against this skill or the .d.ts files in node_modules/@neo4j-nvl/* before using it. If they disagree, trust the types and say so.
  • Never invent options. NVL options and callbacks are flat, named keys. If a key is not in the API reference below or the types, it does not exist.
  • Do not reverse-engineer from compiled dist/ or lib/ output. Use the types and these docs.
  • Symptom first. When something does not work, check the table below before changing code.

Before you code

  1. The container has explicit width and height; otherwise the graph is invisible.
  2. React wrappers: layout, layoutOptions and every other option go inside nvlOptions.
  3. Wheel zoom in <InteractiveNvlWrapper> is enabled by mouseEventCallbacks.onZoomAndPan; there is no onZoom.
  4. fit() needs explicit node ids. fit([]) fits nothing.
  5. The WebGL renderer draws no captions. Use 'canvas' when labels matter, or html / icon overlays.
  6. If the hierarchical layout never finishes under the Vite dev server, add optimizeDeps: { include: ['bin-pack'] }. Vite 7.3 pre-bundles it on its own, so only apply it when the symptom appears.
  7. nvlResultTransformer returns bare { id } elements; labels and properties are in recordObjectMap.
  8. React: nvlCallbacks are captured once; use refs or stable functions. interactionOptions replaces the defaults, so pass every option you need.
  9. Destroy interaction handlers, then nvl.destroy(), on teardown. The React wrappers do this for you.
  10. updateCallback(name, cb) on interaction handlers is untyped: cb is (...args: unknown[]) => void, so parameters arrive as unknown and a typed callback such as (node: Node) => … fails under strict. Cast inside the callback; the React mouseEventCallbacks are fully typed.

Symptom → cause → fix

SymptomCauseFix
Graph invisible / blankContainer has no heightExplicit width and height on the container
Wheel does not zoom (React)Zoom handler only wired from onZoomAndPanmouseEventCallbacks={{ onZoomAndPan: true }} → react-wrappers
Hierarchical layout never finishes (Vite dev)Layout SharedWorker imports CJS bin-pack; seen on older Vite, not on 7.3optimizeDeps: { include: ['bin-pack'] } → vite-and-bundlers
No text on nodes with WebGLCaptions are Canvas-onlyhtml / icon, own overlay, or setRenderer('canvas') → labels-and-overlays
fit([]) does nothingEmpty array = no nodesfit(nvl.getNodes().map((n) => n.id))
fit() stops zoomed in on a huge graphminZoom clamp (default 0.075)fit(ids, { minZoom }) or lower the minZoom option
Clicking a cluster selects all its nodesselectOnClick selects cluster.nodeIdsselectOnClick: false and select in onNodeClick → clustering
No cluster outlines / halosNot force-directed, or mixed colours (halo)Force-directed with layoutOptions.clustering; one colour per cluster → clustering
Pinned nodes move when clustering is onCluster forces ignore pinsDo not combine → clustering
Changing circle options does nothingLayout is not re-run on option changeBounce via setLayout('free') → layouts-and-positions
Un-pinned nodes stay frozenSettled simulation is not restartedsetNodePositions(current, true) → layouts-and-positions
Node x/y are ignoredPositions are owned by the layout; never set x/y on node datasetNodePositions(nodes) or the React positions prop → layouts-and-positions
Callbacks see stale state (React)nvlCallbacks captured at creationRefs or stable functions → react-wrappers
Minimap empty (React)Container did not exist at creationKeep the element in state → react-wrappers
Hover / shadow defaults lostinteractionOptions replaces defaultsPass every option → react-wrappers
Many icons not drawn (WebGL)More than 256 distinct icon imagesFewer distinct icons, or 'canvas' → labels-and-overlays
Layout looks hung in headless ChromeSoftware WebGLHardware-GL flags → verifying-nvl-apps
Raw executeQuery result passed to NVLRecords are not graph elementsresultTransformer: nvlResultTransformer → data-from-neo4j

Choose

NVL or Needle? Default Neo4j styling and no custom interaction → GraphVisualization from @neo4j-ndl/react. Anything custom → NVL.

NeedUse
React, default interactions<InteractiveNvlWrapper> from @neo4j-nvl/react
React, custom interaction logic<BasicNvlWrapper> + ref to the NVL instance
Vanilla, standard interactionsNVL + @neo4j-nvl/interaction-handlers
Vanilla, custom eventsNVL + container.addEventListener + nvl.getHits()
Static PNG / SVG<StaticPictureWrapper> or nvl.saveToFile() / nvl.saveToSvg()
RendererNodesNotes
'canvas' (default)up to ~1,000Captions, icons, arrows, exact hit-testing
'webgl'100,000+WebGL2 only; no captions; icons and arrowheads supported

disableWebGL: true forces Canvas rendering and non-GPU layouts.

Install

bash
npm install @neo4j-nvl/base                  # required
npm install @neo4j-nvl/interaction-handlers  # vanilla interactions
npm install @neo4j-nvl/react                 # React wrappers (React 19)

@neo4j-nvl/layout-workers is transitive; never install it directly. neo4j-driver is only needed for nvlResultTransformer. License: Neo4j Visualization Library License, for use with Neo4j products. Starters: https://github.com/neo4j-devtools/nvl-boilerplates

Minimal examples

javascript
import { NVL } from '@neo4j-nvl/base'
import { ClickInteraction, ZoomInteraction, PanInteraction, DragNodeInteraction } from '@neo4j-nvl/interaction-handlers'

const nodes = [{ id: '1', caption: 'A' }, { id: '2', caption: 'B' }]
const rels = [{ id: '12', from: '1', to: '2', type: 'KNOWS' }]
const nvl = new NVL(container, nodes, rels, { layout: 'forceDirected' }, {
  onLayoutDone: () => nvl.fit(nodes.map((n) => n.id))
})
const click = new ClickInteraction(nvl, { selectOnClick: true })
click.updateCallback('onNodeClick', (node) => console.log('clicked', node))
const handlers = [click, new ZoomInteraction(nvl), new PanInteraction(nvl), new DragNodeInteraction(nvl)]
// teardown: handlers.forEach((h) => h.destroy()); nvl.destroy()
tsx
import { InteractiveNvlWrapper } from '@neo4j-nvl/react'
import type { NVL } from '@neo4j-nvl/base'
import { useRef } from 'react'

export function Graph({ nodes, rels }) {
  const nvlRef = useRef<NVL>(null)
  return (
    <div style={{ width: '100%', height: 600 }}>
      <InteractiveNvlWrapper
        ref={nvlRef}
        nodes={nodes}
        rels={rels}
        nvlOptions={{ layout: 'forceDirected', renderer: 'canvas' }}
        interactionOptions={{ selectOnClick: true, drawShadowOnHover: true }}
        mouseEventCallbacks={{
          onNodeClick: (node) => console.log(node.id),
          onZoomAndPan: true,
          onPan: true,
          onDrag: true
        }}
        nvlCallbacks={{ onLayoutDone: () => nvlRef.current?.fit(nodes.map((n) => n.id)) }}
      />
    </div>
  )
}

Topic guides

Read the one that matches the task before writing code.

API reference

Generated from the installed version's type declarations. Open the page for the symbol you need; do not load all of them.

@neo4j-nvl/base

NVL class, options, callbacks, graph element types, hit testing, nvlResultTransformer.

Classes

  • NVL — Class for a NVL instance.

Functions

Interfaces

  • CircularOptions — The options for the circular layout.
  • ClusteringOptions — Options that control physical clustering and cluster decorations for the force-directed layout.
  • ExternalCallbacks — An object specifying the required callback functions for certain actions
  • ForceDirectedOptions — The options for the force directed layout
  • HierarchicalOptions — The options for the hierarchical layout
  • HitTargetCluster — A ClusteringOptions.clusterBy cluster hull that has been hit by a pointer event
  • HitTargetNode — A node that has been hit by a pointer event
  • HitTargetRelationship — A relationship that has been hit by a pointer event
  • Node — A node inside the graph visualization.
  • NvlMouseEvent — The result of a NVL.getHits call.
  • NvlOptions — Configurations for a NVL instance
  • NvlWindow — Read-only debugging hooks that every NVL instance registers on window, for tests and tooling
  • Point — An object representing a point in 2D space.
  • Relationship — A relationship inside the graph visualization.

Types

  • CanvasRendererType — A renderer using canvas.
  • Cluster — A physical cluster produced by ClusteringOptions.clusterBy.
  • ClusterByFn — Function that maps a node id to a ClusterId for force-directed clustering.
  • ClusterId — Identifier returned by ClusterByFn to group nodes into physical clusters.
  • HitTargets — A collection of nodes, relationships and clusters that have been hit by a pointer event
  • HitTestTarget — The kinds of element NVL.getHits can test for.
  • Layout — The different types of layouts available
  • LayoutOptions — The options for the layout.
  • NodeWithClientPosition — A node returned by NVL.getNodes with layout coordinates and screen position.
  • PartialNode — A node with only a subset of its properties.
  • PartialRelationship — A relationship with only a subset of its properties.
  • Renderer — The different types of renderers available
  • StyledCaption — The caption text and its text style.
  • WebGLRendererType — A WebGL2 renderer that uses the GPU for rendering.
  • ZoomOptions — Options that influence how fit-to-zoom should behave

Variables

@neo4j-nvl/interaction-handlers

Zoom, pan, drag, click, hover, box/lasso select, keyboard handlers and their callbacks.

Classes

  • BoxSelectInteraction — An interaction handler for multi-selecting nodes and relationships.
  • ClickInteraction — Click interaction handler that handles click, double click and right click events on
  • DragNodeInteraction — Interaction handler for dragging nodes,
  • HoverInteraction — Interaction handler for hovering nodes and relationships.
  • KeyboardInteraction — Opinionated interaction handler for keyboard-driven focus navigation
  • LassoInteraction — An interaction handler that lets you select nodes and relationships by drawing a lasso around them.
  • PanInteraction — Interaction handler for panning the scene, which is achieved by clicking and moving the scene.
  • ZoomInteraction — Interaction handler for zooming the canvas, which is achieved by:

Types

@neo4j-nvl/react

InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper and their props.

Functions

Interfaces

Types

Variables

  • BasicNvlWrapper — A basic React wrapper that wraps the NVL base library within a React component.
  • InteractiveNvlWrapper — The interactive React wrapper component contains a collection of interaction handlers by default

Web: user guide https://neo4j.com/docs/nvl/current/ · API https://neo4j.com/docs/api/nvl/current/ · examples https://neo4j.com/docs/api/nvl/current/examples.html

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Weitere Dateien: 25.

Häufig gestellte Fragen

Was macht der KI-Skill Neo4j Nvl Skill?

Neo4j Visualization Library (NVL) — framework-agnostic graph rendering for the browser. Covers @neo4j-nvl/base (NVL class, nodes/relationships, Canvas vs WebGL renderer), @neo4j-nvl/interaction-handlers (zoom, pan, drag, click, hover, box/lasso select, keyboard) and @neo4j-nvl/react (InteractiveNvlWrapper, BasicNvlWrapper, StaticPictureWrapper). Use when rendering a Neo4j graph in a browser, feeding driver results through nvlResultTransformer, choosing Canvas vs WebGL, clustering or laying out nodes, wiring node/relationship/cluster interactions, or embedding NVL in React, Vite or vanilla J...

Warum Neo4j Nvl Skill in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Neo4j Nvl Skill besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Neo4j Nvl Skill in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/neo4j/agent-skills/tree/main/neo4j-nvl-skill ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Neo4j Nvl Skill nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Neo4j Nvl Skill verwenden?

So viele Sie möchten. In TypingMind können Sie Neo4j Nvl Skill mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Neo4j Nvl Skill kostenlos?

Ja. Der Skill wird von neo4j auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇