一键导入
deprecated-cypher
Identify deprecated Cypher syntax in code files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify deprecated Cypher syntax in code files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create linear issues for the GRAC (GraphAcademy) team.
Periodically review course content for accuracy, relevance, and consistency. This includes checking for deprecated Cypher syntax.
Fact-check a single lesson against Neo4j documentation using the neo4j-docs MCP. Fixes inaccurate claims inline and appends a WHY report.
Review a single lesson for US English grammar, style, voice, and Neo4j terminology. Fixes issues inline and appends a WHY report.
Review a single lesson for pedagogical structure, lesson length, opening pattern, concept delivery, and scaffolding. Fixes issues inline and appends a WHY report.
Review a single lesson for AsciiDoc syntax, link formatting, code blocks, slides structure, and question includes. Fixes issues inline and appends a WHY report.
| name | deprecated-cypher |
| description | Identify deprecated Cypher syntax in code files. |
Purpose: To scan code files for deprecated Cypher syntax and suggest replacements. It can be used to find issues and update codebases to be compatible with newer versions of Neo4j. It does not make changes to the code directly but provides suggestions for updates.
When to use: Use this skill when you want to modernize your Cypher code or ensure compatibility with the latest Neo4j features.
This skill scans through file to identify any deprecated Cypher clauses, functions, or syntax. It then provides suggestions for modern alternatives based on the latest Neo4j documentation.
Process:
Scan the following resources to identify any deprecated Cypher syntax and their modern alternatives:
Scan through the current repository for any instances of deprecated Cypher syntax. This can be done using regular expressions or by leveraging existing code analysis tools.
For each instance of deprecated syntax found, provide a suggestion for the modern alternative based on the latest Neo4j documentation.
Provide the file path, line number, the complete query that uses the deprecated syntax along with the suggested replacement.
Do not change any code directly.
genai.vector.encode and db.index.vector.queryNodesDeprecated functions:
genai.vector.encode was deprecated in 2025.11 and superseded by ai.text.embed see documentation for more information: https://neo4j.com/docs/genai/plugin/current/embeddings/db.index.vector.queryNodes as Neo4j 2026.01, the preferred way of querying vector indexes is by using the Cypher SEARCH clause - https://neo4j.com/docs/cypher-manual/current/clauses/search/Original query:
WITH genai.vector.encode(
"A mysterious spaceship lands Earth",
"OpenAI",
{ token: "sk-..." }) AS myMoviePlot
CALL db.index.vector.queryNodes('moviePlots', 6, myMoviePlot)
YIELD node, score
RETURN node.title, node.plot, score
Suggested replacement:
WITH ai.text.embed(
"A mysterious spaceship lands Earth",
"OpenAI",
{ token: "sk-...", model: "text-embedding-ada-002" }
) AS myMoviePlot
MATCH (node:Movie)
SEARCH node IN (
VECTOR INDEX moviePlots
FOR myMoviePlot
LIMIT 6
) SCORE AS score
RETURN node.title, node.plot, score