No slash command · from power-platform-full-stack
Shared prerequisite steps for Dataverse OData Web API skills. Covers PAC CLI and Azure CLI authentication, token acquisition, environment URL extraction, and token refresh patterns.
Ships in power-platform-full-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Shared prerequisite steps for all skills that interact with the Dataverse OData Web API (v9.2). Complete these steps before creating tables, inserting records, or making any Dataverse API call.
Used by: dataverse-solution-web-api, power-apps-code-apps, power-pages, and any future skill that needs Dataverse API access.
pac auth create --deviceCode to avoid browser profile conflicts.pac env who and az account get-access-token.../dataverse-solution-web-api/resources/safety-guardrails.md for the full irreversible operations table, confirmation protocol, bulk operation safety, and prompt injection protection.Check each tool independently. If any are missing, install them before proceeding.
| Tool | Check Command | Install (winget) | Fallback Install |
|---|---|---|---|
| PAC CLI | pac (prints version banner; pac --version is NOT valid) | winget install Microsoft.PowerAppsCLI | dotnet tool install --global Microsoft.PowerApps.CLI.Tool |
| .NET SDK | dotnet --version | winget install Microsoft.DotNet.SDK.9 | https://dotnet.microsoft.com/download |
| Azure CLI | az --version | winget install Microsoft.AzureCLI | https://aka.ms/installazurecliwindows |
| Git | git --version | winget install Git.Git | https://git-scm.com/downloads |
After any winget install, the tool may not be in PATH until the terminal is restarted.
If pac is not found after install, check these locations:
# winget install location (most common)
Test-Path "$env:LOCALAPPDATA\Microsoft\PowerAppsCLI\pac.exe"
# dotnet tool install location
Test-Path "$env:USERPROFILE\.dotnet\tools\pac.exe"
Add the found directory to PATH or use the full path in scripts.
Run pac env who to verify the user is authenticated and get the current environment URL:
pac env who
Extract the Environment URL (e.g., https://org12345.crm.dynamics.com). Store as $envUrl.
If pac env who fails: The user needs to authenticate first:
pac auth create --deviceCode
Then select the target environment:
pac env select --environment <environment-id-or-url>
Developers often work across multiple environments (dev, test, staging, prod). Never assume the active PAC auth profile is correct for the current task.
pac auth list to show all profilespac auth select --name <profile-name> to switchdev, staging, prod)Before the first operation that touches a specific environment (creating tables, importing solutions, inserting data), you MUST:
<URL>. Is this the correct target environment?"pac org who to verify the active connection matchesDo not proceed until the user explicitly confirms. This is the single most important safety check — skipping it risks making irreversible changes to the wrong environment.
Once confirmed for a session, you do not need to re-confirm for every subsequent operation against the same environment.
Get an access token for the Dataverse environment:
$token = az account get-access-token --resource "$envUrl" --query accessToken -o tsv
If az fails: Tell the user to run az login first.
Build the standard headers for all subsequent API calls:
$headers = @{
Authorization = "Bearer $token"
"Content-Type" = "application/json"
Accept = "application/json"
"OData-MaxVersion" = "4.0"
"OData-Version" = "4.0"
}
Make a lightweight test request to confirm the token works:
Invoke-RestMethod -Uri "$envUrl/api/data/v9.2/WhoAmI" -Headers $headers
If this returns a valid response with UserId, OrganizationId, and BusinessUnitId, proceed.
If it returns:
Azure CLI tokens expire after ~60 minutes. Refresh before each major operation step or every 20 records:
$token = az account get-access-token --resource "$envUrl" --query accessToken -o tsv
$headers["Authorization"] = "Bearer $token"
Before creating any schema, discover the publisher prefix for the target solution:
$solution = Invoke-RestMethod -Uri "$envUrl/api/data/v9.2/solutions?`$filter=uniquename eq '<solution-name>'&`$select=_publisherid_value" -Headers $headers
$publisherId = $solution.value[0]._publisherid_value
$publisher = Invoke-RestMethod -Uri "$envUrl/api/data/v9.2/publishers($publisherId)?`$select=customizationprefix" -Headers $headers
$prefix = $publisher.customizationprefix # e.g., "cr123"
This prefix is required for all table and column SchemaName values.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub scottdurow/power-platform-full-stack-skills --plugin power-platform-full-stack16 skills in this plugin
/browser-automationInteractive browser automation and visual validation using Playwright MCP server and GitHub Copilot Agent Mode. Creates a bridge between the agent and a live browser session (including authenticated user context), with optional scripted Playwright test generation for repeatable checks. Triggers on "browser automation", "interactive browser", "playwright mcp", "test the ui", "ui test", "visual test", "visual regression", "check interface", "deployment smoke test", "post-deploy validation", "config validation"./code-reviewDeep code audit and technical review skill. Handles code audits (dead wiring, silent failures, stubs, bloat), architecture decisions, security audits, feature design reviews, refactoring plans, and deployment strategy reviews. Produces actionable reports with file:line references grouped by severity, or structured decision documents with trade-off analysis. Triggers on "code review", "audit the code", "review the code", "find dead code", "find placeholders", "check for stubs", "prune the code", "code cleanup", "implementation review", "completeness check", "find unused code", "architecture decision", "security audit", "design review", "refactoring plan", "deployment review", "team review", "review team", "collaborative review"./dataverse-data-reviewComprehensive Dataverse data model reviewer and critic. Evaluates proposed schemas against 74+ rules covering naming, normalization, data types, business rules, evolvability, and platform-specific best practices. Produces structured assessments with actionable feedback. Triggers on "review my data model", "critique this schema", "is my Dataverse design correct", "data model review", "schema review", "evaluate my tables", "check my data model", "Dataverse best practices review", "normalization check"./dataverse-solution-web-apiExpert guidance for the Microsoft Dataverse Web API metadata and schema management. Programmatically create tables, columns, relationships, forms, views, app modules, and sitemaps using OData v4.0 RESTful endpoints. Treats application structure as code. Also covers the Dataverse MCP server for natural language queries and CRUD via GitHub Copilot. Triggers on "dataverse api", "web api", "create table", "EntityDefinitions", "AttributeMetadata", "RelationshipDefinitions", "POST /EntityDefinitions", "PublishXml", "dataverse schema", "programmatic schema", "api metadata", "dataverse mcp", "mcp server", "dataverse mcp server", "@microsoft/dataverse", "mcp setup", "mcp dataverse"./ioc-development-patternInversion of Control (IoC) development pattern for building apps with in-memory test data first, then swapping to real data sources. Covers service interfaces, domain models with DTOs, in-memory implementations, service registry, React Query (TanStack Query) integration with cache invalidation, error handling, and incremental backend migration. Triggers on "IoC", "inversion of control", "in-memory data", "mock data", "test data first", "service interface", "swap implementation", "local development pattern", "dev without dataverse", "dev without database", "develop locally", "mock service", "in-memory service", "service abstraction", "data service pattern", "service layer", "react query", "tanstack query", "query key factory", "cache invalidation", "optimistic update", "domain model", "dto pattern"./power-apps-code-appsExpert guidance for building Power Apps Code Apps (standalone React/Vue/TypeScript web applications on Power Platform). Covers the full end-to-end workflow from planning through deployment with preflight checks and completion checklists at every phase. Includes @microsoft/power-apps SDK, authentication, Dataverse integration, Azure SQL integration, IoC service layer, deep linking, and best practices. Triggers on "code app", "power apps code", "custom page", "react power apps", "vue power apps", "@microsoft/power-apps", "getContext", "code component", "standalone app", "power apps frontend", "azure sql", "shared_sql", "stored procedure", "sql connector", "build a code app", "code app end to end", "new code app project", "scaffold code app", "code app from scratch", "full code app workflow", "deep link", "hideNavBar", "open code app from MDA", "code app iframe", "code app navigation".Other plugins' skills for the same job