Loading...
Loading...
Compare original and translation side by side
${CLAUDE_SKILL_DIR}/references/<stage-name>.md${CLAUDE_SKILL_DIR}/references/<stage-name>.md.env ← DB credentials (gitignored, loaded by python-dotenv)
aura.env ← Aura API credentials (gitignored, never overwrite)
progress.md ← stage-by-stage progress (this skill writes it)
requirements.txt ← Python dependencies
schema/
schema.json ← graph model definition
schema.cypher ← DDL: constraints + indexes
reset.cypher ← wipe all data (keep schema)
data/
generate.py ← synthetic data generator (DATA_SOURCE=synthetic)
import.py ← CSV/file importer (DATA_SOURCE=csv or relational)
*.csv ← any provided or generated data files
queries/
queries.cypher ← validated Cypher query library
scripts/
provision_aura.py ← Aura provisioning script (generated during provision stage)
notebook.ipynb ← app artifact (root — standard jupyter convention)
app.py ← app artifact (root — streamlit run app.py)
main.py ← app artifact (root — uvicorn main:app)
graphrag_app.py ← app artifact (root).envrequirements.txt.env ← 数据库凭证(已加入git忽略,由python-dotenv加载)
aura.env ← Aura API凭证(已加入git忽略,切勿覆盖)
progress.md ← 阶段式进度记录(本技能负责写入)
requirements.txt ← Python依赖项
schema/
schema.json ← 图模型定义
schema.cypher ← DDL:约束 + 索引
reset.cypher ← 清空所有数据(保留模型)
data/
generate.py ← 合成数据生成器 (DATA_SOURCE=synthetic)
import.py ← CSV/文件导入器 (DATA_SOURCE=csv或relational)
*.csv ← 任何提供或生成的数据文件
queries/
queries.cypher ← 已验证的Cypher查询库
scripts/
provision_aura.py ← Aura资源部署脚本(在部署阶段生成)
notebook.ipynb ← 应用产物(根目录——遵循Jupyter标准约定)
app.py ← 应用产物(根目录——streamlit run app.py)
main.py ← 应用产物(根目录——uvicorn main:app)
graphrag_app.py ← 应用产物(根目录).envrequirements.txtprogress.mdprogress.mdgrep -B1 "^status: pending" progress.md | grep "^###" | head -1DOMAINUSE_CASENEO4J_URIfiles=schema/schema.jsonqueries/queries.cypherdata/generate.pyprogress.md0-prerequisitesprogress.md###status: pendingstatus: doneundefinedprogress.mdprogress.mdgrep -B1 "^status: pending" progress.md | grep "^###" | head -1DOMAINUSE_CASENEO4J_URIfiles=schema/schema.jsonqueries/queries.cypherdata/generate.pyprogress.md0-prerequisitesprogress.md###status: pendingstatus: doneundefined
---
---"## Stage: <name> — <purpose>"${CLAUDE_SKILL_DIR}/references/<name>.mdprogress.mdstatus: done"## Stage: <name> — <purpose>"${CLAUDE_SKILL_DIR}/references/<name>.mdprogress.mdstatus: done0-prerequisites → 1-context → 2-provision → 3-model → 4-load → 5-explore → 6-query → 7-build${CLAUDE_SKILL_DIR}/references/capabilities/execute-cypher.mdEXEC_METHODcontext${CLAUDE_SKILL_DIR}/references/capabilities/cypher-authoring.mdneo4j-cypher-authoring-skill${CLAUDE_SKILL_DIR}/references/capabilities/mcp-config.mdprerequisitesbuild${CLAUDE_SKILL_DIR}/scripts/validate_queries.pyquery0-prerequisites → 1-context → 2-provision → 3-model → 4-load → 5-explore → 6-query → 7-build${CLAUDE_SKILL_DIR}/references/capabilities/execute-cypher.mdEXEC_METHODcontext${CLAUDE_SKILL_DIR}/references/capabilities/cypher-authoring.mdneo4j-cypher-authoring-skill${CLAUDE_SKILL_DIR}/references/capabilities/mcp-config.mdprerequisitesbuild${CLAUDE_SKILL_DIR}/scripts/validate_queries.pyqueryprerequisitesprerequisites${CLAUDE_SKILL_DIR}/references/0-prerequisites.mdneo4j-mcp.gitignore.env${CLAUDE_SKILL_DIR}/references/0-prerequisites.mdneo4j-mcp.gitignore.envcontextcontextEXEC_METHOD${CLAUDE_SKILL_DIR}/references/1-context.mdDOMAINUSE_CASEEXPERIENCEDB_TARGETDATA_SOURCEAPP_TYPEEXEC_METHODEXEC_METHOD${CLAUDE_SKILL_DIR}/references/1-context.mdDOMAINUSE_CASEEXPERIENCEDB_TARGETDATA_SOURCEAPP_TYPEEXEC_METHODprovisionprovision.env${CLAUDE_SKILL_DIR}/references/2-provision.md.envNEO4J_URI/USERNAME/PASSWORD/DATABASEDB_TARGET=existing.env3-model.env${CLAUDE_SKILL_DIR}/references/2-provision.md.envNEO4J_URI/USERNAME/PASSWORD/DATABASEDB_TARGET=existing.env3-modelmodelmodel${CLAUDE_SKILL_DIR}/references/3-model.mdschema.jsonschema.cypherDATA_SOURCE=demo4-load${CLAUDE_SKILL_DIR}/references/3-model.mdschema.jsonschema.cypherDATA_SOURCE=demo4-loadloadload${CLAUDE_SKILL_DIR}/references/4-load.md3-modelimport/reset.cypher${CLAUDE_SKILL_DIR}/references/4-load.md3-modelimport/reset.cypherexploreexplore${CLAUDE_SKILL_DIR}/references/5-explore.md${CLAUDE_SKILL_DIR}/references/5-explore.mdqueryquery${CLAUDE_SKILL_DIR}/references/6-query.mdqueries.cypher${CLAUDE_SKILL_DIR}/references/6-query.mdqueries.cypherbuildbuild${CLAUDE_SKILL_DIR}/references/7-build.md${CLAUDE_SKILL_DIR}/references/7-build.md| Gate | Stage | Condition |
|---|---|---|
| provision | |
| model | ≥2 node labels, ≥1 rel type, ≥1 constraint in DB |
| load | |
| query | ≥5 queries; ≥2 traversals; ≥3 return ≥1 result |
| explore | Browser URL or notebook viz delivered to user |
| build | Artifact exists, passes syntax, returns non-empty results |
| build | MCP config or agent framework code present (if requested) |
| 校验项 | 对应阶段 | 条件 |
|---|---|---|
| provision | |
| model | 数据库中存在≥2个节点标签、≥1种关系类型、≥1个约束 |
| load | |
| query | ≥5个查询;≥2个遍历查询;≥3个查询返回≥1条结果 |
| explore | 已向用户提供浏览器URL或笔记本可视化内容 |
| build | 产物存在,通过语法检查,返回非空结果 |
| build | 存在MCP配置或Agent框架代码(如果已请求) |
| Situation | Action |
|---|---|
| Skip |
| Skip custom modeling; use demo schema; jump to |
| Skip |
| 场景 | 操作 |
|---|---|
| 跳过 |
| 跳过自定义建模;使用演示模型;直接进入 |
| 跳过 |
modelloadDOMAINUSE_CASEEXPERIENCEDB_TARGETDATA_SOURCEAPP_TYPE--auto-approveprogress.mdmodelloadDOMAINUSE_CASEEXPERIENCEDB_TARGETDATA_SOURCEAPP_TYPE--auto-approveprogress.mdREADME.md<placeholder>progress.mdpython3/opt/homebrew/bin/python3.14/usr/local/bin/python3undefinedREADME.mdprogress.md<placeholder>python3/opt/homebrew/bin/python3.14/usr/local/bin/python3undefined| Label | Count | Description |
|---|---|---|
| <Label> | <N> | <one line> |
| 标签 | 数量 | 描述 |
|---|---|---|
| <Label> | <N> | <单行描述> |
NEO4J_PASSWORD.env// Starter query — shows the full graph sample
MATCH (n)-[r]->(m) RETURN n, r, m LIMIT 50.envNEO4J_PASSWORD// 入门查询——显示完整图样本
MATCH (n)-[r]->(m) RETURN n, r, m LIMIT 50| File | Purpose | Re-run |
|---|---|---|
| Graph model | — |
| Constraints + indexes | |
| Wipe data, keep schema | |
| Regenerate synthetic data | |
| Re-import CSVs into Neo4j | |
| Query library | Paste into Neo4j Browser |
| <app type> | |
| Python dependencies | |
data/generate.pyDATA_SOURCE=csvdata/import.pyDATA_SOURCE=synthetic| 文件 | 用途 | 重新运行命令 |
|---|---|---|
| 图模型定义 | — |
| 约束 + 索引 | |
| 清空数据,保留模型 | |
| 重新生成合成数据 | |
| 将CSV重新导入Neo4j | |
| 查询库 | 粘贴到Neo4j Browser中运行 |
| <应用类型> | |
| Python依赖项 | |
DATA_SOURCE=csvdata/generate.pyDATA_SOURCE=syntheticdata/import.pypython3 -m venv .venv # skip if .venv already exists
source .venv/bin/activate
pip install -r requirements.txt
<run command>python3 -m venv .venv # 如果.venv已存在则跳过
source .venv/bin/activate
pip install -r requirements.txt
<run command>mcp-claude-code.json.claude/settings.jsoncp mcp-claude-code.json .claude/settings.json/reloadmcp-claude-desktop.json~/Library/Application Support/Claude/claude_desktop_config.jsonget-schemaread-cypherwrite-cyphermcp-claude-code.json.claude/settings.jsoncp mcp-claude-code.json .claude/settings.json/reloadmcp-claude-desktop.json~/Library/Application Support/Claude/claude_desktop_config.jsonget-schemaread-cypherwrite-cyphersource .env
cypher-shell -a $NEO4J_URI -u $NEO4J_USERNAME -p $NEO4J_PASSWORD --file schema/reset.cypher
source .venv/bin/activate
python3 data/generate.py # or skip if using your own CSVs
python3 data/import.pysource .env
cypher-shell -a $NEO4J_URI -u $NEO4J_USERNAME -p $NEO4J_PASSWORD --file schema/reset.cypher
source .venv/bin/activate
python3 data/generate.py # 如果使用自定义CSV则跳过
python3 data/import.py// <use-case-specific query 1 — fill in from queries/queries.cypher>
<query>
// <use-case-specific query 2>
<query>//--// <用例特定查询1 —— 从queries/queries.cypher中填充>
<query>
// <用例特定查询2>
<query>//--data/*.csvdata/import.pyschema/schema.json
**Step 2 — print this to the conversation:**
Omit lines that don't apply (e.g. omit `data/import.py` when `DATA_SOURCE=synthetic`,
omit `data/generate.py` when `DATA_SOURCE=csv`).data/*.csvdata/import.pyschema/schema.json
**步骤2 —— 将以下内容打印到对话中:**
省略不适用的行(例如,当`DATA_SOURCE=synthetic`时省略`data/import.py`行,当`DATA_SOURCE=csv`时省略`data/generate.py`行)。