build-services
Build a feature's services/ layer — async data services (interface, create, createFake). Optional.
来源信息
- 仓库
- adobe/data
- 最近来源活动
- 2026年10月6日 16:55
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 12
- Forks
- 8
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- build-services
- description
- Build a feature's services/ layer — async data services (interface, create, createFake). Optional.
- input
- feature
- output
- feature
Legacy feature (has `data/state/` or `services/main-service/`)? Extend it in place per the legacy rules; don't migrate unless asked.
Skip if the feature talks to nothing outside itself.
Create one `services/<name>-service/` namespace per service: the interface (an async
data service, validated with `AsyncDataService.IsValid`), `create` (the
implementation, or a factory that throws when the app must inject it),
`createFake`, and `public.ts`. Add `services/services.ts` with the `Services` map when
spec actions inject services.
Depends only on `data/`. Gate: per-service unit tests.
The how is in the auto-loading `features/services/index.md` rule.
在 GitHub 查看