A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
Mobile Base Template Quality Contracts
The Mobile Apps plug-in ships a deterministic Expo template contract so a new
application reaches planning and screen generation from a clean,
production-ready baseline. These rules apply to the bundled template and to
/create-mobile-app.
Visual and Runtime Baseline
- The native-host Tamagui factory always exposes semantic surfaces, media,
accents, text hierarchy, status foreground/background pairs, and a
fonts.monorole in both light and dark themes. - Shared components use literal-safe semantic tokens, minimum touch targets, accessible roles and labels, selected-state semantics, and readable on-accent foregrounds.
- The starter home, login, and OAuth callback routes use semantic tokens, Ionicons, and route-owned safe-area edges.
- The root layout owns
SafeAreaProvider, host light/dark theme selection, the project Tamagui config, generated schema wiring, and the optional offline profile. It does not wrap the router slot inSafeAreaView; each rendered route owns its visible edges to prevent double insets. - OAuth callback replacement is guarded so React development effects cannot trigger duplicate navigation.
Deterministic Template Preparation
scripts/prepare-mobile-template.js is the sole Step 5 mutation path. It:
- Updates the display name and slug.
- Removes only an empty placeholder
power.config.json. - Removes recognized legacy example hooks and the obsolete app-owned query client.
- Creates shared source directories and copies approved helpers only when a destination is missing.
- Verifies that
tsconfig.jsoninherits package shims and shared-code aliases from@microsoft/power-apps-native-host/config/tsconfig. - Structurally adds missing root provider, theme, Tamagui, and safe-area wiring without replacing custom navigation or unrelated providers.
- Verifies postconditions and fails for unsupported layouts or dangling legacy imports.
The script is idempotent. Existing helper bytes, provider props, custom
nesting, offlineProfile, and generation-boundary @ts-ignore comments are
preserved. Failed preparation rolls back every touched file, including deleted
placeholder or legacy files.
Generated-File Ownership
Template preparation never creates, resets, or deletes src/generated/.
Models, services, connector schemas, and barrels are owned exclusively by
Power Apps data-source and schema-generation commands. This keeps generated
artifacts compatible with protected-path validation and prevents hand-written
stubs from masking incomplete initialization.
Lifecycle and Approval Safety
The app instance identity is minted only after proceed, so edit and abort
leave the fresh template unchanged. If a populated power.config.json already
targets the approved environment, initialization is verified and skipped
rather than invoking the CLI over an existing config.
Step 3 writes native-app-plan.md before Step 5. The preparation gate therefore
allows that approved plan while still rejecting created-app markers:
memory-bank.md, .datamodel-manifest.json, and generated service files.
Validation Portability
validate-mobile-files.js --all-source validates all TypeScript source under
an application's complete app/ tree and non-generated src/ tree, plus root
TypeScript configuration files. Only CLI-owned src/generated/ is excluded; a
route folder named app/generated/ remains in scope. Mobile CI covers:
- deterministic preparation and rerun idempotency;
- root-layout import-only, wrapper-only, already-correct, and custom-nesting states;
- semantic token and font completeness;
- shared component accessibility and contrast contracts;
- pristine route safe-area and icon rules;
- generated-directory ownership;
- full template dependency installation, TypeScript compilation, and all-source mobile validation.