Agent skill

Neo4j Query

by opensage-agent in opensage-agent/opensage-adk

Run an arbitrary Cypher query against Neo4j and return JSON records.

Apache-2.0Auto-check passed

Install Neo4j Query

skills CLI
$ npx skills add opensage-agent/opensage-adk --skill neo4j-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install opensage-agent/opensage-adk neo4j-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/opensage-agent/opensage-adk.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/opensage/bash_tools/neo4j/neo4j-query .claude/skills/neo4j-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
neo4j-query
GitHub stars
127
Token cost
~285 tokens
SKILL.md length
65 words
Files
2 (incl. scripts)
Skills in repo
21
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run an arbitrary Cypher query against Neo4j and return JSON records.

  • SKILL.md covers Usage, Parameters, Return Value and Requires Sandbox
  • Runs Python scripts from its folder; calls python3

What it does

Neo4j Query is an agent skill from opensage-agent/opensage-adk. Run an arbitrary Cypher query against Neo4j and return JSON records.

Its SKILL.md is about 290 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/neo4j_query.py`).

It works with Neo4j. The licence is Apache-2.0.

Example prompts

  • “/neo4j-query”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 54d6470. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Neo4j Query loads about 285 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 65 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~285

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from opensage-agent/opensage-adk at commit 54d6470, republished under its Apache-2.0 licence (© opensage-agent). 65 words, ~285 tokens.

Download SKILL.mdSave it as .claude/skills/neo4j-query/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
neo4j-query
description
Run an arbitrary Cypher query against Neo4j and return JSON records.
should_run_in_sandbox
main
returns_json
true

Neo4j Query

Run an arbitrary Cypher query against Neo4j and return JSON records.

Usage

bash
python3 /bash_tools/neo4j/neo4j-query/scripts/neo4j_query.py "MATCH (n) RETURN n LIMIT 1"
bash
python3 /bash_tools/neo4j/neo4j-query/scripts/neo4j_query.py \
  "MATCH (n {name: \$name}) RETURN n" \
  --params '{"name":"Alice"}'
bash
python3 /bash_tools/neo4j/neo4j-query/scripts/neo4j_query.py \
  "SHOW DATABASES YIELD name RETURN name" \
  --database "analysis"

Parameters

query (required, positional position 0)

Type: str

Cypher query string to execute.

--params (optional, named parameter)

Type: str

Optional JSON object string for query parameters. Default: {}.

--database (optional, named parameter)

Type: str

Neo4j database name (optional). If omitted, defaults to NEO4J_DATABASE env var or analysis.

Return Value

json
{
  "records": [
    {"key": "value"}
  ]
}

Requires Sandbox

neo4j

© opensage-agent, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in src/opensage/bash_tools/neo4j/neo4j-query of opensage-agent/opensage-adk.

  • SKILL.md
  • scripts/neo4j_query.py

Open the folder on GitHubat commit 54d6470

Compare with similar skills

Neo4j Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Neo4j Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Neo4j Query this skillopensage-agent/opensage-adk127—~285Automated safety check: PassApache-2.0
CodegraphcontextCodeGraphContext/CodeGraphContext4.3k—~675Automated safety check: NotesMIT
Add Node Typecartography-cncf/cartography4.1k—~1.9kAutomated safety check: PassApache-2.0
Cognee Docker Setuptopoteretes/cognee32k—~901Automated safety check: NotesApache-2.0
Add Partial Reconsamugit83/redamon3k—~1.1kAutomated safety check: PassMIT
Project Orchestratorthis-rs/project-orchestrator140—~2.6kAutomated safety check: PassCustom licence

Similar skills

  • Codegraphcontext

    CodeGraphContext/CodeGraphContext

    Use CodeGraphContext (CGC) to index a repo into a graph DB and query it via CLI or MCP.

    4.3k GitHub stars~675 tokensUpdated 9 days ago
    Agent WorkflowsAuto-check: notes
  • Add Node Type

    cartography-cncf/cartography

    Define a new node schema under cartography/models/MODULENAME/, including required properties, sub-resource relationships, extra labels, conditional labels, scoped cleanup, and one-to-many transforms.

    4.1k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Cognee Docker Setup

    topoteretes/cognee

    Runs the Cognee AI memory platform in Docker, from a one-file prebuilt image to a full compose stack with UI, MCP server, Postgres and Neo4j.

    32k GitHub stars~901 tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Add Partial Recon

    samugit83/redamon

    Adding partial-recon support for a tool: running a single pipeline phase on demand from the workflow graph, reading its inputs from the existing Neo4j graph and merging results back.

    3k GitHub stars~1.1k tokensUpdated today
    SecurityAuto-check passed
  • Project Orchestrator

    this-rs/project-orchestrator

    AI agent orchestrator with Neo4j knowledge graph, Meilisearch search, and Tree-sitter parsing.

    140 GitHub stars~2.6k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Anyline

    anylineorg/anyline

    AnyLine数据库操作开发规范,涵盖动态数据源注册切换注销、DDL动态建表改表、DML增删改与事务管理、DQL动态查询与聚合统计、元数据管理、查询结果集的聚合、过滤、格式转换等数学计算,AnyLine方法内部会自动适配100+数据库方言,调用方法时忽略不同数据库差异。

    346 GitHub stars~1.3k tokensUpdated today
    DatabasesAuto-check passed

More from opensage-agent/opensage-adk

All 21 skills in this repo
  • Run Fuzzing Campaign

    opensage-agent/opensage-adk

    Run a fuzzing campaign using AFL++ with optional seeds; supports --custommutatorpath (you can write your own custom mutator and use this to execute).

    127 GitHub stars~542 tokensUpdated 2 mo ago
    Auto-check passed
  • Pool

    opensage-agent/opensage-adk

    Run N tasks under a concurrency cap K via a sliding-window worker pool.

    127 GitHub stars~462 tokensUpdated 2 mo ago
    Auto-check passed
  • Create New Tool

    opensage-agent/opensage-adk

    Scaffold a new bashtools Skill under bashtools/newtools/. An agent skill from opensage-agent/opensage-adk.

    127 GitHub stars~302 tokensUpdated 2 mo ago
    Auto-check passed
  • Extract Crashes

    opensage-agent/opensage-adk

    Extract crash inputs from fuzzing output into a target directory.

    127 GitHub stars~215 tokensUpdated 2 mo ago
    Auto-check passed
  • Get Call Paths

    opensage-agent/opensage-adk

    Get a path in the call graph from a source function to a specified destination function in the codebase.

    127 GitHub stars~272 tokensUpdated 2 mo ago
    Auto-check passed
  • Get Callee

    opensage-agent/opensage-adk

    Tool to get the callee of a function in the codebase by function name and file path.

    127 GitHub stars~223 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Neo4j Query

What does Neo4j Query do?

Run an arbitrary Cypher query against Neo4j and return JSON records. Neo4j Query is an agent skill from opensage-agent/opensage-adk. Run an arbitrary Cypher query against Neo4j and return JSON records.

How do I install Neo4j Query in Claude Code?

Run `npx skills add opensage-agent/opensage-adk --skill neo4j-query -a claude-code`. Or copy the skill folder (src/opensage/bash_tools/neo4j/neo4j-query in opensage-agent/opensage-adk) into .claude/skills/neo4j-query in your project. Claude Code loads it when a task matches its description.

How do I install Neo4j Query in Codex?

Run `npx skills add opensage-agent/opensage-adk --skill neo4j-query -a codex`. Or copy the skill folder (src/opensage/bash_tools/neo4j/neo4j-query in opensage-agent/opensage-adk) into .agents/skills/neo4j-query in your project. Codex loads it when a task matches its description.

Can I use Neo4j Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add opensage-agent/opensage-adk --skill neo4j-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/neo4j-query, .gemini/skills/neo4j-query, .github/skills/neo4j-query and .opencode/skills/neo4j-query in your project.

What does Neo4j Query need to run?

Going by SKILL.md and its folder, Neo4j Query needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Neo4j Query access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Neo4j Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Neo4j Query use?

Neo4j Query is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Neo4j Query use?

About 285 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Neo4j Query?

Skills that share tags, products or a category with Neo4j Query: Codegraphcontext (CodeGraphContext/CodeGraphContext, 4.3k stars), Add Node Type (cartography-cncf/cartography, 4.1k stars), Cognee Docker Setup (topoteretes/cognee, 32k stars) and Add Partial Recon (samugit83/redamon, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Neo4j Query?

opensage-agent (a GitHub organization) maintains it in opensage-agent/opensage-adk, which has 127 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 4, 2026.

Source: opensage-agent/opensage-adk on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.