Skip to main content

build-service-database

Build a feature's ecs/services layer — registering services on the database. Optional.

Informações da origem

Repositório
adobe/data
Última atividade na origem
6 de outubro de 2026 às 16:55
Idioma detectado do SKILL.md
inglês
Estrelas
12
Forks
8

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
build-service-database
description
Build a feature's ecs/services layer — registering services on the database. 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 has no services. Create `ecs/services/service-database.ts` (extends the previous layer), registering each `services/` service's `create` under its `Services` key, plus any database-bound factories (one per file + barrel) for services that read observables or call transactions. Pin with `Assert<Equal<ServiceDatabase["services"], Services>>`. Give the implementation base fakes for services whose `create` throws. The how is in the auto-loading `features/ecs/services.md` rule.
Ver no GitHub