neo4j-graph-data-scientist

用于在 Neo4j 上通过 GDS Agent 与 Cypher 执行图相关任务,包括工作流操作与错误排查指南。适合需要在 Neo4j 环境中运行图数据科学任务并解决常见问题的场景。

仓库最近推送
GitHub Stars
102
Forks
22
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "neo4j-graph-data-scientist":https://skillpi.com/zh/skills/deepskill-ec187e311edbe149ade221295b627fc8ee28dd02ae6c142178a8e6da6abdc038。安装前核对上游来源和版本:https://github.com/neo4j-contrib/gds-agent。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于在 Neo4j 上通过 GDS Agent 与 Cypher 执行图相关任务,包括工作流操作与错误排查指南。适合需要在 Neo4j 环境中运行图数据科学任务并解决常见问题的场景。

0 下载

介绍来源: third_party · neo4j-contrib · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: neo4j-graph-data-scientist
description: Use for graph realted tasks on Neo4j via GDS Agent and Cypher tools. Covers the workflow and a troubleshooting guide for errors.
compatibility: Requires the gds-agent MCP server (PyPI package gds-agent) and cypher MCP server (PyPI package mcp-neo4j-cypher) connected to a Neo4j database with the GDS plugin, or a Neo4j AuraDB with Aura Graph Analytics.

Workflow

  1. Inspect the database schema first. Never guess labels, types, or property names.
  2. Project a graph. Plugin and session mode have different projection syntax and parameters. Check the graph projection tool description and parameters. For session mode, you need to first create sessions to project graphs onto.
  3. Clean up. drop_graph when a projection is no longer needed. delete_session when a session is no longer needed, and this will automatically drop all graphs projected to this session.
  4. When you see errors, inspect the message and consult references/troubleshooting.md. Then make necessary corrections.
  5. Independently verify key results. Verify the key results using a genuinely different method if the problem allows. If the two methods disagree, investigate the discrepancy and resolve it first if it can be resolved. Otherwise, say so explicitly in the answer. This step is not satisfied by sanity checking the logic mentally.

Best Practices

  1. Large graphs. When the graph in the DB is large, you might want to consider projecting subgraphs at the start for analysis.
  2. Long running tools. Certain algorithms (or Cypher queries) are long running. For exploratory work, consider trying them out on smaller projected graphs before executing them on a desirable large projected graph.
  3. Follow general data science best practice. Understand if the task is transductive (over the fixed data) or inductive. For predictive tasks, ensure there is no data leakage. Formulate hypothesis and design metrics appropriately. Remember all the basic statistics best practices.
  4. Perform additional analysis when needed. You do not need to use solely the Cypher and GDS tools. For complex data science task, feel free to use other tools or coding capabilities and write ad-hoc scripts that use other libraries, such as pytorch, scikit-learn, pandas, matplotlib, when necessary.

版本历史

  1. v1.2.2 GitHub ↗
    原版更新说明

    ## What's Changed * Bump certifi from 2026.7.22 to 2026.10.18 in /mcp_server by @dependabot[bot] in https://github.com/neo4j-contrib/gds-agent/pull/70 * Bump certifi and pre-release v1.2.2 by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/71 ## New Contributors * @dependabot[bot] made their first contribution in https://github.com/neo4j-contrib/gds-agent/pull/70 **Full Changelog**: https://github.com/neo4j-contrib/gds-agent/compare/v1.2.1...v1.2.2

  2. v1.2.1 GitHub ↗
    原版更新说明

    ## What's Changed * Fix snake case result parsing by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/69 **Full Changelog**: https://github.com/neo4j-contrib/gds-agent/compare/v1.2.0...v1.2.1

  3. v1.2.0 GitHub ↗
    原版更新说明

    ## Breaking Changes - The Claude Code plugin and the Gemini extension no longer start a separate `mcp-neo4j-cypher` server. `read_neo4j_cypher`, `write_neo4j_cypher`, and `get_neo4j_schema` are tools on `gds-agent`. - `get_neo4j_schema` no longer uses APOC and has a slightly different output format, and replaces the older `get_node_labels`, `get_relationship_types`, `get_node_properties_keys`, and `get_relationship_properties_keys` tools. - All tool parameter names are now `snake_case` (e.g. `graphName` → `graph_name`, `dampingFactor` → `damping_factor`). ## New Features 1. `read_neo4j_cypher` runs a read query (with a configurable 120-second timeout via `--read-timeout` / `NEO4J_READ_TIMEOUT`), `write_neo4j_cypher` runs a write query and returns the update counts, and `get_neo4j_schema` returns node and relationship types with their properties, indexes, connections, and counts. 2. Upgraded `graphdatascience` client from 1.22 to 2.3. 3. Simplify MCP tool schemas and consolidate workflow guidance in server instructions and `SKILL.md` to reduce input token usage. ## Bug Fixes 1. Warn that truncated results are incomplete and must not drive decisions. 2. Change `failIfMissing=True` in `drop_graph` as otherwise the function throws an uninformative 'NoneType' object has no attribute 'get' error instead. 3. Note that UNDIRECTED degree on an undirectedRelationshipTypes projection counts each neighbor twice. ## Detailed List of PRs - What's Changed * update github actions by @IoannisPanagiotas in https://github.com/neo4j-contrib/gds-agent/pull/61 * Truncation warnings and small fixes by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/62 * Add Cypher read, write, and schema tools to the GDS server by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/63 * upgrade graphdatascience dependency to 2.3 by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/64 * rename all tool input params from camelCase to snake_case by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/65 * Reorganize tool and param descriptions and skills by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/66 * Query timeout, backward compat mcp fields and old schema tools by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/67 **Full Changelog**: https://github.com/neo4j-contrib/gds-agent/compare/v1.1.0...v1.2.0

  4. v1.1.0 GitHub ↗
    原版更新说明

    ## Breaking Changes ## New Features 1. Optional SESSION_TIMEOUT_SECONDS env var to cap how long session creation waits for Ready. ## Bug Fixes 1. Update mcp dependency to 2.0. 2. Remove the stale example requirements file that was only example `import_data.py` 3. Use exact node identifier matching and allow numeric identifier inputs across graph algorithms. 4. Update SKILL.md to always create session before graph projection for session mode. 5. Document empty similarity filters as unfiltered, improve truncation warnings and skill troubleshooting. ## Detailed List of PRs - What's Changed * Pin checkout sha for actions/v4 by @IoannisPanagiotas in https://github.com/neo4j-contrib/gds-agent/pull/49 * Set Cypher MCP response token limit to 20000 by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/52 * Bump mcp[cli] from 1.14.1 to in /mcp_server by @semgrep-code-neo4j-contrib[bot] in https://github.com/neo4j-contrib/gds-agent/pull/50 * Use mcp 2.0 by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/53 * fixed numeric node identifier lookup and added it to the path algorithms by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/54 * Create session before projection for session mode in SKILL by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/55 * Pin gdsclient version and timeout by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/56 * Fix new ruff check except exceptions by @brs96 in https://github.com/neo4j-contrib/gds-agent/pull/57 * Guidance around truncated results and empty similarity filters by @aduntslusine in https://github.com/neo4j-contrib/gds-agent/pull/59 ## New Contributors * @aduntslusine made their first contribution in https://github.com/neo4j-contrib/gds-agent/pull/52 * @semgrep-code-neo4j-contrib[bot] made their first contribution in https://github.com/neo4j-contrib/gds-agent/pull/50 **Full Changelog**: https://github.com/neo4j-contrib/gds-agent/compare/v1.0.1...v1.1.0

  5. v1.0.1 GitHub ↗
    原版更新说明

    **Full Changelog**: https://github.com/neo4j-contrib/gds-agent/compare/v1.0.0...v1.0.1 # Changelog - [1.0.1] - 2026-07-13 ### Bug Fixes 1. Add the mcp-name ownership marker to the PyPI package README so MCP Registry publishing passes ownership validation. 2. Shorten the server.json description to the MCP registry 100-character limit and skip already-published files when re-publishing to PyPI. # Changelog - [1.0.0] - 2026-07-10 ### Breaking Changes 1. Added new graph projection tools: project_graph_cypher, drop_graph and list_graphs. As a result, all graph projection related parameters (e.g nodeLabels, relTypes) in all algorithms are removed. Instead, all algorithm tools now accepte a graphName required parameter. This allows the LLMs to use Cypher project to manage a catalog of projected graphs and use different algorithm tools on different graphs. 2. Removed the count_nodes tool; counts are available via the bundled read-only cypher server or get_graph_info on a projection. ### New Features 1. Add new maxflow path algorithm tool. 2. Support mutate mode for all algorithm tools. 3. Support GDS sessions (Aura Graph Analytics) on Aura DB. 4. Support HTTP transport mode. 5. Add graph accessor tools: get_graph_info, stream_node_properties, stream_relationship_properties and stream_relationships. 6. Add node embedding tools: fast_rp, node2vec, hashgnn, graph_sage_train and graph_sage_predict. 7. Add ML pipeline tools that train and apply models via the GDS model catalog: train_node_classification_model, predict_node_classification, train_link_prediction_model, predict_link_prediction, train_node_regression_model and predict_node_regression. 8. Add model catalog tools: list_models and drop_model. 9. Support multiple explicitly managed GDS sessions per server: sessions are created with the create_session tool, project_graph_cypher requires a sessionName in session mode, and tool calls are routed to the right session by graphName. 10. Add the neo4j-graph-data-scientist Agent Skill (skills/) teaching agents the projection, algorithm-selection, and session workflow, following the agentskills.io open standard. 11. Distribute as a Claude Code plugin and marketplace (.claude-plugin/, mcp.json), a Claude Desktop MCPB bundle plus uploadable skill zip (mcp_server/manifest.json), a Gemini CLI extension (gemini-extension.json), and an MCP registry manifest (server.json), with per-harness setup guides in doc/setup/ and release scaffolding (RELEASING.md, scripts/bump_version.py, validate/release workflows). 12. Bundle the read-only mcp-neo4j-cypher server in the Claude Code plugin and Gemini CLI extension so one install provides GDS algorithms plus Cypher reads with shared credentials. ### Bug Fixes 1. Limit oversized tool outputs, post-process only returned rows, and batch node lookups to keep stream results from making the MCP server unresponsive. 2. Add regex checks in query parameters to avoid query injection for path algorithm tools. 3. Treat empty-string values of optional environment variables (NEO4J_DATABASE, AURA_API_*, SESSION_*) as unset, as injected by harness configuration forms. 4. Read the server version from package metadata instead of a hard-coded constant. 5. Correct the plugin-mode undirected projection guidance to the 5th (configuration) argument of gds.graph.project and show the placement in the tool description example. ### Other Changes 1. Load the example dataset with uv (inline script dependencies in import_data.py) instead of requiring pip install -r requirements.txt.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 针对 Neo4j 图数据科学任务,提供清晰的工作流程和最佳实践,实用性强
触发精准90/100

亮点

  • 触发描述精准,明确指向 Neo4j 图相关任务,边界清晰
结构规范75/100

待提升项

  • 缺少详细端到端示例 原报告严重程度:轻微

    文档结构良好,但缺少一个完整的、从开始到结束的示例来展示整个工作流程

    改进建议:建议补充一个具体的端到端示例,帮助用户更好地理解和应用该 Skill

亮点

  • Workflow 和 Best Practices 结构清晰,步骤划分合理
执行可靠78/100

待提升项

  • 缺少对不可逆操作的显式确认机制 原报告严重程度:轻微

    虽然提到了 drop_graph 和 delete_session 等操作,但未强调在执行前需要用户确认

    改进建议:建议在涉及资源删除或修改的操作前,增加显式的用户确认提示,以防误操作

亮点

  • 强调了数据库 schema 检查、图投影和清理资源的重要性,并提供了错误排查指南
证据可验 (前四项均值)82/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。