| name | docs-index-updater |
| description | 当 requirements/{p}/{r}/ 下新增文档(design / review / experience 等)时,自动更新该需求的 INDEX 与摘要。 |
| allowed-tools | Read, Write, Edit, Glob |
Skill: docs-index-updater
原文 §8.3 规范查询类。维护需求范围内的文档索引。
触发
- 阶段 3.2 / 4.4 / 5.1 新写文件时
/agentic:note 后
维护文件
requirements/{project}/{req-id}/INDEX.md(如果不存在则创建)
模板:
# {req-title} — 文档索引
## 阶段产物
| 文件 | 阶段 | 状态 | 摘要 |
|---|---|---|---|
| requirement.md | 2 | ✓ | 5 条 REQ |
| outline-design.md | 3.2 | ✓ | 5 条 DEC |
| detail-design.md | 3.2 | ✓ | 数据模型 + IDL + 5 DEC |
| tasks/features.json | 4.1 | ✓ | 4 个 FT |
## 门禁
| 门禁 | 状态 | 文件 |
|---|---|---|
| 2.2 | PASSED | gates/2.2-requirement-review.md |
| 3.3 | PASSED | gates/3.3-design-review.md |
| 4.2 | PASSED | gates/4.2-dev-entry.md |
| 4.3 | PASSED | gates/4.3-service-repo-check.md |
## Review 报告
- reviews/2026-05-28-1100.md — covers FT-001, FT-002 — PASSED
## Notes
- notes/2026-05-28.md — 决策记录
## 当前阶段
详见 state.json:当前 4.4,2/4 features 完成
与 context-index-updater 的区别
- docs-index-updater = 单个需求目录内的索引
- context-index-updater =
context/ 三层知识体系的全局索引