kr7shnasomani/kairos / .agents/skills/neo4j-driver-go-skill
neo4j-driver-go-skill
VerifiedCovers the Neo4j Go Driver v6 — driver lifecycle, ExecuteQuery, managed and explicit transactions, session config, error handling, data type mapping, and connection tuning. Use when writing Go code that connects to Neo4j, setting up NewDriver or ExecuteQuery, debugging sessions/transactions/result handling, or working with neo4j-go-driver v5→v6 migration. Triggers on NewDriver, ExecuteQuery, SessionConfig, ManagedTransaction, neo4j-go-driver. Does NOT handle Cypher query authoring — use neo4j-cypher-skill. Does NOT cover driver version migration steps — use neo4j-migration-skill.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.1 KB |
| SKILL.md | skill md | 13.2 KB |
| references/advanced-config.md | markdown | 1.8 KB |
| references/repository-pattern.md | markdown | 1.6 KB |
references/advanced-config.md
View on GitHub# Advanced Driver Configuration
## Connection Pool
```go
import "github.com/neo4j/neo4j-go-driver/v6/neo4j/config"
driver, _ := neo4j.NewDriver(uri, auth,
func(conf *config.Config) {
conf.MaxConnectionPoolSize = 50 // default: 100
conf.ConnectionAcquisitionTimeout = 30 * time.Second
conf.MaxConnectionLifetime = 1 * time.Hour
},
)
```
## Custom Address Resolver + Notifications + Logging
```go
import (
"github.com/neo4j/neo4j-go-driver/v6/neo4j/config"
"github.com/neo4j/neo4j-go-driver/v6/neo4j/notifications"
)
driver, err := neo4j.NewDriver(uri, auth,
func(conf *config.Config) {
// Custom address resolver (e.g. local dev against a cluster)
conf.AddressResolver = func(addr config.ServerAddress) []config.ServerAddress {
return []config.ServerAddress{
neo4j.NewServerAddress("localhost", "7687"),
}
}
// Reduce notification noise
conf.NotificationsMinSeverity = notifications.WarningLevel
conf.NotificationsDisabledClassifications = notifications.DisableClassifications(
notifications.Hint, notifications.Generic,
)
// Bolt-level debug logging
conf.Log = neo4j.ConsoleLogger(neo4j.DEBUG)
},
)
```
## Auth Options
```go
neo4j.BasicAuth(user, password, "") // username + password
neo4j.BearerAuth(token) // SSO / JWT
neo4j.KerberosAuth(base64EncodedTicket) // Kerberos
neo4j.NoAuth() // unauthenticated (dev only)
```
## URI Schemes
| Scheme | When to use |
|--------|-------------|
| `neo4j://` | Unencrypted, cluster-routing |
| `neo4j+s://` | Encrypted (TLS), cluster-routing — use for Aura |
| `bolt://` | Unencrypted, single instance |
| `bolt+s://` | Encrypted, single instance |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |