Neo4j Ops & Usage
БесплатноБез исполняемых скриптовНе проверенUse for Neo4j install, Cypher, schema design, and graph ops.
от blueboyzx237 установок в других каталогахОб этом скилле
Neo4j — install, model, query, operate
Server graph DB (Bolt protocol, Cypher). Current line is calendar-versioned (2026.10.x); 5.26.x is the LTS line. Versions move — confirm current on https://neo4j.com/deployment-center before pinning.
When to Use
- Setting up or connecting to a Neo4j instance (desktop, server, or cloud).
- Designing a property-graph schema from a domain description.
- Writing, debugging, or optimizing Cypher queries.
- Bulk-loading data or backing up / restoring a graph DB.
- A task needs graph structure (entity-relationship) where SQLite is too flat.
Not for: embedded single-process graph analytics with no server wanted — see LadybugDB (ex-Kuzu, pip install ladybug) as the alternative.
1. Install (desktop-first)
Windows — Neo4j Desktop (recommended for dev):
winget install -e --id Neo4j.Neo4jDesktop
- Bundles its own JDK (no separate Java install) and includes a free Enterprise Edition developer license — APOC, GDS and Bloom are available in Desktop instances.
- Create an instance in the UI; on first start it generates the initial password and shows it once. Record it.
- Instance settings UI: choose version (e.g. 2026.10.x) and memory.
Windows — headless zip (no GUI):
- Download the Windows Executable (zip) from the Neo4j Deployment Center. Requires JDK 21 on PATH (Java 25 supported from Neo4j 2025.10+); Neo4j Desktop is the easier route when Java isn't installed.
- Extract, set
setx NEO4J_HOME "C:\neo4j\neo4j-<version>"(data/conf live under it; relocate viaserver.directories.*for easy upgrades). - Before first start:
%NEO4J_HOME%\bin\neo4j-admin dbms set-initial-password <password>— without it the defaultneo4jpassword is enforced with a mandatory change at first login. - Start:
%NEO4J_HOME%\bin\neo4j console(foreground), or as a service (persists across reboots):neo4j windows-service installthenneo4j start. The service runs as LocalSystem viabin\tools\prunsrv-amd64.exe, SC nameneo4j, defaults to AUTO_START — verify withsc query neo4j/sc qc neo4j. Service install needs admin: from a non-elevated shell, trigger UAC once withpowershell Start-Process <install.bat> -Verb RunAs(have the .bat log to a file, then poll it; the user clicks Yes once). A PowerShell module ships in the zip (Import-Module $env:NEO4J_HOME\bin\Neo4j-Management.psd1→Invoke-Neo4j console).
Linux/macOS: package managers, Docker (neo4j/neo4j image), or zip; same neo4j-admin/cypher-shell tools. Min hardware: 2 GB RAM for personal use.
Default ports: Bolt 7687 (drivers), HTTP 7474 (Neo4j Browser at http://localhost:7474). Verify against the URL Desktop prints for the instance.
Smoke test after install:
import neo4j
d = neo4j.GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "<password>"))
print(d.execute_query("RETURN 1 AS ok")[0][0]["ok"]) # → 1
d.close()
2. Python driver
- Install
pip install neo4j(6.x, pure Python — works on any recent CPython). Neverneo4j-driver: that package name is deprecated and frozen at 5.28.8. - Connection schemes:
bolt://unencrypted (fine for localhost),neo4j://routing (recommended default),neo4j+s://TLS,neo4j+ssc://self-signed cert. - Driver 6.x API:
execute_querymanages session + transaction + retries for you:
import neo4j
with neo4j.GraphDatabase.driver("neo4j://localhost:7687",
auth=("neo4j", "<password>")) as driver:
records, summary, keys = driver.execute_query(
"MATCH (p:Person {name: $name}) RETURN p.name AS name",
name="Alice", database_="neo4j")
for r in records:
print(r.data()) # dict per row
print(summary.counters) # nodes_created, relationships_created, ...
- 6.x gotchas (most harvested code predates 6.0):
- No implicit close — use
withor calldriver.close(). element_id(str) replaces the intidon nodes/relationships.- The
trust=config option is gone — usetrusted_certificates=/ssl_context=. Do NOT copytrust: "TRUST_ALL_CERTIFICATES"patterns from old skills; pin real certs. SessionAPI:execute_read()/execute_write()(the oldread_transaction/write_transactionare removed).
- No implicit close — use
result_transformer_=neo4j.Result.to_dfreturns a pandas DataFrame directly.- Performance (official driver manual, current):
- Always pass
database_="neo4j"— omitting it adds a round-trip per query to resolve the default DB. execute_queryis EAGER: it fetches ALL records before returning. For large result sets useexecute_read/execute_writeand iterate theResult(neverlist()it) — lazy streaming bounds client+server memory.- Choose transaction granularity deliberately: 1 txn per query (safest, auto-retry) → 1 txn per N queries (balanced) → auto-commit
session.run()loop (fastest,
- Always pass
Установить Neo4j Ops & Usage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Neo4j Ops & Usage?
Use for Neo4j install, Cypher, schema design, and graph ops.
Как установить скилл Neo4j Ops & Usage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Neo4j Ops & Usage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic