From code-apps-preview
Builds (npm run build) and deploys Power Apps code apps to Power Platform using pac code push. Handles TS errors, user confirmation, Mac auth fallback, and memory bank updates.
npx claudepluginhub microsoft/power-platform-skills --plugin code-apps-previewThis skill is limited to using the following tools:
**๐ Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
Creates React and Vite code apps for Power Apps. Scaffolds projects, checks prerequisites like Node.js and pac CLI, authenticates, builds, and deploys to Power Platform.
Guides deployment of existing Power Pages code sites to environments using PAC CLI. Verifies tooling, authenticates, confirms targets, builds, and uploads.
Creates, updates, and deploys Power Apps generative pages for model-driven apps using React 17, TypeScript, Fluent UI V9, and PAC CLI. Useful for building or updating pages in Power Apps.
Share bugs, ideas, or general feedback.
๐ Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Builds and deploys the app in the current directory to Power Platform.
Check for memory-bank.md in the project root. If found, read it for the project name, environment, and current version. If not found, proceed โ the project may have been created without the plugin.
npm run build
If the build fails:
Verify dist/ exists with index.html before continuing.
Ask the user: "Ready to deploy to [environment name]? This will update the live app." Wait for explicit confirmation before proceeding.
pwsh -NoProfile -Command "pac code push"
Capture the app URL from the output if present.
If deploy fails, report the error and stop โ do not retry silently. Common fixes are in the troubleshooting guide:
pwsh -NoProfile -Command "pac auth create"pwsh -NoProfile -Command "pac env select --environment <id>"Mac fallback โ if pac code push fails with an auth error on macOS:
pac has known authentication bugs on Mac that can block the push. Use the npx CLI instead:
npm install -g @microsoft/power-apps-cli # skip if already installed
npx power-apps push
This is functionally equivalent to pac code push and bypasses the Mac auth issue.
If memory-bank.md exists, increment the version (e.g., v1.0.0 โ v1.1.0) and update: