원클릭으로
deploy
Use when the user wants to deploy / publish / push a Power Apps mobile app to a Power Platform tenant so others can run it.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when the user wants to deploy / publish / push a Power Apps mobile app to a Power Platform tenant so others can run it.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Use when the user wants to add a Power Platform connector to a mobile app and there is no dedicated /add-* skill for that connector (Dataverse and SharePoint have their own skills).
Use when the user wants to add a data source to a mobile app but hasn't said which kind (Dataverse table, SharePoint list, or other connector).
Use when the user wants to add Dataverse tables (existing or new) to a Power Apps mobile app, extend an existing Dataverse table with new columns, or apply an approved data model plan.
Internal implementation skill invoked by /add-native for camera, image picker, barcode scanner, QR scanner, and camera/gallery Dataverse artifact workflows.
Internal implementation skill invoked by /add-native for native background GPS tracking with durable storage and Dataverse sync using @microsoft/power-apps-native-bglocation.
Internal implementation skill invoked by /add-native for app-generated PDF report workflows using expo-print and, when present, expo-sharing.
| name | deploy |
| description | Use when the user wants to deploy / publish / push a Power Apps mobile app to a Power Platform tenant so others can run it. |
| user-invocable | true |
| allowed-tools | Read, Glob, Bash, AskUserQuestion |
| model | sonnet |
📋 Shared instructions: shared-instructions.md — read first.
Builds the mobile app in the current directory and pushes it to the Power Platform environment recorded in power.config.json.
This skill uses the standard 4-step deployment flow for this plugin: check memory bank, build, deploy, then update memory bank.
expo run:ios / expo run:android — local native compile is the user's choice; run your platform-specific native command directly when ready.npm run dev (= expo start) directly.Read memory-bank.md from the project root if present. Capture:
If absent, continue — the project may have been created without the plugin. Re-derive env from power.config.json if needed.
Print before starting:
"→ Building production web bundle via
npm run build(=expo export --platform web). ~30–90 seconds."
Prefer MCP if available — call expo.runScript("build"). It returns structured { success, errors, warnings } with parsed Metro / TS errors instead of raw stderr text, which lets the skill match failure recipes more reliably. See shared/references/expo-mcp.md.
Shell fallback — if expo.* tools are not available:
First regenerate connectorSchemas.ts so app/_layout.tsx's schemaMap import reflects every connector currently in .power/schemas/. The npm prestart/preandroid/preios hooks cover dev runs, but npm run build does not — if a connector was added since the last npm run dev, the bundled JS would ship a stale schema map. Always regenerate before build:
npm run generate-schemas
npm run build
If package.json has no build script, fall back to:
npx expo export --platform web
(That's what the upstream template's build script runs.)
If the build fails:
TS6133 (unused import) → remove the import and retry once.Verify dist/ exists with index.html before continuing.
Resolve and confirm the target environment FIRST. npx power-apps push deploys to the environment configured in power.config.json. Resolve that ID to a Dataverse URL so the user catches drift before pushing.
Run:
ENV_ID=$(node -e "console.log(require('./power.config.json').environmentId)")
node "${CLAUDE_SKILL_DIR}/../../scripts/resolve-environment.js" "$ENV_ID"
From resolve-environment.js capture the Environment URL (e.g. https://contoso.crm.dynamics.com/), Environment ID, and Tenant ID. Cross-check against memory-bank.md / power.config.json:
power.config.json by re-running init in the intended app root, or (b) explicitly type override to push to the environment already recorded in power.config.json. Do not proceed on a bare y.az login --tenant <env-tenant> instructions, or ask the user to provide the environment URL directly.Print before starting:
"→ Pushing bundle to Power Platform via
npx power-apps push. ~30–60 seconds."
Confirm with the user using the resolved env URL, not just the friendly name:
"Ready to deploy to (
<env-url>)? This will update the live app for every user in that environment. Typeyes deploy to <env-name>to confirm."
Wait for the exact phrase yes deploy to <env-name> (case-insensitive, env-name matching). A bare y / yes is not enough — too easy to fire on autopilot when the wrong env is active. Then:
npx power-apps push --non-interactive
Capture the app URL from the output if printed.
If deploy fails, report the error and STOP — do not retry silently. Common fixes:
| Error | Fix |
|---|---|
npx power-apps push auth error, wrong user, or multiple accounts | Follow shared-instructions command-failure handling. az login / az account set does not switch the standalone Power Apps CLI account. |
| Environment mismatch | Re-run npx power-apps init --display-name <name> --environment-id <id> --non-interactive in a fresh/app root for the intended target |
npx power-apps push not recognised | Run npm install in the project so @microsoft/power-apps provides the CLI, or install @microsoft/power-apps-cli only as a last-resort prerequisite after user confirmation. |
If memory-bank.md exists, increment the version (v1.0.0 → v1.1.0) and update:
| v1.1.0 | <timestamp> | deploy | success |Print the summary card:
✅ Deploy — <project-name>
─────────────────────────────────────────────
Version : <new-version>
Environment : <env-name>
App URL : <url or "see make.powerapps.com">
Bundle path : dist/
Local dev: npm run dev (= expo start, web preview + QR)
Re-deploy: /deploy
List conns: /list-connections
─────────────────────────────────────────────
When the user wants to iterate locally, they run directly:
npm run dev # = expo start → Metro + web preview + QR for native dev clients
This launches Metro and prints a QR code. They can:
w for web preview in browserr to reload, j to open the debugger, m for the dev menuDev loop with expo-mcp: when Metro is running, the agent can call expo.runDoctor() to read live runtime errors from the connected app, edit the offending code, and Metro hot-reloads automatically. The user owns the Metro process; the agent never starts or stops it. See shared/references/expo-mcp.md.
If they want to compile a native binary locally, they run the platform-specific native command directly. Native capabilities and mobile UX must be validated in a native dev client on device/simulator.
shared/version-check.md — min versions (only Always-required tier matters here)shared/memory-bank.md — Build history schema