neo4j-cypher-guide
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "neo4j-cypher-guide":https://skillpi.com/zh/skills/deepskill-258c6ea19a5084faeef91546d0d1eaa16781eade9866b82a6c4ae9223243356c。安装前核对上游来源和版本:https://github.com/hanamizuki/solopreneur。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为现代 Neo4j Cypher 读取查询编写综合指南,面向 text2cypher MCP 工具和生成 Cypher 查询的 LLM。涵盖已移除或弃用的语法、现代替代方案、用于读取的 CALL 子查询、COLLECT 模式、排序最佳实践,以及用于高效图遍历的量化路径模式(QPP)。
介绍来源: third_party · hanamizuki · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: neo4j-cypher-guide
description: Comprehensive guide for writing modern Neo4j Cypher read queries. Essential for text2cypher MCP tools and LLMs generating Cypher queries. Covers removed/deprecated syntax, modern replacements, CALL subqueries for reads, COLLECT patterns, sorting best practices, and Quantified Path Patterns (QPP) for efficient graph traversal.Neo4j Modern Cypher Query Guide
This skill helps generate Neo4j Cypher read queries using modern syntax patterns and avoiding deprecated features. It focuses on efficient query patterns for graph traversal and data retrieval.
Quick Compatibility Check
When generating Cypher queries, immediately avoid these REMOVED features:
- ❌
id()function → UseelementId() - ❌ Implicit grouping keys → Use explicit WITH clauses
- ❌ Pattern expressions for lists → Use pattern comprehension or COLLECT subqueries
- ❌ Repeated relationship variables → Use unique variable names
- ❌ Automatic list to boolean coercion → Use explicit checks
Core Principles for Query Generation
- Use modern syntax patterns - QPP for complex traversals, CALL subqueries for complex reads
- Optimize during traversal - Filter early within patterns, not after expansion
- Always filter nulls when sorting - Add IS NOT NULL checks for sorted properties
- Explicit is better than implicit - Always use explicit grouping and type checking
Critical Sorting Rule
ALWAYS filter NULL values when sorting:
// WRONG - May include null values
MATCH (n:Node)
RETURN n.name, n.value
ORDER BY n.value
// CORRECT - Filter nulls before sorting
MATCH (n:Node)
WHERE n.value IS NOT NULL
RETURN n.name, n.value
ORDER BY n.value
Query Pattern Selection Guide
For Simple Queries
Use standard Cypher patterns with modern syntax:
MATCH (n:Label {property: value})
WHERE n.otherProperty IS :: STRING
RETURN n
For Variable-Length Paths
Consider Quantified Path Patterns (QPP) for better performance:
// Instead of: MATCH (a)-[*1..5]->(b)
// Use: MATCH (a)-[]-{1,5}(b)
// With filtering:
MATCH (a)((n WHERE n.active)-[]->(m)){1,5}(b)
For Aggregations
Use COUNT{}, EXISTS{}, and COLLECT{} subqueries:
MATCH (p:Person)
WHERE count{(p)-[:KNOWS]->()} > 5
RETURN p.name,
exists{(p)-[:MANAGES]->()} AS isManager
For Complex Read Operations
Use CALL subqueries for sophisticated data retrieval:
MATCH (d:Department)
CALL (d) {
MATCH (d)<-[:WORKS_IN]-(p:Person)
WHERE p.salary IS NOT NULL // Filter nulls
WITH p ORDER BY p.salary DESC
LIMIT 3
RETURN collect(p.name) AS topEarners
}
RETURN d.name, topEarners
Common Query Transformations
Counting Patterns
// Old: RETURN size((n)-[]->())
// Modern: RETURN count{(n)-[]->()}
Checking Existence
// Old: WHERE exists((n)-[:REL]->())
// Modern: WHERE EXISTS {MATCH (n)-[:REL]->()}
// Also valid: WHERE exists{(n)-[:REL]->()}
Element IDs
// Old: WHERE id(n) = 123
// Modern: WHERE elementId(n) = "4:abc123:456"
// Note: elementId returns a string, not integer
Sorting with Null Handling
// Always add null check
MATCH (n:Node)
WHERE n.sortProperty IS NOT NULL
RETURN n
ORDER BY n.sortProperty
// Or use NULLS LAST
MATCH (n:Node)
RETURN n
ORDER BY n.sortProperty NULLS LAST
When to Load Reference Documentation
Load the appropriate reference file when:
references/deprecated-syntax.md
- Migrating queries from older Neo4j versions
- Encountering syntax errors with legacy queries
- Need complete list of removed/deprecated features
references/subqueries.md
- Working with CALL subqueries for reads
- Using COLLECT or COUNT subqueries
- Handling complex aggregations
- Implementing sorting with null filtering
references/qpp.md
- Optimizing variable-length path queries
- Need early filtering during traversal
- Working with paths longer than 3-4 hops
- Complex pattern matching requirements
Query Generation Checklist
Before finalizing any generated query:
- ✅ No deprecated functions (id, btree indexes, etc.)
- ✅ Explicit grouping for aggregations
- ✅ NULL filters for all sorted properties
- ✅ Appropriate subquery patterns for reads
- ✅ Consider QPP for paths with filtering needs
- ✅ Use COUNT{} instead of size() for pattern counting
- ✅ Variable scope clauses in CALL subqueries
- ✅ Unique variable names for relationships
Error Resolution Patterns
"Implicit grouping key" errors
// Problem: RETURN n.prop, count(*) + n.other
// Solution: WITH n.prop AS prop, n.other AS other, count(*) AS cnt
// RETURN prop, cnt + other
"id() function not found"
// Use elementId() but note it returns a string, not integer
"Repeated variable" errors
// Problem: MATCH (a)-[r*]->(), (b)-[r*]->()
// Solution: MATCH (a)-[r1*]->(), (b)-[r2*]->()
Performance Tips
- Start with indexed properties - Always anchor patterns with indexed lookups
- Filter early in QPP - Apply WHERE clauses within the pattern
- Filter nulls before sorting - Prevent unexpected results and improve performance
- Limit expansion depth - Use reasonable upper bounds in quantifiers
- Use EXISTS for existence checks - More efficient than counting
- Profile queries - Use PROFILE to identify bottlenecks
Modern Cypher Features
Label Expressions
WHERE n:Label1|Label2 // OR
WHERE n:Label1&Label2 // AND
WHERE n:!Archived // NOT
Type Predicates
WHERE n.prop IS :: STRING
WHERE n.value IS :: INTEGER NOT NULL
WHERE n.data IS :: LIST<STRING>
Subquery Patterns for Reads
- COUNT{} - Count patterns efficiently
- EXISTS{} - Check pattern existence
- COLLECT{} - Collect complex results
- CALL{} - Execute subqueries for complex reads
Quantified Path Patterns
- Inline filtering during traversal
- Access to nodes and relationships in patterns
- Significant performance improvements (up to 1000x)
- Support for complex, multi-hop patterns
Always prefer modern syntax patterns for better performance and maintainability.
版本历史
-
solopreneur--v0.6.5
GitHub ↗
原版更新说明
## 2026-11-20 — sign-offs on Codex ### solopreneur 0.6.4 → 0.6.5 `/sign-offs` now ships in the Codex package too (`codex plugin add solopreneur@solopreneur`) and runs in `codex exec`, the TUI and the Codex App. Publishing to the default local folder works inside Codex's workspace-write sandbox, which a trusted project gets in the TUI; `codex exec` starts read-only, so pass `--sandbox workspace-write`. Publishing to a static folder or the bundled server writes outside the workspace and reads the page back over the network, and so does local when its folder lies outside the workspace (from a linked worktree, pages go to the main working tree). The TUI and the App ask for your approval once per publish; `codex exec` cannot ask, so start it with that access (`--add-dir <folder>`, plus `-c sandbox_workspace_write.network_access=true` for static and server) or with `--dangerously-bypass-approvals-and-sandbox`. A blocked publish never hands out a link, and on every host the skill now tells the agent to rerun it with your permission instead of sending the page somewhere else. (#208) --- Full changelog: https://github.com/hanamizuki/solopreneur/blob/main/CHANGELOG.md
-
solopreneur--v0.6.4
GitHub ↗
原版更新说明
**Removed skills:** `taste-soft`, `taste-brutalist`, `taste-minimalist`, `taste-redesign`, `taste-stitch`, `taste-output`, `taste-gpt` and `taste-image-to-code` (designer; folded into `taste-skill` upstream), and `/slide-design` (marketer). Anything that calls them by name stops resolving. ## 2026-11-20 ### solopreneur 0.6.3 → 0.6.4 New `/sign-offs` skill publishes a temporary review page for decisions that need screenshots or a ruling on several items. The reader opens one link on a phone or desktop, taps approve, revise or reject (or choices you define) on each item, adds notes, and copies a single structured reply back into the chat. Pages expire after 7 days by default, and every link is read back before it is handed out. With no setup, pages go to a local folder and open over `file://`. Configured, they go to a folder an existing web server already serves, or to a bundled server behind Tailscale Serve or any reverse proxy, on this machine or another one over SSH. On first use the skill looks at what your setup offers and proposes options. The UI is in English or Traditional Chinese. Claude Code only for now; it needs Python 3.9+ and nothing beyond the standard library. Settings go in a new `signoffs` block of `.solopreneur.json`. Where pages go (`targets` and `defaultTarget`) is read only from your user-level config, `~/.config/solopreneur/config.json` or the absolute path in `$SOLOPRENEUR_CONFIG`; a repo's own `.solopreneur.json` may set only `root`, `lang`, `ttlDays` and `replyTo`, so a cloned repo cannot send your pages anywhere. `/preview` now skips a user-level config that only configures other features. If you save sign-offs settings in `~/.config/solopreneur/config.json` without a `preview` block, update every installed copy of this plugin first: older `/preview` versions report that file as broken. When the Vercel CLI is missing, `/preview` now suggests `brew install --cask vercel`. Homebrew moved the Vercel CLI to a cask, so the old `brew install vercel-cli` hint failed. (#205, #206, #207) ### designer 0.1.11 → 0.1.12 `taste-skill` moves to tasteskill 2.5.1, and upstream folded its eight style variants into it: `taste-soft`, `taste-brutalist`, `taste-minimalist`, `taste-redesign`, `taste-stitch`, `taste-output`, `taste-gpt` and `taste-image-to-code` are removed, so anything that calls them by name stops resolving. The new `taste-skill` builds or redesigns company and product websites, as static HTML/CSS or inside an existing React, Next.js, Vue, Svelte or Astro project, from a bundled kit of photographs, UI fragments, icons and motion. A checker and a finish gate render each page in headless Chrome. The gate also runs as a Stop hook that keeps the agent working while fixable failures remain; it does nothing unless a build is in progress. It needs Node 22+ and Chrome, Edge or Chromium. `impeccable` goes from 4.1.1 to 4.10.0 and now also covers native iOS and Android screens and `DESIGN.md` design systems. Its Node scripts are replaced by a prebuilt engine binary, downloaded on first use from the upstream GitHub releases into `~/.impeccable/bin/` and checked against SHA-256 sums pinned in this plugin. Its commands are no longer pre-approved, so Claude Code may ask before running them. `init` now suggests `npx impeccable login`, which lets it save critiques to an Impeccable account; signing in is optional. The taste-skill kit makes the designer package about 41 MB. Every plugin installs from the same clone of this repo, so the marketplace download grows from about 26 MB to about 129 MB for everyone. (#206) ### marketer 0.0.12 → 0.0.13 `/slide-design` is removed. It wrapped two slide engines you had to install separately, and its AI-pattern review is what `/humanly` already does. For HTML presentations, install [frontend-slides](https://github.com/zarazhangrui/frontend-slides) or [revealjs-skill](https://github.com/ryanbbrown/revealjs-skill) directly; `/rebuild-skill-index` still adds them to the marketer index when they are installed. The `marketer` agent no longer advertises presentation design. `/humanly`'s prewrite briefs now follow their own rule against em dashes: the appendix index is a table and the dashes in the briefs are rewritten. Output did not change measurably. (#199, #205) ### ios-dev 0.4.13 → 0.4.14 The `ios-dev` agent now starts without your user, project and local `CLAUDE.md` files. Subagents don't share the main session's prompt cache, so every spawn paid for those files in full; in one measured repo the agent's starting prompt drops from about 58k to 19k tokens. When a task depends on repository conventions, the agent reads the repo's `CLAUDE.md` itself. Rules that live only in your personal `CLAUDE.md` no longer reach it, so put anything it must follow in the task prompt. Re-syncs the vendored App Store Connect skills (the upstream repo moved to `rorkai/app-store-connect-cli-skills`) and `apple-design`. New workflows cover Asset Library media (product-page headers, search creative, screenshots, previews, event artwork), compiling and packaging a prepared Swift package without an Xcode project (`asc builds compile` / `package`), an experimental read-only Apple Search plan in the ASO audit, per-territory price reads with `--resolved`, and `derive` to keep one subscription priced near a multiple of another. Also new: API-key login from a JSON file, App Store Server API reads under `asc storekit`, `asc status --until review-done`, and `--env-file` for workflows. Notarization troubleshooting now verifies the existing signature instead of removing trust overrides or re-signing the app. (#198, #204, #206) ### android-dev 0.4.13 → 0.4.14 The `android-dev` agent now starts without your user, project and local `CLAUDE.md` files, which keeps its starting prompt small for every spawn. When a task depends on repository conventions, it reads the repo's `CLAUDE.md` itself. Rules that live only in your personal `CLAUDE.md` no longer reach it, so put anything it must follow in the task prompt. The six official Android skills get their first update since August. `r8-analyzer` now ships its own analysis scripts and uses the `analyze<Variant>R8Config` Gradle task on AGP 9.3+; on older AGP it temporarily pins a newer R8 in `settings.gradle`, asking first, and reverts it afterwards. It needs Python with `protobuf` 6.33.4 or later. `agp-9-upgrade` now includes the two reference docs its steps link to (the AGP 9.0 release notes and the built-in Kotlin migration guide), which an ignore rule in this repo had left out since the skill was added. `navigation-3`, `migrate-xml-views-to-jetpack-compose`, `play-billing-library-version-upgrade` and `edge-to-edge` pick up the current upstream docs. (#204, #206) ### ai-engineer 0.3.16 → 0.3.17 Re-syncs the vendored `senior-prompt-engineer` skill. Upstream rewrote only its trigger description, so it now also activates when your prompts, chatbot or RAG answers are unreliable, or when you ask how to test them. The skill's content is unchanged. (#197) ### neo4j-dev 0.0.10 → 0.0.11 Re-syncs the vendored Neo4j skills through the 2026.10 release. `neo4j-cypher` adds Cypher 25 string interpolation, the `UUID` type and `uuid()` functions (2026.08), fulltext search through the `SEARCH` clause and map comprehensions (2026.09), and map addition (2026.10), and corrects its advice on counting days between dates. `neo4j-migration` adds upgrade notes up to the 2026 LTS: skip the 2026.07.0 and 2026.08.0 patch releases, move `high_limit` stores to the `block` format and servers to Java 25 before the LTS, use newer drivers for `UUID` values, and expect a 16-character minimum for native-user passwords. `neo4j-cli-tools` covers splitting `neo4j-admin` backups and dumps into parts. (#196) --- Full changelog: https://github.com/hanamizuki/solopreneur/blob/main/CHANGELOG.md
-
solopreneur--v0.6.1
GitHub ↗
原版更新说明
## 2026-08-16 ### solopreneur 0.6.0 → 0.6.1 `/preview` now delivers to a local Library by default: it builds a browsable catalog on your machine and returns a `file://` link instead of deploying. Vercel publishing is opt-in — ask for an online or shareable link explicitly — and one-off throwaway previews still write a single ephemeral file. The preview toolchain also works when running under Codex. (#176) Review tooling reaches Codex: `/specialist-review` runs there via a reviewer ladder that reads the specialist plugins' published knowledge skills (#190), and `/greenlight` can drive its Phase 1 review round on Codex too (#191). `/greenlight` also gains Grok CLI as an opt-in local reviewer (#186). The Codex core package grows from four skills to nine: `handoff`, `perspective`, `post-mortem`, `preview`, and `specialist-review` join `autopilot`, `greenlight`, `merge-pr`, and `plan-review` (#182). ### designer 0.1.10 → 0.1.11 Re-syncs the vendored `impeccable` skill across a large upstream cycle (4.0.3 → 4.1.1): a comp-driven design workflow ("comps are shipped screens", comp-fidelity review discipline, hero-first building), a richer decision page (full-fidelity comps, IMPECCABLE'S PICK, Safer/Bolder registers, build-path toggle), Antigravity and Hermes Agent provider support, raster-provenance auditing through the fix loop (`embed-prompt.mjs --scan`), and a batch of detector false-positive and performance fixes. (#149, #185) ### ios-dev 0.4.12 → 0.4.13 Re-syncs the `asc-*` App Store Connect skills to the current `asc` CLI. Signing setup covers App Groups provisioning, private-identity sync with file-based passwords (inline `--password` / `ASC_MATCH_PASSWORD` deprecated), an experimental device/profile reconcile workflow, and one-shot signing with an isolated temporary keychain. Xcode export documents the `release-testing` method that replaces the deprecated `ad-hoc` spelling. Release staging validates build ownership and gates metadata deletes behind `--allow-deletes`; workflows gain bounded per-step retry and timeout; localization picks up Apple's expanded locale list; Apple Ads commands are split between Platform API v1 and the deprecated v5. (#154, #189) ### android-dev 0.4.12 → 0.4.13 Removes two vendored skills that had aged into bad guidance: `gradle-logic` (pinned late-2023 AGP/Kotlin versions, contradicting the bundled `agp-9-upgrade`) and `compose-navigation` (a community Navigation 3 retelling superseded by the official `navigation-3` skill bundled here). Their upstream mappings are dropped so future syncs cannot resurrect them. (#183, #184) ### ai-engineer 0.3.15 → 0.3.16 Removes the in-house `langgraph` skill: it taught an incorrect `interrupt()` contract and an unconditional "never add a checkpointer" rule that breaks human-in-the-loop flows, with 2024-era model pins. Use the `ai-engineer` agent with current LangGraph docs instead. The plugin description now lists `ai-app-templates` as the sole in-house skill. (#183) ### neo4j-dev 0.0.9 → 0.0.10 Re-syncs the vendored Neo4j skills: `neo4j-cypher` now documents GRAPH TYPE schema DDL as GA (2026.06) — the `ALTER CURRENT GRAPH TYPE ADD/ALTER/DROP` forms, element-type syntax, and required privileges — plus the 2026.07 Cypher 25 additions (`GROUP BY` subclause, `cardinality()`, aggregates in `ORDER BY`/`WHERE`). (#153, #187) --- Full changelog: https://github.com/hanamizuki/solopreneur/blob/main/CHANGELOG.md
-
solopreneur--v0.6.0
GitHub ↗
原版更新说明
## 2026-08-12 — Codex milestone ### solopreneur 0.5.38 → 0.6.0 Promotes the Codex integration introduced in 0.5.38 to a minor release, reflecting the new officially supported platform surface. Codex users can install the verified, filtered core plugin with `autopilot`, `greenlight`, `merge-pr`, and `plan-review`. Unsupported skills remain excluded, and the documented Codex V1 limitations remain unchanged. Claude Code behavior is unchanged. There are no functional differences from 0.5.38; this version corrects the release classification and establishes Codex support as the 0.6 milestone. --- Full changelog: https://github.com/hanamizuki/solopreneur/blob/main/CHANGELOG.md
-
solopreneur--v0.5.37
GitHub ↗
原版更新说明
### solopreneur 0.5.36 → 0.5.37 `/greenlight` stops hardcoding which review bots it can see. PR-mode detection now recognizes any GitHub App that actually reviews on your repo — CodeRabbit, Cursor, Copilot, and whatever comes next qualify with zero config — while conversation-only automation (dependabot, CI notifiers) is never mistaken for a reviewer. CodeRabbit graduated from "passive, observe-only" to a triggerable reviewer like the rest. A round can now drive several reviewers at once: `select=<ids>` chooses which reviewers run, `gate=<id>` chooses the one whose clean pass ends the loop, and what a run learns about your repo's reviewers is cached per-repo in `solopreneur.json` so later rounds build on it. `/autopilot` dispatches pass the new tokens and always run unattended, so scheduled runs never stall on a reviewer prompt. (#150, #151) ### ai-engineer 0.3.13 → 0.3.14 Housekeeping: re-pinned the vendored `senior-prompt-engineer` skill to upstream's latest revision (2026-07-27). Upstream moved without changing this skill, so content is identical — the release just brings the recorded provenance current. (#131) ### neo4j-dev 0.0.7 → 0.0.8 Housekeeping: no skill or agent changes — realigns the generated Codex-surface manifest that had lagged one release behind the plugin version. --- Full changelog: https://github.com/hanamizuki/solopreneur/blob/main/CHANGELOG.md
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Neo4j Cypher 现代查询编写的专业指南,面向 text2cypher MCP 工具和 LLM 生成场景
- 涵盖已移除/弃用语法、现代替代方案、CALL 子查询、COLLECT 模式、排序最佳实践和量化路径模式(QPP)
- 具有明确的实用价值,帮助开发者避免常见陷阱并提升查询性能
亮点
- description 明确说明 Skill 的核心功能和使用场景
- 触发词精准完整,边界清晰,覆盖多种使用变体
待提升项
-
缺少 When to Use 显式章节 原报告严重程度:轻微
文档结构良好,但未设置显式的 When to Use 章节,而是分散在多个部分
改进建议:建议增加独立的 When to Use 章节,集中说明使用场景和触发条件
-
文档内容略长 原报告严重程度:轻微
文档内容丰富,但整体长度略长,可能影响快速查阅体验
改进建议:考虑将部分详细内容移至参考文档,保持主文档简洁明了
亮点
- 文档结构清晰,分章节涵盖兼容性检查、核心原则、查询模式、转换示例等
- 提供大量具体代码示例和最佳实践,便于理解和应用
- frontmatter 完整,单文件控制在合理长度内
亮点
- 提供具体 Cypher 语法示例,涵盖常见错误修复和性能优化建议
- 工具来源明确(Neo4j 官方语法),参数正确,覆盖主要异常场景
- 包含详细的检查清单和错误解决模式,提升执行可靠性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。