Skip to main content
skill CX Codex

deploy · microsoft, code-apps — Claude Code skill: what it does, how to install

Builds and pushes Power Apps code apps directly to Power Platform. Useful when shipping updates or redeploying an existing project from Claude Code.

MIT ★ 1,167 updated 2026-10-29

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add microsoft/power-platform-skills
/plugin install code-apps-preview@power-platform-skills
Open on GitHub

What deploy does

This skill coordinates the full deployment cycle from the current directory. It starts by inspecting memory-bank.md to locate the project name and target environment. It then executes npm run build. If compilation hits TS6133 unused import warnings, the skill cleans them up automatically and retries. Any other TypeScript failure halts the process with file and line markers.

The deployment step runs via $PA app push or power-apps push. The skill always requests explicit confirmation before touching the live app. Expired credentials trigger guidance to run pa auth logout for browser re-authentication, while mismatched targets require updating environmentId inside power.config.json.

Once finished, the skill saves the captured app URL and timestamp into memory-bank.md. The workflow refuses to deploy if dist/index.html is absent after building.

What it helps with

  • build Power Apps projects with automated cleanup for unused imports
  • push application updates to target Power Platform environments
  • store deployment timestamps and application URLs in memory-bank.md
  • recover from CLI authentication timeouts using pa auth logout

Example prompts for the agent

  • Deploy the current Power Apps project to Power Platform
  • Build and push latest code changes to the live environment
  • Redeploy the application and record details in memory-bank.md

How to install deploy

1Plugin marketplace

/plugin marketplace add microsoft/power-platform-skills
/plugin install code-apps-preview@power-platform-skills

This installs the whole code-apps-preview plugin with all its skills

2Skills CLI (Vercel)

npx skills add microsoft/power-platform-skills --skill deploy -a claude-code

3Manually: put the files in place

~/.claude/skills/deploy/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/deploy/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about deploy

How to install deploy in Claude Code?

Run both marketplace commands in sequence: /plugin marketplace add microsoft/power-platform-skills and then /plugin install code-apps-preview@power-platform-skills.

What does the deploy skill do?

It compiles code via npm run build, asks for user approval, and pushes the application to Power Platform using the dedicated CLI.

How does deploy handle build errors?

It silently fixes TS6133 unused imports and retries. For any other TypeScript compilation issue, it reports the exact file and line before stopping immediately.

Source text

SKILL.md · MIT
---
name: deploy
description: Builds and deploys a Power Apps code app to Power Platform. Use when deploying changes, redeploying an existing app, or pushing updates.
user-invocable: true
allowed-tools: Read, Edit, Write, Grep, Glob, Bash
model: sonnet
---

**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.

# Deploy

Builds and deploys the app in the current directory to Power Platform.

## Workflow

1. 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

```bash
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](${PLUGIN_ROOT}/shared/cli-binary.md)): run as `$PA app push` (`npx --no-install pa …`), never a bare `pa`. On `power-apps`-only projects, translate to `power-apps push`.

```bash
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` (or `power-apps logout` on `power-apps`-only projects), then retry — the CLI will re-prompt browser login.
- Environment mismatch → update `environmentId` in `power.config.json` to the correct value and retry.

### Step 4: Update Memory Bank

If `memory-bank.md` exists, update:

- Last deployed timestamp
- App URL (if captured)

© Microsoft · MIT · microsoft/power-platform-skills

Similar skills

All skills for Cloud: AWS, Azure, GCP →

deploy by other authors comes first.

deploy adobe Turns styled, page-based HTML prototypes into Edge Delivery Services blocks and pages, then deploys them through DA. CX Codex +1 340installs deploy shipshitdev Runs web app deployments to staging and production. It triggers on deployment prompts and enforces pre-deploy quality gates. CX Codex +1 104installs deploy vercel This skill sends an app to Vercel as a production or preview deployment. Use it when you want an agent to handle the deployment flow from your project. CX Codex +1 22installs deploy Railway This Claude Code skill deploys local code to Railway with railway up. It activates for requests to ship changes or watch a build. CX Codex +1 126installs deploy pedrohcgs The deploy skill renders Quarto slides as HTML and syncs the output to docs/ for GitHub Pages. Use it when edited slides are ready to publish. CX Codex +1 ★ 1,729repo stars platform-destructive-deploy forcedotcom The platform-destructive-deploy Claude Code skill removes metadata from a Salesforce org through a destructive deploy. It activates for requests to delete an object, field, Apex class, or other org component. CX Codex +1 2,900installs platform-quick-deploy forcedotcom platform-quick-deploy deploys validated metadata to a Salesforce Production org without re-running tests. Helpful when shipping validated packages directly to live environments. CX Codex +1 2,800installs aracli-deploy-management reason-machines aracli-deploy-management is a Claude Code skill for planning deployments of OpenClaw-compatible AI agents. It compares infrastructure choices and management interfaces. CX Codex +1 1,200installs power-apps-code-app-scaffold official github power-apps-code-app-scaffold scaffolds a Power Apps Code App using React and TypeScript. Use it to start a project with a Power Platform connector. CX Codex +1 8,700installs alibabacloud-ecs-code-deploy aliyun alibabacloud-ecs-code-deploy deploys application code or AI agents to Alibaba Cloud ECS using appmanager, handling pre-checks, pricing estimates, and log checks. CX Codex +1 277installs power-apps-code-apps official github Guides GitHub Copilot on Power Apps Code Apps standards using TypeScript, React, and Vite. Enforces correct SDK usage, PAC CLI structures, and Power BI embedding. CX Codex +1 ★ 41,430repo stars

From the same set157

The whole set →
open-wrap-url open-wrap-url opens the Power Apps Wrap page for a given app in the browser. Builds the URL from app and environment IDs, delegates browser launch to the OS. CX Codex +1 ★ 1,167repo stars report-issue report-issue drafts Process Intelligence bug reports and support summaries for failed operations without exposing sensitive data. CX Codex +1 ★ 1,167repo stars list-connections list-connections — a Claude Code skill that retrieves all Power Platform connections in your current environment. Pull the connection ID before adding a data source connector to your app. CX Codex +1 ★ 1,167repo stars telemetry Sets whether the Power Apps Mobile Extension skills send usage telemetry: on, off or status. Useful when you want out of collection or a quick look at the current setting. CX Codex +1 ★ 1,167repo stars add-teams The add-teams skill connects Microsoft Teams to a Power Apps code app and helps configure chat messages or channel posts. CX Codex +1 ★ 1,167repo stars analytics analytics is a Claude Code skill that routes Process Mining queries, shows process and event/variant metrics, and loads a specialist skill for deeper analysis. CX Codex +1 ★ 1,167repo stars canvas-create-screens canvas-create-screens organizes approved functional requirements into task-focused screens, states, and navigation paths for Canvas apps before UI control selection. CX Codex ★ 1,167repo stars telemetry telemetry is a Claude Code skill that toggles power-automate telemetry or reports its setting. It responds to requests to change the setting or inspect it. CX Codex +1 ★ 1,167repo stars

Project sponsors

Companies that keep this analytics open