Skip to main content

build-services

Build a feature's services/ layer — async data services (interface, create, createFake). Optional.

Datos de origen

Repositorio
adobe/data
Última actividad en el origen
6 de octubre de 2026 a las 16:55
Idioma detectado de SKILL.md
inglés
Estrellas
12
Forks
8

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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.
Ver en GitHub