SkillsReviewed · neo4j-contrib

neo4j-driver-go-skill

neo4j-driver-go-skill is an AI coding skill for Go developers using Neo4j Driver v6, but several examples omit error or type checks. It provides instructions and code patterns for connections, transactions, result handling and configuration, with additional references for repositories and preview property encryption.

Researched 16 Nov 2026

In short.

neo4j-driver-go-skill is an instruction pack for AI assistants helping Go developers connect applications to Neo4j, but its sample code needs additional error handling. Its strongest material explains driver lifecycle, query API choices, retries, timeouts and result extraction. It targets Driver v6 and documents several version-dependent preview features. Runtime correctness, host compatibility and performance have not been tested.

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

Coverage includes all five supplied files in neo4j-driver-go-skill at commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5 and the repository-level MIT licence above that folder. Other skills, linked documentation, driver source and the linked encryption test file are outside the supplied content. No commands or examples were executed; installation, compilation, assistant loading, database behavior, performance and encryption interoperability remain untested.

The overview

Identity

The resource is the neo4j-driver-go-skill folder in neo4j-contrib/neo4j-skills. It contains SKILL.md, a README and three reference documents. SKILL.md declares version 1.0.8 and describes instructions for working with Neo4j Go Driver v6.

It is an assistant instruction pack rather than the Go driver itself. The driver is a separate dependency installed through Go modules. The captured folder is available at [https://github.com/neo4j-contrib/neo4j-skills/tree/004c7823fc05d352647f2e9e5106d9ae2a4080e5/neo4j-driver-go-skill].

Assessment

This is a useful focused reference for recurring driver decisions: sharing one driver, choosing between eager queries and streaming transactions, handling retries, and extracting returned values. Its API comparison table makes these tradeoffs accessible without requiring readers to assemble them from scattered examples.

The examples require review before reuse. The managed-transaction and repository examples use unchecked type assertions, while some generic mapping examples discard errors. These omissions conflict with the skill's own advice to check values and errors. No evidence establishes that assistant-generated code becomes more accurate or faster with this skill.

Users

It fits Go developers using a coding assistant to add Neo4j connectivity, investigate transaction or result-handling problems, or standardize database access patterns. Developers already familiar with Go can use the lifecycle examples and API table as an introduction to this driver.

Experienced developers get references for pool configuration, authentication, result-summary changes and cross-session bookmarks. Readers learning Go itself will need additional material. Cypher query design and a complete driver-version migration procedure are outside its stated scope.

Capabilities

The main file covers connection verification, shared-driver lifecycle, ExecuteQuery, managed and explicit transactions, auto-commit queries, parameterized Cypher, context timeouts, batch writes with UNWIND, data types and typed result extraction.

The references extend this to connection pools, address resolution, notifications, logging, authentication and repository wrappers. Bookmark examples address causal consistency: allowing a later session to observe work completed by earlier sessions.

The property-encryption reference describes client-side AES-256-GCM envelope encryption, where data keys are themselves protected by another key. It includes additional authenticated data, which must match during decryption, and requires an application-provided key repository.

Using it

Requirements

The code patterns require a Go application, the Neo4j Go Driver v6 module and access to a Neo4j database. Examples use a connection URI, username, password and database name. The README recommends Go 1.21 or later; the exact minimum Go version for each discussed driver release is not established by these files.

Using it as an assistant skill requires a host that can load its instructions and referenced files. Supported hosts and their installation procedures are unspecified. Optional property encryption additionally requires protected key material and a custom EncapsulatedKeyRecordRepository implementation.

Mechanism

SKILL.md supplies task descriptions, API guidance, examples, troubleshooting notes and a checklist. It names concepts such as NewDriver, ExecuteQuery and SessionConfig as triggers and directs the assistant to supporting references when needed. Its metadata declares Bash and WebFetch as allowed tools; actual access depends on the assistant host.

Its central API distinction is between ExecuteQuery with eager results, managed transactions for lazy result consumption with automatic retries, and explicit transactions where the caller controls completion and retries. It warns that managed callbacks can run again, so external side effects should stay outside them.

Setup

The documented dependency command is go get github.com/neo4j/neo4j-go-driver/v6, with the import path github.com/neo4j/neo4j-go-driver/v6/neo4j. This installs the driver dependency; the files provide no separate assistant-specific skill installation command.

The application setup reads connection settings from environment variables, creates one shared driver at startup, verifies connectivity and closes the driver during shutdown. Examples recommend specifying the database, passing contexts with timeouts and using query parameters. If copying the skill into an assistant's skill directory, retain its references so the relative document paths remain usable.

Example

The friend-lookup example uses ExecuteQuery to find people connected to a person named Alice. It passes the name through a parameter map, explicitly selects the neo4j database, requests reader routing and obtains an eager result. This illustrates the resource's default pattern for a straightforward read.

For larger result sets, another example consumes records through res.Next inside an ExecuteRead callback and returns res.Err after iteration. That example still appends every name to a slice, so its final memory use grows with the returned data despite lazy fetching. These are illustrative snippets; none was executed.

Assessment & evidence

Limitations

The pack excludes Cypher authoring and full migration procedures. Some snippets assume fields exist and have the expected types, and the encryption example indexes the first returned record without checking whether any records exist. Copying those assumptions into an application can cause failures on unexpected results.

The documented object-mapping rules turn missing or null values into Go zero values and ignore extra columns. Applications needing to distinguish missing data from valid zero values must account for that behavior.

Property encryption is marked preview, with APIs subject to change without a deprecation cycle. The reference says encrypted properties cannot be filtered, indexed or compared in Cypher. Interoperability, cryptographic implementation and operational reliability were not assessed.

Reasoning

Its practical value comes from collecting related driver decisions in one place. A developer can connect API choice to memory use, retries, transaction ownership and result handling, then follow references for more specialized needs.

It is most useful when an assistant repeatedly writes or reviews Neo4j Go integration code and a developer can check the resulting implementation. The incomplete checks in several examples make direct copying less dependable. The evidence supports its usefulness as guidance, but provides no measured accuracy or productivity advantage.

Alternatives

The skill points readers to the Neo4j Go driver manual at [https://neo4j.com/docs/go-manual/current/] and API reference at [https://pkg.go.dev/github.com/neo4j/neo4j-go-driver/v6/neo4j]. These are destinations for checking API behavior and compatibility; their contents are not included in the supplied evidence.

For adjacent work, the README names neo4j-cypher-skill for query authoring and neo4j-migration-skill for migration steps. Their contents and comparative quality are unknown from the supplied files.

Evidence

The supplied source snapshot contains the folder's README.md, SKILL.md, references/advanced-config.md, references/property-encryption.md and references/repository-pattern.md, plus the repository-level LICENSE. All are tied to commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5.

The main instruction file is preserved at [https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/004c7823fc05d352647f2e9e5106d9ae2a4080e5/neo4j-driver-go-skill/SKILL.md]. These documents establish the resource's content and stated behavior. They provide no execution results, benchmarks or completed application tests.

Access & freshness

Costs

The MIT licence permits use and redistribution without a stated licence fee for the captured skill. The files provide no prices for an assistant service, Neo4j hosting, infrastructure or key-management services, so total operating cost is unknown.

No measurements establish token consumption, latency, database load or savings from adopting these instructions. The example pool settings are configuration examples, not capacity or cost estimates.

Rights

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

The licence disclaims warranties and liability. This notice covers the supplied repository material; it does not establish the licence terms of separately obtained dependencies or services.

Freshness

The snapshot was captured on 16 November 2026. SKILL.md declares skill version 1.0.8, while the README describes Driver v6 as current stable. The latest available driver release and subsequent source changes are unknown.

The text places struct parameters and UUID support at v6.2.0 or later, with Bolt 6.1 required for UUIDs; result mapping at v6.3.0 or later; and preview property encryption at v6.4.0 or later. It also advises v6.4.0 or later for temporal writes because of described earlier date and time issues. These release-specific claims have not been independently verified.

Actions

Before adopting the examples, confirm the installed driver's Go requirements and support for the APIs being used. Replace unchecked assertions and discarded errors with explicit handling of missing fields, nulls, wrong types and empty result sets.

Check timeout, retry and cleanup behavior in the intended application. Keep external side effects outside retried transaction callbacks and choose eager or streaming result handling according to expected result size.

For property encryption, first establish key storage, key-repository behavior and the effect of losing server-side filtering and indexing on encrypted values. Treat the preview API and its interoperability claims as requiring application-specific verification.

Evidence for this report

LICENSEnotice · checked 2026-11-16
neo4j-driver-go-skill/README.mdselected · checked 2026-11-16
neo4j-driver-go-skill/SKILL.mdselected · checked 2026-11-16