Logotipo de Neo4j Aura Agent Skill

Neo4j Aura Agent Skill

Organización
neo4j
neo4j-aura-agent-skill

Manages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke Aura agents backed by an AuraDB instance. Use when configuring Aura Agent tools (CypherTemplate, SimilaritySearch, Text2Cypher), setting system prompts, deploying agents to REST or MCP endpoints, invoking agents with natural language queries, or generating evaluation datasets (max 50 questions) for the Aura Agent evaluation feature. Covers OAuth2 auth, organization/project scoping, tool parameter schemas, and InvokeAgentResponse format. Does NOT cover AuraDB instance provisioning — use neo4j-aura-provisioning-skill. Does NOT cover vector index creation — use neo4j-vector-index-skill.

Descripción general

Editorneo4j
Repositorioagent-skills
Nombre de la habilidadneo4j-aura-agent-skill
Estrellas
127
Forks
44
Archivos incluidos
9
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 9

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por neo4j en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Neo4j Aura Agent Skill en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/neo4j/agent-skills/tree/main/neo4j-aura-agent-skill
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/neo4j/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/neo4j-aura-agent-skill .claude/skills/neo4j-aura-agent-skill
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Neo4j Aura Agent Skill en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Neo4j Aura Agent Skill automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Neo4j Aura Agent Skill no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

When to Use

  • Creating or configuring an Aura Agent on an existing AuraDB instance
  • Adding/updating tools (CypherTemplate, SimilaritySearch, Text2Cypher) to an agent
  • Deploying an agent for external access (REST API endpoint or MCP server)
  • Invoking an agent with natural language queries via REST API
  • Listing, reading, or deleting existing agents in a project
  • Generating an evaluation dataset (JSON) to test an agent in the Aura console's Evaluation feature

When NOT to Use

  • Creating/managing AuraDB instances → neo4j-aura-provisioning-skill
  • Creating vector indexes → neo4j-vector-index-skill
  • Running Cypher directly → neo4j-cypher-skill
  • Building Aura Graph Analytics sessions → neo4j-aura-graph-analytics-skill

What are Aura Agents

GraphRAG agents on top of AuraDB — answer natural language questions via three tool types:

  • CypherTemplate — parameterized queries for predictable lookups
  • SimilaritySearch — vector similarity search over a VECTOR index
  • Text2Cypher — natural language → Cypher for aggregations and discovery

Expose your graph via natural language to users or apps without application code. Accessible as REST or MCP endpoint; single- and multi-turn. For full Cypher control, low-latency lookups, or direct writes — use neo4j-cypher-skill instead.


Prerequisites

  • Running AuraDB instance with knowledge graph loaded
  • "Generative AI assistance" enabled in Organization settings
  • "Aura Agent" toggled on in the project
  • "Tool authentication" enabled at project/Security level
  • Project admin access
  • AURA_CLIENT_ID and AURA_CLIENT_SECRET from console.neo4j.io → Account Settings → API Credentials
  • AURA_ORG_ID, AURA_PROJECT_ID — see Step 2; AURA_INSTANCE_ID — resolved interactively in Step 2 if not already set
  • Python env: uv sync in skill directory (or pip install neo4j neo4j-graphrag requests python-dotenv)
  • .env and schema.json in .gitignore

Step 1 — Verify Auth

Manual credential verification only — scripts call get_token() internally.

bash
TOKEN=$(curl -s --request POST 'https://api.neo4j.io/oauth/token' \
  --user "${AURA_CLIENT_ID}:${AURA_CLIENT_SECRET}" \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=client_credentials' \
  | jq -r '.access_token')
echo "Token: ${TOKEN:0:20}..."

If blank token: verify AURA_CLIENT_ID/AURA_CLIENT_SECRET in .env. Stop and report. Token TTL: 3600 s. Re-run on 401/403.


Step 2 — Resolve Organization & Project IDs

From console URL (fastest): open console.neo4j.io → navigate to a project. URL pattern: /organizations/{AURA_ORG_ID}/projects/{AURA_PROJECT_ID}

Programmatic fallback:

bash
curl -s https://api.neo4j.io/v1/tenants \
  -H "Authorization: Bearer $TOKEN" | jq '.data[] | {id, name}'
# tenant id maps to AURA_PROJECT_ID

Set in .env:

AURA_ORG_ID=<organization-id>
AURA_PROJECT_ID=<project-id>

Check AURA_INSTANCE_ID — if it is already set in .env, skip the rest of this step.

If not set, list available instances and ask the user to choose:

bash
curl -s "https://api.neo4j.io/v1/instances?tenantId=${AURA_PROJECT_ID}" \
  -H "Authorization: Bearer $TOKEN" \
  | jq '.data[] | {id, name, cloud_provider}'

List returns no status. Check status per candidate (must be running):

bash
curl -s "https://api.neo4j.io/v1/instances/<instance-id>" \
  -H "Authorization: Bearer $TOKEN" | jq '.data | {id, name, status, region, type}'

Show output to user. Ask: "Which instance should the agent connect to?" Then write to .env:

AURA_INSTANCE_ID=<chosen-instance-id>
NEO4J_URI=neo4j+s://<chosen-instance-id>.databases.neo4j.io

If the list is empty: no AuraDB instances exist in this project — an Aura Agent cannot be created without one. Stop and report. If 401: re-run Step 1. If 404: verify AURA_PROJECT_ID. Stop and report.


Step 3 — List Existing Agents

bash
uv run python3 scripts/manage_agent.py list   # Linux/macOS
uv run python scripts\manage_agent.py list    # Windows

Output: agent IDs, names, enabled status, endpoint URLs.

If 401: re-run Step 1. If 404: verify AURA_ORG_ID/AURA_PROJECT_ID. Stop and report.


Step 4 — Fetch Graph Schema

Requires NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD in .env.

bash
uv run python3 scripts/fetch_schema.py   # Linux/macOS
uv run python scripts\fetch_schema.py    # Windows

Saves schema.json. Output: node/rel-type counts, node labels + typed properties (with Aura data_type), relationship patterns, VECTOR indexes.

Data gate — script exits with error and does NOT write schema.json if:

  • fewer than 2 nodes, OR
  • zero relationship types

If gate fails: load data into the database before proceeding. Stop and report. If ServiceUnavailable: check NEO4J_URI uses neo4j+s://; instance must be running. Stop and report. If neo4j-graphrag not found: uv add neo4j-graphrag. Stop and report.

Read schema.json before Step 5.


Step 5 — Discover Use Cases

Before designing tools, read references/authoring-guide.md.

Take answers from request and schema; ask about gaps. Do NOT guess tool types or parameters.

  1. "What questions should this agent answer?"
  2. "Which nodes or relationships matter most?" — match against schema.json → node_props
  3. "Do users search by a specific property value?" → CypherTemplate
  4. "Any counting, grouping, or date-range questions?" → Text2Cypher
  5. "Search for semantically similar text?" → check schema.json → metadata → vector_index
    • No VECTOR index found: inform user; skip SimilaritySearch; delegate to neo4j-vector-index-skill first
    • VECTOR index found: provider/model from request, else ask ("Which embedding provider and model?"); supported models → references/REFERENCE.md → Embedding Provider Options. Dimension from index (vector.dimensions). Do NOT guess provider/model.

Tool selection:

Use CaseTool
Lookup by specific property valuecypherTemplate
Semantic text searchsimilaritySearch
Aggregation, counting, open-endedtext2cypher

CypherTemplate parameters: for each parameter, read aura_data_type from schema.json → node_props or rel_props and use it as data_type. If the property has low_cardinality: true, the parameter description should list the valid values — copy them from the values array in schema.json. Example: "description": "Agreement type to filter by. Valid values: \"Distributor Agreement\", \"License Agreement\", \"NDA\"". Properties with has_fulltext_index: true are especially likely to be filter targets and should include valid values when low cardinality.

SimilaritySearch configuration — values from request; dimensions from index; ask about gaps; then draft tool config:

FieldWhat to askSource
provider"openai" or "vertexai"?Request, else user confirms
modelWhich model?Request, else user picks from references/REFERENCE.md → Embedding Provider Options
dimensionsWhat output dimension?Optional; set when provider or index needs an explicit size (configurable models, see table)

index: use name from schema.json → metadata → vector_index where state = ONLINE. dimensions must match vector.dimensions in the same index entry.

Signals inventory: for each label or relationship that appears in a tool or the user's stated questions, write a signal block in the system prompt. See references/authoring-guide.md → Signals inventory for the template and rules.

Draft config JSON → show to user for review → confirm → proceed to Step 6. Skip review if user said go ahead or request gives full config; state config, proceed.


Step 6 — Create Agent

Minimum required config:

json
{
  "name": "My Agent",
  "description": "Answers questions about the graph",
  "dbid": "<AURA_INSTANCE_ID>",
  "is_private": true,
  "tools": [
    {
      "type": "text2cypher",
      "name": "Query Graph",
      "description": "Translates natural language questions into Cypher queries"
    }
  ]
}

Show config to user and confirm before running (skip if user already asked to create with these details):

bash
uv run python3 scripts/manage_agent.py create --config agent-config.json

is_private: true = internal: free, project members use it in the console only; no REST invoke, no MCP. is_private: false = external: REST endpoint (optionally MCP), billed. Keep internal while testing; set false only when user needs API/MCP access and accepts charges.

Response includes id (save as AURA_AGENT_ID). Endpoint link: list response (endpoint_link) or console […] menu. No MCP URL in create/get response; if is_mcp_enabled: https://mcp.neo4j.io/agent?project_id=<project_id>&agent_id=<agent_id> — see references/REFERENCE.md → External Access.


Step 7 — Invoke Agent (Test)

API invoke requires external agent (is_private: false, billed). Internal agents answer only in the console; API returns 403 ("agent is disabled or private"). Internal agent → test in console, or ask user before switching to external.

bash
uv run python3 scripts/invoke_agent.py --agent-id "$AURA_AGENT_ID" "What can you help me with?"

--raw prints full JSON including reasoning chain and token usage.

Direct curl (uses token from Step 1):

bash
curl -s -X POST \
  "https://api.neo4j.io/v2beta1/organizations/${AURA_ORG_ID}/projects/${AURA_PROJECT_ID}/agents/${AURA_AGENT_ID}/invoke" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"input": "What can you help me with?"}'

Step 8 — Update Agent (Partial PATCH)

Patch JSON with only the fields to change:

json
{ "system_prompt": "Updated instructions.", "is_mcp_enabled": true }

tools in a PATCH replaces the whole tool list. A patch with only the new tool deletes all others. To add/change/remove a tool: manage_agent.py get → edit the full tools array → PATCH the full array → get again to verify.

Show to user and confirm before running:

bash
uv run python3 scripts/manage_agent.py update --agent-id "$AURA_AGENT_ID" --config patch.json

Step 9 — Delete Agent

IRREVERSIBLE. Configuration permanently removed.

Show to user and wait for explicit confirmation before running:

bash
uv run python3 scripts/manage_agent.py delete --agent-id "$AURA_AGENT_ID"

Returns 202 Accepted.


Step 10 — Generate Evaluation Dataset

Creates an importable evaluation dataset (max 50 questions) for Aura's Agent Evaluation feature. Read references/evaluation-dataset-guide.md first — it defines format, tool_type mapping, question budget and category rules.

  1. Export the real agent definition (never draft from a description alone — LLMs invent plausible tool calls):
    bash
    uv run python3 scripts/manage_agent.py get --agent-id "$AURA_AGENT_ID" > agent.json
    Ensure schema.json exists (Step 4).
  2. List tools (name, type, parameters, descriptions) and propose the per-category plan (≤ 50 total). Categories:
    1. Core Factual (counts, aggregates, filters, comparisons, AND/NOT)
    2. Per-tool probing — per non-Text2Cypher tool: one it should nail, one edge case on a hypothesised limit, one exploiting a structural gap confirmed in its config
    3. Semantic search — exact-match + paraphrased/conceptual (only if a similaritySearch tool exists)
    4. Multi-tool composition — each chains 2–4 tools
    5. Text2Cypher stress — 5.1 2–3 hop/aggregation, 5.2 WITH/OPTIONAL compound, 5.3 shortest path/variable-length, 5.4 zero-record (hallucination) questions, 5.5 schema questions
  3. Derive every expected answer by running Cypher against the database (driver with .env creds). No guessed answers. Keep Cypher + gap rationale in eval_dataset.provenance.json.
  4. Write eval_dataset.json and validate:
    bash
    uv run python3 scripts/validate_eval_dataset.py eval_dataset.json --agent agent.json
  5. Show the user category counts and samples, then tell them to import (Agent → Evaluation). Datasets stay editable; each save of changed questions creates a new version. Deleting a dataset deletes the evaluation history that used it.

Tool Configuration

CypherTemplate

Pre-defined parameterized queries for repeated, predictable lookups.

json
{
  "type": "cypherTemplate",
  "name": "<descriptive name>",
  "description": "<what it looks up and when to use it>",
  "enabled": true,
  "config": {
    "template": "MATCH (n:Label {prop: $param}) RETURN n",
    "parameters": [
      {
        "name": "param",
        "data_type": "<string|integer|number|boolean — from schema.json aura_data_type>",
        "description": "<what the parameter represents. If low_cardinality=true in schema.json, append: Valid values: \"val1\", \"val2\", ...>"
      }
    ]
  }
}

Low-cardinality rule: if schema.json → node_props[Label][prop].low_cardinality is true, the description field must end with the exact values from schema.json → node_props[Label][prop].values. This applies to relationship properties in rel_props too.

SimilaritySearch

Requires a VECTOR index (state = ONLINE). Get index name from schema.json → metadata → vector_index.

json
{
  "type": "similaritySearch",
  "name": "<descriptive name>",
  "description": "<what text it searches and when to use it>",
  "enabled": true,
  "config": {
    "provider": "openai",
    "model": "text-embedding-3-small",
    "index": "<name from schema.json metadata.vector_index[state=ONLINE].name>",
    "top_k": 5,
    "dimensions": "<optional; vector.dimensions from schema.json metadata.vector_index options.indexConfig>",
    "post_processing_cypher": "<optional: Cypher to enrich similarity results with related nodes>"
  }
}

provider/model combinations: see references/REFERENCE.md.

Text2Cypher

Natural language → Cypher. Use as fallback for aggregation and discovery.

json
{
  "type": "text2cypher",
  "name": "<descriptive name>",
  "description": "<what questions it handles — and explicitly what it should NOT handle>",
  "enabled": true
}

Common Errors

ErrorCauseFix
401 UnauthorizedToken expiredRe-run Step 1
403 Forbidden on createNot a project adminRequest admin access
403 Forbidden on invokeAgent disabled or internal (is_private: true)Enable; make external only with user consent (billed)
400 Bad RequestInvalid tool config or missing required fieldCheck type spelling: cypherTemplate, similaritySearch, text2cypher
404 Not FoundWrong org/project/agent IDRe-run list to verify IDs
400 on create with SimilaritySearchVector index missingCreate index first — use neo4j-vector-index-skill
Agent returns no resultstop_k too low or index emptyIncrease top_k; verify index is populated

Scripts

All scripts load credentials from .env automatically. Run with uv run python3 <script>.

ScriptPurpose
scripts/fetch_schema.pyFetch graph schema from AuraDB; save to schema.json
scripts/manage_agent.pyCRUD: list, create, get, update, delete agents
scripts/invoke_agent.pySend a natural language query to an agent
scripts/validate_eval_dataset.pyValidate an evaluation dataset JSON (optionally against agent.json)

fetch_schema.py parameters:

ParameterTypeRequiredDefault
NEO4J_URIenvYes—
NEO4J_USERNAMEenvNoneo4j
NEO4J_PASSWORDenvYes—
NEO4J_DATABASEenvNoneo4j

manage_agent.py parameters:

ParameterTypeRequiredEnv fallback
AURA_CLIENT_IDenvYes—
AURA_CLIENT_SECRETenvYes—
--org-idargNoAURA_ORG_ID
--project-idargNoAURA_PROJECT_ID
--agent-idargget/update/deleteAURA_AGENT_ID
--configargcreate/update—

invoke_agent.py parameters:

ParameterTypeRequiredEnv fallback
AURA_CLIENT_IDenvYes—
AURA_CLIENT_SECRETenvYes—
--org-idargNoAURA_ORG_ID
--project-idargNoAURA_PROJECT_ID
--agent-idargYesAURA_AGENT_ID
querypositionalYes—
--rawflagNo—

Checklist

  • AuraDB instance running, knowledge graph loaded
  • "Generative AI assistance" + "Aura Agent" enabled in org/project settings
  • .env populated: AURA_CLIENT_ID, AURA_CLIENT_SECRET, AURA_ORG_ID, AURA_PROJECT_ID, AURA_INSTANCE_ID, NEO4J_URI, NEO4J_PASSWORD
  • .env and schema.json in .gitignore
  • Auth verified (Step 1)
  • Org/Project IDs confirmed (Step 2)
  • API connectivity confirmed via list (Step 3)
  • schema.json fetched and reviewed (Step 4) — data gate passed (≥2 nodes, ≥1 rel type)
  • Use cases confirmed with user (Step 5)
  • CypherTemplate data_type taken from schema.json aura_data_type
  • SimilaritySearch index from schema.json metadata.vector_index (state=ONLINE)
  • Agent config shown to user and confirmed (Step 6)
  • Required fields present: name, description, dbid, is_private, tools (min 1)
  • AURA_AGENT_ID saved from create response
  • Agent invoked and response verified (Step 7)
  • Update/Delete confirmed by user before execution
  • Eval dataset: ≤ 50 questions, expected answers from DB queries, tool calls validated against agent.json (Step 10)

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Neo4j Aura Agent Skill?

Manages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke Aura agents backed by an AuraDB instance. Use when configuring Aura Agent tools (CypherTemplate, SimilaritySearch, Text2Cypher), setting system prompts, deploying agents to REST or MCP endpoints, invoking agents with natural language queries, or generating evaluation datasets (max 50 questions) for the Aura Agent evaluation feature. Covers OAuth2 auth, organization/project scoping, tool parameter schemas, and InvokeAgentResponse format. Does NOT cover AuraDB instance provisioning — use neo4j-a...

¿Por qué usar Neo4j Aura Agent Skill en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Neo4j Aura Agent Skill está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Neo4j Aura Agent Skill en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/neo4j/agent-skills/tree/main/neo4j-aura-agent-skill. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Neo4j Aura Agent Skill?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Neo4j Aura Agent Skill?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Neo4j Aura Agent Skill con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Neo4j Aura Agent Skill?

Sí. neo4j la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇