Skip to main content

build-services

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

Source facts

Repository
adobe/data
Last source activity
November 6, 2026 at 20:26
Detected SKILL.md language
English
Stars
13
Forks
8

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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/` TypeSpace 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.
View on GitHub