Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计提醒

neo4j-cli-tools-skillneo4j CLI tools 技能

Agent Skill

neo4j-cli-tools-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,233

周安装

94

GitHub Stars

28

下载量

782
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:neo4j-cli-tools-skill(neo4j CLI tools 技能)
来源仓库:https://github.com/neo4j-contrib/neo4j-skills
仓库路径:skills/neo4j-cli-tools-skill
安装命令:
npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-cli-tools-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-cli-tools-skill

简介

neo4j-cli-tools-skill 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理协作事项。

  • 适用于围绕仓库状态、代码变更或协作流程进行信息梳理的场景。
  • 支持对 GitHub 相关协作数据进行查询、分类和汇总操作。
  • 安装命令为 npx skills add https://github.com/neo4j-contrib/neo4j-skills --skill neo4j-cli-tools-skill。
  • 使用前需确认权限范围、维护状态,注意是否触发联网或文件读写。

SKILL.md

Neo4j CLI Tools skill

This skill provides comprehensive guidance on Neo4j command-line tools for database administration, query execution, cloud management, and AI agent integration.

When to Use

  • Admin tasks: backup, restore, import, memory sizing → neo4j-admin
  • Ad-hoc queries, scripting, CI/CD → cypher-shell
  • Aura cloud provisioning → aura-cli
  • MCP server install → neo4j-mcp

When NOT to Use

  • Writing or optimizing Cypher queries → use neo4j-cypher-skill
  • Upgrading Neo4j drivers or migrating Cypher syntax → use neo4j-migration-skill
  • Starting a new Neo4j project from scratch → use neo4j-getting-started-skill

Available CLI Tools

1. neo4j-admin

Purpose: Comprehensive database administration tool

Categories:

  • dbms - System-wide administration for single and clustered environments
  • server - Server-level management tasks
  • database - Database-specific operations (backup, restore, import, migrate)
  • backup - Backup and restore operations

Common Use Cases:

  • Database backup and restore
  • Data import and export
  • Server memory recommendations
  • Initial password setup
  • Database health checks

Reference: neo4j-admin-reference.md

2. cypher-shell

Purpose: Interactive command-line tool for executing Cypher queries

Key Features:

  • Interactive REPL for ad-hoc queries
  • Script execution from files
  • Parameterized query support
  • Multiple output formats (verbose, plain, auto)
  • Remote database connections

Common Use Cases:

  • Running Cypher queries from terminal
  • Batch processing with query files
  • Database exploration and debugging
  • CI/CD pipeline integration
  • Scripted data operations

Requirements: Java 21

Reference: cypher-shell-reference.md

3. aura-cli

Purpose: Command-line interface for managing Neo4j Aura cloud resources

Key Features:

  • Instance provisioning and management
  • Tenant administration
  • Credential management
  • Graph Analytics operations
  • Customer-managed keys

Common Use Cases:

  • Automating Aura instance creation
  • Managing cloud database lifecycles
  • CI/CD integration for cloud deployments
  • Programmatic resource provisioning

Reference: aura-cli-reference.md

4. neo4j-mcp

Purpose: Model Context Protocol server for Neo4j integration with AI agents

For full installation and editor configuration guidance, use neo4j-mcp-skill — it covers all editors (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Kiro), stdio vs HTTP transport, and troubleshooting.

Quick install:

pip install neo4j-mcp-server
neo4j-mcp --version  # verify

Reference: neo4j-mcp-reference.md

Instructions

When a user asks about Neo4j CLI tools:

  1. Identify the appropriate tool based on the use case:

- Administration tasks → neo4j-admin - Query execution → cypher-shell - Cloud management → aura-cli - AI agent integration → neo4j-mcp

  1. Check prerequisites:

- For cypher-shell: Verify Java 21 is installed - For neo4j-mcp: Verify APOC plugin is available - For aura-cli: Verify credentials are configured

  1. Provide practical examples:

- Always include actual command syntax - Show common parameter combinations - Include environment variable alternatives - Demonstrate error handling where relevant

  1. Reference detailed documentation:

- Include the appropriate reference file from references/ directory - Point to official Neo4j documentation for latest updates - Mention version-specific considerations

  1. Installation guidance:

- neo4j-admin and cypher-shell: Included with Neo4j installation - aura-cli: Download from GitHub releases - neo4j-mcp: Download binary from official repository - Include installation verification steps

Backup and Recovery

Edition gate

Online backup requires Enterprise Edition. Community Edition users must use dump/load only (database must be offline).

Backup (Enterprise — database stays online)

# Full online backup — database stays online during backup
neo4j-admin database backup \
  --to-path=/backups/ \
  --database=neo4j \
  --compress

# Differential backup — only changes since last full backup (faster)
neo4j-admin database backup \
  --to-path=/backups/ \
  --database=neo4j \
  --type=DIFF \
  --compress

# Backup to cloud storage (S3, GCS, or HTTPS)
neo4j-admin database backup \
  --to-path=s3://my-bucket/neo4j-backups/ \
  --database=neo4j

Restore (Enterprise)

AGENT GATE — destructive operation: Before running restore, show the user the exact command and target database name, and wait for explicit confirmation. A restore overwrites the existing database.

# Restore from a full or differential backup
# Requires DB to be stopped, or use --force-offline for a running instance
neo4j-admin database restore \
  --from-path=/backups/neo4j-2026-01-15T10-00-00/ \
  --database=neo4j \
  --overwrite-destination=true

# Restore to a new database name (non-destructive path)
neo4j-admin database restore \
  --from-path=/backups/neo4j-2026-01-15T10-00-00/ \
  --database=neo4j-restored

Dump / Load (all editions — database must be offline)

Use for migrations, dev/test data transfers, and Community Edition backups.

# Dump — stop the database first, or pass --force-offline
neo4j-admin database dump --to-path=/exports/ neo4j

# Load — overwrites if target DB exists
neo4j-admin database load \
  --from-path=/exports/neo4j.dump \
  --database=neo4j \
  --overwrite-destination=true

AGENT GATE — destructive operation: Before running load with --overwrite-destination=true, confirm target database name and path with the user.

Key flags

FlagNotes
--compressZstd compression on backup archives
--type=DIFFDifferential: only changes since last full backup
--to-pathLocal path or s3://, gs://, https://
--overwrite-destination=trueRequired if target database already exists
--force-offlineAllow backup/restore of a running database in some scenarios

Point-in-time restore strategy

  • Full backup: weekly (e.g. every Sunday)
  • Differential backup: daily (captures only changes since last full)
  • Naming convention: include timestamp in path — e.g. /backups/neo4j-2026-01-19T02-00-00/
  • Restore sequence: apply full backup first, then each differential in chronological order
# Example: restore Sunday full + Monday + Tuesday differentials
neo4j-admin database restore \
  --from-path=/backups/neo4j-2026-01-19T02-00-00/ \
  --database=neo4j --overwrite-destination=true

neo4j-admin database restore \
  --from-path=/backups/neo4j-2026-01-20T02-00-00/ \
  --database=neo4j --overwrite-destination=true

neo4j-admin database restore \
  --from-path=/backups/neo4j-2026-01-21T02-00-00/ \
  --database=neo4j --overwrite-destination=true

Reference: neo4j-admin-reference.md


Important Notes

  • All commands support --help for detailed usage information
  • Configuration priority: CLI flags > environment variables > config files
  • Neo4j 2026.01 is the current version (as of documentation date)
  • Always execute neo4j-admin commands as the Neo4j system user
  • Exit code 0 indicates success; non-zero indicates errors

Environment Variables

Common environment variables across tools:

  • NEO4J_URI / NEO4J_ADDRESS - Database connection URI
  • NEO4J_USERNAME - Database username
  • NEO4J_PASSWORD - Database password
  • NEO4J_DATABASE - Target database name
  • NEO4J_CONF - Path to neo4j.conf directory
  • NEO4J_HOME - Neo4j installation directory

Resources


Checklist

  • Correct tool selected: neo4j-admin / cypher-shell / aura-cli / neo4j-mcp
  • Credentials via env (NEO4J_USERNAME, NEO4J_PASSWORD); not hardcoded
  • Destructive ops confirmed before execution
  • Post-op verify: connect + SHOW INDEXES + count
  • Backup taken before restore or schema change

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.79%
按下载量换算272

Claude

32.87%
按下载量换算257

Cursor

18.6%
按下载量换算145

Gemini CLI

9.25%
按下载量换算72

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills