From routine
Provides expert guidance for LadybugDB, an embedded property graph database using openCypher, covering schema design, Cypher queries, lbug CLI, Python/Node.js/Java/Rust/Go/Swift integrations, graph algorithms, HNSW vector search, and data import/export.
npx claudepluginhub delexw/claude-code-miscThis skill uses the workspace's default tool permissions.
LadybugDB is an **embedded, in-process property graph database** — no server process required. It uses the openCypher query language with a **required, predefined schema** (unlike Neo4j), columnar disk-based storage, vectorized query execution, and serializable ACID transactions.
references/attach.mdreferences/cli.mdreferences/cypher-reference.mdreferences/explorer.mdreferences/export.mdreferences/full-text-search.mdreferences/go.mdreferences/graph-algorithms.mdreferences/import.mdreferences/java.mdreferences/llm-embeddings.mdreferences/nodejs.mdreferences/python.mdreferences/rust.mdreferences/swift.mdreferences/vector-search.mdDesigns graph schemas, models relationships, optimizes traversals and queries for SurrealDB and general graph databases. Use for knowledge graphs, social networks, recommendations, fraud detection.
Designs, reviews, and refactors graph database schemas for Neo4j, Memgraph, Neptune using 46 prioritized rules across 8 categories with Cypher examples focused on modeling correctness.
Guides architecture decisions for PostgreSQL, DuckDB, Parquet, PGVector, Neo4j across OLTP, OLAP, vector search, graph workloads including schema design, query optimization, and performance tuning.
Share bugs, ideas, or general feedback.
LadybugDB is an embedded, in-process property graph database — no server process required. It uses the openCypher query language with a required, predefined schema (unlike Neo4j), columnar disk-based storage, vectorized query execution, and serializable ACID transactions.
":memory:" as the database path for ephemeral databases# CLI
curl -s https://install.ladybugdb.com | bash # Linux
brew install ladybug # macOS
# Python
pip install real_ladybug
# Node.js
npm install @ladybugdb/core
lbug mydb.lbug # open/create on-disk DB
lbug # in-memory (ephemeral)
lbug mydb.lbug < schema.cypher # batch mode
Key shell commands: :schema (show tables), :help, :quit, :mode [json|csv|markdown|...]
Load only the sections you need:
| File | Contents |
|---|---|
references/cypher-reference.md | DDL, DML, MATCH queries, transactions, macros, LadybugDB vs Neo4j differences |
references/python.md | Python (real_ladybug) — connection, query, DataFrame, transactions |
references/nodejs.md | Node.js (@ladybugdb/core) — connection, query, streaming, transactions |
references/java.md | Java — Maven setup, connection, query, transactions |
references/rust.md | Rust — Cargo setup, connection, query, Value types |
references/go.md | Go — module setup, connection, query, transactions |
references/swift.md | Swift — SPM setup, connection, query, async/await |
references/import.md | COPY FROM, LOAD FROM, DataFrame import, cloud storage, performance tips |
references/export.md | COPY TO, DataFrame export (pandas/polars/arrow), DuckDB export |
references/graph-algorithms.md | PageRank, Louvain, WCC, SCC, K-Core, shortest paths — PROJECT_GRAPH |
references/vector-search.md | HNSW index, CREATE/QUERY/DROP_VECTOR_INDEX, RAG pattern |
references/full-text-search.md | BM25, CREATE/QUERY/DROP_FTS_INDEX, stemmers |
references/llm-embeddings.md | CREATE_EMBEDDING — OpenAI, Ollama, Google, Bedrock, Voyage AI |
references/attach.md | ATTACH/DETACH — PostgreSQL, DuckDB, SQLite, Delta Lake, Iceberg, Neo4j |
references/cli.md | lbug shell flags, commands, output modes, batch/scripting mode |
references/explorer.md | Ladybug Explorer Docker GUI — launch, env vars, volume mount |
| Task | Read |
|---|---|
| Schema design, Cypher queries, differences from Neo4j | cypher-reference.md |
| Python integration | python.md |
| Node.js / TypeScript integration | nodejs.md |
| Java integration | java.md |
| Rust integration | rust.md |
| Go integration | go.md |
| Swift / iOS / macOS integration | swift.md |
| Bulk import — COPY FROM, LOAD FROM, DataFrames, cloud storage | import.md |
| Bulk export — COPY TO, DataFrame export, DuckDB | export.md |
| PageRank, Louvain, WCC, SCC, K-Core, shortest paths | graph-algorithms.md |
| HNSW vector similarity search, RAG | vector-search.md |
| Full-text search (BM25) | full-text-search.md |
| LLM embeddings (OpenAI, Ollama, Bedrock…) | llm-embeddings.md |
| ATTACH to PostgreSQL, DuckDB, Delta Lake, Neo4j | attach.md |
| CLI shell, batch scripts | cli.md |
| Ladybug Explorer browser GUI (Docker) | explorer.md |
SET n.prop = NULL to remove a property (not REMOVE)label(n) not labels(n); id(n) not elementId(n)UNWIND instead of FOREACHlist_ prefix: list_concat, list_sort, etc.[:Follows*1..5]LOAD FROM (not LOAD CSV FROM) — supports CSV, Parquet, JSON, DataFrames