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…
Creates and configures web roles for a Power Pages code site. Web roles control access and permissions for site users, including authenticated and anonymous roles. Use when the user wants to create, add, set up, or manage web roles for their site.
$ npx -y skills add microsoft/power-platform-skills --skill create-webroles --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/create-webrolesContext preview
The summary Claude sees to decide when to auto-load this skill.
Creates and configures web roles for a Power Pages code site. Web roles control access and permissions for site users, including authenticated and anonymous roles. Use when the user wants to create, add, set up, or manage web roles for their site.
name: create-webroles description: >- Creates and configures web roles for a Power Pages code site. Web roles control access and permissions for site users, including authenticated and anonymous roles. Use when the user wants to create, add, set up, or manage web roles for their site. user-invocable: true allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList model: opus
> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.
Create web roles for a Power Pages code site. Web roles define the permissions and access levels for different types of site users.
> **Prerequisite:** The site must be deployed at least once before web roles can be created, since deployment creates the `.powerpages-site` folder structure that stores web role definitions.
**Initial request:** $ARGUMENTS
Inspect `$ARGUMENTS`. If the text contains the sentinel `[CALLED-BY-PARENT-SKILL]`, set an internal flag **caller-suppress = true** that downstream phases consult. The optional token `caller=<skill-name>` may follow the sentinel for diagnostic purposes (e.g. `caller=add-ai-webapi`); record it for the final summary but do not branch on it.
When the flag is set, skip every deploy prompt this skill would otherwise issue:
deploy now. Stop with a clear contract-violation message back to the caller — the caller was supposed to gate on this before invoking us.
reminder: skip both. The caller batches the single deploy decision at end-of-orchestration.
When the sentinel is absent, proceed exactly as today (full interactive flow). This is the regression guard — no human invocation changes behavior.
---
1. **Phase 1: Verify Site Structure** → Check for `.powerpages-site/web-roles/` directory 2. **Phase 2: Discover Existing Roles** → Read current web role YAML files 3. **Phase 3: Determine New Roles** → Analyze the site and ask the user what roles are needed 4. **Phase 4: Create Web Role Files** → Generate YAML files with UUIDs from the Node script 5. **Phase 5: Verify Web Roles** → Validate all created files exist, have valid UUIDs, and flags are correct 6. **Phase 6: Review & Deploy** → Present summary and proceed to deployment
---
**Goal**: Confirm the `.powerpages-site/web-roles/` directory exists and is ready for web role files
**Actions**:
1. Locate the project root (`**/powerpages.config.json`) and check for `.powerpages-site/web-roles/`.
<!-- gate: create-webroles:1.deploy-first | category=plan | cancel-leaves=nothing -->
> 🚦 **Gate (plan · create-webroles:1.deploy-first):** `.powerpages-site` missing — skill cannot proceed without that folder. Prompt to deploy first or stop. > > **Trigger:** Phase 1 found no `.powerpages-site` directory. > **Why we ask:** Web role YAML files written to a non-existent path will never get picked up by deploy; user thinks roles were created but they weren't. > **Cancel leaves:** Nothing — no YAML files written.
2. **If `.powerpages-site` does NOT exist:**
the calling skill should have gated on this folder existing before invoking us.
3. **If `.powerpages-site` exists but `web-roles/` does NOT:** Create the `<PROJECT_ROOT>/.powerpages-site/web-roles/` directory.
4. **If both exist:** Proceed to Phase 2.
**Output**: Confirmed `.powerpages-site/web-roles/` directory exists and is ready
---
**Goal**: Identify all web roles already defined for the site
**Actions**:
1. Read all YAML files in the `.powerpages-site/web-roles/` directory. Each file represents one web role with this format:
anonymoususersrole: false authenticatedusersrole: false id: 778fa3d0-a2ef-4d2b-98b8-e6c7d8ce1444 name: Administrators
2. Parse each file and compile a list of existing web roles (name, id, and flags).
3. Present the existing roles to the user:
> "I found the following existing web roles in your site:" > - **Administrators** (id: `778fa3d0-...`, authenticated: false, anonymous: false) > - *(etc.)*
4. If no roles exist yet, inform the user:
> "No web roles are currently defined for your site."
**Output**: Complete list of existing web roles with their names, IDs, and flags
---
**Goal**: Decide which new web roles to create based on site needs and user input
**Actions**:
<!-- gate: create
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.