SkillsReviewed · neo4j-contrib

neo4j-driver-javascript-skill

neo4j-driver-javascript-skill is an instruction pack for AI coding assistants helping JavaScript and TypeScript developers use Neo4j, but inconsistent examples require review before adoption. It targets neo4j-driver v6 and covers connections, transactions, data conversion, browser use and troubleshooting.

Researched 17 Nov 2026

In short.

neo4j-driver-javascript-skill is an instruction pack for AI coding assistants supporting JavaScript and TypeScript developers building Neo4j applications, but its examples contain inconsistencies that need developer review. The version 1.0.7 snapshot provides detailed guidance on driver lifecycle, query APIs, retries, serialization and advanced features. Credential variable names differ between examples, browser URI advice varies between files, and the RxJS example does not show cleanup on errors. Runtime correctness and improvements to assistant-generated code are not established; no code was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers all seven supplied files in neo4j-driver-javascript-skill at commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5: README.md, SKILL.md and references/advanced-patterns.md, browser-usage.md, data-types.md, property-encryption.md and rxjs-session.md. Includes the repository-root MIT LICENSE as the applicable related notice. Excludes sibling skills, the driver implementation, external linked discussions and later revisions. Findings concern documented content and visible inconsistencies. No code was executed, and runtime correctness, deployment behavior, performance and assistant effectiveness are unverified.

The overview

Identity

The resource is the neo4j-driver-javascript-skill folder in neo4j-contrib/neo4j-skills. Its SKILL.md identifies version 1.0.7 and targets the official Neo4j JavaScript/TypeScript driver v6. The folder contains assistant instructions, a README and five reference documents.

The original source is [https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-driver-javascript-skill]. The skill supplies written guidance; application code uses the separately installed neo4j-driver package to communicate with Neo4j.

Assessment

The strongest material concerns integration details that are easy to mishandle: sharing a driver, closing sessions, separating external side effects from retried transactions, accessing records and converting database values for JSON. These topics make it a useful reference for developers reviewing assistant-generated database code.

Treat the examples as starting points requiring inspection. The files disagree on some configuration and conversion details, and they provide no execution results or evidence of improved coding-assistant accuracy.

Users

It suits JavaScript and TypeScript developers asking a coding assistant to connect an application to Neo4j, implement database access or investigate session, transaction and serialization problems. Beginners get concrete patterns and warnings; experienced developers get references for bookmarks, streaming, connection pools and repository structure.

It assumes familiarity with JavaScript modules, async/await and basic database operations. Cypher query design and driver upgrades are explicitly assigned to separate sibling skills.

Capabilities

The main file covers authentication, connection URIs, driver reuse, executeQuery, managed and implicit transactions, record access, error handling, TypeScript annotations and UNWIND batch writes. It explains the tradeoffs between default Neo4j Integer values, JavaScript numbers and BigInt.

The references extend this to explicit transactions, causal consistency, timeouts, result transformers, browser connections, temporal and spatial values, RxJS sessions and preview property encryption. Encryption guidance includes application-managed key storage and the loss of server-side filtering, indexing and comparison on encrypted properties.

Using it

Requirements

The declared baseline is neo4j-driver v6 with Node.js 18 or later; TypeScript types are described as bundled. Running the application examples requires a reachable Neo4j database and appropriate connection settings and authentication. Browser examples assume a bundler such as webpack, Vite or Rollup; the reactive reference specifies RxJS v7 or later.

No particular assistant host, model or host-specific installation layout is documented. Property encryption additionally requires an encryption profile, key encapsulation service and a user-provided key repository.

Mechanism

SKILL.md gives an assistant task cues, implementation patterns, common mistakes and a checklist, with relative links to references for deeper topics. Its effect depends on how the assistant host loads and applies those instructions; that behavior is not demonstrated.

The guidance distinguishes eager results, which collect records in memory, from streaming consumption. It also distinguishes automatically retried query and managed-transaction APIs from implicit and explicit transactions. The explicit-transaction reference warns that a network failure during commit can leave the outcome uncertain and recommends writes designed to tolerate repetition.

Setup

Keep SKILL.md with its references directory when supplying the resource to an assistant so its relative reference links remain usable. The supplied files do not give an assistant-specific installation command.

For application setup, the documented dependency command is npm install neo4j-driver. It does not pin a version, so confirm that the installed release matches the skill's v6 scope. Configure the connection through environment variables and reconcile the username naming mismatch: the configuration example defines NEO4J_USERNAME, while lifecycle examples read NEO4J_USER.

The browser reference advises keeping production credentials out of client-side JavaScript and connecting through a backend API.

Example

A representative task is implementing a method that finds people whose names start with a supplied prefix. The PersonRepository example reuses a driver, passes the prefix as a query parameter, specifies the database and read routing, then maps record.get('name') and record.get('age') into application objects.

The age conversion uses toNumber(), so the developer must ensure values fit JavaScript's safe integer range. This example illustrates the pack's intended contribution: database access patterns together with conversion and lifecycle considerations. No example output was produced or verified.

Assessment & evidence

Limitations

Several instructions need reconciliation. The main browser mistakes table rejects neo4j://, while the browser reference permits it for local plaintext WebSocket connections. Batch-write guidance requires plain JavaScript numbers, while other examples require neo4j.int() for integer parameters, without explaining that distinction.

The toNative() helper has no BigInt conversion branch, although the main file warns that BigInt cannot be serialized directly with JSON.stringify. Its broad JSON-conversion description therefore needs qualification for useBigInt mode. The RxJS read example closes its session on completion but only logs errors, leaving error-path cleanup undemonstrated.

Property encryption is explicitly a preview whose API may change without a deprecation cycle. Its key repository is the application's responsibility, and encrypted properties cannot be filtered, indexed or compared server-side.

Reasoning

The resource's practical value comes from grouping related integration risks in one place. Its examples connect retry behavior with duplicate external actions, session handling with cleanup, and database types with application serialization. Those connections are useful when inspecting generated code.

The evidence supports describing it as a detailed reference pack. It does not establish that an assistant will follow every instruction, generate correct code or reduce development time. Internal inconsistencies make developer review particularly important.

Alternatives

For writing or optimizing Cypher, the resource directs readers to neo4j-cypher-skill. For driver version upgrades, it directs readers to neo4j-migration-skill. Their contents and quality are not established by the supplied files.

Within this pack, the RxJS reference offers a reactive approach for applications already using RxJS, while recommending async/await for most Node.js applications. No comparison with other assistant instruction packs is supplied.

Evidence

The source snapshot contains README.md, SKILL.md and all five reference files, together with the repository-root LICENSE. The immutable folder source is [https://github.com/neo4j-contrib/neo4j-skills/tree/004c7823fc05d352647f2e9e5106d9ae2a4080e5/neo4j-driver-javascript-skill].

These files establish the documented scope, examples and licence terms. The driver implementation and the linked property-encryption discussion are outside the supplied evidence. No code was executed; runtime compatibility, performance and assistant-output quality remain unassessed.

Access & freshness

Costs

The supplied files state no purchase price, subscription or usage charge for the skill. The MIT licence grants permission to use and redistribute the material, subject to retaining notices.

Costs for a coding assistant, model usage, Neo4j hosting and optional cloud key-management services are not established. No token consumption, infrastructure sizing or operating-cost measurements are supplied.

Rights

The repository-root MIT License names Neo4j Contrib as copyright holder for 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.

The material is supplied without warranty. Separate licence terms for application dependencies and optional services are not included in the supplied evidence.

Freshness

The snapshot was captured on 2026-11-17 at 00:15:10.329 UTC from commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5. SKILL.md declares version 1.0.7.

Some guidance has narrower requirements than the general v6 label. The data-types reference specifies driver 6.2+, Bolt 6.1 and Neo4j 2026.08+ for UUID support; property encryption is described as a driver 6.3.0+ preview. These compatibility statements are documentation claims, and correspondence with installed or later releases is unknown.

Actions

Before adopting generated code, confirm the exact driver release and check the documented result-consumption methods against that release. Reconcile environment variable names, choose an integer representation appropriate to the data, and inspect session cleanup on both success and failure.

For an initial application task, validate a small parameterized read and its JSON conversion in a development database. Review retry callbacks for external side effects. Browser integrations should keep production credentials behind a backend API; encryption adoption also requires decisions about key storage and the inability to query encrypted values server-side.

Evidence for this report

LICENSEnotice · checked 2026-11-17
neo4j-driver-javascript-skill/README.mdselected · checked 2026-11-17
neo4j-driver-javascript-skill/SKILL.mdselected · checked 2026-11-17