docs: add AI iOS workspace template and For AI Agents section to README

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-20 10:58:21 +08:00
parent 90e4e2b2e6
commit 42f7a0fe3c
2 changed files with 89 additions and 0 deletions

View File

@ -148,3 +148,26 @@ rm -rf ~/Library/Developer/Xcode/DerivedData/AIStudyApp-*
- **TabBar 胶囊指示器**:选中 Tab 上方紫色 Capsule 替代旧圆形指示器
- **ZXSTask 颜色模型**`Color` → hex `String`,支持 Hashable 路由参数
- **ZXAIInputBar 重构**提取为共享组件padding 由调用方控制
---
## For AI Agents
### 负责 Agent
iOS Agent`@ios-agent`),配置在 `.claude/agents/ios-agent.md`
### 关键规则
- 所有导航必须使用 `NavigationLink(value: Route)`,禁止 `NavigationLink(destination:)`
- 颜色使用 DesignTokens 定义,禁止硬编码
- 不引入新第三方依赖(除非 Global Agent 确认)
### 工作台
`ios-projects/AI_IOS_WORKSPACE.md` — 仅跨模块多 Agent 任务时填写,小任务跳过。
### 禁止
- 不能修改 api-server
- 不能自行发明后端接口,接口缺失时在 WORKSPACE 写"需要后端支持"

66
AI_IOS_WORKSPACE.md Normal file
View File

@ -0,0 +1,66 @@
# AI iOS 工作台
> iOS Agent 维护。仅中/大任务填写,小任务在对话中直接反馈。提交后清空。
---
## 当前任务
(待填写)
---
## 已确认范围
(待填写)
---
## 本次修改
(待填写)
---
## 修改文件
| 文件 | 变更 | 说明 |
|------|------|------|
| — | — | — |
---
## 本地测试方式
```
Xcode 测试步骤)
```
---
## 阻塞项
- 需要后端支持xxx
---
## 需要 Global Agent 决策
(待填写)
---
## 需要其他 Agent 支持
- 需要后端新增接口xxx
---
## 是否建议进入 Review
- [ ] 是
- [ ] 否,有阻塞
---
## 提交后清空