Skip to main content

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
フォーク
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で見る