34 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Agent 扩展目录
这个目录保存“项目类型扩展”,用于在通用 agent 之上叠加某一类 App 的领域经验。
新项目启动时的加载顺序:
1. 读取 `pipeline/SKILL.md`。
2. 按阶段读取 `agents/<agent>/SKILL.md` 和同目录参考文件。
3. 读取 `extension_selection.md`,由 PM/Router 判断项目类型并自动选择扩展。
4. 如果项目已经有实例包,再读取 `docs/changes/<change_slug>/SKILL.md`。
## 当前扩展
| 扩展 | 适用项目 | 入口 |
| --- | --- | --- |
| `ambient-sleep/` | 环境音、助眠、专注、放松、HiFi 声景、音乐播放场景模式 | `extensions/ambient-sleep/SKILL.md` |
## 与项目包的区别
- `extensions/`:可迁移的领域规则、阶段 skill、质量门槛和交付清单。
- `docs/changes/`:某个具体项目的 PRD、设计稿、资源状态、测试证据、审批状态和当前完成度。
不要把具体项目的资源文件、截图、APK、源码路径、审批状态写进 `extensions/`。
## 用户不需要手动指定扩展
你只需要告诉 Codex:
```text
请读取 reusable_agent,根据已有 PRD 生成 xxx 风格的 UI。
```
Codex 应先读取 `pipeline/SKILL.md` 和 `extensions/extension_selection.md`,再由产品 Agent 或 pipeline router 判断是否加载某个 extension。