docs(graphify): 添加知识图谱使用指南
- CLAUDE.md: graphify 从英文规则扩展为中文开发流程指南 - 定义 5 种使用场景(接手任务/排查bug/理解模块/代码更新/架构审查) - 融入闭环工作法,优先级:graphify query > path > Grep/Read - wiki/index.md: 关键数字添加 Graphify 行 + 模块导航新增开发工具分区 - wiki/infrastructure.md: §3 常用命令添加 Graphify 子节
This commit is contained in:
@@ -158,6 +158,17 @@ wasm-tools component new target/wasm32-unknown-unknown/release/erp_plugin_test_s
|
||||
cargo test -p erp-plugin-prototype # 运行插件集成测试
|
||||
```
|
||||
|
||||
### Graphify 知识图谱
|
||||
|
||||
```bash
|
||||
python -m graphify query "BLEConnection" # 搜索节点(比 Grep 更精准,按调用/引用关系)
|
||||
python -m graphify path "A" "B" # 两个模块间的最短路径
|
||||
python -m graphify explain "ArticleDetail" # 自然语言解释节点及其邻居
|
||||
python -m graphify update . # 增量更新图谱(AST-only,秒级完成)
|
||||
```
|
||||
|
||||
> **开发流程中的使用:** 接手新任务时先 `graphify query` 定位相关代码 → `graphify path` 追踪调用链 → 再 Grep/Read 确认具体内容。代码改动后运行 `graphify update .` 保持图谱最新。详见 `CLAUDE.md` §graphify。
|
||||
|
||||
## 4. 代码逻辑
|
||||
|
||||
### 一键启动(推荐)
|
||||
@@ -196,6 +207,7 @@ cd apps/web && pnpm install && pnpm dev
|
||||
|
||||
| 日期 | 变更 |
|
||||
|------|------|
|
||||
| 2026-05-25 | 添加 Graphify 知识图谱工具命令(query/path/explain/update) |
|
||||
| 2026-05-25 | 明确 dev:weapp vs build:weapp 构建模式区分,记录 .env.production 导致 DevTools 卡死的陷阱 |
|
||||
| 2026-04-26 | 从 CLAUDE.md 迁移:常用命令(§9) |
|
||||
| 2026-04-25 | 外部化微信凭据和健康加密密钥为环境变量;添加 4 个新的必设环境变量 |
|
||||
|
||||
Reference in New Issue
Block a user