Power Apps 应用部署
deploy
构建并将 Power Apps 代码应用部署到 Power Platform。在部署变更、重新部署现有应用或推送更新时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.1k
- Forks
- 232
01 前言 Front Matter
- name
- deploy
- model
- sonnet
- description
- Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.
- allowed-tools
- Read, Edit, Write, Grep, Glob, Bash
- user-invocable
- true
03 SKILL.md 正文
? Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Deploy
Builds and deploys the app in the current directory to Power Platform.
Workflow
- Check Memory Bank → 2. Build → 3. Deploy → 4. Update Memory Bank
Step 1: Check Memory Bank
Check for memory-bank.md in the project root. If found, read it for the project name and environment. If not found, proceed — the project may have been created without the plugin.
Step 2: Build
npm run build
If the build fails:
- TS6133 (unused import): Remove the unused import and retry.
- Other TypeScript errors: Report the error with the file and line number and stop. Do not deploy a broken build.
Verify dist/ exists with index.html before continuing.
Step 3: Deploy
Ask the user: "Ready to deploy to [environment name]? This will update the live app." Wait for explicit confirmation before proceeding.
Resolve the CLI first (see cli-binary.md): run as
$PA app push(npx --no-install pa …), never a barepa. Onpower-apps-only projects, translate topower-apps push.
pa app push
Capture the app URL from the output if present.
If deploy fails, report the error and stop — do not retry silently. Common fixes:
- Auth error / token expired →
pa auth logout(orpower-apps logoutonpower-apps-only projects), then retry — the CLI will re-prompt browser login. - Environment mismatch → update
environmentIdinpower.config.jsonto the correct value and retry.
Step 4: Update Memory Bank
If memory-bank.md exists, update:
- Last deployed timestamp
- App URL (if captured)
04 同仓库更多 Skills
compare-site-configurations
Compare Power Pages site configurations between two environments, such as dev, test and production, or between a local download and the live site, and explain which differences change site behavior. Use when a site works in one environment but not another (for example, works in dev but fails in test), to check configuration drift before promoting or deploying, or to see what changed between two sites. Produces a shareable HTML report and a JSON file that VS Code can import.
Process Intelligence 配置与登录
setup
当 Process Intelligence 需要搭建、显式的云/账户/环境配置、登录、连接诊断,或从认证错误中恢复时使用。
流程智能问题报告撰写
report-issue
当用户需要针对失败操作起草流程智能(Process Intelligence)缺陷报告或支持摘要时使用。
流程挖掘问题调查
investigate-process
当需要从多个分析视角调查宽泛的流程挖掘(Process Mining)业务问题、观察到的模式或相互竞争的解释时使用。
派生指标计算
derive-metric
当所需的度量指标缺失、需要复用已保存的自定义指标,或需要临时公式或派生标量时使用。
流程队列对比分析
compare-cohorts
用于在统一的定义下比较流程队列(cohort)、部门、时间段或前后结果。