specs-data
Installation
SKILL.md
specs-data
数据结构定义:从数据可靠性角度,把必须显式封装的数据结构定义出来,输出 docs/specs/data/struct.md。仅后端适用。
分析型 skill——主流程读 spec、分析、确认后直接落盘,无需 subagent。
前置依赖(先检查,缺失就停)
- 仅后端:读
docs/standards/tech-stack-rule.md的"选型上下文",若端 ≠ 后端,提示此 skill 只服务后端,结束。 - 必须存在:
docs/standards/tech-stack-rule.md(语言/序列化方式)、docs/specs/data/(DB 设计,table.sql 或 schema.json)、docs/specs/API/(接口描述)。 - 建议存在:
docs/specs/ws/与docs/specs/grpc/(其他通道契约)、相关docs/specs/UCS/、docs/specs/task-UCS/(载荷结构)、docs/specs/data/struct.md(已存在则增量合并)。 - 缺失必选项时,提示先运行对应 skill(specs-api / specs-db / specs-ws),结束。
模板文件(本 skill 自带)
templates/struct-template.md→ struct.md 生成模板(Glob 定位,不硬编码缓存路径)