Skip to main content

build-app-entry

Build an application's src/app/ composition root.

Source facts

Repository
adobe/data
Last source activity
October 6, 2026 at 16:55
Detected SKILL.md language
English
Stars
12
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-app-entry
description
Build an application's src/app/ composition root.
input
app
output
app
A legacy feature (has `data/state/` or `services/main-service/`) exposes its `MainService` from `services/main-service/`; compose it from there. Create `src/app/`: - `schema.ts` — the composed plugin: the base feature's `MainService.plugin`, `imports` of the core schema of each feature that loads lazily (single-feature apps skip this). - `versioning/` — `versions.ts` + `versions.test.ts` over the composed schema, when the app persists. - `persistence.test.ts` — a save/load round-trip, when the app persists. - `main.ts` — creates the database, injects every service whose `create` throws, and mounts the root UI. Point `index.html` at it. The how is in the auto-loading `app.md` and `versioning.md` rules, and `features/index.md` (one app, many features).
View on GitHub