一键导入
nao-gen
Generate the FluentNao knowledge graph — reads source code, creates entities and relations in Neo4j. Only invoke when explicitly requested.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate the FluentNao knowledge graph — reads source code, creates entities and relations in Neo4j. Only invoke when explicitly requested.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | nao-gen |
| description | Generate the FluentNao knowledge graph — reads source code, creates entities and relations in Neo4j. Only invoke when explicitly requested. |
| category | Robotics |
| audience | trial |
| notes |
Execute all Bash commands, Neo4j writes, and tool calls immediately and without interruption. Never pause to ask for confirmation.
Understand Paths:
<code_path>/oss/FluentNao. Derive <code_path> by running dk world show or default to /Users/donnajd/code if dk is unavailable.<code_path>/oss/FluentNao/src/main/python/fluentnao/<code_path>/oss/FluentNao/src/main/python/naoutil/<code_path>/oss/FluentNao/src/main/python/pynaoqi-python2.7-2.1.4.13-linux64/<code_path> as a placeholder throughout; never hardcode absolute paths in entity observations.Acknowledge Exclusions — never add the following to the graph:
~/code/ or /Users/*/ paths — always use <code_path>naoscript.py) — note they exist but mark as deprecatedClear all entities created by this skill:
"family: nao-gen" as an observation. Use a single Cypher query to delete them all: MATCH (e) WHERE any(obs IN e.observations WHERE obs = 'family: nao-gen') DETACH DELETE e RETURN count(e) AS deletedcurl -s -X POST $NEO4J_HTTP_URL/db/neo4j/query/v2 -u "$NEO4J_USERNAME:$NEO4J_PASSWORD" -H "Content-Type: application/json" -d '{"statement": "..."}'. Neo4j connection env vars are pre-set.find_memories_by_name(["nao", "nao_rule_general"]) — expect empty entities array.Graph Tools — use these MCP tools throughout all steps:
CREATE entity -> mcp__neo4j-mcp__create_entitiesADD observations -> mcp__neo4j-mcp__add_observationsCREATE relation -> mcp__neo4j-mcp__create_relationsFIND entity -> mcp__neo4j-mcp__find_memories_by_nameStream-Process-Commit — Read a batch of source files -> extract classes/methods from docstrings -> create entities immediately -> next batch. Never accumulate raw file content across batches.
Batch Sizing — 4-6 source files per batch. Each batch: Read files with the Read tool, extract methods and descriptions, create entities, create within-batch relations, checkpoint.
No Agent Delegation for File Reads — Use the Read tool directly. Never delegate to agents.
Family Tag — Every entity includes "family: nao-gen" as an observation. No exceptions.
Method Observations — One observation per public method: method: <name>(<args>) -- <one-line description>. Extract from docstrings. Skip private/internal methods prefixed with _.
Progress Checkpoints — After each batch, state what was created.
IMPORTANT: DO NOT read the numbered markdown files yet. Create todos and work through them sequentially:
For each todo: mark in_progress, read its markdown file, execute fully, mark completed, then proceed to the next.