Files
zclaw_openfang/docs/knowledge-base/README.md
iven 6f72442531 docs(guide): rewrite CLAUDE.md with ZCLAW-first perspective
Major changes:
- Shift from "OpenFang desktop client" to "independent AI Agent desktop app"
- Add decision principle: "Is this useful for ZCLAW? Does it affect ZCLAW?"
- Simplify project structure and tech stack sections
- Replace OpenClaw vs OpenFang comparison with unified backend approach
- Consolidate troubleshooting from scattered sections into organized FAQ
- Update Hands system documentation with 8 capabilities and status
- Stream
2026-03-20 19:30:09 +08:00

88 lines
2.8 KiB
Markdown

# ZCLAW 知识库
> 记录开发过程中的经验、问题和解决方案,为项目演化提供知识储备。
## 目录结构
```
knowledge-base/
├── README.md # 本文件 - 索引
├── zclaw-technical-reference.md # ZCLAW 技术参考
├── websocket-protocol.md # WebSocket 协议文档
├── configuration.md # 配置系统文档
├── troubleshooting.md # 常见问题排查
├── frontend-integration.md # 前端集成模式
├── agent-provider-config.md # Agent 和 LLM 提供商配置
├── tauri-desktop.md # Tauri 桌面端开发笔记
├── feature-checklist.md # 功能清单和验证状态
└── hands-integration-lessons.md # Hands 集成经验总结
```
## 快速索引
### 协议与通信
| 主题 | 文件 | 关键词 |
|------|------|--------|
| WebSocket 流式聊天 | [websocket-protocol.md](./websocket-protocol.md) | 流式响应, 事件类型, 消息格式 |
| REST API | [zclaw-technical-reference.md](./zclaw-technical-reference.md) | Agent, Hands, Health |
| 配置系统 | [configuration.md](./configuration.md) | TOML, 环境变量 |
### 故障排查
| 问题类型 | 文件 | 常见原因 |
|---------|------|----------|
| 连接失败 | [troubleshooting.md](./troubleshooting.md) | 端口、认证、配置 |
| 流式响应不工作 | [troubleshooting.md](./troubleshooting.md) | 事件类型、代理配置 |
| LLM 错误 | [troubleshooting.md](./troubleshooting.md) | API Key 未配置 |
### 开发指南
| 主题 | 文件 | 说明 |
|------|------|------|
| 前端集成 | [frontend-integration.md](./frontend-integration.md) | React + Zustand 模式 |
| Agent 配置 | [agent-provider-config.md](./agent-provider-config.md) | LLM 提供商配置 |
| Tauri 开发 | [tauri-desktop.md](./tauri-desktop.md) | 桌面端开发注意事项 |
| 功能清单 | [feature-checklist.md](./feature-checklist.md) | 所有功能的验证状态 |
| Hands 集成 | [hands-integration-lessons.md](./hands-integration-lessons.md) | Hands 功能集成经验 |
## 版本历史
| 日期 | 版本 | 变更 |
|------|------|------|
| 2026-03-19 | v2.0 | 重构为 ZCLAW 独立产品文档 |
| 2026-03-14 | v1.1 | 添加 Hands 集成经验总结、功能清单 |
| 2026-03-14 | v1.0 | 初始创建 |
---
## 贡献指南
当遇到以下情况时,请更新知识库:
1. **发现协议与文档不一致** - 记录实际行为
2. **解决了一个棘手的 bug** - 记录根因和解决方案
3. **找到了更好的实现方式** - 记录模式和最佳实践
4. **踩了坑** - 记录避坑指南
### 文档格式
```markdown
# 主题
## 问题描述
简要描述遇到的问题
## 根本原因
解释为什么会发生
## 解决方案
具体的解决步骤
## 代码示例
相关代码片段
## 相关文件
列出涉及的源文件
```