neo4j-genai-plugin-skill
Skill by neo4j-contrib
Neo4j GenAI Plugin skill that teaches an AI assistant to use the ai.text.* functions and procedures inside Cypher. It covers embeddings, text and structured completion, chat, tokenization and batch ingestion for people building graph queries and GraphRAG.
Install neo4j-genai-plugin-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.claude/skills && cp -r /tmp/neo4j-skills/neo4j-genai-plugin-skill ~/.claude/skills/neo4j-genai-plugin-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install neo4j-genai-plugin-skill in Claude Code
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/neo4j-skills/neo4j-genai-plugin-skill ~/.gemini/antigravity-cli/skills/neo4j-genai-plugin-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install neo4j-genai-plugin-skill in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the ai.text.* functions and procedures from the Neo4j GenAI Plugin. They let a Cypher query generate embeddings, call an LLM for text or structured map output, run stateful chat, count tokens and chunk text by token limit. Each function takes a provider string such as openai, azure-openai, vertexai or bedrock-titan, plus a configuration map where API keys are passed as parameters.
The skill includes a provider configuration reference, a pure-Cypher GraphRAG pattern that combines embedding, vector search, graph traversal and completion, and a write checklist for bulk updates. It is meant for developers who want to write GraphRAG or ingestion logic in Cypher. It says it does not cover Python neo4j-graphrag pipelines or vector index creation and search, and it points to other skills for those.
Written from the project's SKILL.md and checked against it.
What it can do
- ai.text.embed()Generates an embedding vector for a string inside a Cypher query.
- ai.text.embedBatch()Batch-embeds many inputs with a procedure call during ingestion.
- ai.text.completion()Calls an LLM from Cypher and returns a string.
- ai.text.structuredCompletion()Returns a MAP that follows a supplied JSON schema from an LLM prompt.
- ai.text.aggregateCompletion()Summarizes an LLM response across grouped rows.
- ai.text.chat()Runs a stateful chat session and returns a chatId to continue it.
- ai.text.tokenCount()Counts tokens for a given provider and model.
- ai.text.chunkByTokenLimit()Splits text into chunks under a token limit without an external provider call.
What you need
- Neo4j with the GenAI plugin installed (enabled by default on Aura)
- CYPHER 25 query prefix or database default
- Provider API key or credentials, such as OpenAI, Azure OpenAI, VertexAI or Amazon Bedrock
Try asking
- Embed all Chunk nodes that have no embedding yet using ai.text.embedBatch
- Write a Cypher query that answers a question with ai.text.completion over graph context
- Extract category and tags from Product descriptions with ai.text.structuredCompletion
Good to know
- Every ai.text.* query needs the CYPHER 25 prefix or database default.
- Chat is supported only for the openai and azure-openai providers.
- Does not cover neo4j-graphrag Python pipelines or vector index creation and search.
- genai.vector.encode() is deprecated and should be replaced with ai.text.embed().
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: neo4j-genai-plugin-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash WebFetch
Alternatives to neo4j-genai-plugin-skill
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
neo4j-genai-plugin-skill: common questions
Does this skill need CYPHER 25?
Yes. The source says CYPHER 25 is required for all ai.* functions and gives a per-query prefix and a per-database default option.
Which LLM providers does it support?
The source lists OpenAI, Azure OpenAI, VertexAI and Amazon Bedrock, with a provider configuration reference in a separate file.
Should API keys go directly into queries?
No. The source says to pass API keys as $param values from driver parameters and never as string literals.
How do I install neo4j-genai-plugin-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is neo4j-genai-plugin-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is neo4j-genai-plugin-skill safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to neo4j-genai-plugin-skill?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
