add-data-source
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue. USE WHEN the user asks to…
Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI. Handles tooling verification, authentication, environment confirmation, building, and uploading. Use when the user wants to deploy, upload, or publish their code site.
$ npx -y skills add microsoft/power-platform-skills --skill deploy-site --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/deploy-siteContext preview
The summary Claude sees to decide when to auto-load this skill.
Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI. Handles tooling verification, authentication, environment confirmation, building, and uploading. Use when the user wants to deploy, upload, or publish their code site.
name: deploy-site description: >- Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI. Handles tooling verification, authentication, environment confirmation, building, and uploading. Use when the user wants to deploy, upload, or publish their code site. user-invocable: true allowed-tools: Read, Bash, AskUserQuestion, Glob, Grep, TaskCreate, TaskUpdate, TaskList model: sonnet
> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.
Guide the user through deploying an existing Power Pages code site to a Power Pages environment using PAC CLI. Follow a systematic approach: verify tooling, authenticate, confirm the target environment, build and upload the site, and handle any blockers.
**Initial request:** $ARGUMENTS
---
**Goal**: Ensure PAC CLI is installed and available on the system PATH
**Actions**:
1. Create todo list with all 6 phases (see [Progress Tracking](#progress-tracking) table) 2. Run `pac help` to check if the PAC CLI is installed and available on the system PATH.
pac help
3. **If the command succeeds**: PAC CLI is installed. Proceed to Phase 2.
4. **If the command fails** (command not found / not recognized):
1. Inform the user that PAC CLI is required but not installed. 2. Fetch installation instructions from `https://aka.ms/PowerPlatformCLI` using the following approach:
dotnet tool install --global Microsoft.PowerApps.CLI.Tool
3. After installation, verify by running `pac help` again. 4. If it still fails, stop and ask the user to resolve the installation manually.
**Output**: PAC CLI installed and verified
---
**Goal**: Ensure the user is authenticated with PAC CLI and has a valid session
**Actions**:
1. Run `pac auth who` to check the current authentication status.
pac auth who
2. **If authenticated**: Extract the following values from the output:
Proceed to Phase 3.
3. **If not authenticated**:
1. Inform the user they are not authenticated with PAC CLI.
<!-- not-a-gate: free-text env URL fallback when PAC CLI auth is missing — data-gathering, no destructive action -->
2. Use `AskUserQuestion` to ask for the environment URL:
| Question | Header | Options | |----------|--------|---------| | You are not authenticated with PAC CLI. Please provide your Power Pages environment URL (e.g., `https://org12345.crm.dynamics.com`) so I can authenticate you. | Auth | *(free text input via "Other")* |
Provide two placeholder options to guide the user:
3. Once the user provides the URL, run the authentication command:
pac auth create --environment "<USER_PROVIDED_URL>"
This will open a browser window for the user to sign in.
4. After the command completes, verify by running `pac auth who` again. 5. If authentication succeeds, proceed to Phase 3. 6. If authentication fails, present the error to the user and help them troubleshoot.
**Output**: Authenticated PAC CLI session with environment name and URL extracted
---
**Goal**: Ensure the user is deploying to the correct target environment
**Actions**:
<!-- gate: deploy-site:3.confirm-env | category=consent | cancel-leaves=nothing -->
> 🚦 **Gate (consent · deploy-site:3.confirm-env):** Echo the current environment and require explicit confirmation before any upload. Covers the follow-up "pick a different env" sub-prompt in the same section — wrong-env deploys are the #1 destructive shared-state failure for this skill, so this gate must fire even when PAC CLI shows a recognizable env. > > **Trigger:** Phase 3 entry; environment resolved from PAC CLI. > **Why we ask:** Site uploaded to wrong tenant / wrong env — committed to a Dataverse instance the user did not intend; cleanup requires manual deletion or another deploy from a different env. > **Cancel leaves:** Nothing — no upload fired.
1. Present the current environment information to the user and ask them to confirm.
Use `AskUserQuestion` with the following structure:
| Question | Header | Options | |----------|--------|---------| | You are currently connected to environment: **<ENV_NAME>** (<ENV_URL>). Do you want to deploy to this environment? | Environment | Yes, use this environment, No, let me choose a different one |
2. **If "Yes, use this environment"**: Proceed to Phase 4.
3. **If "No, let me choose a different one"**:
1. Run `pac org list` to retrieve all available environments:
Official agent skills/plugins for Power Platform development by Microsoft.
Repo: microsoft/power-platform-skills
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue. USE WHEN the user asks to…
Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation, direct targeted edits, complex…
Configure the Canvas Authoring MCP server for the current coauthoring session. USE WHEN "configure MCP", "set up MCP server", "MCP not working", "connect…
Use this skill when the user wants to "report a bug", "file an issue", "report an issue", "submit a bug report", or report any problem with the canvas-apps…
Adds Azure DevOps connector to a Power Apps code app. Use when querying work items, creating bugs, managing pipelines, or making ADO API calls.
Adds any Power Platform connector to a Power Apps code app. Generic fallback for connectors not covered by a specific skill.