Skip to main content

build-services

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

معلومات المصدر

المستودع
adobe/data
آخر نشاط في المصدر
٦ أكتوبر ٢٠٢٦ في ١٦:٥٥
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
١٢
التفرعات
٨

خيارات التثبيت

يُحدَّد 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