Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Neo4j Ops & Usage

БесплатноБез исполняемых скриптовНе проверен

Use for Neo4j install, Cypher, schema design, and graph ops.

blueboyzxот 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):

  1. 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.
  2. Extract, set setx NEO4J_HOME "C:\neo4j\neo4j-<version>" (data/conf live under it; relocate via server.directories.* for easy upgrades).
  3. Before first start: %NEO4J_HOME%\bin\neo4j-admin dbms set-initial-password <password> — without it the default neo4j password is enforced with a mandatory change at first login.
  4. Start: %NEO4J_HOME%\bin\neo4j console (foreground), or as a service (persists across reboots): neo4j windows-service install then neo4j start. The service runs as LocalSystem via bin\tools\prunsrv-amd64.exe, SC name neo4j, defaults to AUTO_START — verify with sc query neo4j / sc qc neo4j. Service install needs admin: from a non-elevated shell, trigger UAC once with powershell 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). Never neo4j-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_query manages 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 with or call driver.close().
    • element_id (str) replaces the int id on nodes/relationships.
    • The trust= config option is gone — use trusted_certificates= / ssl_context=. Do NOT copy trust: "TRUST_ALL_CERTIFICATES" patterns from old skills; pin real certs.
    • Session API: execute_read() / execute_write() (the old read_transaction/write_transaction are removed).
  • result_transformer_=neo4j.Result.to_df returns 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_query is EAGER: it fetches ALL records before returning. For large result sets use execute_read/execute_write and iterate the Result (never list() 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,
Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить Neo4j Ops & Usage с