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.
AGENTS.md — Code Apps Native Plugin (Preview)
This file provides guidance to AI Agents when working with the mobile-app plugin.
Status: Preview. The bundled
template/remains a legacy test fixture, not a release selector or an app-version-independent native allowlist. Read README.md for the command list and release gate.
What This Plugin Is
A plugin for building and deploying Power Apps code apps that run as native mobile + web apps using Expo + React Native + TypeScript. Connects to Power Platform via connectors using the standard pa app add data-source workflow.
/create-mobile-app selects an exact published template package, acquires it only into a new/empty folder after approval, installs its lockfile after separate approval, then inspects and prepares it. Existing fresh installed folders use advisory local-development compatibility checks, not blocking admission before installation/startup. See mobile-release-lifecycle.md; strict compatibility remains required for deployment.
Local Development
claude --plugin-dir /path/to/power-platform-skills/plugins/mobile-apps
Architecture
.plugin/plugin.json ← Open Plugins metadata
.claude-plugin/plugin.json ← Legacy metadata mirror
AGENTS.md ← This file
README.md ← Plugin overview
agents/ ← native-app-planner, data-model-architect, screen-planner, preview-screen-builder, screen-builder, offline-profile-architect
shared/ ← shared-instructions, references, samples, memory-bank template
skills/ ← /create-mobile-app, /add-dataverse, /add-connector, /add-native, ...
scripts/ ← shared helpers, including validate-mobile-files.js and bundled telemetry
hooks/ ← Telemetry start hooks plus validators invoked explicitly by mobile workflows
Template source
The bundled template/ is retained for existing preparation/source tests. Runtime selection comes from the published host's compatibility profile and the matching immutable template metadata/lock, not a plugin-owned release array, bundled snapshot or independently chosen npm latest dependencies. /check-updates keeps npm outdated discovery and delegates migration writes to the published target host. /create-mobile-app never copies the bundled snapshot over a user's folder. After immutable acquisition and package validation, preparation applies these bounded edits:
| Edit | Purpose |
|---|---|
app.config.js: name, slug |
Replace 'Power Apps Standalone App' / 'powerapps-standalone-app' with wizard answers |
package.json: name |
Replace 'powerapps-standalone-app' with the app slug |
Remove an empty placeholder power.config.json |
Preserve populated environment configuration; pa app init creates a missing file |
| Remove legacy example hooks and query-client files | Preserve every artifact under src/generated/ |
app/_layout.tsx: add tamaguiConfig + defaultTheme |
Use host light/dark defaults until generated brand themes are explicitly wired |
app.json + app/_layout.tsx: appConfig |
Pass the complete generated app configuration once so the host can resolve opt-in Application Insights settings inside fixed Dev Player |
tsconfig.json: verify the host base |
Preserve both host inheritance and any version-specific project-rooted aliases |
Preparation preserves app.json compatibility metadata and customer extras byte-for-byte, together with scaffolded or customer-owned AGENTS.md, CLAUDE.md, and .github/copilot-instructions.md. Never synthesize runtime IDs from semver. Existing app instruction updates require a separately reviewed merge.
Only finalized published host/template packages authorize creation or native
upgrades. The former diagnostic artifact mode is retired; do not substitute a
local archive, a bundled template or a Git checkout for a missing publication.
Preserve normal approvals, telemetry checkpoints and app-owned offline profiles,
imports, settings and data.
The installed offline SDK must match the selected host's runtime family, peer
requirements and offline-contract version. Obtain its expected metadata and
complete declared native artifact inventory from the integrity-verified SDK
archive selected by the immutable template lock, never from mutable installed
hashes alone.
Metadata checks do not certify offline synchronization or database migration.
Never patch, fork or locally rewrite a first-party package to work around a defect.
For fixable upgrade failures, follow the check-updates repair loop.
Local workflows and their children follow the
local-development policy:
use --local-development on the resolver and changed-file validator; retain
unverified compatibility without blocking installation/startup. Deployment
keeps strict first-party package/base validation.
Do not add preparation rewrites for scheme, package, bundleIdentifier, src/playerConfig.ts, fingerprint.config.js, or native-runtime.json unless those files exist in the synced main template.
Guiding Principles
Connector-first for data — All Power Platform data access goes through connectors and generated services in
src/generated/. No direct Graph / Azure REST calls.Native code is version-bounded; pure JavaScript is app-scoped. Use
scripts/resolve-mobile-release.jsto resolve the app's reviewed native inventory, including installed versions and transitive native code. The newest plugin template's names are not an old app's baseline. Adding packages cannot add native code to a fixed player/base; native changes require a coordinated reviewed release. Pure-JS additions retain explicit planning/approval and installed-closure validation. Follow JavaScript dependency planning and the native boundary. Verify haptics/controls support in the resolved release before generating wrappers. Native binary changes require matching rebuilt Android/iOS bases and available players before policy promotion.Fresh-template mode — acquire only an immutable verified package into a new/empty folder, or validate an existing fresh installed template. Never overwrite a customer project, use a mutable branch, or silently copy the bundled snapshot.
Safety guardrails — Confirm before deploys, before global installs, before edits outside the project root.
Memory bank — Persist
memory-bank.mdin the project root.Two build orders -
/create-mobile-approutes the request, gathers the requirements with one setup question, classifies where the data lives, and then asks for a build order (showing the brief) at Step 0 ofskills/create-mobile-app/SKILL.md; a connector-only brief skips the question and builds data model first. It then loads only that order's flow file. Keep each order's steps in its own flow file, and keep what both share (routing, the creation-state table, the requirements, the child-skill handoff context) inSKILL.md.- Screens first (recommended) scaffolds, drafts
the screen graph itself, gets it approved (screen graph gate), builds every
screen in parallel with
preview-screen-builderon sample data behind the data layer inshared/references/preview-data-layer.md, and shows them in a live web preview (preview gate) before any architecture work. Onenpm run devserver, started at Step 3.5, serves that preview and, through the QR code the preview gate draws, the same app on a phone; it runs to the end of the run, so connecting real data reloads the app in place. The app registration is chosen at the preview gate (Step 8.0), before the QR: Power Apps Mobile Preview shows "Missing auth client ID" instead of the app oncepower.config.jsonnames an environment andauth.config.jsonhas nomsal.clientId. Step 11 only re-checks it for connector permissions. The architecture gate (architecture-planner) then derives native capabilities, connectors, and the data platform from the approved screens, and the data model gate maps their Data Contract to Dataverse. Gates are named, not numbered. Phase A (up to the preview gate) lives inreferences/screens-first.mdand aims to put the first screen in the phone about five minutes after the prompt; Phase B lives inreferences/make-it-real.md, so the model never loads it before the user has seen the app. Keep anything the preview does not need out of Phase A. That includes the full screen checklist:preview-screen-builderreads only what one screen needs, and Phase B's Step 9.3 runsscreen-builder's full design and accessibility checklist over every screen once the design system exists. - Data model first is the original workflow, in
references/data-model-first.md: confirm requirements first, then Gate 1 (native-app-planner) presents native capabilities, connectors, and the data-platform choice before conditional Dataverse modeling; later gates approve the applicable data model and screen plan, and screens are built last on generated services. Its apps have nosrc/hooks/data/, so shared agents and/edit-apptreat them as legacy-mode apps. - Shared steps. A step both orders run the same way lives once, in its
own flat file under
references/(publisher prefix, Dataverse planning snapshot and recovery, post-plan prefix check, auth, apply data model, sample data, offline profile, native capabilities, connectors, stylistic sweep, dev server, debug handoff, summary). Each flow keeps the numbered heading and its telemetry checkpoint, then says**Shared step:** read [`<file>.md`](<file>.md) and follow it in full.Fix a shared step in its file, never in a flow, so there is one place to fix it. Shared files name steps rather than number them, and open with a table mapping each name to both orders' step numbers.SKILL.mduses the same line, linkingreferences/<file>.md, for a branch only some runs take:creation-continuation.mdandtemplate-acquisition.md(a new or empty target). Keeping them out of the router keeps a fresh run's Phase A small. Tests read the router and flows throughscripts/tests/helpers/create-skill.js, which expands each include so assertions see the text a run reads.
- Screens first (recommended) scaffolds, drafts
the screen graph itself, gets it approved (screen graph gate), builds every
screen in parallel with
Persisted plan — Write
native-app-plan.md(Mermaid ER + per-screen specs + native capabilities matrix) as the source of truth that sub-skillsRead.CLI compatibility — Resolve the Power Apps CLI per
shared/cli-binary.mdand run code-app lifecycle and data-source commands as$PA …in the canonical groupedpaform — never a barepa,power-apps, ornpx pa. Every other agent-runnpx(tsc,expo,qrcode, …) also uses--no-installagainst a package the template pins; nevernpx --yesor a barenpx <pkg>that can download from the registry. Usescripts/resolve-environment.jsplusaztokens for Dataverse environment URL/tenant discovery and Azure/Entra operations. Seeshared/shared-instructions.md. Mobile Node helpers usescripts/lib/process-runner.jsfor external CLI execution. Keep arguments separate from commands and reuse its native/batch handling rather than adding per-tool Windows shims orshell: true.Agent invocation namespace — All
Taskinvocations of agents in this plugin MUST use the fully-qualifiedmobile-app:<agent-name>form (e.g.mobile-app:native-app-planner,mobile-app:screen-builder). Bare names likenative-app-plannerreturnAgent type 'native-app-planner' not foundbecause Claude Code namespaces all plugin agents by plugin name. Agent frontmatter names nomodel, so each agent runs on the session's model in every host. A host-specific alias fails elsewhere: GitHub Copilot CLI rejectssonnetand refuses to start the agent, which turned every parallel screen build into a slow inline one. Claude Code resolves an absentmodelto the main conversation's model (model order).Plugin isolation —
hooks/hooks.jsonis limited to fail-open telemetry start hooks. They never validate, mutate, or block tool calls. Do not add write/validation hooks: mutating skills follow the changed-file gate inshared/shared-instructions.md, and final-artifact agents invokescripts/validate-mobile-files.jsdirectly.Invocation metadata — Public entry skills use
user-invocable: trueand remain model-invocable. Bundled implementation helpers use bothuser-invocable: falseanddisable-model-invocation: true; their owner readsSKILL.mddirectly. Hidden standalone workflows such asassign-offline-profileandpreview-offline-scopeuseuser-invocable: falsewithout disabling model invocation because no owner reads them directly. Agents useuser-invocable: falsewithoutdisable-model-invocationso qualifiedTaskdelegation remains available.Sub-agent return-status protocol — Every agent in this plugin (
native-app-planner,data-model-architect,screen-planner,preview-screen-builder,screen-builder,offline-profile-architect) MUST return a status code as the literal first line of its final message. Orchestrators (skills that invoke agents viaTask) MUST parse the first line and branch:Code Meaning Orchestrator action DONECompleted cleanly Log and continue DONE_WITH_CONCERNS: <list>Worked but flagged doubts Surface to user before next step; record in memory-bank.mdNEEDS_CONTEXT: <missing>Cannot proceed without more info Re-dispatch with the info filled in (cap 2 retries) BLOCKED: <reason>Hit a hard wall STOP, escalate to user, never silently retry Hard rules:
- Status code is the literal first line — no
Status:prefix, no backticks, no preamble. After it, blank line, then the agent's normal summary. - Agents MUST NOT downgrade
BLOCKEDtoDONE_WITH_CONCERNSto keep the workflow moving — the orchestrator's job is to handle the block, not the agent's. DONE_WITH_CONCERNSrequires at least one concern. If none, useDONE.- In
/create-mobile-apponly,NEEDS_CONTEXT: dataverse-planning-mode:<required|connector-only>from thegate-onlyarchitecture pass is a phase-completion signal, not a retry. The canonical handler validates the approved architecture before continuing; other phases cannot use it to change the data platform. - Special early-return signals (
INDUSTRY_CONFIRM_REQUESTED:,DESIGN_VIBE_REQUESTED:) pre-date this protocol and remain in effect — they are special-cased "ask the user one question and re-spawn me" handoffs, not terminal returns. - The canonical orchestrator handler lives in each
/create-mobile-appbuild order's flow:## Sub-agent return statusinreferences/screens-first.md(with the architecture and Dataverse signals in Step 10.0 ofreferences/make-it-real.mdand the sharedreferences/dataverse-planning-recovery.md), and Step 3.0 ofreferences/data-model-first.md. Future skills that spawn agents should reference them rather than duplicating the switch.
- Status code is the literal first line — no
Every run documents itself in
docs/-scripts/app-docs.jswrites<app>/docs/create-app-plan.html, a living Fluent-format plan in the same visual language as the Power Pages/create-siteartifacts (shared encoder ported toscripts/lib/render-template.js). It records the environment, the confirmed brief, the screen plan, the design system, the architecture, and the data model with a colour-coded ER diagram, plus per-phase progress in the order of the run's build order (buildOrderindocs/.run-plan.json; a plan without one is data-model-first). In the screens-first order its phone frame shows the live web preview while the app runs on sample data, and that phone is the only place the preview appears (Step 3.5 starts the template'snpm run dev, which opens no browser tab). That one dev server also serves the app to a phone: the preview gate draws its QR code under the frame, and Step 14 moves the code into the frame, because a wired app needs a signed-in host the browser frame does not have. The phone is an iPhone 18 Pro (402 × 874 pt) drawn once byscripts/lib/phone-shell.jsfor both the build plan and the edit plan; mockups and the live app fill its 402 × 778 app area between the status bar and the home indicator, and the screen-preview templates repeat those sizes, which a test keeps in step. Each render also writescreate-app-plan.version.js, and the open page reloads only when that version changes, because a reload restarts the app in the phone. The shared refresh controller inscripts/lib/plan-refresh.jsruns this version check for both the build plan and the edit plan (edit-app-progress.version.js). A check changes nothing on screen, so it never stops while the page is open; stopping after a run of unchanged checks left pages stale once a step ran long. Only the timed fallback, for a browser that blocks the version file, keeps the pause at input gates and the 30-reload budget. Sections are written when the decision is made, so an aborted run still explains itself. The ER, column tables and new/reused/extended colouring are all derived fromdataModel.tables[], so populate those structurally rather than only shipping a Mermaid string. It is best-effort and must never gate, retry, or fail a build.Metro lifecycle is project-local — template
metro.config.jsdelegates tocreatePowerAppsMetroConfig, whose host implementation writes sanitized.powernative/metro-logs/output during normalnpm run dev;/debug-applocates and tails those files directly, with its cursor, health, and audit state under.powernative/debug-app/. Do not restore requiredBashOutput/terminal-ID behavior or host-specific project state directories. Host terminal APIs may be optional conveniences only. Never write unsanitized Metro output to disk. Runtime monitoring requires a live logged PID/port; bounded startup diagnosis may use correlated failed-launch output as historical evidence, never as a live runtime session.First-party native package defects are reported, not patched in customer projects — a
node_modules/@microsoft/power-apps-native-*frame alone is not proof of package ownership; first rule out invalid app usage against the package's public contract. Once a defect is confirmed inside one of these packages, do not editnode_modules/, generatepatch-packageor postinstall rewrites, vendor or fork the package, replace it with a git/tarball/local dependency, or shadow it through resolver aliases. Capture sanitized reproduction evidence and route to/report-issue.Custom events are Application Insights-specific and opt-in — Each generated app targets one customer-owned, workspace-based Application Insights resource.
app.json→expo.extra.appInsightsConfigdefaults to disabled and stores its connection string, matching the Power Apps canvas-app model. Treat the value as sensitive project configuration: do not print it, write it tomemory-bank.md, or include it in summaries. KeepincludeUserIdfalse unless explicitly approved.Plugin update notification — Immediately after the frontmatter of every
user-invocable: trueskill except/check-updates, runnode "${PLUGIN_ROOT}/scripts/check-version.js"and show any output before proceeding. The check is best-effort and must never block the requested workflow./check-updatesowns its explicit plugin-version check in Step 1 and must not run a duplicate startup check.Data-source operations preserve scope and app identity — Before data work, follow Data-source invocation scope. Standalone workflows approve the current delta; child calls carry the owner, phase, absolute root, and exact approved operations. Neither a flag nor an old plan grants approval. Every shell/file operation uses the same root; follow app-working-directory.md for Bash and PowerShell guards.
Data-source retirement is app-local and CLI-owned — After approved consumer edits, use the supported removal command to update registrations, schemas, and generated models/services, then regenerate the runtime schema map. Never turn a removed plan row into server-table deletion. Follow
shared/references/data-source-removal.mdfor shared-reference safety, inventory/offline reconciliation, and no-op detection; successful exit alone is insufficient.Seed scope is not the schema inventory — Orchestrated
/add-sample-datacalls pass an approved--tablesallowlist and retiring-table exclusions. Lookup fanout, prototype seeds, media uploads, and retries cannot widen that scope. Preserve transitional manifest entries until verified removal.Offline retirement survives addition checks — Preserve per-table
offlineRetirementoutcomes in leaf results and memory-bank. Addition-onlyin-syncnever clears a pending profile decision/migration. App-binding approval is not permission to delete offline profile items or server data.Dataverse change planning shares creation's helpers, not its gates — Setup/edit/standalone proposals use compact hash-bound evidence, required snapshot-only architect context, and decision validation before the owner's existing approval. The same checks apply to diagrams and inline fallbacks. Preapproval environment resolution uses
--no-cache --require-tenant; never downgrade to the persistent resolver. Follow scoped Dataverse planning. Accepted contract/plan hashes travel in the existing scoped context; do not fabricate the four-approval create-only execution receipt for an edit.Feature entry points share one edit owner — Direct native, connector, data-model, and design requests on existing apps choose implementation-only, full integration, or cancellation before costly work. Natural-language existing-app feature requests preserve the original prompt and invoke
/edit-appafter full-integration consent; never merely suggest the command or send an existing app through/create-mobile-app. Approved children reuse their current owner/root/phase/scope and never recurse into another edit. Follow app-edit-routing.md; the choice enters a workflow, not permission to mutate.Shared entry policy is not copied into every skill — Every new public app workflow starts with a read-first link to
shared/shared-instructions.mdand allowsRead. The shared preflight classifies feature work before operational commands; leaves only link to it. Invocation discovery tests cover newly added skills automatically. These static checks verify the instruction contract, not model compliance; do not claim smaller-model or host reliability without agent-run evidence.Natural-language routing is not a fixed skill list — App guidance selects the most specific host-advertised skill by description and supported scope, including future/custom workflows not in the example table. Invoke rather than merely recommend it after required entry consent. Preserve exact namespaces, invocation restrictions, current owners, and all approval gates; do not route every request through
/edit-app. Selection needs no extra invocation-approval prompt, but Dataverse and other consequential actions keep their target/scope checks and mutation approvals. Never fabricate approval context or substitute ad-hoc mutations for an unavailable domain workflow.Startup diagnosis precedes runtime monitoring when necessary —
/debug-app startupcan inspect a failed install, pre-start command, or QR opening without a loaded app.scripts/inspect-startup.jsis local/read-only and never authorizes repair or verifies startup. Clean metadata is not an exhaustive diagnosis; unexplained symptoms require scoped investigation of the original failure, not a guessed reinstall. The bounded workflow inskills/debug-app/references/startup-diagnostics.mdowns explicit same-lock restoration/restart approval and original-symptom verification. Upgrades remain with the separate dependency-update workflow; no lock deletion, automatic dependency updates, or host/MSAL patches. Creation reuses this workflow on an observed startup failure instead of launching another repair loop. Runtime monitoring still requires live logs.
Telemetry
Mobile Apps bundles the canonical stdlib-only telemetry helpers from the repo-root shared/telemetry/lib at scripts/lib/telemetry/lib. Edit the shared source first, then refresh this physical copy in the same change; never copy another plugin's ikey.json or resolver.
- Lifecycle:
UserPromptSubmitandPreToolUse(Skill)remain legacy activity observations, not measured workflow starts. Every tracked operational skill followsshared/shared-instructions.mdto begin and end a schema-v2 skill span and measure registered checkpoints throughscripts/emit-telemetry-checkpoint.js. Durable span state uses the Mobile Apps-ownedscripts/lib/mobile-lifecycle.jshelper; orchestration remains in the existing checkpoint CLI. Pass explicit run, parent, and span IDs across Skill, Task, subprocess, and resume boundaries. Do not infer completion from hook returns or recover run identity from an unrelated session. Thetelemetrypreference skill remains exempt. - Coverage and attribution:
scripts/lib/mobileapp-hook-utils.jsdiscovers every user- or model-invocable top-level skill, includingtelemetry. Direct-read helpers withdisable-model-invocation: trueare not independently invoked and are excluded. Bare andmobile-app:-qualified names are both attributed; explicitly foreign plugin namespaces are excluded. - Session correlation: Stable host session ids pass through unchanged. Copilot CLI reports a transient
call_*id to nested-agent hooks, soresolveCopilotRootSessionIdinscripts/lib/mobile-telemetry.jsresolves it to the unique recent UUID session whose local~/.copilot/session-state/<uuid>/events.jsonlstructurally owns thatagentId, reading only a bounded tail. Keep host-specific quirks contained in that one function. The verified root is cached as one atomic 30-minute alias file per hashed call id so fresh hook processes reuse it; aliases hold no prompts, cwd, or tool arguments and are never transmitted. Missing, stale, malformed, or ambiguous state fails open to the original id, and Claude Code and Codex ids are not rewritten. - Privacy: Only the exact field schema enforced by
scripts/lib/mobile-telemetry-dispatcher.jsand disclosed in this plugin's README and telemetry skill is allowed. Verified environment, tenant, and organization IDs support adoption and support correlation; they are organization-identifying metadata. Mobile telemetry must never capture or transmit an Entra user/object ID, Dataverse UserId, username, email, or guessed home-account ID. Never send prompts, arguments, records, file contents, paths, URLs, credentials, names, hostnames, or raw errors. The dispatcher filters top-level and nested values before local logging and transmission; arbitraryeventInfoenrichment is forbidden. - Destination and controls: Mobile-owned
scripts/lib/mobile-telemetry-dispatcher.jsmaps shared events to the Power Appseventstream configured byscripts/lib/telemetry/ikey.json. The repositorydisabledswitch is a hard-off; user and CI opt-outs suppress transmission while preserving the local diagnostic mirror. - CI: Every Mobile Apps test job must set
POWER_PLATFORM_SKILLS_TELEMETRY_MOBILE_APP_OPTOUT=1. The single positive wire test clears that backstop only in its child process and routes the event toPOWER_PLATFORM_SKILLS_FAKE_HTTPS; all other positive tests remain opted out and exercise the local mirror.
Decisions made
- ✅ Markdown plan with Mermaid as the durable source, plus a living HTML plan and edit-progress page for user-visible status
- ✅ Architecture-first approval gates in the planner (data platform + native APIs + connectors → conditional Dataverse model → screen plan)
- ✅
/edit-appskill for post-generation app iteration: updates the approved plan delta, applies Dataverse/native/design/screen mutations, verifies, and refreshes preview output.--plan-onlyis the explicit docs-only escape hatch. - ✅ Single
/deployskill —npm run build+pa app push; no local native compile, no OTA in v0 - ✅ Connection model: per-environment connections, with platform-specific auth (
expo-msal-intuneon native,expo-auth-sessionon web) - ✅ Auth:
/create-mobile-appresolves the tenant from the selected Power Platform environment (scripts/resolve-environment.js), lists every tenant app registration visible to the signed-in Azure CLI user, evaluates the native runtime permission profile as one boolean, shows passing registrations first, and paginates the rest. The baseline requires Dynamics CRMuser_impersonationand Power Platform APIPowerApps.Apps.Read; when the approved plan contains non-Dataverse connectors, the checker also requires Azure API ConnectionsRuntime.Allplus the four Power Platform API connector read/write/user-consent scopes. The list uses self-contained✓ All required permissions configured/✗ Missing required permissionslabels; missing details appear after selection. Discovery is best-effort: any CLI, Graph, tenant, response, or permission-check failure immediately falls back to the original pasted-client-ID flow with status unavailable./set-app-registration-nativeinfers connector use from the persisted plan or nonemptypower.config.json.connectionReferencesand provides the same read-only discovery, verification, ranking, pagination, and fallback behavior. Power Apps Wrap remains the final authority for redirect platforms, packaging permissions, third-party-app allowlisting, and admin consent. - ✅
/add-nativev0 scope: camera, location, push, biometrics, secure-store (already in template) - ✅ Build documentation: every run writes
docs/create-app-plan.html- environment, requirements, architecture, a colour-coded Dataverse ER diagram, screen plan, design system, and live phase progress - in the Power Pages plan format. The page also carries a phone frame that advances from a building state to the live preview, where the user tries the app, to the device QR code. The folder survives the run so the app carries its own design record. - ✅ Cross-host Metro diagnostics: user-owned
npm run dev, port-probe liveness and stale-PID protection, sanitized project-local logs, a durable debug cursor, and read-onlystatusplus foreground-loopstopcommands - ✅ Template acquisition uses a verified exact package and lockfile; no default release is promoted until publication and both platforms' bases/players are verified.
- ✅
brand/directory convention:/design-system(/create-mobile-appStep 9) writesbrand/design-system.md(spec),brand/tokens.ts(importable Tamagui tokens), andbrand/design-system.html(visual gallery). Screen-builders MUST readbrand/design-system.mdif present;## Negatives= HARD RULES./create-mobile-appStep 9.2 importsbrand/tokens.tsviaskills/design-system/references/tamagui-integration.md. Projects withoutbrand/fall back to## Design Directiononly — no breakage. - ✅ Offline profile creation is configuration-only in v0.1 —
/setup-offline-profileand/enable-tables-offlinePOSTmobileofflineprofile/mobileofflineprofileitem/mobileofflineprofileitemassociationto Dataverse and writeoffline-profile.json. The template already bundles@microsoft/power-apps-native-offline, and@microsoft/power-apps-native-hostconsumes it for local SQLite access, queued synchronization, reconnect handling, and its status overlay. Skills configure that host runtime; they do not scaffold a second app-owned store, sync engine, queue, or duplicate offline UX. - ✅ Custom filter mode (
recorddistributioncriteria=3,profileitemrule→savedquery) is deferred to v0.5. v0.1 supports Related-rows-only / All-records / Organization-rows radio options only. - ✅
offline-profile-architectagent follows the existingmobile-app:namespace + status-code protocol (DONE/DONE_WITH_CONCERNS:/NEEDS_CONTEXT:/BLOCKED:). Read-only — proposes scope; never mutates Dataverse. Mutation lives in/setup-offline-profileafter the 3 gates. - ✅ Offline profile ↔ schema reconciliation across the lifecycle. Any schema change (
/add-dataverse,/setup-datamodel,/edit-app) reconciles an existing offline profile, and/deploygates the final push on offline coverage. Mechanism:scripts/offline-profile-delta.js— a purely LOCAL, no-network diff of.datamodel-manifest.json(schema) vsoffline-profile.json(offline coverage) reportingmissingTables+ new columns;status∈no-manifest/no-profile/in-sync/delta/error(exit 0 = ran, 1 = fatal). It is distinct fromverify-offline-profile.js, which is a Dataverse-network drift check of the snapshot vs the live published profile. Column delta is computed against a per-tableschemaColumnsbaseline (all schema columns present at reconciliation time), written by/setup-offline-profile,/add-table-to-offline-profile, and refreshed by/edit-offline-profile— NOT against the curatedselectedColumns, so deliberate exclusions aren't false-flagged; legacy snapshots without it degrade to table-only delta. The one canonical flow (prompt wording, reconcile ordering, deploy gate/override) lives inshared/references/offline-profile-reconciliation.md; the four skills reference it rather than duplicating it. Orchestrator-invoked/add-dataverse(--skip-planning) suppresses its own Step 8.5 so the orchestrator owns reconciliation once.
Maintaining This File
Once skills exist, keep this file updated with the current skills table and architecture notes for this plugin.