A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
Migrate plugins to Open Plugins format (#188)
Priyanshu Agrawalf00117952161
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsondeleted file mode 100644index 91e4a7e90..000000000--- a/.claude-plugin/marketplace.json+++ /dev/null@@ -1,81 +0,0 @@-{- "name": "power-platform-skills",- "owner": {- "name": "Microsoft"- },- "metadata": {- "description": "Plugins for Power Platform development with Claude Code and GitHub Copilot"- },- "plugins": [- {- "name": "power-pages",- "source": "./plugins/power-pages",- "description": "Power Pages development and management plugin for Claude Code and GitHub Copilot",- "category": "development",- "tags": [- "power platform",- "power pages",- "microsoft power platform",- "microsoft"- ]- },- {- "name": "model-apps",- "source": "./plugins/model-apps",- "description": "Build and deploy generative pages for Power Apps model-driven apps",- "category": "development",- "tags": [- "power platform",- "power apps",- "model-driven apps",- "generative pages",- "genux",- "microsoft"- ]- },- {- "name": "mcp-apps",- "source": "./plugins/mcp-apps",- "description": "Generate MCP App widgets for MCP tools",- "category": "development",- "tags": [- "mcp",- "mcp-apps",- "widget",- "power platform",- "microsoft"- ]- },- {- "name": "canvas-apps",- "source": "./plugins/canvas-apps",- "description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server",- "category": "development",- "tags": [- "power platform",- "power apps",- "canvas apps",- "pa-yaml",- "msapp",- "connectors",- "microsoft"- ]- },- {- "name": "code-apps-preview",- "source": "./plugins/code-apps",- "description": "Build and deploy Power Apps code apps using React, Vite, and Power Platform connectors",- "category": "development",- "tags": [- "power platform",- "power apps",- "code apps",- "react",- "vite",- "dataverse",- "connectors",- "microsoft"- ]- }- ]-}diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonnew file mode 120000index 000000000..787ab60b0--- /dev/null+++ b/.claude-plugin/marketplace.json@@ -0,0 +1 @@+../marketplace.json\ No newline at end of filediff --git a/.claude/settings.json b/.claude/settings.jsonindex 7f667df63..87f30aed9 100644--- a/.claude/settings.json+++ b/.claude/settings.json@@ -21,9 +21,7 @@"Bash(dir:*)","Read","Write",- "Edit",- "mcp__playwright__*",- "mcp__*__browser_*"+ "Edit"]}}diff --git a/.github/workflows/validate-repository-metadata.yml b/.github/workflows/validate-repository-metadata.ymlindex cb72e74dc..15bedab8a 100644--- a/.github/workflows/validate-repository-metadata.yml+++ b/.github/workflows/validate-repository-metadata.yml@@ -19,8 +19,11 @@ jobs:with:node-version: 20- - name: validate-kebab-case-plugin-names+ - name: validate-open-plugin-namesrun: node scripts/validate-plugin-names.js+ - name: validate-legacy-compatibility+ run: node scripts/validate-legacy-compatibility.js+- name: validate-skill-descriptionsrun: node scripts/validate-skill-descriptions.jsdiff --git a/AGENTS.md b/AGENTS.mdindex 6f4ca0db3..747c01e0c 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -4,18 +4,21 @@ This file provides guidance to AI Agents when working with code in this reposito## What This Repo Is-A **plugin marketplace** for Power Platform development by Microsoft. The marketplace manifest (`.claude-plugin/marketplace.json`) references individual plugins in `plugins/`. Each plugin has its own `AGENTS.md` with plugin-specific guidance.+A **plugin marketplace** for Power Platform development by Microsoft. The Open Plugins marketplace manifest (`marketplace.json`) references individual plugins in `plugins/`. Each plugin has its own `AGENTS.md` with plugin-specific guidance.## Repository Structure```power-platform-skills/-├── .claude-plugin/-│ └── marketplace.json # Marketplace manifest (lists all available plugins)+├── marketplace.json # Open Plugins marketplace manifest (lists all available plugins)+├── .claude-plugin/ # Legacy symlinks for existing subscriptions+│ └── marketplace.json├── plugins/ # Directory containing individual plugins│ └── <plugin-name>/ # Individual plugin (e.g., power-pages)-│ ├── .claude-plugin/+│ ├── .plugin/│ │ └── plugin.json # Plugin manifest+│ ├── .claude-plugin/+│ │ └── plugin.json # Legacy manifest mirror│ ├── AGENTS.md # Plugin-specific development guidelines│ ├── agents/ # Agent persona files│ ├── commands/ # Command entry points@@ -42,7 +45,8 @@ No root-level build, lint, or test commands exist. Build/test tooling lives insiEach plugin follows this structure:-- `.claude-plugin/plugin.json` — Plugin metadata (name, version, keywords)+- `.plugin/plugin.json` — Open Plugins metadata (name, version, keywords)+- `.claude-plugin/plugin.json` — legacy symlink to `.plugin/plugin.json` kept for existing subscriptions- `.mcp.json` — MCP server configuration (optional)- `agents/` — Agent definitions (`.md` files with YAML frontmatter)- `skills/` — Skill definitions, each in its own subdirectory with a `SKILL.md`@@ -61,7 +65,7 @@ Skills that apply to all plugins live in `shared/skills/<skill-name>/`. The work- `plugins/<plugin>/skills/<skill-name>/SKILL.md` — Per-plugin wrapper generated from the template above- `plugins/<plugin>/skills/<skill-name>/<workflow>.md` — Symlink to the shared workflow when the plugin must work after installing only its own plugin directory-This keeps the skill discoverable in each plugin while preserving install-time portability. Marketplace installs copy only the plugin directory, so per-plugin wrappers must not reference repo-root `shared/` paths at runtime. Instead, point the wrapper at `${CLAUDE_PLUGIN_ROOT}/skills/<skill-name>/<workflow>.md` and keep a symlink from that per-plugin path to the repo-root shared workflow; marketplace installers dereference same-marketplace symlinks into the installed plugin cache. When updating a shared skill, edit the workflow file and/or `SKILL.template.md` in `shared/`, then update the per-plugin wrappers (frontmatter + bundled workflow reference, with `{{PLUGIN_NAME}}` substituted) and ensure any per-plugin symlinks still resolve under `plugins/<plugin>/skills/<skill-name>/`. Commit the shared source and per-plugin symlinks together.+This keeps the skill discoverable in each plugin while preserving install-time portability. Marketplace installs copy only the plugin directory, so per-plugin wrappers must not reference repo-root `shared/` paths at runtime. Instead, point the wrapper at `${PLUGIN_ROOT}/skills/<skill-name>/<workflow>.md` and keep a symlink from that per-plugin path to the repo-root shared workflow; marketplace installers dereference same-marketplace symlinks into the installed plugin cache. When updating a shared skill, edit the workflow file and/or `SKILL.template.md` in `shared/`, then update the per-plugin wrappers (frontmatter + bundled workflow reference, with `{{PLUGIN_NAME}}` substituted) and ensure any per-plugin symlinks still resolve under `plugins/<plugin>/skills/<skill-name>/`. Commit the shared source and per-plugin symlinks together.## Shared Telemetry@@ -90,6 +94,17 @@ This opt-out suppresses **transmission only** (the local diagnostic mirror is stCurrent adopters: `power-pages`. Others adopt on demand.+## Legacy Marketplace Compatibility++Keep the root `.claude-plugin/marketplace.json` as a symlink to+`../marketplace.json`, and keep each plugin's `.claude-plugin/plugin.json` as a+symlink to `../.plugin/plugin.json`. The shared root marketplace must stay+dual-compatible: use repository-root-relative plugin `source` paths and preserve+legacy `category`/`tags` fields alongside Open Plugins metadata. Existing+marketplace subscriptions may still resolve the legacy paths during auto-update,+so removing or drifting these files can force users to reinstall. Run+`node scripts/validate-legacy-compatibility.js` after metadata changes.+## Code Conventions**DRY (Don't Repeat Yourself):** Never duplicate logic across files. Each plugin has shared utilities (e.g., `scripts/lib/`) and shared reference docs (e.g., `references/`). Always check for and reuse existing helpers before writing new code. When adding shared logic, put it in the plugin's shared modules — not in individual skill directories.diff --git a/README.md b/README.mdindex ed97c0740..3ef33c24e 100644--- a/README.md+++ b/README.md@@ -46,7 +46,8 @@ If you prefer to install manually, run these commands inside a Claude Code or Gi```bash/plugin install power-pages@power-platform-skills/plugin install model-apps@power-platform-skills- /plugin install code-apps@power-platform-skills+ /plugin install mcp-apps@power-platform-skills+ /plugin install code-apps-preview@power-platform-skills/plugin install canvas-apps@power-platform-skills```@@ -64,6 +65,12 @@ Build and deploy Power Apps generative pages for model-driven apps.**Stack**: React + TypeScript + Fluent, deployed via PAC CLI+### [MCP Apps](plugins/mcp-apps/README.md) (`plugins/mcp-apps`)++Generate interactive MCP App widgets for MCP tools.++**Stack**: HTML widgets using the MCP Apps protocol+### [Code Apps](plugins/code-apps/AGENTS.md) (`plugins/code-apps`)Build and deploy Power Apps code apps connected to Power Platform via connectors.@@ -86,6 +93,7 @@ To develop and test plugins locally, follow these steps:```bashclaude --plugin-dir /path/to/power-platform-skills/plugins/power-pagesclaude --plugin-dir /path/to/power-platform-skills/plugins/model-apps+ claude --plugin-dir /path/to/power-platform-skills/plugins/mcp-appsclaude --plugin-dir /path/to/power-platform-skills/plugins/code-appsclaude --plugin-dir /path/to/power-platform-skills/plugins/canvas-apps```@@ -155,32 +163,41 @@ See the [Copilot CLI docs](https://docs.github.com/en/copilot/how-tos/use-copilo```textpower-platform-skills/-├── .claude-plugin/-│ └── marketplace.json # Marketplace manifest (lists all plugins)+├── marketplace.json # Open Plugins marketplace manifest (lists all plugins)+├── .claude-plugin/ # Legacy marketplace shim for existing subscriptions+│ └── marketplace.json├── .claude/│ └── settings.json # Auto-allowed tools (pac, node, dotnet, etc.)├── plugins/│ ├── power-pages/ # Power Pages plugin-│ │ ├── .claude-plugin/+│ │ ├── .plugin/+│ │ │ └── plugin.json+│ │ ├── .claude-plugin/ # Legacy manifest mirror│ │ │ └── plugin.json│ │ ├── commands/│ │ ├── shared/│ │ └── skills/│ ├── model-apps/ # Model Apps plugin-│ | ├── .claude-plugin/+│ | ├── .plugin/│ │ └── plugin.json│ | ├── commands/│ | ├── skills/│ | ├── shared/ # Shared references + samples│ | └── github/ # GitHub Copilot instructions+│ ├── mcp-apps/ # MCP Apps widget generator plugin+│ │ ├── .plugin/+│ │ │ └── plugin.json+│ │ ├── references/+│ │ ├── samples/+│ │ └── skills/│ ├── code-apps/ # Code Apps plugin-│ │ ├── .claude-plugin/+│ │ ├── .plugin/│ │ │ └── plugin.json│ │ ├── agents/│ │ ├── skills/│ │ └── shared/ # Shared instructions + references│ └── canvas-apps/ # Canvas Apps plugin-│ ├── .claude-plugin/+│ ├── .plugin/│ │ └── plugin.json│ ├── references/ # Technical + design guides│ └── skills/@@ -188,6 +205,13 @@ power-platform-skills/└── README.md```+The `.claude-plugin` files are compatibility symlinks for users who subscribed+before the Open Plugins migration. The root legacy marketplace points to+`../marketplace.json`, and per-plugin legacy manifests point to+`../.plugin/plugin.json`. The shared marketplace uses repository-root-relative+plugin `source` paths so existing subscriptions can auto-update without+requiring users to remove and reinstall the marketplace or plugins.+## Documentation- [Power Pages Code Sites](https://learn.microsoft.com/en-us/power-pages/configure/create-code-sites)diff --git a/evals/model-apps/genpage/evals.json b/evals/model-apps/genpage/evals.jsonindex 850cc1cb7..1e64908f1 100644--- a/evals/model-apps/genpage/evals.json+++ b/evals/model-apps/genpage/evals.json@@ -59,7 +59,7 @@"Phase 2: Entity-builder is SKIPPED (no entities to create)","Phase 4: pac model genpage generate-types --data-sources 'account' --output-file <working-dir>/RuntimeTypes.ts is run","Phase 5b (single-page fast path): Plan has 1 page so orchestrator inlines the build — NO Task subagent dispatched for the page-builder",- "Phase 5b: Orchestrator reads ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx",+ "Phase 5b: Orchestrator reads ${PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx","Phase 5b: A relevant sample file is read (e.g., 7-responsive-cards.tsx for card layout)","Phase 5b: Generated .tsx uses only column names verified from RuntimeTypes.ts — no guessed names","Phase 5b: After writing, orchestrator greps the .tsx for `from \"@fluentui/react-icons\"` imports and verifies each named import against verified-icons.txt — rewrites if any are missing",diff --git a/evals/model-apps/genpage/fixtures/1-account-card-gallery/workflow-log.md b/evals/model-apps/genpage/fixtures/1-account-card-gallery/workflow-log.mdindex 2c99c01f6..c771abb92 100644--- a/evals/model-apps/genpage/fixtures/1-account-card-gallery/workflow-log.md+++ b/evals/model-apps/genpage/fixtures/1-account-card-gallery/workflow-log.md@@ -50,7 +50,7 @@- Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched for the page-builder)- Data mode: dataverse- Read sample: plugins/model-apps/samples/7-responsive-cards.tsx (closest match for card layout)-- Read ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt to source icon names+- Read ${PLUGIN_ROOT}/references/verified-icons.txt to source icon names- Wrote page.tsx- Post-write icon verification: grep `from "@fluentui/react-icons"` in page.tsx; verified `BuildingRegular`, `MailRegular`, `PhoneRegular`, `GlobeRegular` against verified-icons.txt — all presentdiff --git a/evals/model-apps/genpage/fixtures/13-contact-localization/workflow-log.md b/evals/model-apps/genpage/fixtures/13-contact-localization/workflow-log.mdindex 887b1372a..53e4eefe6 100644--- a/evals/model-apps/genpage/fixtures/13-contact-localization/workflow-log.md+++ b/evals/model-apps/genpage/fixtures/13-contact-localization/workflow-log.md@@ -52,8 +52,8 @@- Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched)- Data mode: dataverse- Read sample: plugins/model-apps/samples/9-list-with-caching.tsx (Dataverse list pattern)-- Read ${CLAUDE_PLUGIN_ROOT}/references/localization.md (multi-language + RTL pattern)-- Read ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt+- Read ${PLUGIN_ROOT}/references/localization.md (multi-language + RTL pattern)+- Read ${PLUGIN_ROOT}/references/verified-icons.txt- Wrote page.tsx with:- Xrm.Utility.getGlobalContext().userSettings.languageId for language detection- LOCALE_MAP for 1033/1025/1036 → BCP-47 + isRtldiff --git a/evals/model-apps/genpage/fixtures/4-case-wizard/workflow-log.md b/evals/model-apps/genpage/fixtures/4-case-wizard/workflow-log.mdindex 522c49891..8d5d467f8 100644--- a/evals/model-apps/genpage/fixtures/4-case-wizard/workflow-log.md+++ b/evals/model-apps/genpage/fixtures/4-case-wizard/workflow-log.md@@ -48,7 +48,7 @@- Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched)- Data mode: dataverse- Read sample: plugins/model-apps/samples/2-wizard-multi-step.tsx (wizard pattern reference)-- Read ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt to source icon names+- Read ${PLUGIN_ROOT}/references/verified-icons.txt to source icon names- Wrote page.tsx (~7 KB)- Post-write icon verification: grep `from "@fluentui/react-icons"` in page.tsx; verified `PersonRegular`, `DocumentRegular`, `CheckmarkCircleRegular` against verified-icons.txt — all presentdiff --git a/evals/model-apps/genpage/fixtures/7-job-candidates-new-entities/workflow-log.md b/evals/model-apps/genpage/fixtures/7-job-candidates-new-entities/workflow-log.mdindex b6db82a9f..2036fdc45 100644--- a/evals/model-apps/genpage/fixtures/7-job-candidates-new-entities/workflow-log.md+++ b/evals/model-apps/genpage/fixtures/7-job-candidates-new-entities/workflow-log.md@@ -41,7 +41,7 @@- ## Entity Creation Required has 2 entities with suffix-only names (jobrequisition, candidate)## Phase 2a — Pre-flight auth check-- node ${CLAUDE_PLUGIN_ROOT}/scripts/check-auth.js → returned `{ ok: true, ... }`+- node ${PLUGIN_ROOT}/scripts/check-auth.js → returned `{ ok: true, ... }`- Identity match between pac and az verified## Phase 2b — Entity Builder (genpage-entity-builder agent invoked via Task)@@ -76,7 +76,7 @@- Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched)- Data mode: dataverse- Read sample: plugins/model-apps/samples/9-list-with-caching.tsx (Dataverse list + window cache)-- Read ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt+- Read ${PLUGIN_ROOT}/references/verified-icons.txt- Wrote page.tsx- Post-write icon verification: grep `from "@fluentui/react-icons"` in page.tsx; verified `PeopleRegular`, `BriefcaseRegular` against verified-icons.txt — all presentdiff --git a/evals/model-apps/genpage/lib/assertions-layer-1.js b/evals/model-apps/genpage/lib/assertions-layer-1.jsindex e65884f3d..cb049475f 100644--- a/evals/model-apps/genpage/lib/assertions-layer-1.js+++ b/evals/model-apps/genpage/lib/assertions-layer-1.js@@ -500,7 +500,7 @@ PHASE_EXPECTATIONS.set();PHASE_EXPECTATIONS.set(- 'Phase 5b: Orchestrator reads ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx',+ 'Phase 5b: Orchestrator reads ${PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx',({ fixture }) => {const log = fixture.workflowLog;if (!log) return fail('no workflow-log.md');diff --git a/evals/power-pages/create-site/evals.json b/evals/power-pages/create-site/evals.jsonindex d7ee5a0de..3a14c3c7f 100644--- a/evals/power-pages/create-site/evals.json+++ b/evals/power-pages/create-site/evals.json@@ -16,7 +16,7 @@"Dev server is started in background via 'npm run dev' and the localhost URL is shared with the user","Playwright browser_navigate and browser_snapshot are used to verify the scaffold loads (no screenshots taken)","Component planning asks for features (context-aware options for an external company portal), aesthetic direction (Bold & Vibrant selected), and mood",- "Design aesthetics reference is read from ${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md",+ "Design aesthetics reference is read from ${PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md","A component plan table is presented showing pages, shared components, design elements, and routes","Color palette is determined with 6 CSS variables (--color-primary, --color-secondary, --color-bg, --color-surface, --color-text, --color-text-muted)","Implementation plan is presented with Section A (Design & Pages) and Section B (Review & Deployment) and user approval is requested",diff --git a/evals/power-pages/setup-auth/evals.json b/evals/power-pages/setup-auth/evals.jsonindex 822227857..14aa45145 100644--- a/evals/power-pages/setup-auth/evals.json+++ b/evals/power-pages/setup-auth/evals.json@@ -541,7 +541,7 @@"expectations": ["Detects the site as a React framework project","Asks the optional features question in Phase 2.1 and the user selects Terms and Conditions",- "Runs `node \"${CLAUDE_PLUGIN_ROOT}/scripts/check-solution-installed.js\" --solutionName \"msdynce_PortalPrivacyExtensions\"` BEFORE asking the GDPR prerequisite question",+ "Runs `node \"${PLUGIN_ROOT}/scripts/check-solution-installed.js\" --solutionName \"msdynce_PortalPrivacyExtensions\"` BEFORE asking the GDPR prerequisite question","Parses the script's stdout JSON result and branches based on the `installed` boolean","When the script returns installed: true, skips the manual prerequisite confirmation entirely and tells the user the solution is detected (including the version from the JSON) before proceeding to collect Terms content","When the script returns installed: false, tells the user clearly that Terms and Conditions will NOT be enforced by the server until msdynce_PortalPrivacyExtensions is installed (Authentication/Registration/TermsAgreementEnabled is silently ignored without it), then asks via AskUserQuestion whether to continue scaffolding anyway or skip Terms entirely (two options, not three)",diff --git a/marketplace.json b/marketplace.jsonnew file mode 100644index 000000000..7b836dd72--- /dev/null+++ b/marketplace.json@@ -0,0 +1,132 @@+{+ "name": "power-platform-skills",+ "owner": {+ "name": "Microsoft"+ },+ "metadata": {+ "description": "Plugins for Power Platform development with Claude Code and GitHub Copilot",+ "pluginRoot": "."+ },+ "plugins": [+ {+ "name": "power-pages",+ "source": "./plugins/power-pages",+ "description": "Power Pages development and management plugin for Claude Code and GitHub Copilot",+ "category": "development",+ "version": "2.2.0",+ "license": "MIT",+ "tags": [+ "power platform",+ "power pages",+ "microsoft power platform",+ "microsoft"+ ],+ "keywords": [+ "power platform",+ "power pages",+ "microsoft power platform",+ "microsoft"+ ]+ },+ {+ "name": "model-apps",+ "source": "./plugins/model-apps",+ "description": "Build and deploy generative pages for Power Apps model-driven apps",+ "category": "development",+ "version": "2.2.0",+ "license": "MIT",+ "tags": [+ "power platform",+ "power apps",+ "model-driven apps",+ "generative pages",+ "genux",+ "microsoft"+ ],+ "keywords": [+ "power platform",+ "power apps",+ "model-driven apps",+ "generative pages",+ "genux",+ "microsoft"+ ]+ },+ {+ "name": "mcp-apps",+ "source": "./plugins/mcp-apps",+ "description": "Generate MCP App widgets for MCP tools",+ "category": "development",+ "version": "1.0.0",+ "license": "MIT",+ "tags": [+ "mcp",+ "mcp-apps",+ "widget",+ "power platform",+ "microsoft"+ ],+ "keywords": [+ "mcp",+ "mcp-apps",+ "widget",+ "power platform",+ "microsoft"+ ]+ },+ {+ "name": "canvas-apps",+ "source": "./plugins/canvas-apps",+ "description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server",+ "category": "development",+ "version": "2.1.0",+ "license": "MIT",+ "tags": [+ "power platform",+ "power apps",+ "canvas apps",+ "pa-yaml",+ "msapp",+ "connectors",+ "microsoft"+ ],+ "keywords": [+ "power platform",+ "power apps",+ "canvas apps",+ "pa-yaml",+ "msapp",+ "connectors",+ "microsoft"+ ]+ },+ {+ "name": "code-apps-preview",+ "source": "./plugins/code-apps",+ "description": "Build and deploy Power Apps code apps using React, Vite, and Power Platform connectors",+ "category": "development",+ "version": "1.0.0",+ "license": "MIT",+ "tags": [+ "power platform",+ "power apps",+ "code apps",+ "react",+ "vite",+ "dataverse",+ "connectors",+ "microsoft"+ ],+ "keywords": [+ "power platform",+ "power apps",+ "code apps",+ "react",+ "vite",+ "dataverse",+ "connectors",+ "microsoft"+ ]+ }+ ]+}diff --git a/plugins/canvas-apps/.claude-plugin/plugin.json b/plugins/canvas-apps/.claude-plugin/plugin.jsondeleted file mode 100644index 142a9e794..000000000--- a/plugins/canvas-apps/.claude-plugin/plugin.json+++ /dev/null@@ -1,19 +0,0 @@-{- "name": "canvas-apps",- "version": "2.1.0",- "description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",- "author": {- "name": "Microsoft",- "url": "https://www.microsoft.com"- },- "homepage": "https://github.com/microsoft/power-platform-skills/",- "repository": "https://github.com/microsoft/power-platform-skills/",- "license": "MIT",- "keywords": [- "canvas-apps",- "power-apps",- "canvas",- "pa-yaml",- "msapp"- ]-}diff --git a/plugins/canvas-apps/.claude-plugin/plugin.json b/plugins/canvas-apps/.claude-plugin/plugin.jsonnew file mode 120000index 000000000..a3eddf24e--- /dev/null+++ b/plugins/canvas-apps/.claude-plugin/plugin.json@@ -0,0 +1 @@+../.plugin/plugin.json\ No newline at end of filediff --git a/plugins/canvas-apps/.mcp.json b/plugins/canvas-apps/.mcp.jsonindex 7d5a0193e..8fcc5e9f9 100644--- a/plugins/canvas-apps/.mcp.json+++ b/plugins/canvas-apps/.mcp.json@@ -1,12 +1,14 @@-{- "canvas-authoring": {- "command": "dnx",- "args": [- "Microsoft.PowerApps.CanvasAuthoring.McpServer",- "--yes",- "--prerelease",- "--source",- "https://api.nuget.org/v3/index.json"- ]- }-}+{+ "mcpServers": {+ "canvas-authoring": {+ "command": "dnx",+ "args": [+ "Microsoft.PowerApps.CanvasAuthoring.McpServer",+ "--yes",+ "--prerelease",+ "--source",+ "https://api.nuget.org/v3/index.json"+ ]+ }+ }+}diff --git a/plugins/canvas-apps/.plugin/plugin.json b/plugins/canvas-apps/.plugin/plugin.jsonnew file mode 100644index 000000000..142a9e794--- /dev/null+++ b/plugins/canvas-apps/.plugin/plugin.json@@ -0,0 +1,19 @@+{+ "name": "canvas-apps",+ "version": "2.1.0",+ "description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",+ "author": {+ "name": "Microsoft",+ "url": "https://www.microsoft.com"+ },+ "homepage": "https://github.com/microsoft/power-platform-skills/",+ "repository": "https://github.com/microsoft/power-platform-skills/",+ "license": "MIT",+ "keywords": [+ "canvas-apps",+ "power-apps",+ "canvas",+ "pa-yaml",+ "msapp"+ ]+}diff --git a/plugins/canvas-apps/AGENTS.md b/plugins/canvas-apps/AGENTS.mdindex 3ee0a9c10..f6d57d459 100644--- a/plugins/canvas-apps/AGENTS.md+++ b/plugins/canvas-apps/AGENTS.md@@ -19,7 +19,7 @@ claude --plugin-dir /path/to/plugins/canvas-apps## Architecture```-.claude-plugin/plugin.json ← Plugin metadata (name, version, keywords)+.plugin/plugin.json ← Open Plugins metadata (name, version, keywords).mcp.json ← MCP server config (canvas-authoring, auto-registered)AGENTS.md ← Plugin guidance for AI agents (this file)CLAUDE.md ← Symlink → AGENTS.mddiff --git a/plugins/canvas-apps/agents/canvas-app-planner.md b/plugins/canvas-apps/agents/canvas-app-planner.mdindex 44e400615..2d801ba01 100644--- a/plugins/canvas-apps/agents/canvas-app-planner.md+++ b/plugins/canvas-apps/agents/canvas-app-planner.md@@ -35,7 +35,7 @@ Your prompt includes:- The user's requirements- The **approved plan** (screens, aesthetic direction / approach, data strategy)- The working directory where files should be written-- The plugin root directory (`${CLAUDE_PLUGIN_ROOT}`)+- The plugin root directory (`${PLUGIN_ROOT}`)- **CREATE-specific context:** user preferences (target users, aesthetic, features)- **EDIT-specific context:** current app state (palette, variables, layout), synced file list@@ -45,8 +45,8 @@ Your prompt includes:Read both reference documents before writing anything:-- `${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md`-- `${CLAUDE_PLUGIN_ROOT}/references/DesignGuide.md`+- `${PLUGIN_ROOT}/references/TechnicalGuide.md`+- `${PLUGIN_ROOT}/references/DesignGuide.md`Internalize both. These govern every YAML syntax and design decision.@@ -142,7 +142,7 @@ Write `canvas-app-plan.md` to the working directory. This document is the **singtruth** for all `canvas-screen-builder` agents — each agent will only `Read`this file and will not call MCP tools. The document must be fully self-contained.-Read `${CLAUDE_PLUGIN_ROOT}/references/PlanTemplates.md` for the mode-appropriate document+Read `${PLUGIN_ROOT}/references/PlanTemplates.md` for the mode-appropriate documentstructure (CREATE or EDIT). Follow the template exactly — fill in every section with realcontent from the approved plan, discovery results, and control definitions. Do not omitsections unless the template says to.diff --git a/plugins/canvas-apps/agents/canvas-screen-builder.md b/plugins/canvas-apps/agents/canvas-screen-builder.mdindex 61d0676bd..4cba9273a 100644--- a/plugins/canvas-apps/agents/canvas-screen-builder.md+++ b/plugins/canvas-apps/agents/canvas-screen-builder.md@@ -103,7 +103,7 @@ reserve your reasoning for logic correctness that the compiler cannot catch.After writing or editing the file, run the runtime-anti-pattern checks that `compile_canvas`does not catch.-1. Read `${CLAUDE_PLUGIN_ROOT}/references/QAChecks.md`+1. Read `${PLUGIN_ROOT}/references/QAChecks.md`2. Re-read the `.pa.yaml` file you just wrote or edited3. Apply each check in order; for every issue found, fix it inline using `Edit`4. Track the count and a one-line description of every fix applieddiff --git a/plugins/canvas-apps/skills/canvas-app/SKILL.md b/plugins/canvas-apps/skills/canvas-app/SKILL.mdindex 8f8108842..0d7217827 100644--- a/plugins/canvas-apps/skills/canvas-app/SKILL.md+++ b/plugins/canvas-apps/skills/canvas-app/SKILL.md@@ -1,407 +1,407 @@-----name: canvas-app-version: 2.0.0-description: Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation from requirements, simple inline edits, and complex multi-screen changes with parallel screen builders. Triggers on requests to create, build, generate, modify, update, change, or edit a Canvas App or .pa.yaml files.-author: Microsoft Corporation-user-invocable: true-allowed-tools: Read, Write, Edit, Bash, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, EnterPlanMode, ExitPlanMode, mcp__canvas-authoring__sync_canvas, mcp__canvas-authoring__compile_canvas------# Create or Edit a Canvas App--Create or edit a Power Apps canvas app for the following requirements:--$ARGUMENTS--## Overview--This skill handles both **creating** and **editing** canvas apps through a unified workflow.-It syncs the current app state to detect whether the app has existing content, then routes-accordingly:--- **CREATE mode** — the app is empty or has no meaningful content; a new app is generated- from scratch using a preferences wizard and parallel screen builders.-- **EDIT mode (simple)** — the app has existing content and the requested changes are small;- edits are applied inline without planning agents.-- **EDIT mode (complex)** — the app has existing content and the requested changes are- substantial; a planner designs the changes and parallel screen builders execute them.--Two specialist agents are used for planned work:--1. **`canvas-app-planner`** — discovers available controls, APIs, and data sources; gathers- control property definitions; and writes the shared plan document (`canvas-app-plan.md`)- and `App.pa.yaml`. Receives the approved plan from the skill.-2. **`canvas-screen-builder`** — writes or modifies exactly one screen's YAML; multiple- builders run in parallel after the plan is approved--You (the skill) coordinate the agents, detect mode, design and present the plan for user-approval, and own the compilation + error-fixing loop after all screens are written.-------## Phase 0 — Create App Folder--Before syncing or editing, create a subfolder to contain the app's YAML files:--1. Extract the app name or a 2–4 word summary from `$ARGUMENTS`-2. Convert to kebab-case (e.g., "Expense Tracker" → `expense-tracker`, "my travel planner" →- `my-travel-planner`)-3. Create the folder using `Bash`: `mkdir -p <folder-name>`-4. Resolve its absolute path — this is the **working directory** for all subsequent phases--Pass this absolute path as the working directory in every agent prompt below.-------## Phase 1 — Sync--Call the `sync_canvas` MCP tool targeting the working directory. This pulls the current app-state from the coauthoring session into local `.pa.yaml` files. Only proceed after-`sync_canvas` completes successfully.-------## Phase 2 — Detect Mode--After `sync_canvas` completes, read the synced `.pa.yaml` files and check whether the app-has meaningful content. An app is considered **empty** if:--- No `.pa.yaml` files were written, or-- The only files present contain no screens, or-- Every screen present has no controls (only bare screen-level YAML with no children), or-- Every screen's controls consist solely of containers (e.g., `GroupContainer`) with no- leaf controls inside them--**If the app is empty → CREATE mode.** Proceed to Phase 3.--**If the app has meaningful content → EDIT mode.** Skip Phase 3 and proceed to Phase 4.-------## Phase 3 — Gather Preferences (CREATE mode only)--Use `AskUserQuestion` to collect design preferences that cannot be reliably inferred from-`$ARGUMENTS`. **Parse `$ARGUMENTS` first** to determine which questions to skip — but a-short request like "visitor check-in app" or "expense tracker" leaves most preferences-unspecified and you MUST ask.--Call `AskUserQuestion` with the applicable questions from the table below (include only the-ones that need answers):--| Question | Header | When to Ask | Options |-|----------|--------|-------------|---------|-| Who will primarily use this app, and on what device? | Target Users & Device | Only if not clear from `$ARGUMENTS` | *(3–4 dynamically inferred options that combine the user role with their likely device, e.g., for "visitor check-in": Front desk staff on desktop/tablet, Security team on tablet, Self-service kiosk on tablet, Visitors on their phone)* |-| Do you have a screenshot or mockup for reference? (paste an image or provide a file path) | Reference | Only if user has NOT already attached/pasted an image with their request | Yes I'll share one now, No just pick a direction for me |-| What aesthetic direction? | Aesthetic | Only if not clear from `$ARGUMENTS` (skip if user already described a visual direction like "dark themed", "minimal", "corporate style", or provided a reference image) | Clean & Professional (Recommended), Bold & High-Contrast, Soft & Approachable, Dense & Utilitarian |-| Which features do you need? (multi-select) | Features | Only if `$ARGUMENTS` is vague on features | *(3–4 dynamically inferred options based on app purpose + target users)* |--**Rules:**--1. If the user provides a screenshot (either attached with their original request or via the- wizard), examine it to extract structural cues (layout, navigation pattern) and visual cues- (color palette, density, typography). Use these to inform the aesthetic direction — do not- ask the aesthetic question separately.-2. **If all questions are already answered by `$ARGUMENTS` and any attached images, skip the- wizard entirely** and proceed directly to Phase 5.-3. Ask all applicable questions in a single `AskUserQuestion` call — do not ask them one at a time.-4. Store all answers for use in the planner prompt below.--**Target users & device influence design decisions:**-- **Desktop users** → data-dense layouts, tables, keyboard-friendly, multi-column. ManualLayout acceptable for pixel-perfect dashboards.-- **Tablet users** → touch-friendly targets, medium density, AutoLayout (responsive) so the app adapts to landscape/portrait.-- **Phone users** → large touch targets, single-column, simplified navigation, AutoLayout (responsive), minimal typing.-- **Multi-device / unknown** → AutoLayout (responsive) required.--After collecting preferences, proceed to Phase 5 (Plan).-------## Phase 4 — Assess Complexity (EDIT mode only)--Read all synced `.pa.yaml` files. Based on `$ARGUMENTS` and the current app state, determine-whether this is a **simple** or **complex** edit:--**Simple** — all of the following are true:-- Changes affect ≤ 2 controls or properties-- Changes are confined to ≤ 1 screen-- No new screens are being added-- No new data sources or connectors are needed-- No structural layout changes (e.g., not changing ManualLayout to AutoLayout)--Examples: change a button color, update label text, fix a formula, adjust a control size.--**Complex** — any of the following are true:-- Changes span multiple screens-- One or more new screens need to be created-- New data sources or connectors are required-- Structural layout changes are involved-- Significant visual redesign of a screen--Examples: add a settings screen, redesign the home screen layout, integrate a new connector,-change the navigation flow across the app.--- If **simple**: proceed to Phase 4a.-- If **complex**: proceed to Phase 5 (Plan).--### Phase 4a — Simple: Direct Edit--Read `${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md` before making changes.--Apply the changes directly:--1. **Edit** the relevant `.pa.yaml` files with the required changes, following conventions- from TechnicalGuide.md.--2. **Validate** by calling `compile_canvas` on the working directory after making changes.- On failure, read the errors, fix with `Edit`, and re-compile. Iterate until clean.--3. Present a brief summary:- > **Edit complete.** [1-2 sentence description of what was changed.] Compiled clean after [N] pass(es).--**Stop here.** The simple edit path is complete — do not continue to Phase 5 or beyond.-------## Phase 5 — Plan--You (the skill) own plan design and user approval. After approval, invoke the-`canvas-app-planner` agent to discover resources, gather control definitions, and write the-plan document.--### Step 5.1 — Read Reference Documents--Read both reference documents before designing the plan:--- `${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md`-- `${CLAUDE_PLUGIN_ROOT}/references/DesignGuide.md`--Internalize both. These govern every design decision you will make.--### Step 5.2 — Design the Plan--#### CREATE mode--Based on the user preferences from Phase 3 and the user's requirements, reason through:--- How many screens are needed and what each does-- Which controls will drive each screen's layout-- What aesthetic direction fits the app's purpose-- How data will flow (data sources, collections, or mock data)-- **Layout strategy** — follow the layout decision rules in TechnicalGuide.md--#### EDIT mode--Read all `.pa.yaml` files in the working directory (you may have already read them in-Phase 4). Based on the current app state and the user's edit requirements, reason through:--- Which screens need to be modified and what specific changes are needed-- Whether any new screens need to be created-- How changes can be made while preserving the existing app's aesthetic and layout consistency-- Any new controls, data sources, or variables required--### Step 5.3 — Present Plan for Approval--Enter plan mode (`EnterPlanMode`) and present the plan.--#### CREATE mode--```-## Canvas App Plan--### Screens ([N] total)--| Screen | File | Purpose | Key Controls |-|--------|------|---------|--------------|-| [Name] | [Name].pa.yaml | [one-line description] | [2-3 controls] |--### Data Strategy-[How data will be loaded — data sources used, or "collections/mock data"]--### Aesthetic Direction-[e.g., "Bold & editorial — high-contrast dark background, accent RGBA(255,90,60,1), card-based layout, strong typographic hierarchy"]-```--#### EDIT mode--```-## Canvas Edit Plan--### Screens to Modify ([N] total)--| Screen | File | Summary of Changes |-|--------|------|--------------------|-| [Name] | [Name].pa.yaml | [one-line description of changes] |--### Screens to Add ([N] total, if any)--| Screen | File | Purpose |-|--------|------|---------|-| [Name] | [Name].pa.yaml | [one-line description] |--### Approach-[e.g., "Preserving existing dark theme — updating button palette on Home screen and adding a-new Settings screen with consistent RGBA values extracted from existing files"]-```--#### Both modes--Then call `ExitPlanMode` to request user approval.--- If approved: proceed to Step 5.4.-- If changes requested: revise the plan and re-enter plan mode with the updated version.--### Step 5.4 — Invoke Planner Agent--After approval, invoke the `canvas-app-planner` agent using the `Task` tool. The agent-will discover available resources, gather control property definitions, write `App.pa.yaml`-(CREATE only), and write `canvas-app-plan.md`.--Pass a prompt that includes the **approved plan**. The agent does NOT redesign the plan or-interact with the user — it discovers resources, enriches the plan with control definitions,-and writes the output files.--#### CREATE mode--Example prompt:--> You are the canvas-app-planner agent. Write the plan document for a Canvas App.->-> Mode: CREATE->-> Requirements: [paste $ARGUMENTS here]->-> Approved plan:-> [paste the full plan you presented in Step 5.3 — screens, data strategy, aesthetic-> direction, all RGBA values]->-> User preferences (from wizard):-> - Target users & device: [answer]-> - Aesthetic direction: [answer]-> - Features: [answer]-> - Reference image: [observations, or "none provided"]->-> Working directory: [absolute path from Phase 0]-> Plugin root: ${CLAUDE_PLUGIN_ROOT}->-> Follow the instructions in your agent file. Discover resources, gather control-> definitions, write App.pa.yaml and canvas-app-plan.md to the working directory. Return-> the screen list and plan document path when complete.--#### EDIT mode (complex)--Example prompt:--> You are the canvas-app-planner agent. Write the plan document for edits to a Canvas App.->-> Mode: EDIT->-> Edit requirements: [paste $ARGUMENTS here]->-> Approved plan:-> [paste the full plan you presented in Step 5.3 — screens to modify/add, approach,-> all RGBA values]->-> Current app state:-> - Palette: [exact RGBA values extracted from existing files]-> - Variables: [variable names found in existing files]-> - Layout strategy: [AutoLayout / ManualLayout as found in existing files]-> - Screens: [list of existing screens and their key controls]->-> Working directory: [absolute working directory path]-> Plugin root: ${CLAUDE_PLUGIN_ROOT}-> Synced files: [list of .pa.yaml filenames]->-> Follow the instructions in your agent file. Discover resources for new controls, gather-> control definitions, write canvas-app-plan.md to the working directory. Return the list-> of screens and the plan document path when complete.--**Wait for the planner to finish.** Do not proceed to Phase 6 until the planner task-completes successfully.-------## Phase 6 — Build / Edit--After the planner completes, read `canvas-app-plan.md` from the working directory.--Extract the screen list from the `## Screens` table — collect each screen name, its target-file name, and its action (Create or Modify).--Invoke one `canvas-screen-builder` agent per screen. **Fire all invocations in a single-message** (parallel execution) — do not wait for one screen to finish before starting the-next.--For each screen, pass a prompt that includes:--- Screen name (e.g., "Home")-- Target file name (e.g., "Home.pa.yaml")-- Action: "Create" (new screen) or "Modify" (existing screen being edited)-- Absolute path to `canvas-app-plan.md`-- Working directory--Example prompt per screen:--> You are the canvas-screen-builder agent. [Create / Modify] the **[Screen Name]** screen.->-> - Action: [Create / Modify]-> - Target file: [ScreenName].pa.yaml-> - Plan document: [absolute path to canvas-app-plan.md]-> - Working directory: [absolute path from Phase 0]->-> Follow the instructions in your agent file. [Write / Edit] [ScreenName].pa.yaml and return-> your result when done. Do not call compile_canvas — validation is handled by the skill.--Wait for all screen-builder tasks to complete before proceeding.-------## Phase 7 — Validate and Fix--After all screen-builders have finished writing their files, call `compile_canvas` on the-working directory.--**On success:** Proceed to Phase 8.--**On failure:** Read every error in the output. Errors will reference specific files and-line numbers. For each error:--1. `Read` the referenced `.pa.yaml` file-2. Fix the error using `Edit`-3. After fixing all errors from this pass, call `compile_canvas` again--Repeat until `compile_canvas` reports no errors. Do not give up after a single fix attempt —-iterate until the entire directory compiles clean.--Track how many `compile_canvas` passes were needed.-------## Phase 8 — Summary--Delete `canvas-app-plan.md` from the working directory using `Bash`:-`rm <working-directory>/canvas-app-plan.md`--Present a final summary based on the mode:--**CREATE mode:**--> **App generation complete.**->-> | Screen | File | Status |-> |--------|------|--------|-> | [Screen Name] | [filename].pa.yaml | Created |->-> **Compiled clean** after [N] pass(es). | **Screens:** [N] | **Data:** [source or collections]--**EDIT mode (complex):**--> **Edit complete.**->-> | Action | Screen | File | Status |-> |--------|--------|------|--------|-> | [Create / Modify] | [Screen Name] | [filename].pa.yaml | Done |->-> **Compiled clean** after [N] pass(es).--If any errors remain after exhausting fixes, report them explicitly so the user knows what-needs manual attention.+---+name: canvas-app+version: 2.0.0+description: Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation from requirements, simple inline edits, and complex multi-screen changes with parallel screen builders. Triggers on requests to create, build, generate, modify, update, change, or edit a Canvas App or .pa.yaml files.+author: Microsoft Corporation+user-invocable: true+allowed-tools: Read, Write, Edit, Bash, AskUserQuestion, Task, TaskCreate, TaskUpdate, TaskList, EnterPlanMode, ExitPlanMode, mcp__canvas-authoring__sync_canvas, mcp__canvas-authoring__compile_canvas+---++# Create or Edit a Canvas App++Create or edit a Power Apps canvas app for the following requirements:++$ARGUMENTS++## Overview++This skill handles both **creating** and **editing** canvas apps through a unified workflow.+It syncs the current app state to detect whether the app has existing content, then routes+accordingly:++- **CREATE mode** — the app is empty or has no meaningful content; a new app is generated+ from scratch using a preferences wizard and parallel screen builders.+- **EDIT mode (simple)** — the app has existing content and the requested changes are small;+ edits are applied inline without planning agents.+- **EDIT mode (complex)** — the app has existing content and the requested changes are+ substantial; a planner designs the changes and parallel screen builders execute them.++Two specialist agents are used for planned work:++1. **`canvas-app-planner`** — discovers available controls, APIs, and data sources; gathers+ control property definitions; and writes the shared plan document (`canvas-app-plan.md`)+ and `App.pa.yaml`. Receives the approved plan from the skill.+2. **`canvas-screen-builder`** — writes or modifies exactly one screen's YAML; multiple+ builders run in parallel after the plan is approved++You (the skill) coordinate the agents, detect mode, design and present the plan for user+approval, and own the compilation + error-fixing loop after all screens are written.++---++## Phase 0 — Create App Folder++Before syncing or editing, create a subfolder to contain the app's YAML files:++1. Extract the app name or a 2–4 word summary from `$ARGUMENTS`+2. Convert to kebab-case (e.g., "Expense Tracker" → `expense-tracker`, "my travel planner" →+ `my-travel-planner`)+3. Create the folder using `Bash`: `mkdir -p <folder-name>`+4. Resolve its absolute path — this is the **working directory** for all subsequent phases++Pass this absolute path as the working directory in every agent prompt below.++---++## Phase 1 — Sync++Call the `sync_canvas` MCP tool targeting the working directory. This pulls the current app+state from the coauthoring session into local `.pa.yaml` files. Only proceed after+`sync_canvas` completes successfully.++---++## Phase 2 — Detect Mode++After `sync_canvas` completes, read the synced `.pa.yaml` files and check whether the app+has meaningful content. An app is considered **empty** if:++- No `.pa.yaml` files were written, or+- The only files present contain no screens, or+- Every screen present has no controls (only bare screen-level YAML with no children), or+- Every screen's controls consist solely of containers (e.g., `GroupContainer`) with no+ leaf controls inside them++**If the app is empty → CREATE mode.** Proceed to Phase 3.++**If the app has meaningful content → EDIT mode.** Skip Phase 3 and proceed to Phase 4.++---++## Phase 3 — Gather Preferences (CREATE mode only)++Use `AskUserQuestion` to collect design preferences that cannot be reliably inferred from+`$ARGUMENTS`. **Parse `$ARGUMENTS` first** to determine which questions to skip — but a+short request like "visitor check-in app" or "expense tracker" leaves most preferences+unspecified and you MUST ask.++Call `AskUserQuestion` with the applicable questions from the table below (include only the+ones that need answers):++| Question | Header | When to Ask | Options |+|----------|--------|-------------|---------|+| Who will primarily use this app, and on what device? | Target Users & Device | Only if not clear from `$ARGUMENTS` | *(3–4 dynamically inferred options that combine the user role with their likely device, e.g., for "visitor check-in": Front desk staff on desktop/tablet, Security team on tablet, Self-service kiosk on tablet, Visitors on their phone)* |+| Do you have a screenshot or mockup for reference? (paste an image or provide a file path) | Reference | Only if user has NOT already attached/pasted an image with their request | Yes I'll share one now, No just pick a direction for me |+| What aesthetic direction? | Aesthetic | Only if not clear from `$ARGUMENTS` (skip if user already described a visual direction like "dark themed", "minimal", "corporate style", or provided a reference image) | Clean & Professional (Recommended), Bold & High-Contrast, Soft & Approachable, Dense & Utilitarian |+| Which features do you need? (multi-select) | Features | Only if `$ARGUMENTS` is vague on features | *(3–4 dynamically inferred options based on app purpose + target users)* |++**Rules:**++1. If the user provides a screenshot (either attached with their original request or via the+ wizard), examine it to extract structural cues (layout, navigation pattern) and visual cues+ (color palette, density, typography). Use these to inform the aesthetic direction — do not+ ask the aesthetic question separately.+2. **If all questions are already answered by `$ARGUMENTS` and any attached images, skip the+ wizard entirely** and proceed directly to Phase 5.+3. Ask all applicable questions in a single `AskUserQuestion` call — do not ask them one at a time.+4. Store all answers for use in the planner prompt below.++**Target users & device influence design decisions:**+- **Desktop users** → data-dense layouts, tables, keyboard-friendly, multi-column. ManualLayout acceptable for pixel-perfect dashboards.+- **Tablet users** → touch-friendly targets, medium density, AutoLayout (responsive) so the app adapts to landscape/portrait.+- **Phone users** → large touch targets, single-column, simplified navigation, AutoLayout (responsive), minimal typing.+- **Multi-device / unknown** → AutoLayout (responsive) required.++After collecting preferences, proceed to Phase 5 (Plan).++---++## Phase 4 — Assess Complexity (EDIT mode only)++Read all synced `.pa.yaml` files. Based on `$ARGUMENTS` and the current app state, determine+whether this is a **simple** or **complex** edit:++**Simple** — all of the following are true:+- Changes affect ≤ 2 controls or properties+- Changes are confined to ≤ 1 screen+- No new screens are being added+- No new data sources or connectors are needed+- No structural layout changes (e.g., not changing ManualLayout to AutoLayout)++Examples: change a button color, update label text, fix a formula, adjust a control size.++**Complex** — any of the following are true:+- Changes span multiple screens+- One or more new screens need to be created+- New data sources or connectors are required+- Structural layout changes are involved+- Significant visual redesign of a screen++Examples: add a settings screen, redesign the home screen layout, integrate a new connector,+change the navigation flow across the app.++- If **simple**: proceed to Phase 4a.+- If **complex**: proceed to Phase 5 (Plan).++### Phase 4a — Simple: Direct Edit++Read `${PLUGIN_ROOT}/references/TechnicalGuide.md` before making changes.++Apply the changes directly:++1. **Edit** the relevant `.pa.yaml` files with the required changes, following conventions+ from TechnicalGuide.md.++2. **Validate** by calling `compile_canvas` on the working directory after making changes.+ On failure, read the errors, fix with `Edit`, and re-compile. Iterate until clean.++3. Present a brief summary:+ > **Edit complete.** [1-2 sentence description of what was changed.] Compiled clean after [N] pass(es).++**Stop here.** The simple edit path is complete — do not continue to Phase 5 or beyond.++---++## Phase 5 — Plan++You (the skill) own plan design and user approval. After approval, invoke the+`canvas-app-planner` agent to discover resources, gather control definitions, and write the+plan document.++### Step 5.1 — Read Reference Documents++Read both reference documents before designing the plan:++- `${PLUGIN_ROOT}/references/TechnicalGuide.md`+- `${PLUGIN_ROOT}/references/DesignGuide.md`++Internalize both. These govern every design decision you will make.++### Step 5.2 — Design the Plan++#### CREATE mode++Based on the user preferences from Phase 3 and the user's requirements, reason through:++- How many screens are needed and what each does+- Which controls will drive each screen's layout+- What aesthetic direction fits the app's purpose+- How data will flow (data sources, collections, or mock data)+- **Layout strategy** — follow the layout decision rules in TechnicalGuide.md++#### EDIT mode++Read all `.pa.yaml` files in the working directory (you may have already read them in+Phase 4). Based on the current app state and the user's edit requirements, reason through:++- Which screens need to be modified and what specific changes are needed+- Whether any new screens need to be created+- How changes can be made while preserving the existing app's aesthetic and layout consistency+- Any new controls, data sources, or variables required++### Step 5.3 — Present Plan for Approval++Enter plan mode (`EnterPlanMode`) and present the plan.++#### CREATE mode++```+## Canvas App Plan++### Screens ([N] total)++| Screen | File | Purpose | Key Controls |+|--------|------|---------|--------------|+| [Name] | [Name].pa.yaml | [one-line description] | [2-3 controls] |++### Data Strategy+[How data will be loaded — data sources used, or "collections/mock data"]++### Aesthetic Direction+[e.g., "Bold & editorial — high-contrast dark background, accent RGBA(255,90,60,1), card-based layout, strong typographic hierarchy"]+```++#### EDIT mode++```+## Canvas Edit Plan++### Screens to Modify ([N] total)++| Screen | File | Summary of Changes |+|--------|------|--------------------|+| [Name] | [Name].pa.yaml | [one-line description of changes] |++### Screens to Add ([N] total, if any)++| Screen | File | Purpose |+|--------|------|---------|+| [Name] | [Name].pa.yaml | [one-line description] |++### Approach+[e.g., "Preserving existing dark theme — updating button palette on Home screen and adding a+new Settings screen with consistent RGBA values extracted from existing files"]+```++#### Both modes++Then call `ExitPlanMode` to request user approval.++- If approved: proceed to Step 5.4.+- If changes requested: revise the plan and re-enter plan mode with the updated version.++### Step 5.4 — Invoke Planner Agent++After approval, invoke the `canvas-app-planner` agent using the `Task` tool. The agent+will discover available resources, gather control property definitions, write `App.pa.yaml`+(CREATE only), and write `canvas-app-plan.md`.++Pass a prompt that includes the **approved plan**. The agent does NOT redesign the plan or+interact with the user — it discovers resources, enriches the plan with control definitions,+and writes the output files.++#### CREATE mode++Example prompt:++> You are the canvas-app-planner agent. Write the plan document for a Canvas App.+>+> Mode: CREATE+>+> Requirements: [paste $ARGUMENTS here]+>+> Approved plan:+> [paste the full plan you presented in Step 5.3 — screens, data strategy, aesthetic+> direction, all RGBA values]+>+> User preferences (from wizard):+> - Target users & device: [answer]+> - Aesthetic direction: [answer]+> - Features: [answer]+> - Reference image: [observations, or "none provided"]+>+> Working directory: [absolute path from Phase 0]+> Plugin root: ${PLUGIN_ROOT}+>+> Follow the instructions in your agent file. Discover resources, gather control+> definitions, write App.pa.yaml and canvas-app-plan.md to the working directory. Return+> the screen list and plan document path when complete.++#### EDIT mode (complex)++Example prompt:++> You are the canvas-app-planner agent. Write the plan document for edits to a Canvas App.+>+> Mode: EDIT+>+> Edit requirements: [paste $ARGUMENTS here]+>+> Approved plan:+> [paste the full plan you presented in Step 5.3 — screens to modify/add, approach,+> all RGBA values]+>+> Current app state:+> - Palette: [exact RGBA values extracted from existing files]+> - Variables: [variable names found in existing files]+> - Layout strategy: [AutoLayout / ManualLayout as found in existing files]+> - Screens: [list of existing screens and their key controls]+>+> Working directory: [absolute working directory path]+> Plugin root: ${PLUGIN_ROOT}+> Synced files: [list of .pa.yaml filenames]+>+> Follow the instructions in your agent file. Discover resources for new controls, gather+> control definitions, write canvas-app-plan.md to the working directory. Return the list+> of screens and the plan document path when complete.++**Wait for the planner to finish.** Do not proceed to Phase 6 until the planner task+completes successfully.++---++## Phase 6 — Build / Edit++After the planner completes, read `canvas-app-plan.md` from the working directory.++Extract the screen list from the `## Screens` table — collect each screen name, its target+file name, and its action (Create or Modify).++Invoke one `canvas-screen-builder` agent per screen. **Fire all invocations in a single+message** (parallel execution) — do not wait for one screen to finish before starting the+next.++For each screen, pass a prompt that includes:++- Screen name (e.g., "Home")+- Target file name (e.g., "Home.pa.yaml")+- Action: "Create" (new screen) or "Modify" (existing screen being edited)+- Absolute path to `canvas-app-plan.md`+- Working directory++Example prompt per screen:++> You are the canvas-screen-builder agent. [Create / Modify] the **[Screen Name]** screen.+>+> - Action: [Create / Modify]+> - Target file: [ScreenName].pa.yaml+> - Plan document: [absolute path to canvas-app-plan.md]+> - Working directory: [absolute path from Phase 0]+>+> Follow the instructions in your agent file. [Write / Edit] [ScreenName].pa.yaml and return+> your result when done. Do not call compile_canvas — validation is handled by the skill.++Wait for all screen-builder tasks to complete before proceeding.++---++## Phase 7 — Validate and Fix++After all screen-builders have finished writing their files, call `compile_canvas` on the+working directory.++**On success:** Proceed to Phase 8.++**On failure:** Read every error in the output. Errors will reference specific files and+line numbers. For each error:++1. `Read` the referenced `.pa.yaml` file+2. Fix the error using `Edit`+3. After fixing all errors from this pass, call `compile_canvas` again++Repeat until `compile_canvas` reports no errors. Do not give up after a single fix attempt —+iterate until the entire directory compiles clean.++Track how many `compile_canvas` passes were needed.++---++## Phase 8 — Summary++Delete `canvas-app-plan.md` from the working directory using `Bash`:+`rm <working-directory>/canvas-app-plan.md`++Present a final summary based on the mode:++**CREATE mode:**++> **App generation complete.**+>+> | Screen | File | Status |+> |--------|------|--------|+> | [Screen Name] | [filename].pa.yaml | Created |+>+> **Compiled clean** after [N] pass(es). | **Screens:** [N] | **Data:** [source or collections]++**EDIT mode (complex):**++> **Edit complete.**+>+> | Action | Screen | File | Status |+> |--------|--------|------|--------|+> | [Create / Modify] | [Screen Name] | [filename].pa.yaml | Done |+>+> **Compiled clean** after [N] pass(es).++If any errors remain after exhausting fixes, report them explicitly so the user knows what+needs manual attention.diff --git a/plugins/canvas-apps/skills/report-issue/SKILL.md b/plugins/canvas-apps/skills/report-issue/SKILL.mdindex 305253d44..bfa7db3af 100644--- a/plugins/canvas-apps/skills/report-issue/SKILL.md+++ b/plugins/canvas-apps/skills/report-issue/SKILL.md@@ -10,4 +10,4 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/plugins/code-apps/.claude-plugin/plugin.json b/plugins/code-apps/.claude-plugin/plugin.jsondeleted file mode 100644index bafc27f38..000000000--- a/plugins/code-apps/.claude-plugin/plugin.json+++ /dev/null@@ -1,22 +0,0 @@-{- "name": "code-apps-preview",- "version": "1.0.0",- "description": "Build and deploy Power Apps code apps using React, Vite, and Power Platform connectors.",- "author": {- "name": "Microsoft",- "url": "https://www.microsoft.com"- },- "homepage": "https://github.com/microsoft/power-platform-skills/",- "repository": "https://github.com/microsoft/power-platform-skills/",- "license": "MIT",- "keywords": [- "power-apps",- "code-apps",- "react",- "vite",- "dataverse",- "connectors",- "pac-cli",- "power-platform"- ]-}diff --git a/plugins/code-apps/.claude-plugin/plugin.json b/plugins/code-apps/.claude-plugin/plugin.jsonnew file mode 120000index 000000000..a3eddf24e--- /dev/null+++ b/plugins/code-apps/.claude-plugin/plugin.json@@ -0,0 +1 @@+../.plugin/plugin.json\ No newline at end of filediff --git a/plugins/code-apps/.plugin/plugin.json b/plugins/code-apps/.plugin/plugin.jsonnew file mode 100644index 000000000..bafc27f38--- /dev/null+++ b/plugins/code-apps/.plugin/plugin.json@@ -0,0 +1,22 @@+{+ "name": "code-apps-preview",+ "version": "1.0.0",+ "description": "Build and deploy Power Apps code apps using React, Vite, and Power Platform connectors.",+ "author": {+ "name": "Microsoft",+ "url": "https://www.microsoft.com"+ },+ "homepage": "https://github.com/microsoft/power-platform-skills/",+ "repository": "https://github.com/microsoft/power-platform-skills/",+ "license": "MIT",+ "keywords": [+ "power-apps",+ "code-apps",+ "react",+ "vite",+ "dataverse",+ "connectors",+ "pac-cli",+ "power-platform"+ ]+}diff --git a/plugins/code-apps/AGENTS.md b/plugins/code-apps/AGENTS.mdindex 85a0a93a0..977e3dc56 100644--- a/plugins/code-apps/AGENTS.md+++ b/plugins/code-apps/AGENTS.md@@ -17,7 +17,7 @@ claude --plugin-dir /path/to/plugins/power-apps## Architecture```-.claude-plugin/plugin.json <- Plugin metadata (name, version, keywords)+.plugin/plugin.json <- Open Plugins metadata (name, version, keywords)AGENTS.md <- Plugin guidance for AI agents (this file)agents/code-app-architect.md <- Agent persona for architecture decisionsdiff --git a/plugins/code-apps/agents/code-app-architect.md b/plugins/code-apps/agents/code-app-architect.mdindex e557c9e0a..521326df5 100644--- a/plugins/code-apps/agents/code-app-architect.md+++ b/plugins/code-apps/agents/code-app-architect.md@@ -3,7 +3,7 @@ name: code-app-architectdescription: Power Apps Code App Architect specializing in React/Vite architecture, Dataverse integration, connector patterns, and Power Platform deployment. Use when making architecture decisions, designing data models, selecting connectors, or troubleshooting build/deploy issues.----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns (Windows CLI, environment, planning, memory bank, execution style).+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns (Windows CLI, environment, planning, memory bank, execution style).# Code App Architect@@ -98,7 +98,7 @@ npx power-apps init -n '{app-name}' -e <environment-id>- **Lookup fields** expose `_fieldname_value` (GUID, read-only) for reading and `@odata.bind` for writing.- **Formatted values** can be requested via `Prefer: odata.include-annotations` header for server-side date/currency/label formatting.- **useState with enums**: Explicitly type picklist state fields as `number` to avoid TypeScript literal type inference.-- **File/Image columns**: Use the generated `upload`, `downloadFile`, `downloadImage`, and `deleteFileOrImage` service methods — never raw fetch. The model exports table-prefixed union types for type-safe column references (for example, `AccountsFileColumnName`, `AccountsImageColumnName`, and `AccountsUploadColumnName`, depending on the table). See [dataverse-reference.md](${CLAUDE_PLUGIN_ROOT}/skills/add-dataverse/references/dataverse-reference.md) for full patterns.+- **File/Image columns**: Use the generated `upload`, `downloadFile`, `downloadImage`, and `deleteFileOrImage` service methods — never raw fetch. The model exports table-prefixed union types for type-safe column references (for example, `AccountsFileColumnName`, `AccountsImageColumnName`, and `AccountsUploadColumnName`, depending on the table). See [dataverse-reference.md](${PLUGIN_ROOT}/skills/add-dataverse/references/dataverse-reference.md) for full patterns.### Connector Workaroundsdiff --git a/plugins/code-apps/shared/version-check.md b/plugins/code-apps/shared/version-check.mdindex 75f527df3..aecdcad9b 100644--- a/plugins/code-apps/shared/version-check.md+++ b/plugins/code-apps/shared/version-check.md@@ -6,10 +6,10 @@### Step 1: Check if a version check is needed-Look for the file `~/.claude/.power-apps-last-version-check`. Use Bash to read it if it exists:+Look for the file `~/.claude/.code-apps-preview-last-version-check`. Use Bash to read it if it exists:```bash-cat ~/.claude/.power-apps-last-version-check 2>/dev/null+cat ~/.claude/.code-apps-preview-last-version-check 2>/dev/null```- If the file exists and contains today's date (YYYY-MM-DD format), **skip the entire check** and continue with the skill silently.@@ -17,17 +17,17 @@ cat ~/.claude/.power-apps-last-version-check 2>/dev/null### Step 2: Read the local version-Read `${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json` and extract the `version` field.+Read `${PLUGIN_ROOT}/.plugin/plugin.json` and extract the `name` and `version` fields.### Step 3: Fetch the latest version from the marketplaceFetch the remote marketplace manifest using Bash:```bash-curl -fsSL https://raw.githubusercontent.com/microsoft/power-platform-skills/main/.claude-plugin/marketplace.json 2>/dev/null+curl -fsSL https://raw.githubusercontent.com/microsoft/power-platform-skills/main/marketplace.json 2>/dev/null```-Parse the `version` field from the first plugin in the `plugins` array.+Find the plugin entry whose `name` matches the local plugin name, then parse its `version` field.### Step 4: Compare versions@@ -40,7 +40,7 @@ Compare the local version against the remote version using semver rules — spli```╔══════════════════════════════════════════════════════════════╗║ UPDATE AVAILABLE: v{local} → v{remote} ║-║ Run: claude plugin update power-apps ║+║ Run: claude plugin update code-apps-preview ║╚══════════════════════════════════════════════════════════════╝```@@ -48,10 +48,10 @@ Compare the local version against the remote version using semver rules — spli### Step 6: Update the timestamp-Write today's date (YYYY-MM-DD) to `~/.claude/.power-apps-last-version-check` using Bash:+Write today's date (YYYY-MM-DD) to `~/.claude/.code-apps-preview-last-version-check` using Bash:```bash-mkdir -p ~/.claude && echo "YYYY-MM-DD" > ~/.claude/.power-apps-last-version-check+mkdir -p ~/.claude && echo "YYYY-MM-DD" > ~/.claude/.code-apps-preview-last-version-check```> **Note:** Writing to `~/.claude/` is a pre-approved exception to the "confirm before writing outside project root" guardrail. This file is a shared cache and does not affect the user's project.diff --git a/plugins/code-apps/skills/add-azuredevops/SKILL.md b/plugins/code-apps/skills/add-azuredevops/SKILL.mdindex d80e79340..d15475867 100644--- a/plugins/code-apps/skills/add-azuredevops/SKILL.md+++ b/plugins/code-apps/skills/add-azuredevops/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Azure DevOps@@ -18,11 +18,11 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the Azure DevOps connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -94,7 +94,7 @@ await AzureDevOpsService.HttpRequest({Docs: [Azure DevOps REST API](https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-7.2)-Use `Grep` to find specific methods in `src/generated/services/AzureDevOpsService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/AzureDevOpsService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).### Step 5: Builddiff --git a/plugins/code-apps/skills/add-connector/SKILL.md b/plugins/code-apps/skills/add-connector/SKILL.mdindex f591f7d71..cb5da75fc 100644--- a/plugins/code-apps/skills/add-connector/SKILL.md+++ b/plugins/code-apps/skills/add-connector/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Connector (Generic)@@ -28,7 +28,7 @@ Fallback skill for any connector not covered by a specific `/add-*` skill. For c### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Identify Connector@@ -59,7 +59,7 @@ Common connector API names:### Step 3: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the connector in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.diff --git a/plugins/code-apps/skills/add-datasource/SKILL.md b/plugins/code-apps/skills/add-datasource/SKILL.mdindex f5f137e8e..c98324d5f 100644--- a/plugins/code-apps/skills/add-datasource/SKILL.md+++ b/plugins/code-apps/skills/add-datasource/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Data Source@@ -16,7 +16,7 @@ Router skill that understands the user's goal and connects them to the right dat### Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Understand the Goaldiff --git a/plugins/code-apps/skills/add-dataverse/SKILL.md b/plugins/code-apps/skills/add-dataverse/SKILL.mdindex ae0d26a63..1b021c219 100644--- a/plugins/code-apps/skills/add-dataverse/SKILL.md+++ b/plugins/code-apps/skills/add-dataverse/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: opus----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.**References:**diff --git a/plugins/code-apps/skills/add-excel/SKILL.md b/plugins/code-apps/skills/add-excel/SKILL.mdindex 431303f6c..4f033153c 100644--- a/plugins/code-apps/skills/add-excel/SKILL.md+++ b/plugins/code-apps/skills/add-excel/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Excel Online@@ -18,7 +18,7 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Gather@@ -30,7 +30,7 @@ Ask the user:### Step 3: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the Excel Online (Business) connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -76,7 +76,7 @@ await ExcelOnlineBusinessService.AddRowIntoTable({- For SharePoint, use the site path and drive ID- The `body` is a flat key-value object matching column headers -- do NOT wrap in `{ items: ... }`-Use `Grep` to find specific methods in `src/generated/services/ExcelOnlineBusinessService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/ExcelOnlineBusinessService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).### Step 5: Builddiff --git a/plugins/code-apps/skills/add-mcscopilot/SKILL.md b/plugins/code-apps/skills/add-mcscopilot/SKILL.mdindex 211b57052..6a727eaa0 100644--- a/plugins/code-apps/skills/add-mcscopilot/SKILL.md+++ b/plugins/code-apps/skills/add-mcscopilot/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Microsoft Copilot Studio@@ -18,11 +18,11 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the Microsoft Copilot Studio connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -66,7 +66,7 @@ if (agentResponse) {}```-Use `Grep` to find specific methods in the generated service file (generated files can be very large — see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in the generated service file (generated files can be very large — see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).#### Known Issuesdiff --git a/plugins/code-apps/skills/add-office365/SKILL.md b/plugins/code-apps/skills/add-office365/SKILL.mdindex 46483f58f..598bba451 100644--- a/plugins/code-apps/skills/add-office365/SKILL.md+++ b/plugins/code-apps/skills/add-office365/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Office 365 Outlook@@ -18,11 +18,11 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the Office 365 Outlook connection in the output (API name contains `office365`). If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.diff --git a/plugins/code-apps/skills/add-onedrive/SKILL.md b/plugins/code-apps/skills/add-onedrive/SKILL.mdindex 6be5fb9ae..cd451913c 100644--- a/plugins/code-apps/skills/add-onedrive/SKILL.md+++ b/plugins/code-apps/skills/add-onedrive/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add OneDrive for Business@@ -18,11 +18,11 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the OneDrive for Business connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -66,7 +66,7 @@ await OneDriveForBusinessService.CreateFile({- Use `folderPath` for creating files by path, `id` for accessing existing files- Binary file content may need base64 encoding/decoding depending on the operation-Use `Grep` to find specific methods in `src/generated/services/OneDriveForBusinessService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/OneDriveForBusinessService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).### Step 4: Builddiff --git a/plugins/code-apps/skills/add-sharepoint/SKILL.md b/plugins/code-apps/skills/add-sharepoint/SKILL.mdindex b8b3a3152..14f4533df 100644--- a/plugins/code-apps/skills/add-sharepoint/SKILL.md+++ b/plugins/code-apps/skills/add-sharepoint/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: opus----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.**References:**@@ -26,7 +26,7 @@ Two paths: **existing lists** (skip to Step 6) or **new lists** (full workflow).### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Plan@@ -84,7 +84,7 @@ Get explicit confirmation before creating. Use safe functions from [list-managem### Step 6: Get Connection ID-Find the SharePoint Online connection ID (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+Find the SharePoint Online connection ID (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the SharePoint Online connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -173,7 +173,7 @@ const content = await SharePointOnlineService.GetFileContent({- Document library operations use folder/file IDs or server-relative URLs- Choice columns use **string values**, not integer picklist codes (unlike Dataverse)-Use `Grep` to find specific methods in `src/generated/services/SharePointOnlineService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/SharePointOnlineService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).### Step 11: Builddiff --git a/plugins/code-apps/skills/add-sharepoint/references/sharepoint-reference.md b/plugins/code-apps/skills/add-sharepoint/references/sharepoint-reference.mdindex 51b1044b2..0835ce9b7 100644--- a/plugins/code-apps/skills/add-sharepoint/references/sharepoint-reference.md+++ b/plugins/code-apps/skills/add-sharepoint/references/sharepoint-reference.md@@ -169,4 +169,4 @@ await SharePointOnlineService.DeleteItem({});```-Use `Grep` to find specific methods in `src/generated/services/SharePointOnlineService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/SharePointOnlineService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).diff --git a/plugins/code-apps/skills/add-teams/SKILL.md b/plugins/code-apps/skills/add-teams/SKILL.mdindex e197950d9..9c8d28c71 100644--- a/plugins/code-apps/skills/add-teams/SKILL.md+++ b/plugins/code-apps/skills/add-teams/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Add Teams@@ -18,11 +18,11 @@ model: sonnet### Step 1: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md).+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md).### Step 2: Add Connector-**First, find the connection ID** (see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md)):+**First, find the connection ID** (see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md)):Run the `/list-connections` skill. Find the Teams connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection** → search for the connector → Create.@@ -49,7 +49,7 @@ await TeamsService.PostMessageToConversation({});```-Use `Grep` to find specific methods in `src/generated/services/TeamsService.ts` (generated files can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).+Use `Grep` to find specific methods in `src/generated/services/TeamsService.ts` (generated files can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)).### Step 4: Builddiff --git a/plugins/code-apps/skills/create-code-app/SKILL.md b/plugins/code-apps/skills/create-code-app/SKILL.mdindex 68391aadc..6ab17b271 100644--- a/plugins/code-apps/skills/create-code-app/SKILL.md+++ b/plugins/code-apps/skills/create-code-app/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bash, LSP, TaskCreate, TaskUpdate,model: opus----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.**References:**@@ -23,7 +23,7 @@ model: opus### Step 0: Check Memory Bank-Check for `memory-bank.md` per [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md). Skip completed steps.+Check for `memory-bank.md` per [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md). Skip completed steps.### Step 1: Validate Prerequisites@@ -105,7 +105,7 @@ npx power-apps init -n '{user-provided-app-name}' -e <environment-id>**Authentication:** On first run, a browser window opens for Microsoft sign-in. Complete the login and the command continues. No separate auth setup is needed.-See [preferred-environment.md](${CLAUDE_PLUGIN_ROOT}/shared/preferred-environment.md) for environment selection details.+See [preferred-environment.md](${PLUGIN_ROOT}/shared/preferred-environment.md) for environment selection details.**`npx power-apps init` failure:**@@ -167,7 +167,7 @@ Each `/add-*` skill runs `npm run build` to catch errors. Do NOT deploy yet.**This is the core step.** Build the actual app features described in the plan from Step 3.-1. **Review generated services**: Use `Grep` to find methods in generated service files (they can be very large -- see [connector-reference.md](${CLAUDE_PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)). Do NOT read entire generated files.+1. **Review generated services**: Use `Grep` to find methods in generated service files (they can be very large -- see [connector-reference.md](${PLUGIN_ROOT}/shared/connector-reference.md#inspecting-large-generated-files)). Do NOT read entire generated files.2. **Build components**: Create React components for each screen/feature in the plan3. **Connect data**: Wire components to generated services (use `*Service.getAll()`, `*Service.create()`, etc.)4. **Apply theme**: Use the user's theme preference (default: dark theme per development standards)@@ -176,7 +176,7 @@ Each `/add-*` skill runs `npm run build` to catch errors. Do NOT deploy yet.**Key rules:**- Use generated services for all data access -- never use fetch/axios directly-- Read [dataverse-reference.md](${CLAUDE_PLUGIN_ROOT}/skills/add-dataverse/references/dataverse-reference.md) if working with Dataverse (picklist fields, virtual fields, lookups have critical gotchas)+- Read [dataverse-reference.md](${PLUGIN_ROOT}/skills/add-dataverse/references/dataverse-reference.md) if working with Dataverse (picklist fields, virtual fields, lookups have critical gotchas)- Remove unused imports before building (TS6133 strict mode)- Don't edit files in `src/generated/` unless fixing known issuesdiff --git a/plugins/code-apps/skills/deploy/SKILL.md b/plugins/code-apps/skills/deploy/SKILL.mdindex da7382898..4b081112a 100644--- a/plugins/code-apps/skills/deploy/SKILL.md+++ b/plugins/code-apps/skills/deploy/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Read, Edit, Write, Grep, Glob, Bashmodel: sonnet----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.# Deploydiff --git a/plugins/code-apps/skills/list-connections/SKILL.md b/plugins/code-apps/skills/list-connections/SKILL.mdindex a4875f737..65998ec4b 100644--- a/plugins/code-apps/skills/list-connections/SKILL.md+++ b/plugins/code-apps/skills/list-connections/SKILL.md@@ -6,7 +6,7 @@ allowed-tools: Bashmodel: haiku----**📋 Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).+**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).# List Connectionsdiff --git a/plugins/code-apps/skills/report-issue/SKILL.md b/plugins/code-apps/skills/report-issue/SKILL.mdindex 385cdf429..2e63306e6 100644--- a/plugins/code-apps/skills/report-issue/SKILL.md+++ b/plugins/code-apps/skills/report-issue/SKILL.md@@ -10,4 +10,4 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/plugins/mcp-apps/.claude-plugin/plugin.json b/plugins/mcp-apps/.claude-plugin/plugin.jsondeleted file mode 100644index 3356cafc2..000000000--- a/plugins/mcp-apps/.claude-plugin/plugin.json+++ /dev/null@@ -1,21 +0,0 @@-{- "name": "mcp-apps",- "version": "1.0.0",- "description": "Generate MCP App widgets for MCP tools. Produces self-contained HTML widgets using the MCP Apps protocol.",- "author": {- "name": "Microsoft",- "url": "https://www.microsoft.com"- },- "homepage": "https://github.com/microsoft/power-platform-skills/",- "repository": "https://github.com/microsoft/power-platform-skills/",- "license": "MIT",- "keywords": [- "mcp-apps",- "mcp",- "widget",- "ext-apps",- "fluent-ui",- "html",- "tool-visualization"- ]-}diff --git a/plugins/mcp-apps/.claude-plugin/plugin.json b/plugins/mcp-apps/.claude-plugin/plugin.jsonnew file mode 120000index 000000000..a3eddf24e--- /dev/null+++ b/plugins/mcp-apps/.claude-plugin/plugin.json@@ -0,0 +1 @@+../.plugin/plugin.json\ No newline at end of filediff --git a/plugins/mcp-apps/.plugin/plugin.json b/plugins/mcp-apps/.plugin/plugin.jsonnew file mode 100644index 000000000..3356cafc2--- /dev/null+++ b/plugins/mcp-apps/.plugin/plugin.json@@ -0,0 +1,21 @@+{+ "name": "mcp-apps",+ "version": "1.0.0",+ "description": "Generate MCP App widgets for MCP tools. Produces self-contained HTML widgets using the MCP Apps protocol.",+ "author": {+ "name": "Microsoft",+ "url": "https://www.microsoft.com"+ },+ "homepage": "https://github.com/microsoft/power-platform-skills/",+ "repository": "https://github.com/microsoft/power-platform-skills/",+ "license": "MIT",+ "keywords": [+ "mcp-apps",+ "mcp",+ "widget",+ "ext-apps",+ "fluent-ui",+ "html",+ "tool-visualization"+ ]+}diff --git a/plugins/mcp-apps/skills/report-issue/SKILL.md b/plugins/mcp-apps/skills/report-issue/SKILL.mdindex f923167c9..6c01fbfb0 100644--- a/plugins/mcp-apps/skills/report-issue/SKILL.md+++ b/plugins/mcp-apps/skills/report-issue/SKILL.md@@ -10,4 +10,4 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/plugins/model-apps/.claude-plugin/plugin.json b/plugins/model-apps/.claude-plugin/plugin.jsondeleted file mode 100644index cd83184dc..000000000--- a/plugins/model-apps/.claude-plugin/plugin.json+++ /dev/null@@ -1,23 +0,0 @@-{- "name": "model-apps",- "version": "2.2.0",- "description": "Build and deploy Power Apps generative pages for model-driven apps with specialist agents for planning, entity creation, and parallel code generation. Requires PAC CLI >= 2.7.0 and Azure CLI (`az`). See CHANGELOG.md for v1.x → v2.x migration.",- "author": {- "name": "Microsoft",- "url": "https://www.microsoft.com"- },- "homepage": "https://github.com/microsoft/power-platform-skills/",- "repository": "https://github.com/microsoft/power-platform-skills/",- "license": "MIT",- "keywords": [- "model-apps",- "generative-pages",- "genux",- "genpage",- "react",- "fluent-ui",- "dataverse",- "pac-cli",- "model-driven"- ]-}diff --git a/plugins/model-apps/.claude-plugin/plugin.json b/plugins/model-apps/.claude-plugin/plugin.jsonnew file mode 120000index 000000000..a3eddf24e--- /dev/null+++ b/plugins/model-apps/.claude-plugin/plugin.json@@ -0,0 +1 @@+../.plugin/plugin.json\ No newline at end of filediff --git a/plugins/model-apps/.mcp.json b/plugins/model-apps/.mcp.jsonindex ffeb74346..a6cd108c9 100644--- a/plugins/model-apps/.mcp.json+++ b/plugins/model-apps/.mcp.json@@ -1,8 +1,10 @@{- "playwright": {- "command": "node",- "args": [- "${CLAUDE_PLUGIN_ROOT}/scripts/launch-playwright-mcp.js"- ]+ "mcpServers": {+ "playwright": {+ "command": "node",+ "args": [+ "${CLAUDE_PLUGIN_ROOT}/scripts/launch-playwright-mcp.js"+ ]+ }}}diff --git a/plugins/model-apps/.plugin/plugin.json b/plugins/model-apps/.plugin/plugin.jsonnew file mode 100644index 000000000..ef9089a06--- /dev/null+++ b/plugins/model-apps/.plugin/plugin.json@@ -0,0 +1,23 @@+{+ "name": "model-apps",+ "version": "2.2.0",+ "description": "Build and deploy Power Apps generative pages for model-driven apps with specialist agents for planning, entity creation, and parallel code generation. Requires PAC CLI >= 2.7.0 and Azure CLI (`az`). See CHANGELOG.md for v1.x -> v2.x migration.",+ "author": {+ "name": "Microsoft",+ "url": "https://www.microsoft.com"+ },+ "homepage": "https://github.com/microsoft/power-platform-skills/",+ "repository": "https://github.com/microsoft/power-platform-skills/",+ "license": "MIT",+ "keywords": [+ "model-apps",+ "generative-pages",+ "genux",+ "genpage",+ "react",+ "fluent-ui",+ "dataverse",+ "pac-cli",+ "model-driven"+ ]+}diff --git a/plugins/model-apps/AGENTS.md b/plugins/model-apps/AGENTS.mdindex 1ec6f47d5..b64d7e3d7 100644--- a/plugins/model-apps/AGENTS.md+++ b/plugins/model-apps/AGENTS.md@@ -25,7 +25,7 @@ claude --plugin-dir /path/to/plugins/model-apps## Architecture```-.claude-plugin/plugin.json ← Plugin metadata (name, version, keywords)+.plugin/plugin.json ← Open Plugins metadata (name, version, keywords).mcp.json ← MCP server config (Playwright for browser verification)AGENTS.md ← Plugin guidance for AI agents (this file)CLAUDE.md ← Symlink → AGENTS.mddiff --git a/plugins/model-apps/agents/genpage-edit-planner.md b/plugins/model-apps/agents/genpage-edit-planner.mdindex 00459bc07..d937af785 100644--- a/plugins/model-apps/agents/genpage-edit-planner.md+++ b/plugins/model-apps/agents/genpage-edit-planner.md@@ -30,7 +30,7 @@ You will be invoked by the `/genpage` skill with a prompt that includes:- The user's edit intent: `$ARGUMENTS`- The working directory (absolute path)-- The plugin root directory (`${CLAUDE_PLUGIN_ROOT}`)+- The plugin root directory (`${PLUGIN_ROOT}`)- The app-id and page-id of the page being edited- The download directory: `<working-dir>/<page-id>/`@@ -196,7 +196,7 @@ Write `genpage-edit-plan.md` to the working directory root (NOT inside thewhen applying the changes.>## Relevant Samples-<Optional. If a sample from ${CLAUDE_PLUGIN_ROOT}/samples/ would help the+<Optional. If a sample from ${PLUGIN_ROOT}/samples/ would help theorchestrator understand a new pattern being added, list it here.>| Purpose | Sample |diff --git a/plugins/model-apps/agents/genpage-entity-builder.md b/plugins/model-apps/agents/genpage-entity-builder.mdindex fd71d1494..22ee2ceed 100644--- a/plugins/model-apps/agents/genpage-entity-builder.md+++ b/plugins/model-apps/agents/genpage-entity-builder.md@@ -26,7 +26,7 @@ You will be invoked by the `/genpage` skill with a prompt that includes:- Path to `genpage-plan.md`- The working directory (where to write logs and intermediate JSON)-- The plugin root (`${CLAUDE_PLUGIN_ROOT}`) — where the JS scripts live+- The plugin root (`${PLUGIN_ROOT}`) — where the JS scripts live- The Dataverse environment URL (e.g. `https://aurorabapenv4ab3f.crmtest.dynamics.com`)The **Solution unique name** and **Publisher Prefix** are read directly from the@@ -38,7 +38,7 @@ and `create-relationship.js` call. `Default` is a valid value — it lands newcomponents in the env's built-in Default Solution. There is no "omit" branch.You operate entirely through the Web API via the plugin's scripts under-`${CLAUDE_PLUGIN_ROOT}/scripts/`. **There is no MCP server. There is no Python. There+`${PLUGIN_ROOT}/scripts/`. **There is no MCP server. There is no Python. Thereis no Dataverse Skills plugin dependency.**---@@ -48,7 +48,7 @@ is no Dataverse Skills plugin dependency.**Read `genpage-plan.md` at the path provided in your invocation prompt.The plan document follows a strict schema. See-`${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract,+`${PLUGIN_ROOT}/references/plan-schema.md` for the full contract,especially the `## Entity Creation Required` section.Extract from the **`## Environment`** section:@@ -108,7 +108,7 @@ You still re-probe defensively in case the orchestrator's check went stale(e.g., the user revoked auth mid-run):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-auth.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/check-auth.js" <envUrl>```Parse the JSON output. If `ok: false`, **abort and surface the `message` field@@ -169,7 +169,7 @@ contract above. Pass it on every command.#### 4a. Create the table```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table.js" \+node "${PLUGIN_ROOT}/scripts/create-table.js" \"$ENV_URL" \"${PREFIX}_<SchemaName>" \"<Display Name>" \@@ -194,7 +194,7 @@ omit `--solution "$SOLUTION"` for brevity but **every call must include it**.**String:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_email" "Email" string \--max-length 200 --format Email \--required-level None \@@ -203,7 +203,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \**Memo (long text):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_notes" "Notes" memo \--max-length 4000 --format TextArea \--solution "$SOLUTION"@@ -211,25 +211,25 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \**Integer / Decimal / Money:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_count" "Count" integer \--min 0 --max 10000 --solution "$SOLUTION"-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_amount" "Amount" money \--precision 2 --max 1000000 --solution "$SOLUTION"```**DateTime:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_startdate" "Start Date" datetime \--format DateOnly --behavior UserLocal --solution "$SOLUTION"```**Boolean:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_isactive" "Active" boolean \--true-label "Active" --false-label "Inactive" --default true \--solution "$SOLUTION"@@ -237,7 +237,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \**Picklist (choice column) — options are inline JSON or @file:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+node "${PLUGIN_ROOT}/scripts/add-column.js" \"$ENV_URL" "<logicalName>" "${PREFIX}_status" "Status" picklist \--options '[{"value":100000000,"label":"Active"},{"value":100000001,"label":"Inactive"},{"value":100000002,"label":"OnHold"}]' \--solution "$SOLUTION"@@ -254,7 +254,7 @@ Append a row to the log for each successful add.Once both the referenced and referencing tables exist:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-relationship.js" 1n \+node "${PLUGIN_ROOT}/scripts/create-relationship.js" 1n \"$ENV_URL" \"${PREFIX}_<referenced>_${PREFIX}_<referencing>" \"${PREFIX}_<referencedTable>" \@@ -275,7 +275,7 @@ properties on the child table — the navigation property name (e.g.#### 4d. Add N:N relationships```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-relationship.js" nn \+node "${PLUGIN_ROOT}/scripts/create-relationship.js" nn \"$ENV_URL" \"${PREFIX}_<entity1>_${PREFIX}_<entity2>" \"${PREFIX}_<entity1>" \@@ -294,7 +294,7 @@ Use `add-to-solution.js` only when you need to add an **existing** component(e.g., a system table you didn't create) to a solution:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/add-to-solution.js" \+node "${PLUGIN_ROOT}/scripts/add-to-solution.js" \<envUrl> <solutionUniqueName> <componentId> 1```@@ -308,7 +308,7 @@ are in place.After all tables, columns, and relationships are created, run a verification query:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" \+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" \<envUrl> GET \"EntityDefinitions(LogicalName='<prefix>_<tableLogical>')?\$select=LogicalName,SchemaName,PrimaryNameAttribute"```@@ -354,7 +354,7 @@ If the user says yes:3. Create parent records first (no @odata.bind references):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/create-record.js" \+ node "${PLUGIN_ROOT}/scripts/create-record.js" \<envUrl> "<prefix>_<plural>" --body @<working-dir>/<parent>-records.json```@@ -369,7 +369,7 @@ If the user says yes:]``````bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/create-record.js" \+ node "${PLUGIN_ROOT}/scripts/create-record.js" \<envUrl> "<prefix>_<childPlural>" --body @<working-dir>/<child>-records.json```@@ -403,7 +403,7 @@ Ready for RuntimeTypes generation.## Critical Constraints-- **All Dataverse operations go through the JS scripts in `${CLAUDE_PLUGIN_ROOT}/scripts/`.**+- **All Dataverse operations go through the JS scripts in `${PLUGIN_ROOT}/scripts/`.**Do NOT call `pac` for entity create/update (PAC's metadata commands are limited).Do NOT write Python. Do NOT call MCP tools.- **One script invocation per logical operation.** Each script is idempotent in thediff --git a/plugins/model-apps/agents/genpage-page-builder.md b/plugins/model-apps/agents/genpage-page-builder.mdindex 0c3b74045..9fef97445 100644--- a/plugins/model-apps/agents/genpage-page-builder.md+++ b/plugins/model-apps/agents/genpage-page-builder.md@@ -29,7 +29,7 @@ You will be invoked with a prompt that includes:- **Data mode** — either `dataverse` or `mock`- **RuntimeTypes path** — absolute path to `RuntimeTypes.ts` (present only when Data mode is `dataverse`)- **Working directory** — where to write the `.tsx` file-- **Plugin root** — `${CLAUDE_PLUGIN_ROOT}` for reading references and samples+- **Plugin root** — `${PLUGIN_ROOT}` for reading references and samplesThe **Data mode** flag is authoritative — use it to decide whether to perform Step 2(read RuntimeTypes.ts) or skip it. Do not infer data mode from the plan document.@@ -39,7 +39,7 @@ The **Data mode** flag is authoritative — use it to decide whether to performRead `genpage-plan.md` at the path provided in your invocation prompt.The plan document follows a strict schema. See-`${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract.+`${PLUGIN_ROOT}/references/plan-schema.md` for the full contract.Locate and extract:@@ -70,7 +70,7 @@ For **mock data pages:** Skip this step. Generate realistic sample data inline.## Step 2.5 — Icon-name validation (Grep-based)The plugin ships a verified icon list at-`${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt` (~5000 names from+`${PLUGIN_ROOT}/references/verified-icons.txt` (~5000 names from`@fluentui/react-icons`). **Do NOT load the full file into context** — it's~26K tokens of dead weight. Instead, use `Grep` to validate names on demand.@@ -96,13 +96,13 @@ import has been Grep-validated against the verified list.Read the code generation rules reference:```-${CLAUDE_PLUGIN_ROOT}/references/rules.md+${PLUGIN_ROOT}/references/rules.md```Read the relevant sample file identified in the plan:```-${CLAUDE_PLUGIN_ROOT}/samples/[sample-name].tsx+${PLUGIN_ROOT}/samples/[sample-name].tsx```If **Data mode** is `dataverse` AND the page fits the "list / detail / pages@@ -110,7 +110,7 @@ the user navigates back to" profile (per the plan's Per-Page Specification),also read the data caching reference:```-${CLAUDE_PLUGIN_ROOT}/references/data-caching.md+${PLUGIN_ROOT}/references/data-caching.md```Skip the caching reference for forms, single-visit dashboards, mock-data pages,@@ -250,7 +250,7 @@ pattern (translation dictionary, RTL support, formatting helpers, usersettingsfetch):```-${CLAUDE_PLUGIN_ROOT}/references/localization.md+${PLUGIN_ROOT}/references/localization.md```For English-only environments, skip this entirely — do not load the referencediff --git a/plugins/model-apps/agents/genpage-planner.md b/plugins/model-apps/agents/genpage-planner.mdindex 023ce6b8a..ea3cbea42 100644--- a/plugins/model-apps/agents/genpage-planner.md+++ b/plugins/model-apps/agents/genpage-planner.md@@ -30,7 +30,7 @@ You will be invoked by the `/genpage` skill with a prompt that includes:- The user's requirements (`$ARGUMENTS`)- The working directory (absolute path where artifacts should be written)-- The plugin root directory (`${CLAUDE_PLUGIN_ROOT}`)+- The plugin root directory (`${PLUGIN_ROOT}`)---@@ -197,7 +197,7 @@ If any entities need creating, note that entity creation requires:- A target solution (the planner asks you to pick one in the next step)Detection uses `pac model list-tables` natively; creation runs through the-plugin's own Web API scripts under `${CLAUDE_PLUGIN_ROOT}/scripts/`.+plugin's own Web API scripts under `${PLUGIN_ROOT}/scripts/`.### App Detection@@ -241,7 +241,7 @@ Query the env for non-managed solutions (excluding the always-present "Default""Active"):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \"solutions?\$select=uniquename,friendlyname&\$expand=publisherid(\$select=customizationprefix)&\$filter=ismanaged eq false and uniquename ne 'Default' and uniquename ne 'Active' and isvisible eq true&\$top=10"```@@ -289,9 +289,9 @@ in the plan's `## Environment`. Specifics:- **Existing solution** → use it directly; capture its prefix from the Step 2 query.- **Create new under publisher `<prefix>`** → resolve publisher uniquename, then create:```bash- PUB=$(node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \+ PUB=$(node "${PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \"publishers?\$select=uniquename&\$filter=customizationprefix eq '<prefix>'&\$top=1")- node "${CLAUDE_PLUGIN_ROOT}/scripts/create-solution.js" "$ENV_URL" \+ node "${PLUGIN_ROOT}/scripts/create-solution.js" "$ENV_URL" \"<UniqueName>" "<Friendly Name>" --publisher "<publisherUniqueName>"```Omit `--publisher` to use the env's Default Publisher (prefix `new`).@@ -357,7 +357,7 @@ of truth** for all downstream agents. It must be fully self-contained.downstream agents parse by name. See:```-${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md+${PLUGIN_ROOT}/references/plan-schema.md```Read that file before writing the plan. Every required section must be present with@@ -391,7 +391,7 @@ single-visit dashboards, or mock-data pages. The page-builder reads this fieldto decide whether to load `references/data-caching.md`.For the `## Relevant Samples` section: pick the most structurally relevant sample-from `${CLAUDE_PLUGIN_ROOT}/samples/` (e.g., 7-responsive-cards.tsx for card+from `${PLUGIN_ROOT}/samples/` (e.g., 7-responsive-cards.tsx for cardlayouts, 2-wizard-multi-step.tsx for wizards, 12-dialog-form-overlay.tsx for anypage with a modal/dialog — create/edit forms, confirm-delete, detail-in-a-dialog).Do NOT list reference docs as samples — only files under `samples/`.diff --git a/plugins/model-apps/docs/architecture.md b/plugins/model-apps/docs/architecture.mdindex 396e7d723..a4340f269 100644--- a/plugins/model-apps/docs/architecture.md+++ b/plugins/model-apps/docs/architecture.md@@ -111,7 +111,7 @@ full skill.```plugins/model-apps/-├── .claude-plugin/plugin.json <-- version, name, keywords+├── .plugin/plugin.json <-- version, name, keywords├── AGENTS.md / CLAUDE.md <-- agent guidance (this is the source)├── README.md <-- user-facing intro├── CHANGELOG.md <-- Keep-a-Changelogdiff --git a/plugins/model-apps/references/plan-schema.md b/plugins/model-apps/references/plan-schema.mdindex 2ab6c76aa..b1246ce00 100644--- a/plugins/model-apps/references/plan-schema.md+++ b/plugins/model-apps/references/plan-schema.md@@ -147,7 +147,7 @@ validation rejects values that look like `crb2b_playername` or even| `## Entity Creation Required` | Entity-builder | Exact literal "No entity creation required..." when empty, else per-entity subsections || `## Existing Entities` | Orchestrator (for `pac model genpage generate-types --data-sources`) | Comma-separated logical names || `## Design Preferences` | Page-builder | Prose, free-form |-| `## Relevant Samples` | Page-builder (for Read path resolution) | Sample filename must match a file in `${CLAUDE_PLUGIN_ROOT}/samples/` |+| `## Relevant Samples` | Page-builder (for Read path resolution) | Sample filename must match a file in `${PLUGIN_ROOT}/samples/` || `## Per-Page Specifications` | Page-builder | Each page gets one `### [Page Name]` subsection matching the Pages table |---diff --git a/plugins/model-apps/references/rules.md b/plugins/model-apps/references/rules.mdindex 1039b2424..fe8d0398d 100644--- a/plugins/model-apps/references/rules.md+++ b/plugins/model-apps/references/rules.md@@ -14,7 +14,7 @@ Comprehensive rules for generating generative page code. Read this file during c6. **Entity Logical Names**: Use singular lowercase (e.g., `"account"` not `"accounts"`)7. **Styling**: Use `makeStyles` with tokens; avoid inline styles except for dynamic values8. **Responsive Design**: Use flexbox and relative units; NEVER use `100vh`/`100vw`-9. **Icons — verified names only**: Import from `@fluentui/react-icons`; use unsized variants only (e.g., `AddRegular` not `Add24Regular`). Icon names are frequently hallucinated — names like `MedicalRegular`, `PawRegular`, `AnimalRabbitRegular`, `BirdRegular` do not exist. **Always Read `${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt`** (~5000 names) and cross-check every icon import against that list. After writing, Grep your own output for `from "@fluentui/react-icons"` and verify each named import. If an icon you want is not in the list, pick the closest semantic substitute that is. Never guess a name.+9. **Icons — verified names only**: Import from `@fluentui/react-icons`; use unsized variants only (e.g., `AddRegular` not `Add24Regular`). Icon names are frequently hallucinated — names like `MedicalRegular`, `PawRegular`, `AnimalRabbitRegular`, `BirdRegular` do not exist. **Always Read `${PLUGIN_ROOT}/references/verified-icons.txt`** (~5000 names) and cross-check every icon import against that list. After writing, Grep your own output for `from "@fluentui/react-icons"` and verify each named import. If an icon you want is not in the list, pick the closest semantic substitute that is. Never guess a name.10. **No External Libraries**: No routing libraries (React Router) or assumptions of implicit dependencies11. **No FluentProvider**: Already provided at root — adding another causes a double-render flicker in React 17. For dark mode/theme overrides, use the `themeToVars` two-div pattern in **Special Patterns > Dark Mode Toggle**.12. **Forbidden Functions**: Don't use `createTheme`, `mergeThemes`, `useTheme` (don't exist in Fluent UI V9)@@ -170,7 +170,7 @@ Localization guidance has been moved to a separate reference that is loadedconfigured languages OR any non-English language. For English-only environments,skip this entirely.-See: `${CLAUDE_PLUGIN_ROOT}/references/localization.md`+See: `${PLUGIN_ROOT}/references/localization.md`---diff --git a/plugins/model-apps/references/supported-dependencies.md b/plugins/model-apps/references/supported-dependencies.mdindex 818e9a422..ac43c6b10 100644--- a/plugins/model-apps/references/supported-dependencies.md+++ b/plugins/model-apps/references/supported-dependencies.md@@ -66,5 +66,5 @@ When upstream confirms versions or a runtime upgrade lands:1. Edit `scripts/lib/supported-dependencies.js` — change the `version` field and (if applicable) flip `confidence` from `compatible` to `pinned`.2. Re-run `node --test plugins/model-apps/scripts/tests/generate-page-manifest.test.js` — the tests assert the generated manifest's dependency map, feature-flag handling, and `--force` behavior.3. Update this doc to reflect the new versions (the table is hand-maintained from the JS module — a small sync script could automate it later).-4. Bump the plugin minor or patch version in `.claude-plugin/plugin.json`.+4. Bump the plugin minor or patch version in `.plugin/plugin.json`.5. CHANGELOG entry under the appropriate version section.diff --git a/plugins/model-apps/scripts/generate-page-manifest.js b/plugins/model-apps/scripts/generate-page-manifest.jsindex 3f4c053e7..d5077c4be 100644--- a/plugins/model-apps/scripts/generate-page-manifest.js+++ b/plugins/model-apps/scripts/generate-page-manifest.js@@ -110,7 +110,7 @@ function buildAmbientDeclarations() {// \`(window as any).\` casts.//// Regenerate by running:-// node \${CLAUDE_PLUGIN_ROOT}/scripts/generate-page-manifest.js <dir> <slug> --force+// node \${PLUGIN_ROOT}/scripts/generate-page-manifest.js <dir> <slug> --forceexport {};diff --git a/plugins/model-apps/skills/genpage/SKILL.md b/plugins/model-apps/skills/genpage/SKILL.mdindex 4d1ee6218..c915f4cd9 100644--- a/plugins/model-apps/skills/genpage/SKILL.md+++ b/plugins/model-apps/skills/genpage/SKILL.md@@ -76,7 +76,7 @@ definition" in their editor. Versions come from`scripts/lib/supported-dependencies.js`).```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/generate-page-manifest.js" <working-dir> <kebab-slug>+node "${PLUGIN_ROOT}/scripts/generate-page-manifest.js" <working-dir> <kebab-slug>```- `<kebab-slug>` is the same slug used for the working directory.@@ -129,7 +129,7 @@ Pass a prompt that includes:- The user's requirements: `$ARGUMENTS`- The working directory (absolute path from Phase 0)-- The plugin root path: `${CLAUDE_PLUGIN_ROOT}`+- The plugin root path: `${PLUGIN_ROOT}`Example:@@ -138,7 +138,7 @@ Example:> [paste $ARGUMENTS here verbatim, or "no arguments provided — gather from user"]>> Working directory: [absolute path from Phase 0]-> Plugin root: ${CLAUDE_PLUGIN_ROOT}+> Plugin root: ${PLUGIN_ROOT}>> Follow the instructions in your agent file. Validate prereqs, confirm auth, ask> the new/edit question via AskUserQuestion, then proceed accordingly. Write@@ -162,7 +162,7 @@ auth, and the `az` and `pac` identities should normally match. Run theconsolidated pre-flight:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-auth.js"+node "${PLUGIN_ROOT}/scripts/check-auth.js"```It returns a single JSON object:@@ -195,7 +195,7 @@ Capture `envUrl` from the result — Phase 2b passes it to the entity-builder.Invoke the `genpage-entity-builder` agent via the `Task` tool. Pass in the prompt:- Path to `genpage-plan.md`- Working directory (absolute path)-- Plugin root: `${CLAUDE_PLUGIN_ROOT}`+- Plugin root: `${PLUGIN_ROOT}`- Dataverse env URL (from `pac org who`)The entity-builder reads `Solution` and `Publisher Prefix` directly from the@@ -260,24 +260,24 @@ Before invoking any builders, verify:rewrite the plan appending `-1`, `-2`, etc. before dispatch. Duplicate filenamescause silent last-writer-wins data loss under parallel execution.-See `${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract.+See `${PLUGIN_ROOT}/references/plan-schema.md` for the full contract.#### 5b. Single-page fast path (skip Task dispatch when N=1)**If the plan's Pages table contains exactly one row**, do NOT dispatch a Tasksubagent. Inline the page-builder workflow directly in the orchestrator:-1. Read `${CLAUDE_PLUGIN_ROOT}/references/rules.md`+1. Read `${PLUGIN_ROOT}/references/rules.md`2. Read the sample listed in the plan's `## Relevant Samples`3. If the plan's Per-Page Specification has `Needs caching: true`, also read- `${CLAUDE_PLUGIN_ROOT}/references/data-caching.md`+ `${PLUGIN_ROOT}/references/data-caching.md`4. If the plan's `## Environment` indicates non-English languages, also read- `${CLAUDE_PLUGIN_ROOT}/references/localization.md`+ `${PLUGIN_ROOT}/references/localization.md`5. Read `genpage-plan.md` (already in working directory) and `RuntimeTypes.ts`if Data mode is dataverse6. Write the `.tsx` file to `<working-dir>/<filename>.tsx` following all rules7. After writing, Grep every named import from `@fluentui/react-icons` against- `${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt` (one Grep per name).+ `${PLUGIN_ROOT}/references/verified-icons.txt` (one Grep per name).Rewrite any unverified names with the closest verified alternative; do notload the full icon list into context8. Proceed to Phase 6@@ -298,7 +298,7 @@ For each page, pass a prompt that includes:- Absolute path to `genpage-plan.md`- Data mode (see below) — either a RuntimeTypes path or an explicit mock flag- Working directory-- Plugin root: `${CLAUDE_PLUGIN_ROOT}`+- Plugin root: `${PLUGIN_ROOT}`**For Dataverse pages**, include the RuntimeTypes line:@@ -309,7 +309,7 @@ For each page, pass a prompt that includes:> - Data mode: **dataverse**> - RuntimeTypes: [absolute path to RuntimeTypes.ts]> - Working directory: [absolute path from Phase 0]-> - Plugin root: ${CLAUDE_PLUGIN_ROOT}+> - Plugin root: ${PLUGIN_ROOT}>> Follow the instructions in your agent file. Write [filename].tsx and return your> result when done.@@ -322,7 +322,7 @@ For each page, pass a prompt that includes:> - Plan document: [absolute path to genpage-plan.md]> - Data mode: **mock**> - Working directory: [absolute path from Phase 0]-> - Plugin root: ${CLAUDE_PLUGIN_ROOT}+> - Plugin root: ${PLUGIN_ROOT}>> Follow the instructions in your agent file. Write [filename].tsx and return your> result when done.@@ -428,7 +428,7 @@ After successful deployment, ask the user via `AskUserQuestion`:Options: **Yes, verify in browser** / **Skip verification**- If the user picks **Skip verification** → jump to Phase 8.-- If the user picks **Yes** → read `${CLAUDE_PLUGIN_ROOT}/skills/genpage/verify-flow.md`+- If the user picks **Yes** → read `${PLUGIN_ROOT}/skills/genpage/verify-flow.md`for the full Playwright verification workflow (navigate, structuralverification including below-the-fold, interactive testing, screenshots,fix-and-redeploy). The orchestrator only loads that file on demand to keepdiff --git a/plugins/model-apps/skills/genpage/edit-flow.md b/plugins/model-apps/skills/genpage/edit-flow.mdindex 54067f2a1..9a67575d9 100644--- a/plugins/model-apps/skills/genpage/edit-flow.md+++ b/plugins/model-apps/skills/genpage/edit-flow.md@@ -100,7 +100,7 @@ Invoke the `genpage-edit-planner` agent via the `Task` tool. Pass:- The user's edit intent: `$ARGUMENTS`- The working directory (absolute path)-- The plugin root: `${CLAUDE_PLUGIN_ROOT}`+- The plugin root: `${PLUGIN_ROOT}`- The app-id and page-id- The download directory: `<working-dir>/<page-id>/`@@ -114,7 +114,7 @@ Read `<working-dir>/genpage-edit-plan.md` for the approved change list andpreservation constraints.Also read:-- `${CLAUDE_PLUGIN_ROOT}/references/rules.md` — all code-gen+- `${PLUGIN_ROOT}/references/rules.md` — all code-genrules still apply to edits (Fluent UI V9 only, makeStyles with tokens, WCAG AA,no `100vh`/`100vw`, etc.)- `<working-dir>/RuntimeTypes.ts` — if generated in Edit Phase 3, for verifieddiff --git a/plugins/model-apps/skills/report-issue/SKILL.md b/plugins/model-apps/skills/report-issue/SKILL.mdindex b6f8bc66a..169e8dc03 100644--- a/plugins/model-apps/skills/report-issue/SKILL.md+++ b/plugins/model-apps/skills/report-issue/SKILL.md@@ -10,4 +10,4 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/plugins/power-pages/.claude-plugin/plugin.json b/plugins/power-pages/.claude-plugin/plugin.jsondeleted file mode 100644index 25996f2b7..000000000--- a/plugins/power-pages/.claude-plugin/plugin.json+++ /dev/null@@ -1,39 +0,0 @@-{- "name": "power-pages",- "version": "2.3.0",- "description": "Create and deploy Power Pages sites using modern development approaches. Supports code sites (SPAs) with React, Angular, Vue, or Astro. Includes ALM orchestration (plan-alm) with a solution-splitting decision tree, per-solution pipelines, Azure Blob asset advisory, manifest schema v2 for multi-solution deployments, and force-link remediation for cross-host pipeline migrations.",- "author": {- "name": "Microsoft",- "url": "https://www.microsoft.com"- },- "homepage": "https://github.com/microsoft/power-platform-skills/",- "repository": "https://github.com/microsoft/power-platform-skills/",- "license": "MIT",- "keywords": [- "power-pages",- "site-builder",- "code-sites",- "spa",- "react",- "angular",- "vue",- "astro",- "pac-cli",- "dataverse",- "odata",- "web-api",- "tables",- "schema",- "solution",- "alm",- "plan-alm",- "ci-cd",- "pipeline",- "pipelines-host",- "force-link",- "diagnostics",- "shared-lib",- "solution-splitting",- "asset-advisory"- ]-}diff --git a/plugins/power-pages/.claude-plugin/plugin.json b/plugins/power-pages/.claude-plugin/plugin.jsonnew file mode 120000index 000000000..a3eddf24e--- /dev/null+++ b/plugins/power-pages/.claude-plugin/plugin.json@@ -0,0 +1 @@+../.plugin/plugin.json\ No newline at end of filediff --git a/plugins/power-pages/.mcp.json b/plugins/power-pages/.mcp.jsonindex b1ad3b488..c5353da3d 100644--- a/plugins/power-pages/.mcp.json+++ b/plugins/power-pages/.mcp.json@@ -1,12 +1,14 @@{- "playwright": {- "command": "node",- "args": [- "${CLAUDE_PLUGIN_ROOT}/scripts/launch-playwright-mcp.js"- ]- },- "microsoft-learn": {- "type": "http",- "url": "https://learn.microsoft.com/api/mcp"+ "mcpServers": {+ "playwright": {+ "command": "node",+ "args": [+ "${CLAUDE_PLUGIN_ROOT}/scripts/launch-playwright-mcp.js"+ ]+ },+ "microsoft-learn": {+ "type": "http",+ "url": "https://learn.microsoft.com/api/mcp"+ }}}diff --git a/plugins/power-pages/.plugin/plugin.json b/plugins/power-pages/.plugin/plugin.jsonnew file mode 100644index 000000000..3021445a0--- /dev/null+++ b/plugins/power-pages/.plugin/plugin.json@@ -0,0 +1,39 @@+{+ "name": "power-pages",+ "version": "2.2.0",+ "description": "Create and deploy Power Pages sites using modern development approaches. Supports code sites (SPAs) with React, Angular, Vue, or Astro. Includes ALM orchestration (plan-alm) with a solution-splitting decision tree, per-solution pipelines, Azure Blob asset advisory, manifest schema v2 for multi-solution deployments, and force-link remediation for cross-host pipeline migrations.",+ "author": {+ "name": "Microsoft",+ "url": "https://www.microsoft.com"+ },+ "homepage": "https://github.com/microsoft/power-platform-skills/",+ "repository": "https://github.com/microsoft/power-platform-skills/",+ "license": "MIT",+ "keywords": [+ "power-pages",+ "site-builder",+ "code-sites",+ "spa",+ "react",+ "angular",+ "vue",+ "astro",+ "pac-cli",+ "dataverse",+ "odata",+ "web-api",+ "tables",+ "schema",+ "solution",+ "alm",+ "plan-alm",+ "ci-cd",+ "pipeline",+ "pipelines-host",+ "force-link",+ "diagnostics",+ "shared-lib",+ "solution-splitting",+ "asset-advisory"+ ]+}diff --git a/plugins/power-pages/AGENTS.md b/plugins/power-pages/AGENTS.mdindex 899cfad71..1dc654169 100644--- a/plugins/power-pages/AGENTS.md+++ b/plugins/power-pages/AGENTS.md@@ -15,7 +15,7 @@ Read `PLUGIN_DEVELOPMENT_GUIDE.md` for UX and reliability standards when creatin- **Script changes require tests** — Whenever you add a new script or modify an existing script, add or update `node:test` coverage under `scripts/tests/`. Prefer one `*.test.js` file per script/module being tested, and keep the test command passing: `node --test plugins/power-pages/scripts/tests/` (Node's built-in runner discovers `*.test.js` files under the given directory). Validator changes are not an exception; they must always ship with test coverage.- **Dataverse-backed validation** must stay opt-in for local runs only. Do not require live Dataverse connectivity in CI workflows or default test runs; gate it behind explicit local flags such as `--validate-dataverse-relationships`.- **Azure CLI `--allow-no-subscriptions`** — this flag is only valid on `az login`. Other `az` subcommands (`az account get-access-token`, `az account show`, etc.) reject it as an unrecognized argument and exit 2, so do NOT add it to anything other than `az login`. When the user is not logged in to the Azure CLI, suggest plain `az login` first; only suggest `az login --allow-no-subscriptions` as a fallback if they don't have any associated Azure subscription, since that variant lets subscription-less accounts sign in and still mint AAD-scoped Dataverse/Power Platform tokens via subsequent `az account get-access-token` calls. Reuse the shared `getAuthToken` helper in `scripts/lib/validation-helpers.js` instead of shelling out to `az` directly.-- **Reference docs** shared across skills live in `references/` — reference via `${CLAUDE_PLUGIN_ROOT}/references/` paths, don't duplicate.+- **Reference docs** shared across skills live in `references/` — reference via `${PLUGIN_ROOT}/references/` paths, don't duplicate.- **Templates** use `__PLACEHOLDER__` tokens (e.g., `__SITE_NAME__`) replaced during scaffolding. The `gitignore` file is stored without the dot prefix and renamed to `.gitignore` during scaffolding.- **Hooks** are defined centrally in `hooks/hooks.json`, using `PostToolUse` with matcher `Skill` so validation runs when a tracked Power Pages skill completes.- **ALM split-decision thresholds** are intentionally tighter than the platform hard caps. `scripts/lib/alm-thresholds.js` recommends a split at 75 MB / 4000 components (vs platform caps of 95 MB / 6000), reserving ~20 MB / ~2000-component growth headroom in each split child. Override per-project via `.alm-config.json` if you have a justified reason to push closer to the caps.@@ -27,7 +27,7 @@ Read `PLUGIN_DEVELOPMENT_GUIDE.md` for UX and reliability standards when creatin## Skill Development Conventions```-.claude-plugin/plugin.json ← Plugin metadata (name, version, keywords)+.plugin/plugin.json ← Open Plugins metadata (name, version, keywords).mcp.json ← MCP server config (Playwright for browser automation)agents/data-model-architect.md ← Agent: proposes Dataverse data models (read-only)@@ -182,7 +182,7 @@ All skill folders are tracked. Skills without a `scripts/validate*.js` file are### Shared Scripts-Shared utility scripts live at `scripts/` and are referenced by multiple skills and agents via `${CLAUDE_PLUGIN_ROOT}/scripts/`.+Shared utility scripts live at `scripts/` and are referenced by multiple skills and agents via `${PLUGIN_ROOT}/scripts/`.- `generate-uuid.js`: Generates a random UUID v4. Self-contained, no dependencies. Used by `create-webroles` and the main agent when creating table permission / site setting files from the `webapi-permissions` agent plan.- `update-skill-tracking.js`: Updates skill usage tracking site settings. Takes `--projectRoot`, `--skillName`, and `--authoringTool` args. The agent passes its own name as `--authoringTool` (e.g., `ClaudeCode`, `GitHubCopilot`). Creates/increments a per-skill counter (`Site-AI-<SkillName>.sitesetting.yml`) and records the authoring tool (`Site-AI-AuthoringTool.sitesetting.yml`). Exits silently if `.powerpages-site/site-settings/` does not exist. Used by every user-invocable skill (each skill calls it in its final phase per the skill-tracking convention).@@ -259,7 +259,7 @@ Shared reference documents live at `references/` and are referenced by multiple- `cicd-pipeline-patterns.md`: PAC CLI service principal auth syntax; complete ADO `azure-pipelines.yml` template; complete GitHub Actions `deploy.yml` template; commented solution export/import blocks; secrets/variables setup tables; manual steps that cannot be automated; **Power Platform Pipelines API patterns** (HAR-confirmed): host env discovery via `RetrieveSetting`, `deploymentenvironments` create + `validationstatus` poll, `deploymentpipelines` create, `$ref` associate source (relative path format), `deploymentstages` create, `RetrieveDeploymentPipelineInfo`, stage run create + `ValidatePackageAsync` (204) + `operation` poll, `deploymentsettingsjson` PATCH, `DeployPackageAsync`, `stagerunstatus` terminal values, `docs/alm/last-pipeline.json` and `docs/alm/last-deploy.json` formats. Used by `setup-pipeline` and `deploy-pipeline`.- `approval-gates.md`: Canonical terminology, marker syntax, and catalog of every user-confirmation point ("Approval Gate") across the **entire power-pages skill set** (12 ALM + 12 non-ALM). Defines six categories (`intent` / `plan` / `progress` / `consent` / `final` / `pause`), an explicit-pairing marker (`<!-- gate: skill:phase | category=X | cancel-leaves=Y -->` + human `> 🚦 Gate (...)` block), the `cancel-leaves` vocabulary, and the seven gate-related lint rules enforced by `scripts/lint-skills-alm.js` at hard-fail severity: `GATE-must-have-marker`, `GATE-id-must-be-unique`, `GATE-must-be-in-catalog`, `GATE-intent-must-call-helper`, `GATE-cancel-leaves-known-vocab`, `GATE-prose-block-required` (marker must be followed by a 🚦 prose block within 10 lines, outside any code fence), and `CATALOG-row-must-have-marker` (reverse of `GATE-must-be-in-catalog` — every `kind: gate` catalog row must have a SKILL.md marker). §6.1–§6.12 catalogue the ALM skills; §6.13–§6.24 catalogue the non-ALM skills (`create-site`, `deploy-site`, `add-server-logic`, `add-cloud-flow`, `setup-auth`, `integrate-webapi`, `setup-datamodel`, `add-sample-data`, `add-seo`, `create-webroles`, `audit-permissions`, `integrate-backend`). `report-issue` is excluded because its workflow lives in the cross-plugin shared file. **New skills must extend §6 in the same PR they introduce an `AskUserQuestion`** — lint will block the PR otherwise.-Skill-specific reference docs (e.g., `skills/setup-datamodel/references/odata-api-patterns.md`) contain only patterns unique to that skill and point to the shared docs via `${CLAUDE_PLUGIN_ROOT}/references/` paths for common content.+Skill-specific reference docs (e.g., `skills/setup-datamodel/references/odata-api-patterns.md`) contain only patterns unique to that skill and point to the shared docs via `${PLUGIN_ROOT}/references/` paths for common content.### MCP Integration@@ -348,7 +348,7 @@ Note: `allowed-tools` must be a comma-separated list, not JSON array or YAML lisEvery SKILL.md must include the following line immediately after the closing `---` of the frontmatter (before the `#` title):```markdown-> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.```This runs a lightweight check comparing the local plugin version against `origin/main` and shows an update notice if a newer version is available.@@ -362,7 +362,7 @@ This runs a lightweight check comparing the local plugin version against `origin- **Token refresh** — Refresh Azure CLI token every ~20 records / 3-4 tables / ~60 seconds.- **Git commits** — Commit after every significant milestone (each page/component, design foundations, phase completion).- **Agent spawning** — Process sequentially (not parallel), wait for completion, present output for approval.-- **Skill tracking** — Every skill must record usage in its final phase via `> Reference: ${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md` (pointer pattern, not hardcoded command). When adding a new skill, also add its entry to the skill name mapping table in `references/skill-tracking-reference.md`.+- **Skill tracking** — Every skill must record usage in its final phase via `> Reference: ${PLUGIN_ROOT}/references/skill-tracking-reference.md` (pointer pattern, not hardcoded command). When adding a new skill, also add its entry to the skill name mapping table in `references/skill-tracking-reference.md`.- **Shell-agnostic docs** — SKILL.md, agent, and reference files must not embed shell-specific syntax inside shell commands or code blocks. Use ` ```bash ` fences (or plain ` ``` `) only for cross-platform commands like `pac`, `az`, `dotnet`, and `node`. Do not use PowerShell cmdlets (`Get-ChildItem`, `Test-Path`, `New-Item`, `Get-Content`, `Remove-Item`, `ConvertFrom-Json`, `Invoke-RestMethod`, etc.) or PowerShell-only variable syntax inside shell commands/code blocks (e.g., `$var = command`, `$env:...`) — prefer `<placeholder>` angle-bracket style there (e.g., `<envUrl>`). Repo runtime placeholders used in prose/templates (such as `**Initial request:** $ARGUMENTS`) are allowed. For filesystem and JSON operations the agent already has first-class tools (`Glob`, `Read`, `Write`, `Edit`) — describe the intent in prose rather than prescribing a shell command.- **Dataverse API calls** — Use deterministic Node.js scripts (in the skill's `scripts/` directory) for Dataverse API queries. Scripts should import `getAuthToken` and `makeRequest` from `scripts/lib/validation-helpers.js`. Never use inline PowerShell `Invoke-RestMethod` for API calls — scripts are more reliable, testable, and cross-platform.- **ALM-aware by default** — Any skill that creates, modifies, or depends on Dataverse records that belong in a Power Pages site's solution (site components, env var definitions, web roles, site settings, server logic, cloud flow bindings, bot consumers, custom tables/columns, etc.) MUST ensure those records land in the user's solution when `.solution-manifest.json` exists. Concrete rules:diff --git a/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md b/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.mdindex 792ae51a0..fb26eb80a 100644--- a/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md+++ b/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md@@ -227,7 +227,7 @@ LLMs are probabilistic. When an LLM constructs inline bash commands for DataversSkills invoke scripts via `node` with CLI arguments:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" \+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" \--projectRoot "<PROJECT_ROOT>" \--permissionName "<Permission Name>" \--tableName "<table_logical_name>" \diff --git a/plugins/power-pages/agents/ai-webapi-integration.md b/plugins/power-pages/agents/ai-webapi-integration.mdindex ae9aee1e0..85167a0e1 100644--- a/plugins/power-pages/agents/ai-webapi-integration.md+++ b/plugins/power-pages/agents/ai-webapi-integration.md@@ -45,9 +45,9 @@ identifier), not a third endpoint.Read these first — they have the authoritative API shapes, headers, request bodies, and errorcodes:-- `${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` — canonical reference+- `${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` — canonical referencefor both APIs (Search Summary, Data Summarization) with the CSRF rules-- `${CLAUDE_PLUGIN_ROOT}/agents/webapi-integration.md` — general Web API integration patterns+- `${PLUGIN_ROOT}/agents/webapi-integration.md` — general Web API integration patterns(framework detection, file placement, hook conventions)Upstream Microsoft Learn sources (already captured in the reference above — only re-fetch via@@ -266,7 +266,7 @@ The service must contain:### 3.1 CSRF helper-The reference (`${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` —+The reference (`${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` —"CSRF token handling" section) is the canonical source for this helper. The snippet below is acopy for convenience; if the regex or response shape ever needs changing, change the referencefirst and re-paste here:@@ -740,7 +740,7 @@ below.**Framework equivalents.** The same shape applies — no `v-html` / `innerHTML`, same token set.For a Vue/Angular/Astro site, copy the worked **SummaryMarkdown** snippet for that frameworkverbatim from- `${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/framework-equivalents.md` §1 ("Safe-markdown+ `${PLUGIN_ROOT}/skills/add-ai-webapi/references/framework-equivalents.md` §1 ("Safe-markdownrenderer") rather than re-deriving it — the React version above is the worked example; thereference carries the other three. (Quick shape reminder: Vue splits on `/\n{2,}/` and `v-for`sparagraphs → segments with no `v-html`; Angular is a pure `@Input() text` component using@@ -762,12 +762,12 @@ below.opens an XSS surface on content the server doesn't sanitize for that purpose.Use `parseSummaryWithCitations` from the reference (see- `${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md#1-search-summary-api`)+ `${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md#1-search-summary-api`)to split the summary into alternating text and citation parts, then emit framework-nativeclickable elements (`<a>` in React/Astro, `<a>` + `v-for` in Vue, `[href]` + `*ngFor` inAngular). For a Vue/Angular/Astro site, copy the worked citation-rendering snippet for thatframework verbatim from- `${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/framework-equivalents.md` §2 ("Citation+ `${PLUGIN_ROOT}/skills/add-ai-webapi/references/framework-equivalents.md` §2 ("Citationrendering") instead of hand-translating the React example below.```tsxdiff --git a/plugins/power-pages/agents/ai-webapi-settings-architect.md b/plugins/power-pages/agents/ai-webapi-settings-architect.mdindex 00cfe7fb6..19812b152 100644--- a/plugins/power-pages/agents/ai-webapi-settings-architect.md+++ b/plugins/power-pages/agents/ai-webapi-settings-architect.md@@ -351,19 +351,19 @@ Step 6 so the "Create Files" step knows which action to take.**Master toggle:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/Data/Enable" --value "true" --description "Enable the Power Pages data summarization API" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/Data/Enable" --value "true" --description "Enable the Power Pages data summarization API" --type "boolean"```**Prompt setting (one per identifier):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/prompt/<identifier>" --value "<prompt text>" --description "<short description of what this prompt does>"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/prompt/<identifier>" --value "<prompt text>" --description "<short description of what this prompt does>"```**Content-size override:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/Data/ContentSizeLimit" --value "<integer>" --description "Override the default 100000-character summarization input cap"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Summarization/Data/ContentSizeLimit" --value "<integer>" --description "Override the default 100000-character summarization input cap"```Include this setting in the plan whenever:diff --git a/plugins/power-pages/agents/data-model-architect.md b/plugins/power-pages/agents/data-model-architect.mdindex 3851c0504..5a1b5055f 100644--- a/plugins/power-pages/agents/data-model-architect.md+++ b/plugins/power-pages/agents/data-model-architect.md@@ -90,7 +90,7 @@ Extract the environment URL (e.g., `https://org12345.crm.dynamics.com`). Use thiVerify Dataverse access and obtain authentication details using the shared script:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. If it fails, inform the user that Azure CLI login is required (`az login --allow-no-subscriptions` — works whether or not the user has an Azure subscription).@@ -100,7 +100,7 @@ This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. If iFetch custom tables from Dataverse:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions?$select=LogicalName,DisplayName,Description&$filter=IsCustomEntity eq true"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions?$select=LogicalName,DisplayName,Description&$filter=IsCustomEntity eq true"```The script outputs JSON with `status` and `data`. Parse `data.value` to list each table's `LogicalName`, `DisplayName.UserLocalizedLabel.Label`, and `Description.UserLocalizedLabel.Label`.@@ -110,7 +110,7 @@ The script outputs JSON with `status` and `data`. Parse `data.value` to list eacFor each relevant table, fetch its columns:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_name>')/Attributes?$select=LogicalName,DisplayName,AttributeType,RequiredLevel"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_name>')/Attributes?$select=LogicalName,DisplayName,AttributeType,RequiredLevel"```Parse `data.value` to list each column's `LogicalName`, `DisplayName.UserLocalizedLabel.Label`, `AttributeType`, and `RequiredLevel.Value`.@@ -120,7 +120,7 @@ Parse `data.value` to list each column's `LogicalName`, `DisplayName.UserLocalizFetch relationships for relevant tables:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_name>')/OneToManyRelationships?$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_name>')/OneToManyRelationships?$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute"```Parse `data.value` to list each relationship's `SchemaName`, `ReferencedEntity`, `ReferencingEntity`, and `ReferencingAttribute`.@@ -130,7 +130,7 @@ Parse `data.value` to list each relationship's `SchemaName`, `ReferencedEntity`,Query the `CDS Default Publisher` to get the customization prefix used for new tables and columns:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "publishers?$filter=friendlyname eq 'CDS Default Publisher'&$select=customizationprefix"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "publishers?$filter=friendlyname eq 'CDS Default Publisher'&$select=customizationprefix"```Parse `data.value[0].customizationprefix` to get the prefix (e.g., `cr123`). All new table logical names must be prefixed with `{prefix}_` (e.g., `cr123_project`) and all new custom column logical names must also use this prefix (e.g., `cr123_projectname`). This ensures new entities are created under the environment's default publisher.@@ -138,7 +138,7 @@ Parse `data.value[0].customizationprefix` to get the prefix (e.g., `cr123`). AllIf the query returns no results, try querying all publishers and pick the first non-Microsoft one:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "publishers?$select=friendlyname,customizationprefix"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "publishers?$select=friendlyname,customizationprefix"```If still unable to determine the prefix, use `cr` as a placeholder and note in the proposal that the user should confirm their publisher prefix.@@ -255,7 +255,7 @@ Follow these conventions:**Do this BEFORE entering plan mode.** Render the complete data model plan — including tables, columns, rationale, and the ER diagram — as an interactive HTML page in the browser.-The HTML template is at `${CLAUDE_PLUGIN_ROOT}/agents/assets/data-model-plan.html`. It uses placeholder tokens that you replace with actual data.+The HTML template is at `${PLUGIN_ROOT}/agents/assets/data-model-plan.html`. It uses placeholder tokens that you replace with actual data.#### 4.5.1 Prepare the Data@@ -332,7 +332,7 @@ Include these rationale categories:2. Run the render script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-data-model-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-data-model-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. Before calling it, check if the default output path (`<PROJECT_ROOT>/docs/data-model-plan.html`) already exists. If it does, choose a new descriptive filename based on context — e.g., `data-model-plan-support-tables.html`, `data-model-plan-apr-2026.html`. Pass the chosen name via `--output`.diff --git a/plugins/power-pages/agents/table-permissions-architect.md b/plugins/power-pages/agents/table-permissions-architect.mdindex 3e238370d..f24d9d9a9 100644--- a/plugins/power-pages/agents/table-permissions-architect.md+++ b/plugins/power-pages/agents/table-permissions-architect.md@@ -283,7 +283,7 @@ Use `TaskList` at any point to review progress and see which tables still need aFor each table, mark its task `in_progress` and work through the privilege analysis checklist (sections A through K), recording code evidence for every decision.-> Reference: ${CLAUDE_PLUGIN_ROOT}/references/table-permission-analysis-guide.md+> Reference: ${PLUGIN_ROOT}/references/table-permission-analysis-guide.mdMark the table's task as `completed` via `TaskUpdate`.@@ -291,7 +291,7 @@ Mark the table's task as `completed` via `TaskUpdate`.After all individual table analyses are complete, perform the cross-table validation pass (append/appendto consistency, `$expand` coverage, parent chain completeness, orphaned permissions, web role coverage, and role consolidation).-> Reference: ${CLAUDE_PLUGIN_ROOT}/references/table-permission-analysis-guide.md — "Cross-Table Validation" section+> Reference: ${PLUGIN_ROOT}/references/table-permission-analysis-guide.md — "Cross-Table Validation" sectionUse `TaskList` to review all completed analyses, then mark the "Compile final permissions plan" task as `in_progress`.@@ -312,7 +312,7 @@ Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`).Verify Dataverse access and obtain auth credentials:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. The token is used automatically by the `dataverse-request.js` script below.@@ -322,7 +322,7 @@ This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. TheFor tables that have parent-child relationships (Parent scope permissions), fetch the relationship names:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<parent_table>')/OneToManyRelationships?\$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<parent_table>')/OneToManyRelationships?\$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute"```The output JSON contains a `data.value` array with each relationship's `SchemaName`, `ReferencedEntity`, `ReferencingEntity`, and `ReferencingAttribute`.@@ -342,7 +342,7 @@ Use this to confirm `contactrelationship` / `accountrelationship` on the securedFor each table that has `create` or `write` permissions, query its lookup columns to determine append/appendto requirements:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes/Microsoft.Dynamics.CRM.LookupAttributeMetadata?\$select=LogicalName,Targets"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes/Microsoft.Dynamics.CRM.LookupAttributeMetadata?\$select=LogicalName,Targets"```The output JSON contains a `data.value` array with each lookup column's `LogicalName` and `Targets` array.@@ -413,16 +413,16 @@ For each permission, prepare the exact `create-table-permission.js` script invoc**For Global/Contact/Account/Self scope:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Self" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Self" [--read] [--create] [--write] [--delete] [--append] [--appendto]```**For Parent scope:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1>" --scope "Parent" --parentPermissionId "<parent-uuid>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1>" --scope "Parent" --parentPermissionId "<parent-uuid>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]```Note: Parent permissions must be created before child permissions — the child's `--parentPermissionId` uses the UUID from the parent's JSON output.@@ -434,7 +434,7 @@ For Contact and Account scopes, the relationship argument is mandatory and mustPrepare the JSON data file and run the render script following the data format reference:-> Reference: ${CLAUDE_PLUGIN_ROOT}/references/permissions-plan-data-format.md+> Reference: ${PLUGIN_ROOT}/references/permissions-plan-data-format.md### 5.3 Summary and Next Steps@@ -465,7 +465,7 @@ After the user approves the plan:1. **Create web roles** if the plan identified missing web roles. Use the `create-web-role.js` script from the create-webroles skill:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]+node "${PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]```Capture the JSON output (`{ "id": "<uuid>", "filePath": "<path>" }`) — you need the `id` for `--webRoleIds` in table permissions.@@ -476,12 +476,12 @@ Run each script invocation prepared in section 5.1:```bash# Parent permission first-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Parent Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Contact Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Account Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Parent Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Contact Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Account Permission Name>" --tableName "<table>" --webRoleIds "<uuid>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]# Then child permissions using parent's UUID-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Child Permission Name>" --tableName "<child_table>" --webRoleIds "<uuid>" --scope "Parent" --parentPermissionId "<parent-uuid-from-above>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Child Permission Name>" --tableName "<child_table>" --webRoleIds "<uuid>" --scope "Parent" --parentPermissionId "<parent-uuid-from-above>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]```The scripts handle UUID generation, alphabetical field ordering, correct YAML formatting (unquoted booleans/numbers/UUIDs, `adx_entitypermission_webrole` array format), and file naming automatically.@@ -489,7 +489,7 @@ The scripts handle UUID generation, alphabetical field ordering, correct YAML fo**Before finalizing scope changes to existing permissions:** if you are running locally with Dataverse access, validate the resulting files using the shared validator with live relationship checks:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "<envUrl>"+node "${PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "<envUrl>"```If this local validation reports relationship or schema problems, stop and revise the plan instead of proceeding with file creation.diff --git a/plugins/power-pages/agents/webapi-integration.md b/plugins/power-pages/agents/webapi-integration.mdindex b1800cd9e..14d72695c 100644--- a/plugins/power-pages/agents/webapi-integration.md+++ b/plugins/power-pages/agents/webapi-integration.md@@ -146,7 +146,7 @@ Extract the `Environment URL` value (e.g., `https://org12345.crm.dynamics.com`).Verify Dataverse access and obtain an auth token:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. The token is used automatically by the `dataverse-request.js` script below.@@ -156,7 +156,7 @@ This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. TheGet the actual OData entity set name from Dataverse (do not guess from pluralization):```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')?\$select=EntitySetName,PrimaryIdAttribute,PrimaryNameAttribute"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')?\$select=EntitySetName,PrimaryIdAttribute,PrimaryNameAttribute"```The script outputs JSON: `{ "status": <code>, "data": { "EntitySetName": "...", "PrimaryIdAttribute": "...", "PrimaryNameAttribute": "..." } }`.@@ -168,7 +168,7 @@ Use the returned `EntitySetName` for all `/_api/` URLs. Use `PrimaryIdAttribute`Fetch actual column logical names, display names, and types:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,IsPrimaryId&\$filter=IsCustomAttribute eq true or IsPrimaryId eq true"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,IsPrimaryId&\$filter=IsCustomAttribute eq true or IsPrimaryId eq true"```The script outputs JSON: `{ "status": <code>, "data": { "value": [...] } }`. Each entry in `value` contains `LogicalName`, `DisplayName`, `AttributeType`, and `IsPrimaryId`.@@ -184,7 +184,7 @@ This returns the **real** column logical names. Cross-reference against the maniIf the table has lookup columns, fetch relationship metadata to get the correct Navigation Property names (case-sensitive, needed for `$expand` and `@odata.bind`):```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/ManyToOneRelationships?\$select=SchemaName,ReferencedEntity,ReferencingAttribute,ReferencingEntityNavigationPropertyName"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/ManyToOneRelationships?\$select=SchemaName,ReferencedEntity,ReferencingAttribute,ReferencingEntityNavigationPropertyName"```The script outputs JSON: `{ "status": <code>, "data": { "value": [...] } }`. Each entry in `value` contains `ReferencingEntityNavigationPropertyName`, `ReferencedEntity`, `ReferencingAttribute`, and `SchemaName`.@@ -196,7 +196,7 @@ Use `ReferencingEntityNavigationPropertyName` as the Navigation Property name inIf the table has one-to-many relationships (e.g., order → order lines, account → contacts), fetch the relationship metadata to get the correct collection-valued navigation property names:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/OneToManyRelationships?$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute,ReferencedEntityNavigationPropertyName"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/OneToManyRelationships?$select=SchemaName,ReferencedEntity,ReferencingEntity,ReferencingAttribute,ReferencedEntityNavigationPropertyName"```The script outputs JSON: `{ "status": <code>, "data": { "value": [...] } }`. Each entry contains `ReferencedEntityNavigationPropertyName` (the collection-valued navigation property on the parent entity), `ReferencingEntity` (the child table), and `ReferencingAttribute` (the foreign key column on the child table).@@ -221,7 +221,7 @@ Create `src/shared/powerPagesApi.ts` — a centralized fetch wrapper shared by aRead the complete file template:-Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-core-client.md`+Reference: `${PLUGIN_ROOT}/references/webapi-core-client.md`---@@ -229,7 +229,7 @@ Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-core-client.md`Create TypeScript type definitions for the target table. Place them following existing project conventions. If no convention exists, use `src/types/<tableName>.ts`. Define the raw OData entity interface, clean domain type, option set constants, create/update input types, and an entity-to-domain mapper function. Follow the lookup property rules for retrieval (`_value` GUID property in `$select`, Navigation Property in `$expand`) vs mutation (`@odata.bind` on Navigation Property).-Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Entity Types (Step 4)" section. If the table has one-to-many relationships that will be expanded, also define interfaces for the related entity types and include them as properties on the parent entity interface — see "Related Entities ($expand)" section.+Reference: `${PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Entity Types (Step 4)" section. If the table has one-to-many relationships that will be expanded, also define interfaces for the related entity types and include them as properties on the parent entity interface — see "Related Entities ($expand)" section.---@@ -237,7 +237,7 @@ Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-service-patterns.md` — seeCreate a service module with CRUD operations for the target table. Place it following project conventions. Default: `src/shared/services/<tableName>Service.ts`. Implement list (paginated with `Prefer: odata.maxpagesize=N` + `@odata.nextLink`), get by ID, create (POST with `Prefer: return=representation` + Location header fallback), update (PATCH with `If-Match: *`), delete, and optionally M:N sync, count, aggregation, and file/image column operations.-Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Service Layer (Step 5)" section. If the table has lookup or one-to-many relationships, implement `$expand` using the `buildExpandClause` helper from the core API client — see "Related Entities ($expand)" section for expand patterns, nested expand, collection paging, and when to fetch related records separately.+Reference: `${PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Service Layer (Step 5)" section. If the table has lookup or one-to-many relationships, implement `$expand` using the `buildExpandClause` helper from the core API client — see "Related Entities ($expand)" section for expand patterns, nested expand, collection paging, and when to fetch related records separately.---@@ -245,7 +245,7 @@ Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-service-patterns.md` — seeCreate framework-specific reactive data-fetching wrappers based on the detected framework: React custom hooks (+ DataverseImage component for image columns), Vue composables, Angular injectable services, or Astro direct imports.-Reference: `${CLAUDE_PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Framework Hooks (Step 6)" section.+Reference: `${PLUGIN_ROOT}/references/webapi-service-patterns.md` — see "Framework Hooks (Step 6)" section.---diff --git a/plugins/power-pages/agents/webapi-settings-architect.md b/plugins/power-pages/agents/webapi-settings-architect.mdindex 6eea43abf..468084782 100644--- a/plugins/power-pages/agents/webapi-settings-architect.md+++ b/plugins/power-pages/agents/webapi-settings-architect.md@@ -208,7 +208,7 @@ Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`).Verify Dataverse access and obtain an auth token:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. The token is used automatically by the `dataverse-request.js` script below.@@ -218,7 +218,7 @@ This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`. TheFor each table that needs Web API access, fetch its columns:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,IsPrimaryId,SchemaName&\$filter=IsCustomAttribute eq true or IsPrimaryId eq true"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table_logical_name>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,IsPrimaryId,SchemaName&\$filter=IsCustomAttribute eq true or IsPrimaryId eq true"```The script outputs JSON: `{ "status": <code>, "data": { "value": [...] } }`. Each entry in `value` contains `LogicalName`, `SchemaName`, `DisplayName`, `AttributeType`, and `IsPrimaryId`.@@ -340,13 +340,13 @@ For each table that needs Web API access, prepare the exact `create-site-setting**1. Enable setting:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table_logical_name>/enabled" --value "true" --description "Enable Web API access for <table_logical_name> table" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table_logical_name>/enabled" --value "true" --description "Enable Web API access for <table_logical_name> table" --type "boolean"```**2. Fields setting:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table_logical_name>/fields" --value "<comma-separated-validated-column-logicalnames>" --description "Allowed fields for <table_logical_name> Web API access"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table_logical_name>/fields" --value "<comma-separated-validated-column-logicalnames>" --description "Allowed fields for <table_logical_name> Web API access"```**CRITICAL: For normal CRUD/read scenarios, the `--value` for fields settings MUST use exact Dataverse LogicalNames (all lowercase), comma-separated, with NO spaces after commas. NEVER use SchemaName (PascalCase) or any other casing variant. Every column name must have been validated against Dataverse in Step 5. If the table has File or Image columns accessed via the Web API, OR the site uses aggregate OData queries (`$apply`, `aggregate`, grouped totals), use `*` instead — the `/$value` download endpoint internally does `SELECT *`, so an explicit column list causes 403.**@@ -362,7 +362,7 @@ Example (with lookup column `cra5b_productcategoryid`):**3. Optionally**, if `Webapi/error/innererror` does not already exist, suggest it for debugging:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/error/innererror" --value "true" --description "Enable detailed error messages for debugging" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/error/innererror" --value "true" --description "Enable detailed error messages for debugging" --type "boolean"```### 6.2 Rationale, Summary, and Next Steps@@ -401,10 +401,10 @@ After the user approves the plan, create the site setting files using the `creat```bash# Enable setting-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/enabled" --value "true" --description "Enable Web API access for <table> table" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/enabled" --value "true" --description "Enable Web API access for <table> table" --type "boolean"# Fields setting-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/fields" --value "<validated-columns>" --description "Allowed fields for <table> Web API access"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/fields" --value "<validated-columns>" --description "Allowed fields for <table> Web API access"```The script handles UUID generation, alphabetical field ordering, correct YAML formatting (unquoted booleans/strings/UUIDs), and file naming automatically.diff --git a/plugins/power-pages/references/alm-docs-grounding.md b/plugins/power-pages/references/alm-docs-grounding.mdindex 5ee9a2ab1..0c69c6327 100644--- a/plugins/power-pages/references/alm-docs-grounding.md+++ b/plugins/power-pages/references/alm-docs-grounding.md@@ -70,12 +70,12 @@ Each skill's SKILL.md should embed a phase block like this (substitute the per-s```markdown### Phase 1.5 — Ground in current ALM documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `<skill-specific query from the reference>`.2. Fetch the canonical anchor page (`<anchor URL>`) and at most one sister page that matches the current scope, in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what the docs say today — flag any breaking changes vs. the HAR-confirmed patterns in `${CLAUDE_PLUGIN_ROOT}/references/<solution-api-patterns | cicd-pipeline-patterns>.md`.+3. Extract a one-paragraph summary of what the docs say today — flag any breaking changes vs. the HAR-confirmed patterns in `${PLUGIN_ROOT}/references/<solution-api-patterns | cicd-pipeline-patterns>.md`.4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning.```diff --git a/plugins/power-pages/references/dataverse-prerequisites.md b/plugins/power-pages/references/dataverse-prerequisites.mdindex fed83fbb4..d42cc7ed9 100644--- a/plugins/power-pages/references/dataverse-prerequisites.md+++ b/plugins/power-pages/references/dataverse-prerequisites.md@@ -21,7 +21,7 @@ Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`). StoreRun the shared script to obtain an Azure CLI token and verify Dataverse API access in one step:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```On success (exit 0), it outputs JSON to stdout with `token`, `userId`, `organizationId`, and `tenantId`. On failure (exit 1), stderr explains the issue (missing `az login --allow-no-subscriptions`, expired token, etc.).diff --git a/plugins/power-pages/references/odata-common.md b/plugins/power-pages/references/odata-common.mdindex 33e59b80e..e509c670f 100644--- a/plugins/power-pages/references/odata-common.md+++ b/plugins/power-pages/references/odata-common.md@@ -21,7 +21,7 @@ All requests require the following headers:To verify access and obtain a token:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`.@@ -29,7 +29,7 @@ This outputs JSON with `token`, `userId`, `organizationId`, and `tenantId`.For making requests, use `dataverse-request.js` which handles authentication headers automatically:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET /api/data/v9.2/entities+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET /api/data/v9.2/entities```### Token Refresh@@ -37,7 +37,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET /api/dataAzure CLI tokens expire after ~60 minutes. The `dataverse-request.js` script handles 401 token refresh automatically. For long-running operations (many records or multiple tables), re-run `verify-dataverse-access.js` periodically (every ~20 records or 3-4 tables) to confirm access is still valid:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```---@@ -90,7 +90,7 @@ The `dataverse-request.js` script handles retries internally:No manual retry logic is needed. Simply call the script and check the returned status code:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST /api/data/v9.2/cr123_projects --body "{\"cr123_name\":\"My Project\"}"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST /api/data/v9.2/cr123_projects --body "{\"cr123_name\":\"My Project\"}"```The output is JSON: `{ "status": <code>, "data": {...} }`. If the request fails after retries, inspect `status` and `data.error.message` to determine the appropriate action from the error tables above.diff --git a/plugins/power-pages/references/permissions-plan-data-format.md b/plugins/power-pages/references/permissions-plan-data-format.mdindex e222564d5..9e6abfe62 100644--- a/plugins/power-pages/references/permissions-plan-data-format.md+++ b/plugins/power-pages/references/permissions-plan-data-format.md@@ -125,7 +125,7 @@ Use HTML entity references for icons if needed: `🛡️` (shield), `&Run the render script (it creates the output directory if needed):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-permissions-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-permissions-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. Before calling it, check if the default output path (`<PROJECT_ROOT>/docs/permissions-plan.html`) already exists. If it does, choose a new descriptive filename based on context — e.g., `permissions-plan-support-tables.html`, `permissions-plan-apr-2026.html`. Pass the chosen name via `--output`.diff --git a/plugins/power-pages/references/skill-tracking-reference.md b/plugins/power-pages/references/skill-tracking-reference.mdindex 264305091..6b0332d65 100644--- a/plugins/power-pages/references/skill-tracking-reference.md+++ b/plugins/power-pages/references/skill-tracking-reference.md@@ -11,7 +11,7 @@ Tracking only runs when `.powerpages-site/site-settings/` exists (site has beenRun the shared tracking script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/update-skill-tracking.js" --projectRoot "<PROJECT_ROOT>" --skillName "<PascalCaseName>" --authoringTool "<YourAgentName>"+node "${PLUGIN_ROOT}/scripts/update-skill-tracking.js" --projectRoot "<PROJECT_ROOT>" --skillName "<PascalCaseName>" --authoringTool "<YourAgentName>"```- `--projectRoot`: The project root directory (containing `powerpages.config.json`)diff --git a/plugins/power-pages/scripts/check-version.js b/plugins/power-pages/scripts/check-version.jsindex 8970462f8..20c4cf8dd 100644--- a/plugins/power-pages/scripts/check-version.js+++ b/plugins/power-pages/scripts/check-version.js@@ -9,10 +9,20 @@* Functions are also exported for testing.*/-const { execSync } = require('child_process');+const { execFileSync, execSync } = require('child_process');const path = require('path');const fs = require('fs');+const MARKETPLACE_PATHS = [+ 'marketplace.json',+ '.plugin/marketplace.json',+ '.claude-plugin/marketplace.json',+];+const PLUGIN_MANIFEST_PATHS = [+ '.plugin/plugin.json',+ '.claude-plugin/plugin.json',+];+/*** Compare two semver strings (major.minor.patch).* Returns 1 if b > a (remote newer), -1 if a > b (local newer), 0 if equal.@@ -43,17 +53,42 @@ function formatUpdateMessage(pluginName, localVersion, remoteVersion, marketplac}/**- * Read the marketplace name from .claude-plugin/marketplace.json at the git root.+ * Read the marketplace name from the git root.* Returns null if not found.*/function readMarketplaceName(gitRoot) {- try {- const marketplacePath = path.join(gitRoot, '.claude-plugin', 'marketplace.json');- const marketplace = JSON.parse(fs.readFileSync(marketplacePath, 'utf8'));- return marketplace.name || null;- } catch {- return null;+ const marketplace = readFirstJson(gitRoot, MARKETPLACE_PATHS);+ return marketplace?.name || null;+}++function firstExistingPath(root, relativePaths) {+ for (const relativePath of relativePaths) {+ const filePath = path.join(root, relativePath);+ if (fs.existsSync(filePath)) return filePath;}+ return null;+}++function readFirstJson(root, relativePaths) {+ const filePath = firstExistingPath(root, relativePaths);+ if (!filePath) return null;+ return JSON.parse(fs.readFileSync(filePath, 'utf8'));+}++function readJsonFromGit(ref, relativePaths) {+ for (const relativePath of relativePaths) {+ try {+ const content = execFileSync('git', ['show', `${ref}:${relativePath}`], {+ encoding: 'utf8',+ timeout: 5000,+ stdio: ['pipe', 'pipe', 'pipe'],+ });+ return JSON.parse(content);+ } catch {+ // Try the next manifest path.+ }+ }+ return null;}module.exports = { compareSemver, formatUpdateMessage, readMarketplaceName };@@ -61,7 +96,8 @@ module.exports = { compareSemver, formatUpdateMessage, readMarketplaceName };if (require.main === module) {try {const pluginRoot = path.resolve(__dirname, '..');- const pluginJsonPath = path.join(pluginRoot, '.claude-plugin', 'plugin.json');+ const pluginJsonPath = firstExistingPath(pluginRoot, PLUGIN_MANIFEST_PATHS);+ if (!pluginJsonPath) process.exit(0);const localPlugin = JSON.parse(fs.readFileSync(pluginJsonPath, 'utf8'));const localVersion = localPlugin.version;@@ -73,7 +109,9 @@ if (require.main === module) {stdio: ['pipe', 'pipe', 'pipe'],}).trim();- const relPath = path.relative(gitRoot, pluginJsonPath).replace(/\\/g, '/');+ const remoteManifestPaths = PLUGIN_MANIFEST_PATHS.map((manifestPath) =>+ path.relative(gitRoot, path.join(pluginRoot, manifestPath)).replace(/\\/g, '/')+ );// Best-effort fetchtry {@@ -86,12 +124,8 @@ if (require.main === module) {// Use cached origin/main}- const remoteContent = execSync(`git show origin/main:${relPath}`, {- encoding: 'utf8',- timeout: 5000,- stdio: ['pipe', 'pipe', 'pipe'],- });- const remotePlugin = JSON.parse(remoteContent);+ const remotePlugin = readJsonFromGit('origin/main', remoteManifestPaths);+ if (!remotePlugin) process.exit(0);const remoteVersion = remotePlugin.version;if (!remoteVersion) process.exit(0);diff --git a/plugins/power-pages/scripts/launch-playwright-mcp.js b/plugins/power-pages/scripts/launch-playwright-mcp.jsindex cc1986787..2762542d9 100644--- a/plugins/power-pages/scripts/launch-playwright-mcp.js+++ b/plugins/power-pages/scripts/launch-playwright-mcp.js@@ -28,6 +28,7 @@ function buildMcpArgs(browser, {platform = process.platform,} = {}) {return [+ '-y','@playwright/mcp@latest','--browser',browser,diff --git a/plugins/power-pages/scripts/tests/check-version.test.js b/plugins/power-pages/scripts/tests/check-version.test.jsindex 7aa6ba47d..4b0abdc84 100644--- a/plugins/power-pages/scripts/tests/check-version.test.js+++ b/plugins/power-pages/scripts/tests/check-version.test.js@@ -1,5 +1,8 @@const test = require('node:test');const assert = require('node:assert/strict');+const fs = require('node:fs');+const os = require('node:os');+const path = require('node:path');const { compareSemver, formatUpdateMessage, readMarketplaceName } = require('../check-version');@@ -67,6 +70,17 @@ test('readMarketplaceName reads from the git root marketplace.json', () => {assert.equal(name, 'power-platform-skills');});+test('readMarketplaceName falls back to legacy marketplace path', () => {+ const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'power-pages-version-'));+ fs.mkdirSync(path.join(tempDir, '.claude-plugin'));+ fs.writeFileSync(+ path.join(tempDir, '.claude-plugin', 'marketplace.json'),+ JSON.stringify({ name: 'legacy-marketplace' })+ );++ assert.equal(readMarketplaceName(tempDir), 'legacy-marketplace');+});+test('readMarketplaceName returns null for nonexistent path', () => {assert.equal(readMarketplaceName('/nonexistent/path'), null);});diff --git a/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.js b/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.jsindex 2f7c11a76..0a5323fe5 100644--- a/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.js+++ b/plugins/power-pages/scripts/tests/launch-playwright-mcp.test.js@@ -15,7 +15,7 @@ test('buildMcpArgs launches Playwright MCP with fullscreen config', () => {const args = buildMcpArgs('chrome');const configIndex = args.indexOf('--config');- assert.deepEqual(args.slice(0, 3), ['@playwright/mcp@latest', '--browser', 'chrome']);+ assert.deepEqual(args.slice(0, 4), ['-y', '@playwright/mcp@latest', '--browser', 'chrome']);assert.equal(args.includes('--viewport-size'), false);assert.notEqual(configIndex, -1);assert.equal(args[configIndex + 1], quoteShellArg(expectedConfigPath));@@ -53,7 +53,7 @@ test('launch wires spawn and process exit handling', () => {});assert.equal(spawnCall.command, 'npx');- assert.deepEqual(spawnCall.args.slice(0, 3), ['@playwright/mcp@latest', '--browser', 'msedge']);+ assert.deepEqual(spawnCall.args.slice(0, 4), ['-y', '@playwright/mcp@latest', '--browser', 'msedge']);assert.deepEqual(spawnCall.options, { stdio: 'inherit', shell: true });child.emit('exit', 7);diff --git a/plugins/power-pages/scripts/tests/validate-solution.test.js b/plugins/power-pages/scripts/tests/validate-solution.test.jsindex de672aa35..3f0894cc7 100644--- a/plugins/power-pages/scripts/tests/validate-solution.test.js+++ b/plugins/power-pages/scripts/tests/validate-solution.test.js@@ -40,9 +40,15 @@ function writeManifest(dir, manifest) {}function run(cwd) {+ const cliIsolatedEnv = {+ ...process.env,+ PATH: path.dirname(process.execPath),+ Path: path.dirname(process.execPath),+ };const result = spawnSync(process.execPath, [VALIDATOR], {input: JSON.stringify({ cwd }),encoding: 'utf8',+ env: cliIsolatedEnv,timeout: 10000,});return { code: result.status, stdout: result.stdout || '', stderr: result.stderr || '' };diff --git a/plugins/power-pages/skills/activate-site/SKILL.md b/plugins/power-pages/skills/activate-site/SKILL.mdindex 6c388ceee..6bfce0a20 100644--- a/plugins/power-pages/skills/activate-site/SKILL.md+++ b/plugins/power-pages/skills/activate-site/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Activate Power Pages Site@@ -91,7 +91,7 @@ az account showBefore gathering parameters, check whether the site is already activated by running the shared activation status script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"+node "${PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"```Where `<PROJECT_ROOT>` is the directory containing `powerpages.config.json` or `.powerpages-site` folder.@@ -133,7 +133,7 @@ Read the file and extract the `siteName` field. If not found, ask the user for tRun the subdomain generator script to create a random suggestion:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/activate-site/scripts/generate-subdomain.js"+node "${PLUGIN_ROOT}/skills/activate-site/scripts/generate-subdomain.js"```This outputs a string like `site-a3f2b1`. Resolve the correct site URL domain from the **Cloud** value obtained in Phase 1.2:@@ -211,7 +211,7 @@ Present all activation parameters to the user using `AskUserQuestion`:Run the shared activation script, passing all parameters gathered in Phases 1–2:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/activate-site/scripts/activate-site.js" --siteName "<siteName>" --subdomain "<subdomain>" --organizationId "<organizationId>" --environmentId "<environmentId>" --cloud "<cloud>" --websiteRecordId "<websiteRecordId>"+node "${PLUGIN_ROOT}/skills/activate-site/scripts/activate-site.js" --siteName "<siteName>" --subdomain "<subdomain>" --organizationId "<organizationId>" --environmentId "<environmentId>" --cloud "<cloud>" --websiteRecordId "<websiteRecordId>"```Omit `--websiteRecordId` if it is null/empty.@@ -290,14 +290,14 @@ When the activation was an **already-activated** detection (Phase 1.4), still wr#### 5.2 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "ActivateSite"`.#### 5.2b Refresh the ALM plan (if one exists)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase activate-site \--stageName "{stageNameOrEmpty}" \diff --git a/plugins/power-pages/skills/add-ai-webapi/SKILL.md b/plugins/power-pages/skills/add-ai-webapi/SKILL.mdindex 97689d2a9..3f6834991 100644--- a/plugins/power-pages/skills/add-ai-webapi/SKILL.md+++ b/plugins/power-pages/skills/add-ai-webapi/SKILL.md@@ -18,7 +18,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Add AI Web API@@ -52,7 +52,7 @@ Integrate Power Pages generative-AI summarization APIs into a SPA site. This ski> `adx_case`), or the standard incident table summarised on different facets (priority, owner,> SLA timer), is just a regular Data Summarization call with maker-defined values.-> Reference: `${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` — canonical+> Reference: `${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` — canonical> API shapes, required headers, site-setting names, error codes, and the documented support-case> example. Read this at the start of the workflow; fetch the Microsoft Learn source pages with> `mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch` if the user asks for the latest.@@ -220,7 +220,7 @@ Look for `powerpages.config.json` in the current directory or immediate subdirec### 1.3 Detect frameworkRead `package.json` and detect React / Vue / Angular / Astro. See-`${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md`.+`${PLUGIN_ROOT}/references/framework-conventions.md`.### 1.4 Check for data model@@ -268,7 +268,7 @@ delegation needs at least one role before `/integrate-webapi` can create table p**Goal**: Find every candidate for each of the two APIs — scoped to AI only.The full Explore-agent prompt body, manifest shape, and delegation-decision rules live in-`${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/explore-prompt.md`. Read that file+`${PLUGIN_ROOT}/skills/add-ai-webapi/references/explore-prompt.md`. Read that filefirst, then invoke the **Explore agent** (via `Task` with `subagent_type: "Explore"`,thoroughness `medium`) and pass the prompt body verbatim.@@ -382,7 +382,7 @@ After the user confirms targets, ask per-target follow-up questions only when nechosen target kind decides which scope question (LIST or SINGLE-RECORD) to ask next.Question text, option lists, and the scope-classification → question mapping live in-`${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/scope-classification.md`. Read it+`${PLUGIN_ROOT}/skills/add-ai-webapi/references/scope-classification.md`. Read itwhen any per-target follow-up is required.The chosen values flow into the Phase 5 agent-invocation prompt as the **Scope for the summary@@ -528,10 +528,10 @@ exists; web roles exist.### 5.1 Invoke the `ai-webapi-integration` agent — first target (sequential)For the first target in the confirmed manifest, invoke the agent at-`${CLAUDE_PLUGIN_ROOT}/agents/ai-webapi-integration.md` via `Task`. The full prompt+`${PLUGIN_ROOT}/agents/ai-webapi-integration.md` via `Task`. The full prompttemplate — every field the agent expects, with notes on which orchestrator phase resolvedeach value — lives in-`${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/agent-invocation-prompt.md`. Read+`${PLUGIN_ROOT}/skills/add-ai-webapi/references/agent-invocation-prompt.md`. Readthat file, copy the template, replace every `<…>` placeholder with the concrete value forthe current target, and pass it via `Task`. The agent does not interpret placeholders;sending the literal text `<search | data>` will confuse it.@@ -627,7 +627,7 @@ architect with a missing folder.### 6.3 Invoke `ai-webapi-settings-architect`-Invoke the agent at `${CLAUDE_PLUGIN_ROOT}/agents/ai-webapi-settings-architect.md` via `Task`:+Invoke the agent at `${PLUGIN_ROOT}/agents/ai-webapi-settings-architect.md` via `Task`:> "Analyse this Power Pages SPA site and propose generative-AI summarization site settings.> The following Data Summarization targets were integrated in Phase 5: [list each target with its@@ -767,7 +767,7 @@ identifier.)### 8.1 Record skill usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Use `--skillName "AddAiWebapi"`.@@ -872,7 +872,7 @@ Copilot card are the wrong defaults — collection endpoint, tabular-insight proThe full 10-rule playbook (collection endpoint, scope mirroring, prompt size, nav-propertycasing, mandatory `ContentSizeLimit`) lives in-`${CLAUDE_PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` §2 "List-summary+`${PLUGIN_ROOT}/skills/add-ai-webapi/references/ai-api-reference.md` §2 "List-summaryplaybook". Read that section before any list-summary target reaches Phase 5 — the Phase 5agent and the Phase 6 settings architect both reference the same playbook.diff --git a/plugins/power-pages/skills/add-ai-webapi/references/ai-api-reference.md b/plugins/power-pages/skills/add-ai-webapi/references/ai-api-reference.mdindex 5c4728330..01ac3a644 100644--- a/plugins/power-pages/skills/add-ai-webapi/references/ai-api-reference.md+++ b/plugins/power-pages/skills/add-ai-webapi/references/ai-api-reference.md@@ -526,7 +526,7 @@ Apply every rule below — the orchestrator skill (`/add-ai-webapi`) and the4. **Use the tabular-insight prompt**, not a narrative prompt. The 3-insights /<=200-words / no-suggested-actions pattern produces much stronger output than "write a4-sentence narrative". Use the compact template in- `${CLAUDE_PLUGIN_ROOT}/agents/ai-webapi-settings-architect.md` (~570 chars) so the+ `${PLUGIN_ROOT}/agents/ai-webapi-settings-architect.md` (~570 chars) so thedeployed prompt fits the size budget.5. **Include at most one short domain-neutral few-shot example** (~250 chars) —sales-by-region, software purchases, fleet maintenance. Avoid domain-matched examples —diff --git a/plugins/power-pages/skills/add-cloud-flow/SKILL.md b/plugins/power-pages/skills/add-cloud-flow/SKILL.mdindex 273d78865..37755d55c 100644--- a/plugins/power-pages/skills/add-cloud-flow/SKILL.md+++ b/plugins/power-pages/skills/add-cloud-flow/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Add Cloud Flow@@ -108,7 +108,7 @@ Store these as the **already-registered flows** list. These flows already have m### 1.6 Detect Frontend Framework-Read `package.json` to detect the framework (React, Vue, Angular, Astro). Note the framework and its conventions for Phase 7. See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the detection mapping.+Read `package.json` to detect the framework (React, Vue, Angular, Astro). Note the framework and its conventions for Phase 7. See `${PLUGIN_ROOT}/references/framework-conventions.md` for the detection mapping.**Output**: Project root, site name, framework, available web roles, already-registered flows (with processid, name, and web roles)@@ -123,7 +123,7 @@ Read `package.json` to detect the framework (React, Vue, Angular, Astro). Note tRun the list-cloud-flows script (reads environment from `pac auth who` internally):```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/add-cloud-flow/scripts/list-cloud-flows.js"+node "${PLUGIN_ROOT}/skills/add-cloud-flow/scripts/list-cloud-flows.js"```This calls the **Power Automate Flow RP API** with the filter `properties/definitionSummary/triggers/any(t: t/kind eq 'powerpages')`. Results include:@@ -347,7 +347,7 @@ For **`integration-only`** flows, `webRoles` should reflect the existing roles f### 5.2 Render HTML Plan```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-cloudflow-plan.js" \+node "${PLUGIN_ROOT}/scripts/render-cloudflow-plan.js" \--output "<PROJECT_ROOT>/docs/cloud-flow-plan.html" \--data-inline '<json>'```@@ -410,7 +410,7 @@ Repeat steps 6.3–6.4 for every **`new`** flow in the approved plan.### 6.4 Run the Create Metadata Script```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/add-cloud-flow/scripts/create-cloud-flow-metadata.js" \+node "${PLUGIN_ROOT}/skills/add-cloud-flow/scripts/create-cloud-flow-metadata.js" \--projectRoot "<PROJECT_ROOT>" \--fileSlug "<url-safe-slug>" \--flowName "<flow-display-name>" \@@ -589,7 +589,7 @@ If any check fails, fix the issue in the service file or UI before continuing.### 8.2 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Use `--skillName "AddCloudFlow"`.diff --git a/plugins/power-pages/skills/add-sample-data/SKILL.md b/plugins/power-pages/skills/add-sample-data/SKILL.mdindex 67ed908b7..078a486a0 100644--- a/plugins/power-pages/skills/add-sample-data/SKILL.md+++ b/plugins/power-pages/skills/add-sample-data/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate,model: sonnet----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Add Sample Data@@ -32,7 +32,7 @@ Populate Dataverse tables with sample records via OData API so users can test an**Actions**:1. Create todo list with all 6 phases (see [Progress Tracking](#progress-tracking) table)-2. Follow the prerequisite steps in `${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md` to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as `<envUrl>` for subsequent script calls.+2. Follow the prerequisite steps in `${PLUGIN_ROOT}/references/dataverse-prerequisites.md` to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as `<envUrl>` for subsequent script calls.**Output**: Authenticated session with valid token and confirmed API access@@ -48,20 +48,20 @@ Populate Dataverse tables with sample records via OData API so users can test anCheck if `.datamodel-manifest.json` exists in the project root (written by the `setup-datamodel` skill). If it exists, read it -- it already contains table logical names, display names, and column info.-See `${CLAUDE_PLUGIN_ROOT}/references/datamodel-manifest-schema.md` for the full manifest schema.+See `${PLUGIN_ROOT}/references/datamodel-manifest-schema.md` for the full manifest schema.### Path B: Query OData API (Fallback)If no manifest exists, discover custom tables via OData:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions?\$select=LogicalName,DisplayName,EntitySetName&\$filter=IsCustomEntity eq true"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions?\$select=LogicalName,DisplayName,EntitySetName&\$filter=IsCustomEntity eq true"```For each discovered table, fetch its custom columns:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,RequiredLevel&\$filter=IsCustomAttribute eq true"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')/Attributes?\$select=LogicalName,DisplayName,AttributeType,RequiredLevel&\$filter=IsCustomAttribute eq true"```### 2.1 Present Available Tables@@ -174,7 +174,7 @@ Refer to `references/odata-record-patterns.md` for full patterns.For each table, get the entity set name (needed for the API URL):```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')?\$select=EntitySetName"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')?\$select=EntitySetName"```### 5.2 Get Picklist Options@@ -182,7 +182,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDeFor any picklist/choice columns, query valid option values before insertion:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')/Attributes(LogicalName='<column>')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?\$expand=OptionSet"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='<table>')/Attributes(LogicalName='<column>')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?\$expand=OptionSet"```Use the actual `Value` integers from the option set in your sample data.@@ -192,7 +192,7 @@ Use the actual `Value` integers from the option set in your sample data.Insert records into parent/referenced tables first to capture their IDs:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<EntitySetName>" --body '{"cr123_name":"Sample Record","cr123_description":"A sample record for testing"}' --include-headers+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<EntitySetName>" --body '{"cr123_name":"Sample Record","cr123_description":"A sample record for testing"}' --include-headers```The `--include-headers` flag includes the `OData-EntityId` response header, which contains the created record ID. Parse the GUID from the response to use in child table lookups.@@ -204,7 +204,7 @@ Store parent record IDs for use in child table lookups.For child/referencing tables, use `@odata.bind` syntax to set lookup fields:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<ChildEntitySetName>" --body '{"cr123_name":"Child Record","[email protected]":"/<ParentEntitySetName>(<parent_guid>)"}' --include-headers+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<ChildEntitySetName>" --body '{"cr123_name":"Child Record","[email protected]":"/<ParentEntitySetName>(<parent_guid>)"}' --include-headers```### 5.5 Track Progress@@ -220,7 +220,7 @@ Track each insertion attempt:The `dataverse-request.js` script handles 401 token refresh internally. For long-running operations (many records), periodically re-run `verify-dataverse-access.js` to confirm the session is still valid:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```**Output**: All approved records inserted with parent-child relationships established@@ -238,14 +238,14 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>For each table that was populated, query the record count:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "<EntitySetName>?\$count=true&\$top=0"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "<EntitySetName>?\$count=true&\$top=0"```The `@odata.count` field in the response gives the total record count.### 6.2 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "AddSampleData"`.diff --git a/plugins/power-pages/skills/add-sample-data/references/odata-record-patterns.md b/plugins/power-pages/skills/add-sample-data/references/odata-record-patterns.mdindex 8f0033f02..623b3fc7b 100644--- a/plugins/power-pages/skills/add-sample-data/references/odata-record-patterns.md+++ b/plugins/power-pages/skills/add-sample-data/references/odata-record-patterns.md@@ -2,7 +2,7 @@Reference document for the `add-sample-data` skill. Contains patterns for inserting records, setting lookup bindings, handling different column types, and querying record counts via the Dataverse OData Web API (v9.2).-> **Authentication, error handling, and retry patterns** are in the shared reference: `${CLAUDE_PLUGIN_ROOT}/references/odata-common.md`. Read that file first for headers, token refresh, HTTP status codes, and retry logic.+> **Authentication, error handling, and retry patterns** are in the shared reference: `${PLUGIN_ROOT}/references/odata-common.md`. Read that file first for headers, token refresh, HTTP status codes, and retry logic.---@@ -13,7 +13,7 @@ Entity set names are required for all record operations. They differ from logica**Endpoint:** `GET {envUrl}/api/data/v9.2/EntityDefinitions(LogicalName='<table>')?$select=EntitySetName````-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='cr123_project')?\$select=EntitySetName"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='cr123_project')?\$select=EntitySetName"```The response JSON `data.EntitySetName` contains the entity set name (e.g., `"cr123_projects"`).@@ -25,7 +25,7 @@ The response JSON `data.EntitySetName` contains the entity set name (e.g., `"cr1**Endpoint:** `POST {envUrl}/api/data/v9.2/<EntitySetName>````-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_projects" --body '{"cr123_name":"Website Redesign","cr123_description":"Modernize the corporate website with a fresh design","cr123_startdate":"2025-06-15T10:30:00Z","cr123_budget":15000.00,"cr123_isactive":true,"cr123_status":100000000}'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_projects" --body '{"cr123_name":"Website Redesign","cr123_description":"Modernize the corporate website with a fresh design","cr123_startdate":"2025-06-15T10:30:00Z","cr123_budget":15000.00,"cr123_isactive":true,"cr123_status":100000000}'```### Capturing the Created Record ID@@ -33,7 +33,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_pThe record ID is returned in the `OData-EntityId` response header. Use `--include-headers` to capture it:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_projects" --body '{"cr123_name":"Website Redesign"}' --include-headers+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_projects" --body '{"cr123_name":"Website Redesign"}' --include-headers```The response JSON includes a `headers` object with the `OData-EntityId` value. Parse the GUID from it to use in subsequent lookups.@@ -133,7 +133,7 @@ Before inserting records with picklist/choice columns, query the valid option va**Endpoint:** `GET {envUrl}/api/data/v9.2/EntityDefinitions(LogicalName='<table>')/Attributes(LogicalName='<column>')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$expand=OptionSet````-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='cr123_project')/Attributes(LogicalName='cr123_status')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?\$expand=OptionSet"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "EntityDefinitions(LogicalName='cr123_project')/Attributes(LogicalName='cr123_status')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?\$expand=OptionSet"```The response `data.OptionSet.Options` array contains objects with `Value` (e.g., `100000000`) and `Label.LocalizedLabels[0].Label` (e.g., `"Active"`).@@ -149,7 +149,7 @@ Use these actual `Value` integers in your sample data — never guess option valA task referencing a project:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_tasks" --body '{"cr123_name":"Design mockups","cr123_duedate":"2025-07-01T00:00:00Z","[email protected]":"/cr123_projects(<projectGuid>)"}' --include-headers+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_tasks" --body '{"cr123_name":"Design mockups","cr123_duedate":"2025-07-01T00:00:00Z","[email protected]":"/cr123_projects(<projectGuid>)"}' --include-headers```### Multiple Lookups@@ -157,7 +157,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "cr123_tA record referencing multiple parent tables:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<EntitySetName>" --body '{"cr123_name":"Project Update Meeting","[email protected]":"/cr123_projects(<projectGuid>)","[email protected]":"/contacts(<contactGuid>)"}' --include-headers+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "<EntitySetName>" --body '{"cr123_name":"Project Update Meeting","[email protected]":"/cr123_projects(<projectGuid>)","[email protected]":"/contacts(<contactGuid>)"}' --include-headers```---@@ -169,7 +169,7 @@ Verify how many records exist in a table after insertion:**Endpoint:** `GET {envUrl}/api/data/v9.2/<EntitySetName>?$count=true&$top=0````-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "cr123_projects?\$count=true&\$top=0"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "cr123_projects?\$count=true&\$top=0"```The response `data["@odata.count"]` contains the total record count.@@ -189,7 +189,7 @@ For inserting many records efficiently, use OData batch requests to send multiplAuthentication is handled automatically by `dataverse-request.js`. To send a batch request, use POST to the `$batch` endpoint. The script handles auth headers and token refresh internally:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "\$batch" --body '<batch body>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "\$batch" --body '<batch body>'```**Body format:**@@ -226,4 +226,4 @@ Content-Type: application/json## Error Handling-See `${CLAUDE_PLUGIN_ROOT}/references/odata-common.md` for HTTP status codes, error response format, Dataverse error codes, and retry patterns.+See `${PLUGIN_ROOT}/references/odata-common.md` for HTTP status codes, error response format, Dataverse error codes, and retry patterns.diff --git a/plugins/power-pages/skills/add-seo/SKILL.md b/plugins/power-pages/skills/add-seo/SKILL.mdindex 6282df42f..4c73a302d 100644--- a/plugins/power-pages/skills/add-seo/SKILL.md+++ b/plugins/power-pages/skills/add-seo/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Write, Edit, Grep, Glob, Bash, AskUserQuestion, Task, TaskCmodel: sonnet----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Add SEO@@ -55,7 +55,7 @@ Read `powerpages.config.json` to get the site name and config.#### 1.3 Detect Framework & Discover Routes-Read `package.json` to determine the framework and locate key files. See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the full framework → public directory → index HTML mapping and route discovery patterns.+Read `package.json` to determine the framework and locate key files. See `${PLUGIN_ROOT}/references/framework-conventions.md` for the full framework → public directory → index HTML mapping and route discovery patterns.Build a list of all routes (e.g., `/`, `/about`, `/contact`, `/blog`).@@ -308,7 +308,7 @@ If a dev server is running (or start one):#### 7.3 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "AddSeo"`.diff --git a/plugins/power-pages/skills/add-server-logic/SKILL.md b/plugins/power-pages/skills/add-server-logic/SKILL.mdindex 5aa8ec00f..ff74b8209 100644--- a/plugins/power-pages/skills/add-server-logic/SKILL.md+++ b/plugins/power-pages/skills/add-server-logic/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Add Server Logic@@ -69,7 +69,7 @@ Read `powerpages.config.json` to get the site name and configuration:### 1.3 Detect Framework-Read `package.json` to determine the frontend framework (React, Vue, Angular, or Astro). This is needed for Phase 8 (client-side integration guidance). See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.+Read `package.json` to determine the frontend framework (React, Vue, Angular, or Astro). This is needed for Phase 8 (client-side integration guidance). See `${PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.### 1.4 Explore Existing Server Logic and Frontend Code@@ -176,7 +176,7 @@ If any planned server logic item involves Dataverse operations, check whether th**Step 1 — Fetch custom actions:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"+node "${PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"```The script outputs a JSON object with:@@ -313,7 +313,7 @@ This step is critical because Server Logic is a preview feature and the SDK surfUse the reference document below as the source of truth for how to discover, classify, fetch, and reconcile Server Logic documentation:-> Reference: `${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/references/server-logic-docs.md`+> Reference: `${PLUGIN_ROOT}/skills/add-server-logic/references/server-logic-docs.md`Follow that reference to:@@ -347,7 +347,7 @@ From the fetched docs, extract and note the items that matter for the current taBuild the server logic plan data and render the HTML plan before asking for approval.-> Reference: `${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/references/server-logic-plan-data-format.md`+> Reference: `${PLUGIN_ROOT}/skills/add-server-logic/references/server-logic-plan-data-format.md`The rendered plan should summarize:@@ -374,7 +374,7 @@ Create the `docs/` folder if it does not already exist. Keep this HTML file insiDo **not** hand-author the HTML. Use the render script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. Before calling it, check if the default output path (`<PROJECT_ROOT>/docs/serverlogic-plan.html`) already exists. If it does, choose a new descriptive filename based on context — e.g., `serverlogic-plan-exchange-rate.html`, `serverlogic-plan-apr-2026.html`. Pass the chosen name via `--output`.@@ -722,7 +722,7 @@ function get() {When a function returns the result of a `Server.Connector.Dataverse.*` method, the client sees a double-wrapped payload — the most common cause of broken frontend integrations. Before writing the function, pick one of three response shapes and record the choice for Phase 9: **Approach A — raw passthrough** (return the connector result as-is), **Approach B — envelope that wraps the connector result** (return `{ status, data: result }` without unwrapping `Body`), or **Approach C — fully normalized** (parse `Body` server-side and return a feature-specific shape — recommended for non-generic endpoints).-See `${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/references/frontend-integration-reference.md` → "Dataverse Connector Response Format" for the double-wrapping explanation, the `CreateRecord` / `entityid` header behavior, and server- and client-side examples for each shape.+See `${PLUGIN_ROOT}/skills/add-server-logic/references/frontend-integration-reference.md` → "Dataverse Connector Response Format" for the double-wrapping explanation, the `CreateRecord` / `entityid` header behavior, and server- and client-side examples for each shape.#### Referencing Secrets in Code@@ -743,7 +743,7 @@ Do **not** duplicate Microsoft Learn SDK usage patterns inline in this skill. UsFor each approved server logic item where the plan status is `create`, generate the metadata file with the deterministic writer script instead of hand-authoring the YAML. The script generates the UUID, writes the fields in the correct order, and returns the created file path as JSON. **Skip this step for `update` / `reuse` items** — the YAML already exists and should be updated manually if needed.```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/scripts/create-serverlogic-metadata.js" --projectRoot "<PROJECT_ROOT>" --name "<name>" --displayName "<human-readable display name>" --description "<description of what this server logic does>" --webRoleIds "<uuid1,uuid2,uuid3>"+node "${PLUGIN_ROOT}/skills/add-server-logic/scripts/create-serverlogic-metadata.js" --projectRoot "<PROJECT_ROOT>" --name "<name>" --displayName "<human-readable display name>" --description "<description of what this server logic does>" --webRoleIds "<uuid1,uuid2,uuid3>"```The generated `<PROJECT_ROOT>/.powerpages-site/server-logic/<name>/<name>.serverlogic.yml` file has this structure:@@ -823,7 +823,7 @@ Extract the entity set name (first argument) from each method call. Build a mapp### 6.2 Use the Table Permissions Architect-When any approved server logic item uses `Server.Connector.Dataverse`, invoke the `table-permissions-architect` agent at `${CLAUDE_PLUGIN_ROOT}/agents/table-permissions-architect.md` to determine and create the required table permissions.+When any approved server logic item uses `Server.Connector.Dataverse`, invoke the `table-permissions-architect` agent at `${PLUGIN_ROOT}/agents/table-permissions-architect.md` to determine and create the required table permissions.**Prompt:**@@ -873,7 +873,7 @@ If the user chose Azure Key Vault in Phase 2.3.1:**Step 1 — List available Key Vaults:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/list-azure-keyvaults.js"+node "${PLUGIN_ROOT}/scripts/list-azure-keyvaults.js"```The script outputs a JSON array of Key Vaults (`name`, `resourceGroup`, `location`) from the user's Azure subscription.@@ -917,7 +917,7 @@ Use `AskUserQuestion`:| What name, resource group, and Azure region would you like for the new Key Vault? | Vault names must be 3-24 characters, globally unique, start with a letter, and contain only alphanumerics and hyphens. Suggest a name based on the project/site name. |```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-azure-keyvault.js" \+node "${PLUGIN_ROOT}/scripts/create-azure-keyvault.js" \--name "<vault-name>" \--resourceGroup "<resource-group>" \--location "<location>"@@ -941,7 +941,7 @@ Present the commands as a numbered list the user can copy and run. Use the stdinFor each secret, run the following command (replacing <YOUR_SECRET_VALUE> with the actual value):1. <secret-name>:- printf '%s' '<YOUR_SECRET_VALUE>' | node "${CLAUDE_PLUGIN_ROOT}/scripts/store-keyvault-secret.js" \+ printf '%s' '<YOUR_SECRET_VALUE>' | node "${PLUGIN_ROOT}/scripts/store-keyvault-secret.js" \--vaultName "<selected-vault>" \--secretName "<secret-name>"```@@ -975,7 +975,7 @@ Tell the user the Secret Identifier URI looks like `https://<vault-name>.vault.aAfter the user shares the `secretUri` output from each command, create an environment variable definition in Dataverse that references the Key Vault secret. Use the `secret` type:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \+node "${PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \--schemaName "<prefix_SecretName>" \--displayName "<Secret Display Name>" \--type "secret" \@@ -987,7 +987,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>"For each environment variable, create a site setting YAML that maps to it:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "<SiteSetting/Name>" \--envVarSchema "<schemaName-from-step-4>"@@ -1004,7 +1004,7 @@ If the user chose not to use Azure Key Vault:For each secret identified in Phase 2.3, create the environment variable in Dataverse with a placeholder value:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \+node "${PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \--schemaName "<prefix_SecretName>" \--displayName "<Secret Display Name>" \--value "PLACEHOLDER_SET_ACTUAL_VALUE"@@ -1013,7 +1013,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>"**Step 2 — Create site setting for the environment variable:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "<SiteSetting/Name>" \--envVarSchema "<schemaName-from-step-1>"@@ -1065,7 +1065,7 @@ The following site settings control server logic behavior. Only create settingsUse the existing site setting creation script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "ServerLogic/AllowedDomains" --value "api.example.com,api.other.com" --description "Restrict server logic external API calls to these domains"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "ServerLogic/AllowedDomains" --value "api.example.com,api.other.com" --description "Restrict server logic external API calls to these domains"```### 8.2 Git Commit@@ -1108,7 +1108,7 @@ Use `AskUserQuestion`:Use the reference below for the frontend integration approach, examples, and framework-specific patterns:-> Reference: `${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/references/frontend-integration-reference.md`+> Reference: `${PLUGIN_ROOT}/skills/add-server-logic/references/frontend-integration-reference.md`Based on the Explore agent's findings from Phase 1.4 and the approved plan, choose the integration approach from that reference and apply it consistently across all server logic endpoints being wired into the frontend.@@ -1202,7 +1202,7 @@ Use the frontend integration reference from Phase 9 for the exact calling patter### 11.1 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "AddServerLogic"`.diff --git a/plugins/power-pages/skills/add-server-logic/references/server-logic-plan-data-format.md b/plugins/power-pages/skills/add-server-logic/references/server-logic-plan-data-format.mdindex f810f4f8e..94a18154d 100644--- a/plugins/power-pages/skills/add-server-logic/references/server-logic-plan-data-format.md+++ b/plugins/power-pages/skills/add-server-logic/references/server-logic-plan-data-format.md@@ -153,7 +153,7 @@ When `SECRETS_DATA` is `null` or `useKeyVault` is `false`, the banner and per-caDo **not** write the HTML manually. Use the render script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. Before calling it, check if the default output path (`<PROJECT_ROOT>/docs/serverlogic-plan.html`) already exists. If it does, choose a new descriptive filename based on context — e.g., `serverlogic-plan-exchange-rate.html`, `serverlogic-plan-apr-2026.html`. Pass the chosen name via `--output`.diff --git a/plugins/power-pages/skills/audit-permissions/SKILL.md b/plugins/power-pages/skills/audit-permissions/SKILL.mdindex 435042c3b..caa40ca44 100644--- a/plugins/power-pages/skills/audit-permissions/SKILL.md+++ b/plugins/power-pages/skills/audit-permissions/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Audit Permissions@@ -95,7 +95,7 @@ Build a map of: which tables are referenced in code, which CRUD operations are pRun the shared validator against the existing site:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>"+node "${PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>"```Parse the JSON output and carry the findings into the audit. Treat:@@ -109,7 +109,7 @@ These findings should be included in the final audit report even if the later coAfter Step 3.1 determines the environment URL, if this audit is running locally with Dataverse access available, rerun the shared validator with live relationship verification enabled and merge any additional findings:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "<envUrl>"+node "${PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "<envUrl>"```Use this Dataverse-backed relationship validation only for local runs. Do **not** require it in CI or other offline contexts.@@ -133,7 +133,7 @@ Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`) and usFor each table that has permissions with `create` or `write` enabled, use the lookup query script:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-lookups.js" --envUrl "<envUrl>" --table "<table_logical_name>"+node "${PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-lookups.js" --envUrl "<envUrl>" --table "<table_logical_name>"```The script returns a JSON array of `{ logicalName, targets }` for each lookup column. Capture this output for the maps described below.@@ -156,7 +156,7 @@ Both maps are used in Sections H and H2:For tables with parent-scope permissions, verify the relationship names using the relationship query script:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-relationships.js" --envUrl "<envUrl>" --table "<parent_table>"+node "${PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-relationships.js" --envUrl "<envUrl>" --table "<parent_table>"```The script returns a JSON array of `{ schemaName, referencedEntity, referencingEntity, referencingAttribute }`. Use `schemaName` to validate the `parentrelationship` value in parent-scope permissions.@@ -466,7 +466,7 @@ Write a temporary JSON data file (e.g., `<OUTPUT_DIR>/audit-data.json`) with theRun the render script (it creates the output directory if needed):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-audit-report.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-audit-report.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. Before calling it, check if the default output path (`<PROJECT_ROOT>/docs/permissions-audit.html`) already exists. If it does, choose a new descriptive filename based on context — e.g., `permissions-audit-apr-2026.html`, `permissions-audit-post-migration.html`. Pass the chosen name via `--output`.@@ -483,7 +483,7 @@ Open the actual output path in the user's default browser.### 6.1 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "AuditPermissions"`.diff --git a/plugins/power-pages/skills/configure-env-variables/SKILL.md b/plugins/power-pages/skills/configure-env-variables/SKILL.mdindex 81a577967..c1a2d5c61 100644--- a/plugins/power-pages/skills/configure-env-variables/SKILL.md+++ b/plugins/power-pages/skills/configure-env-variables/SKILL.md@@ -14,7 +14,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# configure-env-variables@@ -53,7 +53,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."```The helper returns JSON with `{ exists, deferred, stale, staleness: { reason, detail }, generatedAt, planStatus, ... }`. Pass `--envUrl`, `--token`, `--solutionId` once Phase 1 has acquired them if you also want a freshness check; otherwise the helper does an existence-only check, which is sufficient for the gate decision below.@@ -116,7 +116,7 @@ ls .powerpages-site/site-settings/ # list all site setting YAML files**1.2 Acquire token and verify prerequisites:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" \+node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" \--envUrl "{devEnvUrl}" \--require-manifest```@@ -170,9 +170,9 @@ Ask via `AskUserQuestion`:> N. I'll type my own setting names"For each selected setting, ask for:-1. **Env var schema name** — generate via `${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` (single source of truth shared with `setup-solution`):+1. **Env var schema name** — generate via `${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` (single source of truth shared with `setup-solution`):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \+ node "${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \--publisherPrefix "{publisherPrefix}" --settingName "{settingName}"```Output: `{ schemaName, sanitized }`. The canonical rule is `{prefix}_{settingName.replace(/[^A-Za-z0-9]+/g,'_').toLowerCase()}` — e.g. `Authentication/Registration/LocalLoginEnabled` becomes `ids_authentication_registration_localloginenabled`. Do NOT inline a custom rule here: setup-solution emits schema names from this helper, and configure-env-variables MUST match what setup-solution already created (otherwise the link to the existing site setting fails). The user can override the suggestion if they have a reason, but the default must come from the helper.@@ -204,7 +204,7 @@ Definition-only flow — per-stage values come later from `deployment-settings.j**3.A.1 Check and create if needed** using `create-env-var-definition.js` (the script checks for an existing definition by `schemaName` before posting):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \--envUrl "{devEnvUrl}" \--token "{TOKEN}" \--schemaName "{schemaName}" \@@ -263,7 +263,7 @@ Dataverse / the Power Platform Pipelines handler accept exactly three formats foWhen the user has already stored the secret in Azure Key Vault and has a Secret Identifier URI in canonical form, use the atomic deep-insert path — the same flow `add-server-logic` Phase 7.2a uses:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "{devEnvUrl}" \+node "${PLUGIN_ROOT}/scripts/create-environment-variable.js" "{devEnvUrl}" \--schemaName "{schemaName}" \--displayName "{displayName}" \--type secret \@@ -272,14 +272,14 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "{devEnvUrl}This script POSTs a single deep-insert that creates the `environmentvariabledefinition` (type 100000005) AND the `environmentvariablevalues` row with the Key Vault URI in `value` — Dataverse resolves the secret at runtime by dereferencing the URI. The script is ALM-aware and adds the new definition to the target solution via `AddSolutionComponent` (same `resolve-target-solution.js` resolution order as the rest of the family).-> **Cross-reference: see `${CLAUDE_PLUGIN_ROOT}/skills/add-server-logic/SKILL.md` Phase 7.2a** for the full Key Vault end-to-end: vault selection (`list-azure-keyvaults.js` / `create-azure-keyvault.js`), secret storage (`store-keyvault-secret.js` with stdin to keep the secret out of the conversation), and the URI handoff back to env-var creation. The implementation is identical; we re-use the same helper scripts.+> **Cross-reference: see `${PLUGIN_ROOT}/skills/add-server-logic/SKILL.md` Phase 7.2a** for the full Key Vault end-to-end: vault selection (`list-azure-keyvaults.js` / `create-azure-keyvault.js`), secret storage (`store-keyvault-secret.js` with stdin to keep the secret out of the conversation), and the URI handoff back to env-var creation. The implementation is identical; we re-use the same helper scripts.### 3.C — Secret env vars without a Key Vault URI (legacy / deferred)When the user has not chosen Key Vault yet or hasn't stored the secret, create the definition with an empty value placeholder and instruct the user to wire the value via Power Platform Admin Center after import:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \--envUrl "{devEnvUrl}" \--token "{TOKEN}" \--schemaName "{schemaName}" \@@ -302,7 +302,7 @@ Track created env var IDs: `{ schemaName, envVarDefId, siteSettingName, devValueFor each site setting to link, run `link-site-setting-to-env-var.js` (HAR-confirmed PATCH via v9.0 API — no UI step required):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/link-site-setting-to-env-var.js" \+node "${PLUGIN_ROOT}/scripts/lib/link-site-setting-to-env-var.js" \--envUrl "{devEnvUrl}" \--token "{TOKEN}" \--siteSettingId "{siteSettingId}" \@@ -376,7 +376,7 @@ Before persisting `deployment-settings.json` to disk, validate every entry againCatching invalid values **at write time** is the difference between a sub-second hard stop and a hours-long blind alley.```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \+node "${PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \--settingsFile "./deployment-settings.json" \--envUrl "{devEnvUrl}" \--token "{token}"@@ -414,7 +414,7 @@ GET {devEnvUrl}/api/data/v9.2/solutioncomponents?$filter=_solutionid_value eq {s**7.2b Verify values landed on dev env.** After creating the definitions + values, query the dev env to confirm each `environmentvariablevalues` row exists. The shared helper `scripts/lib/verify-env-var-values.js` does this read-only check:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \+node "${PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \--envUrl "{devEnvUrl}" \--schemaNames "{comma-separated schema names just created}"```@@ -424,7 +424,7 @@ Capture stdout as JSON. If `summary.landed === summary.total`, the local definit**7.2b.bump Bump source solution version + manifest sync.** Creating new env var definitions and adding them to the solution via `AddSolutionComponent` modifies `solutions.modifiedon`. Bump the patch segment so downstream skills see a strictly-increasing version label AND the local `.solution-manifest.json` tracks the change:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \+node "${PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \--envUrl "{devEnvUrl}" \--token "{token}" \--uniqueName "{solutionUniqueName}" \@@ -436,7 +436,7 @@ The helper returns `{ previous, next, bumped: true, manifestUpdated, manifestUpd**7.2c Refresh the post-config env var snapshot.** Re-run the discovery helper to write `docs/alm/last-env-vars.json` with the freshly-created definitions. Without this, the rendered ALM plan's Env Variables tab stays at whatever setup-solution last wrote — newly-created definitions don't appear until plan-alm runs again. The refresh helper invoked at the end of this phase ingests this sidecar into `planData.envVars[]` AND mirrors it over to `docs/alm/alm-env-vars.json` so both snapshots stay current:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \--envUrl "{devEnvUrl}" \--publisherPrefix "{publisherPrefix}" \--websiteRecordId "{websiteRecordId}" \@@ -478,14 +478,14 @@ Next steps:**7.5 Record skill usage:**-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "ConfigureEnvVariables"`.**7.5b Refresh the ALM plan (if one exists):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase configure-env-variables \--renderdiff --git a/plugins/power-pages/skills/create-site/SKILL.md b/plugins/power-pages/skills/create-site/SKILL.mdindex d112db2b5..799c49531 100644--- a/plugins/power-pages/skills/create-site/SKILL.md+++ b/plugins/power-pages/skills/create-site/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Grep, Glob, Bash, WebSearch, AskUserQuestion,model: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Create Power Pages Code Site@@ -124,28 +124,28 @@ Write the file with the `Write` tool (atomic overwrite). You do not need to read> **The scaffold is a temporary branded loading screen** — it shows a Power Pages animated "Building your site" experience with orbiting elements, status messages, and feature cards. Its only purpose is to get the dev server running quickly so the user has something to look at while you plan and build. **During Phase 5 (Implementation), the entire scaffold — including theme.css, Layout, Home page, and all placeholder components — is completely replaced** with the user's actual site: their chosen typography, color palette, pages, components, and navigation. Do NOT try to build on top of the loading screen; replace it entirely.-> See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the full framework → build tool → router → output path mapping.+> See `${PLUGIN_ROOT}/references/framework-conventions.md` for the full framework → build tool → router → output path mapping.**Actions**:### 2.1 Copy Template-> `${CLAUDE_PLUGIN_ROOT}` is already resolved to the plugin's absolute path at runtime. Use it directly in Glob/Read paths — do NOT search for the plugin directory.+> `${PLUGIN_ROOT}` is already resolved to the plugin's absolute path at runtime. Use it directly in Glob/Read paths — do NOT search for the plugin directory.Read and copy all files from the matching asset template to the project directory:| Framework | Asset Directory ||-----------|----------------|-| React | `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/react/` |-| Vue | `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/vue/` |-| Angular | `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/angular/` |-| Astro | `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/astro/` |+| React | `${PLUGIN_ROOT}/skills/create-site/assets/react/` |+| Vue | `${PLUGIN_ROOT}/skills/create-site/assets/vue/` |+| Angular | `${PLUGIN_ROOT}/skills/create-site/assets/angular/` |+| Astro | `${PLUGIN_ROOT}/skills/create-site/assets/astro/` |Use `Glob` to discover all files in the asset directory, `Read` each file, then `Write` to the project directory preserving the relative path structure.**Also copy the shared loader icon** that the scaffold references from its CSS (`url('/power-pages-icon.png')`):-`Read` the binary file `${CLAUDE_PLUGIN_ROOT}/skills/create-site/assets/shared/power-pages-icon.png` and `Write` it to `<PROJECT_ROOT>/public/power-pages-icon.png`. (All four supported frameworks serve `public/` at the web root, so the same `/power-pages-icon.png` URL works for every framework.)+`Read` the binary file `${PLUGIN_ROOT}/skills/create-site/assets/shared/power-pages-icon.png` and `Write` it to `<PROJECT_ROOT>/public/power-pages-icon.png`. (All four supported frameworks serve `public/` at the web root, so the same `/power-pages-icon.png` URL works for every framework.)**Seed the live status file** so the loader shows a real message the moment it mounts. `Write` `<PROJECT_ROOT>/public/scaffold-status.json`:@@ -295,7 +295,7 @@ Immediately after the dev server starts, verify the scaffold is working:The `marker` string is the comment tag Phase 5 emits into the page source as a reserved anchor that `/add-ai-webapi` later finds. Keep the shape uniform — one marker per placement, always the same tag, so the follow-up skill's explore step can grep for them deterministically.-5. Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`+5. Read the design aesthetics reference: `${PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`6. **Map aesthetic + mood to design choices** using the Aesthetic x Mood Mapping table from the design reference. Record the chosen font direction, color direction, and motion direction.7. Analyze requirements and determine needed components. If `AI_SUMMARY_PLACEMENTS` from step 4 implies a page that wasn't already in the plan (e.g., a `CaseDetail` page for a data-summarization pick on the support-case table), add it to the page list now. Present the component plan to the user as a table:@@ -331,7 +331,7 @@ Immediately after the dev server starts, verify the scaffold is working:### 4.1 Read the Design Reference-Read the design aesthetics reference: `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`. Every field you populate below should be justified by the chosen aesthetic + mood from Phase 3.+Read the design aesthetics reference: `${PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md`. Every field you populate below should be justified by the chosen aesthetic + mood from Phase 3.> **AI Readiness in the plan.** If `AI_SUMMARY_PLACEMENTS` from Phase 3 is non-empty, reflect each placement in the matching `PAGES_DATA` entry's `description` or `content` — e.g., *"Reserved slot for an AI summary card; populated later by `/add-ai-webapi`. The page ships without AI."* This keeps the user's expectation honest: the site does not depend on generative-AI features being enabled on the tenant, and there is no "Run /add-ai-webapi" placeholder visible to end-users. If `AI_SUMMARY_PLACEMENTS` is empty, omit any AI references from the plan.@@ -364,7 +364,7 @@ Assemble a single JSON object with the following keys. The plan template rejectsPick an output path under `<PROJECT_ROOT>/docs/`. Default is `create-site-plan.html`; if that file already exists, pick a descriptive variant like `create-site-plan-v2.html` (the render script refuses to overwrite existing files).```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-createsite-plan.js" --output "<PROJECT_ROOT>/docs/create-site-plan.html" --data-inline '<json-string>'+node "${PLUGIN_ROOT}/scripts/render-createsite-plan.js" --output "<PROJECT_ROOT>/docs/create-site-plan.html" --data-inline '<json-string>'```Use `--data-inline` so no temp JSON file is written. If the JSON is too large for a single shell argument, write it to a temp file and use `--data <path>` instead, then delete the temp file after the render succeeds.@@ -424,7 +424,7 @@ Use `AskUserQuestion`:> **Prerequisite:** The dev server MUST already be running and verified via Playwright (completed in Phase 2). If it is not, go back and complete Phase 2.>-> **Design reference:** Read `${CLAUDE_PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md` and apply its principles throughout this phase. All pages and components should be built with the chosen typography, color palette, motion, and backgrounds from the start — do NOT build with neutral styling first and redesign later.+> **Design reference:** Read `${PLUGIN_ROOT}/skills/create-site/references/design-aesthetics.md` and apply its principles throughout this phase. All pages and components should be built with the chosen typography, color palette, motion, and backgrounds from the start — do NOT build with neutral styling first and redesign later.**Actions**:@@ -564,7 +564,7 @@ npm install --save-dev playwrightRun the audit script via `Bash`, passing the dev server URL and all site routes:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/create-site/scripts/axe-audit.js" --url <DEV_SERVER_URL> --routes /,/about,/services,/contact --project-root "<PROJECT_ROOT>"+node "${PLUGIN_ROOT}/skills/create-site/scripts/axe-audit.js" --url <DEV_SERVER_URL> --routes /,/about,/services,/contact --project-root "<PROJECT_ROOT>"```The script launches a headless browser, navigates to each route, injects axe-core from CDN, runs the analysis, and outputs a JSON array of per-route results to stdout. Each result contains `violations` (with `id`, `impact`, `description`, `helpUrl`, and affected `nodes`), `passes` count, and `incomplete` count. The script exits with code 1 if any `critical` or `serious` violations are found.@@ -670,7 +670,7 @@ Present a summary table to the user:1. Record skill usage:- > Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+ > Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "CreateSite"`. Note: `.powerpages-site` may not exist for first-time sites — the script exits silently.diff --git a/plugins/power-pages/skills/create-webroles/SKILL.md b/plugins/power-pages/skills/create-webroles/SKILL.mdindex 2f19224fb..06c5a7231 100644--- a/plugins/power-pages/skills/create-webroles/SKILL.md+++ b/plugins/power-pages/skills/create-webroles/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate,model: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **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@@ -18,7 +18,7 @@ Create web roles for a Power Pages code site. Web roles define the permissions a## Core Principles- **Use TaskCreate/TaskUpdate**: Track all progress throughout all phases — create the todo list upfront with all phases before starting any work.-- **Always use the UUID script**: Never generate UUIDs manually — always use `${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js` to produce valid UUID v4 values for each web role.+- **Always use the UUID script**: Never generate UUIDs manually — always use `${PLUGIN_ROOT}/scripts/generate-uuid.js` to produce valid UUID v4 values for each web role.- **Preserve uniqueness constraints**: Only one role can have `anonymoususersrole: true` and only one can have `authenticatedusersrole: true`. Always check existing roles before setting these flags.- **Caller-suppress mode is opt-in**: When invoked by another skill (e.g. `/add-ai-webapi`) with the `[CALLED-BY-PARENT-SKILL]` sentinel in `$ARGUMENTS`, suppress this skill's deploy prompts (Phase 1's missing-deploy ask, Phase 6's deploy ask (step 3), and the closing reminder) and return as soon as roles are created. The caller batches the deploy at end-of-orchestration. Human invocations never trigger this mode. See Phase 0 below for parsing.@@ -168,7 +168,7 @@ For each new web role the user approved, create a YAML file in `.powerpages-siteFor each role, generate a UUID using the Node script. **NEVER generate UUIDs yourself — always use the script.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js"+node "${PLUGIN_ROOT}/scripts/generate-uuid.js"```### 4.2 Create the YAML File@@ -228,7 +228,7 @@ name: <Role Name>1. Record skill usage:- > Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+ > Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "CreateWebroles"`.diff --git a/plugins/power-pages/skills/deploy-pipeline/SKILL.md b/plugins/power-pages/skills/deploy-pipeline/SKILL.mdindex 7465cc0c9..cff495c76 100644--- a/plugins/power-pages/skills/deploy-pipeline/SKILL.md+++ b/plugins/power-pages/skills/deploy-pipeline/SKILL.md@@ -14,7 +14,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# deploy-pipeline@@ -22,7 +22,7 @@ Triggers a **Power Platform Pipeline** deployment run. Reads the existing pipeli> **Prerequisite**: Run `/power-pages:setup-pipeline` first to create the pipeline configuration.-> Refer to `${CLAUDE_PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` for all HAR-confirmed API patterns used in this skill.+> Refer to `${PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` for all HAR-confirmed API patterns used in this skill.## Prerequisites@@ -52,7 +52,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \--projectRoot "." \--envUrl "{devEnvUrl}" \--token "{token}" \@@ -123,13 +123,13 @@ Steps:1. Run `verify-alm-prerequisites.js` to confirm PAC CLI auth, acquire a token, and verify API access:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --require-manifest+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --require-manifest```Capture output as JSON; extract `.envUrl` (store as `devEnvUrl`) and `.token` (store as `DEV_TOKEN`). If the script exits non-zero, stop and surface the error — it will indicate whether `az login`, `pac auth`, or WhoAmI failed.2. Run `detect-project-context.js` to read project config and solution manifest:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/detect-project-context.js"+ node "${PLUGIN_ROOT}/scripts/lib/detect-project-context.js"```Capture output as JSON; extract `.solutionManifest` (store as `solutionManifest`), `.siteName` (store as `siteName`), and `.websiteRecordId`. If `solutionManifest` is null, continue — the manifest is not strictly required at this step (solution info will come from `docs/alm/last-pipeline.json`).@@ -156,13 +156,13 @@ Steps:### Phase 1.5 — Ground in current Pipelines deployment documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Platform Pipelines stage run validation ValidatePackageAsync DeployPackageAsync approval`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/pipelines` (and at most one sister page on stage runs, validation, or approval gates) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about stage-run lifecycle, validation outcomes, approval-gate workflow, and `deploymentsettingsjson` overrides. Compare against `${CLAUDE_PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` and flag any divergence (new status codes, changed `stagerunstatus` terminal values, new approval-gate API).+3. Extract a one-paragraph summary of what Microsoft Learn currently says about stage-run lifecycle, validation outcomes, approval-gate workflow, and `deploymentsettingsjson` overrides. Compare against `${PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` and flag any divergence (new status codes, changed `stagerunstatus` terminal values, new approval-gate API).4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 4 (Create Stage Run + Validate Package).### Phase 2 — Select Target Stage@@ -227,7 +227,7 @@ Power Pages code-site solutions almost always contain `.js` bundle chunks (Vite/2. Run the helper in dry-run mode to detect the current state:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \+ node "${PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \--envUrl "{SELECTED_STAGE.targetEnvironmentUrl}" \--extensions js,css \--dry-run@@ -296,7 +296,7 @@ A pipeline's `ValidatePackageAsync` confirms the solution zip is importable on tRun the shared site-inventory helper against the **source (dev) environment**:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \--envUrl "{devEnvUrl}" --token "{DEV_TOKEN}" \--siteId "{websiteRecordId from .solution-manifest.json}" \--publisherPrefix "{publisherPrefix from .solution-manifest.json}" \@@ -381,7 +381,7 @@ Where `{{VALIDATION_SPECS}}` is the array `[{ solutionUniqueName, solutionId },**3.6.2 Run the batch validator.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/validate-stage-runs-batch.js" \+node "${PLUGIN_ROOT}/scripts/lib/validate-stage-runs-batch.js" \--hostEnvUrl "{hostEnvUrl}" \--token "{HOST_TOKEN}" \--pipelineId "{pipelineId}" \@@ -425,7 +425,7 @@ Surface the affected solutions in a single message (not per-solution) and pause.Build a tmp file with only the previously-pending entries (carry `stageRunId` from the original batch result):```bashnode -e "require('fs').writeFileSync('./docs/alm/.repoll-batch.json', JSON.stringify({{PENDING_SPECS_WITH_STAGERUNIDS}}))"- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/validate-stage-runs-batch.js" \+ node "${PLUGIN_ROOT}/scripts/lib/validate-stage-runs-batch.js" \--hostEnvUrl "{hostEnvUrl}" \--token "{HOST_TOKEN}" \--rePoll \@@ -492,7 +492,7 @@ Use Node.js `https` module for all Dataverse calls (curl has encoding issues on**4.1 Create stage run** using `create-stage-run.js`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-stage-run.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-stage-run.js" \--hostEnvUrl "{hostEnvUrl}" \--token "{HOST_TOKEN}" \--pipelineId "{pipelineId}" \@@ -527,7 +527,7 @@ Treat HTTP 204 as success.**4.3 Poll validation** using `poll-validation-status.js`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/poll-validation-status.js" \+node "${PLUGIN_ROOT}/scripts/lib/poll-validation-status.js" \--hostEnvUrl "{hostEnvUrl}" \--token "{HOST_TOKEN}" \--stageRunId "{STAGE_RUN_ID}" \@@ -649,7 +649,7 @@ Skip this step entirely when `ENV_VAR_OVERRIDES` is empty AND `deployment-settinOtherwise, run the shared helper:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \+node "${PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \--settingsFile "./deployment-settings.json" \--envUrl "{sourceEnvUrl}" \--stageLabel "{SELECTED_STAGE.name}"@@ -771,7 +771,7 @@ Authorization: Bearer {HOST_TOKEN}**6.2 Poll stagerunstatus until terminal** using `poll-deployment-status.js`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/poll-deployment-status.js" \+node "${PLUGIN_ROOT}/scripts/lib/poll-deployment-status.js" \--hostEnvUrl "{hostEnvUrl}" \--token "{HOST_TOKEN}" \--stageRunId "{STAGE_RUN_ID}" \@@ -881,7 +881,7 @@ Create `docs/deploy-history/` if it does not already exist:mkdir -p docs/deploy-history```-Read the template at `${CLAUDE_PLUGIN_ROOT}/skills/deploy-pipeline/assets/deploy-history-template.html` and replace the following `__PLACEHOLDER__` tokens:+Read the template at `${PLUGIN_ROOT}/skills/deploy-pipeline/assets/deploy-history-template.html` and replace the following `__PLACEHOLDER__` tokens:**Overview tab:**@@ -929,14 +929,14 @@ If git is not initialized in the project root (i.e., `git rev-parse --git-dir` f**7.5 Record skill usage:**-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "DeployPipeline"`.**7.5b Refresh the ALM plan (if one exists):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase deploy-pipeline \--render@@ -994,7 +994,7 @@ Parse `errordetails` and `validationresults` as JSON / text. Check for these pat1. Switch PAC CLI to the **target** environment so the helper queries the right env's settings, then identify which file types are blocked. By default the helper checks `js`; pass `--extensions` if the error mentions other types (e.g. `js,css`):```bashpac env select --environment "{TARGET_ENV_URL}"- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \+ node "${PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \--envUrl "{TARGET_ENV_URL}" \--extensions js \--dry-run@@ -1053,7 +1053,7 @@ Steps:1. **Identify which schema(s) have the bad value.** Run `validate-deployment-settings.js` against the current file (same helper as Phase 5.1b) to surface every invalid entry:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \+ node "${PLUGIN_ROOT}/scripts/lib/validate-deployment-settings.js" \--settingsFile "./deployment-settings.json" \--envUrl "{sourceEnvUrl}" \--stageLabel "{SELECTED_STAGE.name}"@@ -1078,7 +1078,7 @@ Steps:- **Yes — strip and retry**: invoke the file-mutation helper, then re-PATCH the stage run with the corrected `deploymentsettingsjson`, then call `RetryFailedDeploymentAsync` and resume polling from Phase 6.2.```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/strip-invalid-secret-values.js" \+ node "${PLUGIN_ROOT}/scripts/lib/strip-invalid-secret-values.js" \--settingsFile "./deployment-settings.json" \--schemaNames "{comma-separated schema names from step 1}" \--stageLabel "{SELECTED_STAGE.name}"@@ -1120,7 +1120,7 @@ Even when the stage run reports success, the Power Platform Pipelines handler doUse the shared helper `scripts/lib/verify-env-var-values.js`. It reads schema names + per-stage expected values from `deployment-settings.json` and returns a structured JSON result per schema (`landed` / `missing-value-record` / `missing-definition` / `value-mismatch` / `query-error`):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \+node "${PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \--envUrl "{targetEnvUrl}" \--settingsFile "./deployment-settings.json" \--stageLabel "{SELECTED_STAGE.name}"@@ -1158,7 +1158,7 @@ pac env select --environment "{SELECTED_STAGE.targetEnvironmentUrl}"Run the activation check:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "."+node "${PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "."```Then switch PAC CLI back to the source (dev) environment regardless of the result:diff --git a/plugins/power-pages/skills/deploy-site/SKILL.md b/plugins/power-pages/skills/deploy-site/SKILL.mdindex 25b5dd80f..3b07c89b7 100644--- a/plugins/power-pages/skills/deploy-site/SKILL.md+++ b/plugins/power-pages/skills/deploy-site/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Bash, AskUserQuestion, Glob, Grep, TaskCreate, TaskUpdate,model: sonnet----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Deploy Power Pages Code Site@@ -248,7 +248,7 @@ Confirm `.powerpages-site` exists and list its contents (`web-roles/`, `site-set### 5.2 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "DeploySite"`.@@ -270,7 +270,7 @@ git commit -m "Deploy site to Power Pages"Run the activation status check:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"+node "${PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"```Evaluate the JSON result:@@ -323,7 +323,7 @@ Use `AskUserQuestion` to confirm before proceeding:**If "Yes"**: Run the cache-clearing script, passing the project root:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/clear-site-cache.js" --projectRoot "<PROJECT_ROOT>"+node "${PLUGIN_ROOT}/scripts/clear-site-cache.js" --projectRoot "<PROJECT_ROOT>"```The script reads `siteName` from `powerpages.config.json`, looks up the website via the Power Platform API, and restarts it to flush the runtime cache.diff --git a/plugins/power-pages/skills/diagnose-deployment/SKILL.md b/plugins/power-pages/skills/diagnose-deployment/SKILL.mdindex 70f8d5ab8..341e194ab 100644--- a/plugins/power-pages/skills/diagnose-deployment/SKILL.md+++ b/plugins/power-pages/skills/diagnose-deployment/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# diagnose-deployment@@ -47,13 +47,13 @@ Auth failures are non-blocking — report them as findings, continue collecting### Phase 1.5 — Ground in current ALM documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Pages deployment errors solution import troubleshooting`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm` (and at most one sister page on troubleshooting or known import errors) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about common deployment failures and their resolution. Compare against `${CLAUDE_PLUGIN_ROOT}/references/deployment-error-catalog.md` and flag any new error patterns not yet captured in the catalog.+3. Extract a one-paragraph summary of what Microsoft Learn currently says about common deployment failures and their resolution. Compare against `${PLUGIN_ROOT}/references/deployment-error-catalog.md` and flag any new error patterns not yet captured in the catalog.4. Use the summary to inform pattern-matching in Phase 5. If a new pattern is documented on Learn that isn't in the catalog, surface it to the user as a candidate addition rather than silently extending the catalog.### Phase 2 — Collect Deployment Artifacts@@ -82,7 +82,7 @@ pac pages upload-code-site --rootPath "." 2>&1Capture stdout+stderr as a single string. Pass to `scripts/parse-deployment-errors.js`:```bash-echo "{escaped-output}" | node "${CLAUDE_PLUGIN_ROOT}/scripts/parse-deployment-errors.js"+echo "{escaped-output}" | node "${PLUGIN_ROOT}/scripts/parse-deployment-errors.js"```Parse the JSON findings array. If the upload succeeded with no errors, note this and skip to Phase 5 with an empty findings list.@@ -196,7 +196,7 @@ If manual steps remain: list them explicitly with commands or links.### Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "DiagnoseDeployment"`.diff --git a/plugins/power-pages/skills/ensure-pipelines-host/SKILL.md b/plugins/power-pages/skills/ensure-pipelines-host/SKILL.mdindex 03866e39c..278a33acf 100644--- a/plugins/power-pages/skills/ensure-pipelines-host/SKILL.md+++ b/plugins/power-pages/skills/ensure-pipelines-host/SKILL.md@@ -21,7 +21,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.<!-- alm-lint-ignore: SKILL-must-read-manifest — this skill manages the Pipelines host environment (deploymentenvironments / deploymentpipelines tables on the host), not the source-env solution. The site's .solution-manifest.json is irrelevant to host lifecycle: a host can be provisioned before any solution exists, and a single host is shared across many solutions. ALM-aware-by-default does not apply. -->@@ -184,13 +184,13 @@ Steps:1. Run `verify-alm-prerequisites.js`:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js"+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js"```Capture `.envUrl` (`devEnvUrl`), `.token` (`DEV_TOKEN`), `.userId`, `.tenantId`, `.organizationId`. Stop on auth failure with the script's remediation message.2. Run `detect-project-context.js` (non-fatal — skill is also valid outside a Power Pages project):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/detect-project-context.js"+ node "${PLUGIN_ROOT}/scripts/lib/detect-project-context.js"```Capture `.siteName` and `.solutionManifest` for messaging.@@ -221,13 +221,13 @@ Steps:### Phase 1.5 — Ground in current Pipelines host documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Platform Pipelines host environment Platform Host Custom Host`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/pipelines` (and at most one sister page on host setup, default-custom-host configuration, or admin role requirements) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about Platform vs Custom Host trade-offs, the resolution order (org-db setting → BAP env metadata → tenant default), and admin role requirements. Compare against this skill's own *Resolution order* section and `${CLAUDE_PLUGIN_ROOT}/references/cicd-pipeline-patterns.md`; flag any divergence (e.g. new Platform-Host SKU, changed default-custom-host setting name, new tenant policy controls).+3. Extract a one-paragraph summary of what Microsoft Learn currently says about Platform vs Custom Host trade-offs, the resolution order (org-db setting → BAP env metadata → tenant default), and admin role requirements. Compare against this skill's own *Resolution order* section and `${PLUGIN_ROOT}/references/cicd-pipeline-patterns.md`; flag any divergence (e.g. new Platform-Host SKU, changed default-custom-host setting name, new tenant policy controls).4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 3 (Confirm action with user).### Phase 2 — Run resolution order to find host@@ -272,7 +272,7 @@ Steps:3. **If `isPlatform === true`**, mirror the default-custom-tenant-setting check (lines 148–213 in tsx). Reuse the existing `discover-pipelines-host.js`:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-pipelines-host.js" \+ node "${PLUGIN_ROOT}/scripts/lib/discover-pipelines-host.js" \--envUrl "{devEnvUrl}" --token "{DEV_TOKEN}" --userId "{userId}"```- `found: false` → tenant has no admin default custom host. `finalHostEnvId = orgSettingHostEnvId` (the PE). Set `RESOLUTION.status = "AvailableUsingPlatformHost"`.@@ -613,7 +613,7 @@ The lowest-friction host-provisioning path. Calls the idempotent BAP `getOrCreat**Call:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/provision-platform-host.js" \+node "${PLUGIN_ROOT}/scripts/lib/provision-platform-host.js" \--bapToken "{BAP_TOKEN}" \--correlationId "{uuid v4}"```@@ -770,7 +770,7 @@ This path was previously a manual click-through to PPAC. As of 2026-05-08 it's f**Call the helper:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/install-pipelines-app.js" \+node "${PLUGIN_ROOT}/scripts/lib/install-pipelines-app.js" \--bapToken "{BAP_TOKEN}" \--envId "{envId}" \--instanceApiUrl "{instanceApiUrl}" \@@ -896,7 +896,7 @@ This file is consumed by `setup-pipeline` and `deploy-pipeline`.Record skill usage:-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "EnsurePipelinesHost"`.diff --git a/plugins/power-pages/skills/export-solution/SKILL.md b/plugins/power-pages/skills/export-solution/SKILL.mdindex 489796e7d..91fe12fa8 100644--- a/plugins/power-pages/skills/export-solution/SKILL.md+++ b/plugins/power-pages/skills/export-solution/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# export-solution@@ -42,7 +42,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \--projectRoot "." \--envUrl "{envUrl from .solution-manifest.json or pac env who, if available}" \--token "{token, if Phase 1 already acquired one}" \@@ -112,19 +112,19 @@ Tasks to create:Steps:1. Run `verify-alm-prerequisites.js` with `--require-manifest` to confirm PAC CLI auth, acquire a token, verify API access, and validate that `.solution-manifest.json` exists:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --require-manifest+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --require-manifest```- Capture output as JSON; extract `.envUrl` (store as `envUrl`) and `.token` (store as `token`). If the script exits non-zero, stop and explain what is missing (reference `${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md`).+ Capture output as JSON; extract `.envUrl` (store as `envUrl`) and `.token` (store as `token`). If the script exits non-zero, stop and explain what is missing (reference `${PLUGIN_ROOT}/references/dataverse-prerequisites.md`).### Phase 1.5 — Ground in current ALM documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Pages solution export managed unmanaged ExportSolutionAsync ALM`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm` (and at most one sister page on managed vs unmanaged or solution layering) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about export semantics, managed vs unmanaged implications, and async export polling. Compare against `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence in `ExportSolutionAsync` / `DownloadSolutionExportData` signatures.+3. Extract a one-paragraph summary of what Microsoft Learn currently says about export semantics, managed vs unmanaged implications, and async export polling. Compare against `${PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence in `ExportSolutionAsync` / `DownloadSolutionExportData` signatures.4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 3.### Phase 2 — Identify Solution@@ -154,7 +154,7 @@ Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line nBefore exporting, run the shared site-inventory helper to detect any components that exist on the site but are not in the solution. Catching this here avoids shipping an incomplete package to staging/prod.```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \--envUrl "{envUrl}" --token "{token}" \--siteId "{websiteRecordId}" \--publisherPrefix "{publisherPrefix from .solution-manifest.json}" \@@ -256,7 +256,7 @@ Before exporting, bump the patch segment (4th segment) of the source solution's> **Why always-on, not "only when sync mode added components"**: `setup-solution` only bumps when it has new components to add. A user who modifies content of an already-in-solution component (a web template, a site setting value, a web file) and then re-exports must still get a strictly-increasing version label — otherwise the manual export/import path quietly ships stale-version zips. See the `Why this step exists` callout in `setup-solution` Phase 4.```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \+node "${PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \--envUrl "{envUrl}" \--token "{token}" \--uniqueName "{solutionUniqueName}" \@@ -274,7 +274,7 @@ Capture output as JSON; store `.previous` as `PRE_EXPORT_VERSION`, `.next` as `ERun `scripts/lib/export-solution-async.js` to POST `ExportSolutionAsync`, poll until terminal state, and return the `AsyncOperationId`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/export-solution-async.js" \+node "${PLUGIN_ROOT}/scripts/lib/export-solution-async.js" \--envUrl "{envUrl}" \--token "{token}" \--solutionName "{solutionUniqueName}" \@@ -295,7 +295,7 @@ Handle script exit code:Run `scripts/lib/download-export-data.js` to POST `DownloadSolutionExportData`, decode the base64 zip, and write it to disk:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/download-export-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/download-export-data.js" \--envUrl "{envUrl}" \--token "{token}" \--asyncOperationId "{asyncOperationId}" \@@ -364,14 +364,14 @@ The path is registered in `scripts/lib/alm-paths.js` under the key `lastExport`### Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "ExportSolution"`.### Refresh the ALM plan (if one exists)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase export-solution \--renderdiff --git a/plugins/power-pages/skills/force-link-environment/SKILL.md b/plugins/power-pages/skills/force-link-environment/SKILL.mdindex 0083f44df..e9e073496 100644--- a/plugins/power-pages/skills/force-link-environment/SKILL.md+++ b/plugins/power-pages/skills/force-link-environment/SKILL.md@@ -20,7 +20,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# force-link-environment@@ -42,7 +42,7 @@ The action is reversible by running Force Link again from the previous host.## Phase 1.5 — Microsoft Learn grounding (required)-Before any Dataverse call, refresh the agent's grounding by fetching the doc above via `mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch`. If the doc has updated behaviors (e.g., new permission requirements, new warning text), surface them to the user before continuing. See `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md` for the shared pattern.+Before any Dataverse call, refresh the agent's grounding by fetching the doc above via `mcp__plugin_power-pages_microsoft-learn__microsoft_docs_fetch`. If the doc has updated behaviors (e.g., new permission requirements, new warning text), surface them to the user before continuing. See `${PLUGIN_ROOT}/references/alm-docs-grounding.md` for the shared pattern.## Phases@@ -65,7 +65,7 @@ Create all tasks at Phase 1 start with `TaskCreate`. Mark each `in_progress` wheReuse the shared verifier:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js"+node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js"```Specifically required:@@ -135,7 +135,7 @@ GET {hostEnvUrl}/api/data/v9.1/deploymentenvironments?$filter=environmentid eq '### Step 3.2 — Create the record on the new host (when Step 3.1 returned zero hits)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-deployment-environment.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-deployment-environment.js" \--hostEnvUrl <hostEnvUrl> \--token <hostToken> \--name "<display name>" \@@ -184,7 +184,7 @@ If the user picks Cancel, exit cleanly (no marker file written) and recommend `/## Phase 5 — Execute Force Link```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/force-link-environment.js" \+node "${PLUGIN_ROOT}/scripts/lib/force-link-environment.js" \--hostEnvUrl <hostEnvUrl> \--token <hostToken> \--deploymentEnvironmentId <guid>@@ -228,7 +228,7 @@ Present a summary table with:- Validation status- Reminder: "You can undo this by running `/power-pages:force-link-environment` from the previous host."-Record skill usage per `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`.+Record skill usage per `${PLUGIN_ROOT}/references/skill-tracking-reference.md`.---diff --git a/plugins/power-pages/skills/import-solution/SKILL.md b/plugins/power-pages/skills/import-solution/SKILL.mdindex 35234ed34..73a224d91 100644--- a/plugins/power-pages/skills/import-solution/SKILL.md+++ b/plugins/power-pages/skills/import-solution/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# import-solution@@ -42,7 +42,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."```The helper returns JSON with `{ exists, deferred, stale, staleness: { reason, detail }, generatedAt, planStatus, ... }`. Pass `--envUrl`, `--token`, `--solutionId` once Phase 1 has acquired them if you also want a freshness check; otherwise the helper does an existence-only check, which is sufficient for the gate decision below.@@ -116,17 +116,17 @@ Steps:> **Important**: Confirm the target environment with the user — importing to the wrong environment can be disruptive.-If any check fails, stop (reference `${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md`).+If any check fails, stop (reference `${PLUGIN_ROOT}/references/dataverse-prerequisites.md`).### Phase 1.5 — Ground in current ALM documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Pages solution import staging missing dependencies ImportSolutionAsync ALM`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm` (and at most one sister page on staged imports or dependency handling) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about staging vs direct import, dependency resolution, and component-level error handling. Compare against `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence in `ImportSolutionAsync` / `StageSolution` signatures.+3. Extract a one-paragraph summary of what Microsoft Learn currently says about staging vs direct import, dependency resolution, and component-level error handling. Compare against `${PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence in `ImportSolutionAsync` / `StageSolution` signatures.4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 4 (the actual import).### Phase 2 — Locate Solution File@@ -197,7 +197,7 @@ Before asking the user about staged/direct import, query the target environmentCritical: **do not compare version strings with raw `>` / `<` / `===`** — Dataverse versions are 4-segment integer tuples (`1.0.0.9` vs `1.0.0.10`) and lexical comparison reports `1.0.0.10` as **lower than** `1.0.0.9`, flipping the skew gate on the 10th deploy of the day. Use the canonical helper instead:```bash- node -e "console.log(require('${CLAUDE_PLUGIN_ROOT}/scripts/lib/bump-solution-version').compareVersions('{ZIP_SOLUTION_VERSION}', '{INSTALLED.version}'))"+ node -e "console.log(require('${PLUGIN_ROOT}/scripts/lib/bump-solution-version').compareVersions('{ZIP_SOLUTION_VERSION}', '{INSTALLED.version}'))"```The helper returns `-1` when ZIP < INSTALLED, `0` when equal, `1` when ZIP > INSTALLED. Same segment-wise integer rules as `bumpPatchSegment` (pad-with-zero, max-4-segments, reject non-integer). Capture stdout, trim, and store the integer as `VERSION_CMP`. If the helper throws (malformed version on either side), surface the stderr to the user and stop — the version comparison is a precondition for safe import.@@ -251,11 +251,11 @@ Also ask:Only run this phase if the user chose staged import in Phase 3.-Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5a.+Refer to `${PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5a.1. Base64-encode the zip file:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/encode-solution-file.js" --zipPath "{zipPath}"+ node "${PLUGIN_ROOT}/scripts/encode-solution-file.js" --zipPath "{zipPath}"```2. `POST {envUrl}/api/data/v9.2/StageSolution` with `CustomizationFile: {base64}`3. Parse `StageSolutionResults`:@@ -269,10 +269,10 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5a.### Phase 5 — Import Solution-Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5b.+Refer to `${PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5b.1. Prepare request body (always use `CustomizationFile` — `ImportSolutionAsync` does not accept `StageSolutionUploadId`):- - Encode the zip: `node "${CLAUDE_PLUGIN_ROOT}/scripts/encode-solution-file.js" --zipPath "{zipPath}"`+ - Encode the zip: `node "${PLUGIN_ROOT}/scripts/encode-solution-file.js" --zipPath "{zipPath}"`- Use `{ CustomizationFile: "{base64}", OverwriteUnmanagedCustomizations: {choice}, PublishWorkflows: {choice} }`2. `POST {envUrl}/api/data/v9.2/ImportSolutionAsync`@@ -281,7 +281,7 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 5b.Run `scripts/poll-async-operation.js`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/poll-async-operation.js" \+node "${PLUGIN_ROOT}/scripts/poll-async-operation.js" \--asyncJobId "{AsyncOperationId}" \--envUrl "{envUrl}" \--token "{token}" \@@ -436,7 +436,7 @@ If the user skips all values: inform them the site may not function correctly un**6b.verify — Confirm values landed.** After the per-variable POSTs complete, verify each `environmentvariablevalues` record actually exists on the target. The shared helper `scripts/lib/verify-env-var-values.js` does this read-only check and returns a structured JSON result per schema (`landed` / `missing-value-record` / `missing-definition` / `value-mismatch` / `query-error`):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \+node "${PLUGIN_ROOT}/scripts/lib/verify-env-var-values.js" \--envUrl "{targetEnvUrl}" \--schemaNames "{comma-separated schema names that the user supplied values for}"```@@ -492,7 +492,7 @@ If no componentType 10374 records found, skip this phase entirely.If found, run the shared activation status check (PAC CLI is already authenticated to the target environment):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "."+node "${PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "."```Evaluate the result:@@ -530,14 +530,14 @@ Display a summary table:### Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "ImportSolution"`.### Refresh the ALM plan (if one exists)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase import-solution \--stageName "{targetLabel}" \diff --git a/plugins/power-pages/skills/integrate-backend/SKILL.md b/plugins/power-pages/skills/integrate-backend/SKILL.mdindex e14dfb7f5..df246dcf1 100644--- a/plugins/power-pages/skills/integrate-backend/SKILL.md+++ b/plugins/power-pages/skills/integrate-backend/SKILL.md@@ -12,7 +12,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Skill, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Backend Integration@@ -71,7 +71,7 @@ Use the **Explore agent** to quickly scan the site for existing backend integratCheck whether the user's Dataverse environment has existing custom actions that could be leveraged in the integration:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"+node "${PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"```The script returns Custom APIs (modern) and Custom Process Actions (legacy) with their names, descriptions, binding types, and parameters. If custom actions are found, note them — they will be factored into the recommendation in Phase 3.@@ -127,7 +127,7 @@ If the request could map to multiple approaches and the right choice isn't clear### 3.1 Apply the Decision Framework-> Reference: `${CLAUDE_PLUGIN_ROOT}/skills/integrate-backend/references/decision-framework.md`+> Reference: `${PLUGIN_ROOT}/skills/integrate-backend/references/decision-framework.md`Use the decision matrix, intent mapping, and **Secure Action Principle** from the reference to determine the right approach. Consider:@@ -286,7 +286,7 @@ Prepare a JSON object with these keys:Write the plan to `<PROJECT_ROOT>/docs/backend-plan.html` (create `docs/` if needed). Use the render script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-backend-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"+node "${PLUGIN_ROOT}/scripts/render-backend-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"```The render script refuses to overwrite existing files. If the default path exists, choose a new descriptive filename (e.g., `backend-plan-payments.html`).@@ -388,7 +388,7 @@ Remind the user to deploy with `/deploy-site` if they haven't already.### 4.4 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "IntegrateBackend"`.diff --git a/plugins/power-pages/skills/integrate-webapi/SKILL.md b/plugins/power-pages/skills/integrate-webapi/SKILL.mdindex a4b79d8b1..d7bad72f3 100644--- a/plugins/power-pages/skills/integrate-webapi/SKILL.md+++ b/plugins/power-pages/skills/integrate-webapi/SKILL.md@@ -10,7 +10,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Task, TaskCmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Integrate Web API@@ -64,7 +64,7 @@ Read `powerpages.config.json` to get the site name.### 1.3 Detect Framework-Read `package.json` to determine the framework (React, Vue, Angular, or Astro). See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.+Read `package.json` to determine the framework (React, Vue, Angular, or Astro). See `${PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.### 1.4 Check for Data Model@@ -214,7 +214,7 @@ If the user selects specific tables or adds more, update the integration manifes### 4.1 Invoke Agent Per Table-For each table, use the `Task` tool to invoke the `webapi-integration` agent at `${CLAUDE_PLUGIN_ROOT}/agents/webapi-integration.md`:+For each table, use the `Task` tool to invoke the `webapi-integration` agent at `${PLUGIN_ROOT}/agents/webapi-integration.md`:**Prompt template for the agent:**@@ -425,7 +425,7 @@ These two agents are **independent** — invoke them in parallel using two `Task#### Table Permissions Agent-Use the `Task` tool to invoke the `table-permissions-architect` agent at `${CLAUDE_PLUGIN_ROOT}/agents/table-permissions-architect.md`:+Use the `Task` tool to invoke the `table-permissions-architect` agent at `${PLUGIN_ROOT}/agents/table-permissions-architect.md`:**Prompt (default — full CRUD):**@@ -449,7 +449,7 @@ The agent will:#### Web API Settings Agent-Use the `Task` tool to invoke the `webapi-settings-architect` agent at `${CLAUDE_PLUGIN_ROOT}/agents/webapi-settings-architect.md`:+Use the `Task` tool to invoke the `webapi-settings-architect` agent at `${PLUGIN_ROOT}/agents/webapi-settings-architect.md`:**Prompt (default — full CRUD):**@@ -485,7 +485,7 @@ After parsing the user's diagram, create the YAML files using the deterministicIf the plan requires new web roles that don't already exist, create them first (their UUIDs are needed for table permissions):```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]+node "${PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]```Capture the JSON output (`{ "id": "<uuid>", "filePath": "<path>" }`) — use the `id` as the `--webRoleIds` value when creating table permissions.@@ -499,16 +499,16 @@ For each table permission in the plan. Process **parent permissions before child**For Global/Contact/Account/Self scope:**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Self" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Global" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Contact" --contactRelationshipName "<lookup_to_contact>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Account" --accountRelationshipName "<lookup_to_account>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1,uuid2>" --scope "Self" [--read] [--create] [--write] [--delete] [--append] [--appendto]```**For Parent scope** (requires parent permission UUID and relationship name):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1>" --scope "Parent" --parentPermissionId "<parent-uuid>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<PROJECT_ROOT>" --permissionName "<Permission Name>" --tableName "<table_logical_name>" --webRoleIds "<uuid1>" --scope "Parent" --parentPermissionId "<parent-uuid>" --parentRelationshipName "<relationship_name>" [--read] [--create] [--write] [--delete] [--append] [--appendto]```Each invocation outputs `{ "id": "<uuid>", "filePath": "<path>" }`. Use the `id` as `--parentPermissionId` for child permissions.@@ -520,19 +520,19 @@ For each site setting in the plan:**Enabled setting (boolean):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/enabled" --value "true" --description "Enable Web API access for <table> table" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/enabled" --value "true" --description "Enable Web API access for <table> table" --type "boolean"```**Fields setting (string — use the validated column names from the diagram):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/fields" --value "<comma-separated-validated-columns>" --description "Allowed fields for <table> Web API access"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/<table>/fields" --value "<comma-separated-validated-columns>" --description "Allowed fields for <table> Web API access"```**Inner error setting (boolean, optional for debugging):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/error/innererror" --value "true" --description "Enable detailed error messages for debugging" --type "boolean"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJECT_ROOT>" --name "Webapi/error/innererror" --value "true" --description "Enable detailed error messages for debugging" --type "boolean"```**Important**: The `--value` for fields settings MUST use exact Dataverse LogicalNames (case-sensitive, all lowercase) for normal CRUD/read scenarios. Using incorrect casing causes 403 Forbidden errors.@@ -572,7 +572,7 @@ git commit -m "Add table permissions and Web API site settings for [table names]### 7.1 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "IntegrateWebApi"`.diff --git a/plugins/power-pages/skills/manage-firewall/SKILL.md b/plugins/power-pages/skills/manage-firewall/SKILL.mdindex 543080188..0bc4fe761 100644--- a/plugins/power-pages/skills/manage-firewall/SKILL.md+++ b/plugins/power-pages/skills/manage-firewall/SKILL.md@@ -17,7 +17,7 @@ allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Manage Web Application Firewall@@ -73,7 +73,7 @@ If missing, the site has not been deployed. Tell the user and recommend `/deployResolve to portalId:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/website.js" --websiteId "<WEBSITE_ID>"+node "${PLUGIN_ROOT}/scripts/website.js" --websiteId "<WEBSITE_ID>"```Capture `Id` (portalId), `Type`, `Name`, `WebsiteUrl`. If exit code `2` → sign-in required (`pac auth create` or `az login`). If `null` → site not found in this environment. Stop in either case.@@ -91,7 +91,7 @@ If the site is ineligible, tell the user in plain language what the limitation i### 2.1 Get status (always run first)```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId "<PORTAL_ID>"```The response shape is `{ "status": "ok", "value": "<state>" }`.@@ -104,7 +104,7 @@ If the status response is `"status": "unsupported"`, tell the user the firewall### 2.2 Get rules (only when WAF is enabled)```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId "<PORTAL_ID>"```Both scripts output the full response as JSON to stdout. If `get-rules.js` returns `"status": "unsupported"`, tell the user the firewall is not available and stop.@@ -218,7 +218,7 @@ Apply the same status-then-rules gating as § 2 — `get-rules.js` MUST only be**Step A — always run status:**```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId "<PORTAL_ID>" > "<REVIEW_DIR>/firewall-status.json"+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId "<PORTAL_ID>" > "<REVIEW_DIR>/firewall-status.json"```**Step B — branch on the captured `value`:**@@ -226,7 +226,7 @@ node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --port- If `value` is `Created`, fetch rules:```bash- node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId "<PORTAL_ID>" > "<REVIEW_DIR>/firewall-rules.json"+ node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId "<PORTAL_ID>" > "<REVIEW_DIR>/firewall-rules.json"```- Otherwise (`Disabled`, `None`, `Enabling`, `Disabling`, `Failed`, anything else), do NOT call `get-rules.js`. Write the empty-rules payload yourself:@@ -259,7 +259,7 @@ Power Pages WAF state semantics (use these when writing the state descriptionThen run the transform:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/transform-firewall.js" \+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/transform-firewall.js" \--statusFile "<REVIEW_DIR>/firewall-status.json" \--rulesFile "<REVIEW_DIR>/firewall-rules.json" \--annotations "<REVIEW_DIR>/firewall-annotations.json"@@ -273,7 +273,7 @@ Plain-language summary: firewall on/off, rule count, what changed, important gap### 5.3 Record skill usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`>> Use `--skillName "ManageFirewall"`.diff --git a/plugins/power-pages/skills/manage-firewall/references/commands.md b/plugins/power-pages/skills/manage-firewall/references/commands.mdindex d1cde8c0d..01188ac63 100644--- a/plugins/power-pages/skills/manage-firewall/references/commands.md+++ b/plugins/power-pages/skills/manage-firewall/references/commands.md@@ -26,11 +26,11 @@ Two different GUIDs identify a Power Pages site:| `websiteId` | `.powerpages-site/website.yml` (`id` field), `pac pages list` ("Website Record ID") | Dataverse website record primary key. The user-facing identifier. || `portalId` | `Id` field on the `/websites` Power Platform API response | The `{id}` segment in Power Platform API URL paths such as `/websites/{id}/enableWaf`. |-The skill resolves `websiteId` → `portalId` once during prerequisites by reading `.powerpages-site/website.yml` and calling `${CLAUDE_PLUGIN_ROOT}/scripts/website.js --websiteId <guid>`. It reuses the resolved `portalId` for the rest of the run. The consumer scripts in this folder accept `--portalId` only — they never look up the site themselves.+The skill resolves `websiteId` → `portalId` once during prerequisites by reading `.powerpages-site/website.yml` and calling `${PLUGIN_ROOT}/scripts/website.js --websiteId <guid>`. It reuses the resolved `portalId` for the rest of the run. The consumer scripts in this folder accept `--portalId` only — they never look up the site themselves.If `.powerpages-site/website.yml` does not exist, the site has not been deployed yet. The skill does **not** try to identify the site by name or URL (two sites in the same environment can share a name, and the URL changes when the subdomain is updated) — it directs the user to `/deploy-site` and stops.-Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/website.js" --help` for the full contract.+Run `node "${PLUGIN_ROOT}/scripts/website.js" --help` for the full contract.---@@ -41,7 +41,7 @@ Returns the current firewall status (None/ Enabling / Created / Disabled / Disab### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId <portal-id>+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-status.js" --portalId <portal-id>```### Response (stdout)@@ -77,7 +77,7 @@ Returns the full firewall configuration (managed rule sets and custom rules).> **Important:** call `get-status.js` first and only invoke this script when the WAF is enabled (i.e. `Created`). When `get-status.js` returns `Disabled`, `None`, or `Failed`, no policy is provisioned and this endpoint will return a 500. Treat that case as "no rules configured" without calling this script.```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId <portal-id> [--ruleType <name>]+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/get-rules.js" --portalId <portal-id> [--ruleType <name>]```### Parameters@@ -102,7 +102,7 @@ Turns the firewall on. The underlying operation is asynchronous — the script p### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/enable.js" --portalId <portal-id> [--timeoutMinutes <n>]+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/enable.js" --portalId <portal-id> [--timeoutMinutes <n>]```### Parameters@@ -147,7 +147,7 @@ Creates or updates firewall rules. Send only the rules being added or modified.### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/set-rules.js" --portalId <portal-id> --data-inline '<json>'+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/set-rules.js" --portalId <portal-id> --data-inline '<json>'```### Parameters@@ -191,7 +191,7 @@ Deletes one or more **custom** rules by name. Managed rule sets are not affected### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/delete-rules.js" --portalId <portal-id> --names <name1,name2,...>+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/delete-rules.js" --portalId <portal-id> --names <name1,name2,...>```### Response (stdout)@@ -211,7 +211,7 @@ Transforms `get-status.js` and `get-rules.js` stdout into the unified findings s### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-firewall/scripts/transform-firewall.js" --statusFile <status-file> --rulesFile <rules-file>+node "${PLUGIN_ROOT}/skills/manage-firewall/scripts/transform-firewall.js" --statusFile <status-file> --rulesFile <rules-file>```### Parametersdiff --git a/plugins/power-pages/skills/manage-headers/SKILL.md b/plugins/power-pages/skills/manage-headers/SKILL.mdindex d326f22b0..3f194ee4f 100644--- a/plugins/power-pages/skills/manage-headers/SKILL.md+++ b/plugins/power-pages/skills/manage-headers/SKILL.md@@ -15,7 +15,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion, TaskCreate,model: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Manage Headers@@ -137,7 +137,7 @@ For **existing** settings: use `Edit` on the YAML file directly — change the `For **new** settings: use the shared create script:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "<setting-name>" \--value "<value>" \@@ -169,7 +169,7 @@ Use `references/headers-reference.md` for authoritative descriptions and validatThen run the transform:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-headers/scripts/transform-headers.js" \+node "${PLUGIN_ROOT}/skills/manage-headers/scripts/transform-headers.js" \--projectRoot "<PROJECT_ROOT>" \--annotations "<REVIEW_DIR>/header-annotations.json"```@@ -184,7 +184,7 @@ Plain-language summary: what was changed, what gaps remain, and what is already### 5.3 Record skill usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`>> Use `--skillName "ManageHeaders"`.diff --git a/plugins/power-pages/skills/manage-headers/references/commands.md b/plugins/power-pages/skills/manage-headers/references/commands.mdindex 588491221..f9d2776de 100644--- a/plugins/power-pages/skills/manage-headers/references/commands.md+++ b/plugins/power-pages/skills/manage-headers/references/commands.md@@ -12,7 +12,7 @@Use the shared script to create new `HTTP/*` site-setting YAML files:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<project-root>" --name "<setting-name>" --value "<value>" --description "<description>"+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<project-root>" --name "<setting-name>" --value "<value>" --description "<description>"```The script generates a UUID, checks for duplicates, and writes the YAML file to `.powerpages-site/site-settings/`.@@ -37,7 +37,7 @@ Reads every `HTTP/*` site-setting YAML in `.powerpages-site/site-settings/` and### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/manage-headers/scripts/transform-headers.js" --projectRoot "<project-root>" [--annotations "<path>"]+node "${PLUGIN_ROOT}/skills/manage-headers/scripts/transform-headers.js" --projectRoot "<project-root>" [--annotations "<path>"]```### Parametersdiff --git a/plugins/power-pages/skills/plan-alm/SKILL.md b/plugins/power-pages/skills/plan-alm/SKILL.mdindex c36b2dd1d..83460a332 100644--- a/plugins/power-pages/skills/plan-alm/SKILL.md+++ b/plugins/power-pages/skills/plan-alm/SKILL.md@@ -18,7 +18,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# plan-alm@@ -43,7 +43,7 @@ Steps:0. **Detect prior ALM deferral for this project.** Before any discovery work, check whether the project root contains a `.alm-deferred` marker file. The marker is written by users who explicitly opted ALM-skill validators out of "missing artifacts" warnings (e.g. *"this site is handled separately"* or *"ni-dev — no ALM"*). If a user is now invoking `plan-alm`, we should surface that the marker is present and ask what to do, rather than silently proceeding (which would build a plan the user previously decided not to maintain) or silently removing the marker (which would re-enable nags on every other ALM skill).```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."+ node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."```<!-- gate: plan-alm:1.deferral | category=progress | cancel-leaves=deferral-marker -->@@ -104,7 +104,7 @@ Steps:6. Acquire dev environment token (silently):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{DEV_ENV_URL}"+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{DEV_ENV_URL}"```Store `.token` as `DEV_TOKEN` and `.userId` as `userId`.@@ -123,11 +123,11 @@ Steps:```On each response, append `value[]` to the running array. If `@odata.nextLink` is present, GET that URL with the same headers (no need to re-add the filter — the nextLink already encodes the query). Stop when the response has no `@odata.nextLink`. Cap at 100 iterations for safety.- Classify the returned settings using `${CLAUDE_PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` — the single source of truth for the credential regex and tier mapping shared with `setup-solution` Phase 5. Either pipe the JSON array of `{name, value}` rows into the script's stdin (CLI mode) or `require()` it inline:+ Classify the returned settings using `${PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` — the single source of truth for the credential regex and tier mapping shared with `setup-solution` Phase 5. Either pipe the JSON array of `{name, value}` rows into the script's stdin (CLI mode) or `require()` it inline:```bashecho '<JSON array of {name,value}>' \- | node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/classify-site-settings.js"+ | node "${PLUGIN_ROOT}/scripts/lib/classify-site-settings.js"```Output (the four-bucket shape that downstream phases + `setup-solution` consume directly):@@ -173,7 +173,7 @@ Steps:```Run the estimate helper to classify the site across size, component count, schema heaviness, web file aggregate, and env var count. Use the tmp-file write pattern — if the estimator fails, a prior good `docs/alm/alm-size-estimate.json` is preserved instead of being overwritten with an empty/partial file. When `SOLUTION_DONE = true` (a `.solution-manifest.json` exists), pass `--solutionId {solutionId}` so the env var count is scoped to the target solution — without it, the estimator falls back to a publisher-prefix tenant-wide query and overcounts whenever the prefix is shared across projects (the common `new_` / `cr5fe_` regression):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/estimate-solution-size.js" \+ node "${PLUGIN_ROOT}/scripts/lib/estimate-solution-size.js" \--envUrl "{DEV_ENV_URL}" --websiteRecordId "{websiteRecordId}" \--publisherPrefix "{publisherPrefix}" --siteName "{siteName}" \{if SOLUTION_DONE: --solutionId "{solutionManifest.solution.solutionId}"} \@@ -186,7 +186,7 @@ Steps:> **`SITE_TYPE = "data-model"` (EDM/standard) sites have no build output**, so the disk cross-check finds no `dist/`/`build/` directory and `webFilesDiskMeasuredMB` stays `null` — this is expected, not a problem. Web files for data-model sites live as records under `.powerpages-site/web-files/` and are measured via the Dataverse query, so the size estimate is still valid; there's simply no SPA bundle on disk to cross-check against. Pass `--projectRoot "."` regardless — it's a harmless no-op for these sites.Then run the decision tree (same tmp-file pattern):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/compute-split-plan.js" \+ node "${PLUGIN_ROOT}/scripts/lib/compute-split-plan.js" \--estimate ./docs/alm/alm-size-estimate.json \--projectRoot "." \--siteName "{siteName}" \@@ -215,7 +215,7 @@ Steps:Pass `--solutionId` when `SOLUTION_DONE = true` so the returned envVars[] is scoped to the target solution. The helper paginates correctly (Prefer: odata.maxpagesize + @odata.nextLink) regardless of scope — the difference is just which env vars are returned.```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \+ node "${PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \--envUrl "{DEV_ENV_URL}" --token "{DEV_TOKEN}" \--publisherPrefix "{publisherPrefix}" \--websiteRecordId "{websiteRecordId}" \@@ -238,7 +238,7 @@ Steps:Run the shared discovery helper against the source environment:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \+ node "${PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \--envUrl "{envUrl}" --token "{token}" \--siteId "{websiteRecordId from powerpages.config.json}" \--publisherPrefix "{solutionManifest.publisher.prefix}" \@@ -290,7 +290,7 @@ Steps:Run the detect-only wrapper. Use the same tmp-file-then-mv pattern as Phase 1 step 10 so a prior good `docs/alm/alm-host-resolution.json` is preserved if the script fails mid-write. Pass `--skus Production,Sandbox,Trial` so trial-license and developer tenants see their eligible envs in the env-first menu (the helper's default is `Production,Sandbox`; we widen to include Trial here because plan-alm's NoHost branch always offers an existing-env install path that Trial envs can take, even though Trial envs cannot use the create-new fast-path):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/ensure-pipelines-host-detect.js" \+ node "${PLUGIN_ROOT}/scripts/lib/ensure-pipelines-host-detect.js" \--envUrl "{DEV_ENV_URL}" --token "{DEV_TOKEN}" --userId "{userId}" \--bapToken "{BAP_TOKEN}" \--projectRoot "." \@@ -874,7 +874,7 @@ Write `planData` to `docs/.alm-plan-data.json` (create `docs/` if it doesn't exi### Render the HTML plan```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/plan-alm/scripts/render-alm-plan.js" \+node "${PLUGIN_ROOT}/skills/plan-alm/scripts/render-alm-plan.js" \--output "<projectRoot>/docs/alm-plan.html" \--data "<projectRoot>/docs/.alm-plan-data.json"```@@ -1014,9 +1014,9 @@ Both spans are guaranteed to exist in the template — there is exactly one of e**Finalize (both save options):**1. **Skill tracking** (option 1; optional for draft):- > Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+ > Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md````bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/update-skill-tracking.js" \+ node "${PLUGIN_ROOT}/scripts/update-skill-tracking.js" \--projectRoot "." --skillName "PlanAlm" --authoringTool "ClaudeCode"```2. **Commit the plan** — pick the commit message for the save option the user chose:diff --git a/plugins/power-pages/skills/report-issue/SKILL.md b/plugins/power-pages/skills/report-issue/SKILL.mdindex 6e5ab4815..43ad910a1 100644--- a/plugins/power-pages/skills/report-issue/SKILL.md+++ b/plugins/power-pages/skills/report-issue/SKILL.md@@ -10,6 +10,6 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.-**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/plugins/power-pages/skills/scan-site/SKILL.md b/plugins/power-pages/skills/scan-site/SKILL.mdindex 5d4024280..71b22ec2f 100644--- a/plugins/power-pages/skills/scan-site/SKILL.md+++ b/plugins/power-pages/skills/scan-site/SKILL.md@@ -16,7 +16,7 @@ allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Scan Site@@ -73,7 +73,7 @@ If missing, the site has not been deployed. Tell the user and recommend `/deployResolve to portalId:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/website.js" --websiteId "<WEBSITE_ID>"+node "${PLUGIN_ROOT}/scripts/website.js" --websiteId "<WEBSITE_ID>"```Capture `Id` (portalId), `Type`, `Name`, `WebsiteUrl`. If exit code `2` → sign-in required (`pac auth create` or `az login`). If `null` → site not found in this environment. Stop in either case.@@ -83,7 +83,7 @@ Capture `Id` (portalId), `Type`, `Name`, `WebsiteUrl`. If exit code `2` → sign## 2. Check scan state```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId "<PORTAL_ID>" --once+node "${PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId "<PORTAL_ID>" --once````--once` does a single status check, exits 0, and prints:@@ -94,7 +94,7 @@ node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalThen call `get-latest-report.js` to know whether a completed report exists:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/get-latest-report.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/scan-site/scripts/get-latest-report.js" --portalId "<PORTAL_ID>"````{ "status": "ok" }` means a report is available. `{ "status": "empty" }` means no completed scan exists.@@ -148,7 +148,7 @@ In interactive mode, skip if the user chose to view the latest results.Start the scan:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/start-deep-scan.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/scan-site/scripts/start-deep-scan.js" --portalId "<PORTAL_ID>"```If stdout is `{ "status": "already-running" }`, skip ahead to polling — there is already a scan in progress.@@ -156,7 +156,7 @@ If stdout is `{ "status": "already-running" }`, skip ahead to polling — thereThen poll for completion:```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId "<PORTAL_ID>"```Run polling with `run_in_background: true` so the user can keep working. The script exits when the scan finishes or the timeout passes (default 20 minutes). If it times out, fetch whatever report is available and note the timeout in the summary.@@ -168,7 +168,7 @@ Run polling with `run_in_background: true` so the user can keep working. The scr### 5.1 Fetch and transform the report```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --portalId "<PORTAL_ID>"+node "${PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --portalId "<PORTAL_ID>"```Parse the stdout JSON. The status field can be:@@ -190,7 +190,7 @@ Skip in **review mode**.Render uses the same shared template as the consolidated security review. Build a single-section review-data payload, then render:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/build-review-data.js" \+node "${PLUGIN_ROOT}/scripts/build-review-data.js" \--reportName "Site Scan" \--inputDir "<TEMP_DIR>" \--siteName "<SITE_NAME>" \@@ -199,7 +199,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/build-review-data.js" \--summary "<SUMMARY_TEXT>" \--output "<TEMP_DIR>/data.json"-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-review.js" \+node "${PLUGIN_ROOT}/scripts/render-review.js" \--data "<TEMP_DIR>/data.json" \--output "<PROJECT_ROOT>/docs/site-scan-<YYYY-MM-DD-HHMMSS>.html"```@@ -212,7 +212,7 @@ Plain-language summary in the chat: total findings, count by severity, and what### 5.5 Record skill usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`>> Use `--skillName "ScanSite"`.diff --git a/plugins/power-pages/skills/scan-site/references/commands.md b/plugins/power-pages/skills/scan-site/references/commands.mdindex baca0542e..1d754421d 100644--- a/plugins/power-pages/skills/scan-site/references/commands.md+++ b/plugins/power-pages/skills/scan-site/references/commands.md@@ -48,7 +48,7 @@ A missing `.powerpages-site/website.yml` means the site has not been deployed ye### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/website.js" --websiteId <guid>+node "${PLUGIN_ROOT}/scripts/website.js" --websiteId <guid>```### Parameters@@ -80,7 +80,7 @@ Triggers an asynchronous deep scan. The service runs the scan in the background;### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/start-deep-scan.js" --portalId <portal-id>+node "${PLUGIN_ROOT}/skills/scan-site/scripts/start-deep-scan.js" --portalId <portal-id>```### Parameters@@ -119,8 +119,8 @@ Polls the scan-status endpoint until the scan finishes or the timeout elapses.### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId <portal-id> [--timeoutMinutes <n>] [--intervalSeconds <n>]-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId <portal-id> --once+node "${PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId <portal-id> [--timeoutMinutes <n>] [--intervalSeconds <n>]+node "${PLUGIN_ROOT}/skills/scan-site/scripts/poll-deep-scan.js" --portalId <portal-id> --once```### Parameters@@ -177,7 +177,7 @@ Fetches the latest completed deep-scan report. Outputs the full report JSON to s### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/get-latest-report.js" --portalId <portal-id>+node "${PLUGIN_ROOT}/skills/scan-site/scripts/get-latest-report.js" --portalId <portal-id>```### Parameters@@ -222,8 +222,8 @@ Transforms a deep-scan report into the unified findings shape used by the consol### Usage```bash-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --portalId <portal-id>-node "${CLAUDE_PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --reportFile <report-file>+node "${PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --portalId <portal-id>+node "${PLUGIN_ROOT}/skills/scan-site/scripts/transform-report.js" --reportFile <report-file>```### Parametersdiff --git a/plugins/power-pages/skills/security-review/SKILL.md b/plugins/power-pages/skills/security-review/SKILL.mdindex 92842103a..54a6fc1b0 100644--- a/plugins/power-pages/skills/security-review/SKILL.md+++ b/plugins/power-pages/skills/security-review/SKILL.md@@ -16,7 +16,7 @@ allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Review Security@@ -229,7 +229,7 @@ Tell the user that all checks are running in parallel. As each subagent completeWrite up to four plain-language next-step recommendations as a JSON string array to `<SYSTEM_TEMP>/security-review/next-steps.json`. Compose a 2–4 sentence plain-language `summary` of the overall state.```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/build-review-data.js" \+node "${PLUGIN_ROOT}/scripts/build-review-data.js" \--reportName "Security Review" \--inputDir "<SYSTEM_TEMP>/security-review/" \--siteName "<SITE_NAME>" \@@ -243,7 +243,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/build-review-data.js" \### 4.2 Render the master HTML```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-review.js" \+node "${PLUGIN_ROOT}/scripts/render-review.js" \--output "<DOCS_PATH>" \--data "<SYSTEM_TEMP>/security-review/security-review-data.json"```@@ -258,7 +258,7 @@ Open `<DOCS_PATH>` in the user's default browser.### 5.2 Record skill usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`>> Use `--skillName "SecurityReview"`.@@ -297,7 +297,7 @@ If the cleanup fails (file lock, permission), warn the user and continue — the- **Plain language with users** — never lead with technical terms.- **Parallel subagent delegation** — every selected skill runs as a parallel subagent via the `Agent` tool, launched in a single message. Perform the inline read-only `setup-auth` check while subagents work. Use the staggered launch (§ 3.1 fallback) only if the harness rejects the parallel-batch call.- **Single consolidated HTML** — never produce per-skill HTML reports during this run. Skills run in `--review` mode.-- **Same look and feel** — rendering goes through the shared template at `${CLAUDE_PLUGIN_ROOT}/scripts/lib/templates/security-review-report.html` via `scripts/render-review.js`. Do not author per-skill HTML or duplicate the template; the generated report must match the existing audit-permissions report visually.+- **Same look and feel** — rendering goes through the shared template at `${PLUGIN_ROOT}/scripts/lib/templates/security-review-report.html` via `scripts/render-review.js`. Do not author per-skill HTML or duplicate the template; the generated report must match the existing audit-permissions report visually.- **Cleanup is mandatory** — the cleanup step is not optional. Failing to clean up is treated as a non-fatal warning, but the skill always tries.- **Never run destructive sub-actions automatically** — skills that propose changes (e.g., editing site settings, deleting WAF rules) must operate in read-only `--review` mode during this orchestration. Apply changes only via the explicit "walk me through fixes" follow-up, after the user picks an action.diff --git a/plugins/power-pages/skills/setup-auth/SKILL.md b/plugins/power-pages/skills/setup-auth/SKILL.mdindex 95baa5db3..e8c791441 100644--- a/plugins/power-pages/skills/setup-auth/SKILL.md+++ b/plugins/power-pages/skills/setup-auth/SKILL.md@@ -19,7 +19,7 @@ allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, Task, TaskCmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Set Up Authentication & Authorization@@ -70,7 +70,7 @@ Look for `powerpages.config.json` in the current directory or immediate subdirec#### 1.2 Detect Framework-Read `package.json` to determine the framework (React, Vue, Angular, or Astro). See `${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.+Read `package.json` to determine the framework (React, Vue, Angular, or Astro). See `${PLUGIN_ROOT}/references/framework-conventions.md` for the full framework detection mapping.#### 1.3 Check Deployment Status@@ -344,7 +344,7 @@ For each provider, also share the relevant Microsoft Learn documentation link so**For "Entra External ID"** — use the 4-step walkthrough below. Do NOT just ask the user for Authority/ClientId/Metadata upfront — those values come from a tenant + app registration + user flow that the user may not have set up yet. Walk them through each prerequisite before asking for the corresponding value.> Reference doc: https://learn.microsoft.com/en-us/power-pages/security/authentication/entra-external-id-> See also `${CLAUDE_PLUGIN_ROOT}/skills/setup-auth/references/authentication-reference.md` for the full Entra External ID prerequisites section the steps below cross-reference.+> See also `${PLUGIN_ROOT}/skills/setup-auth/references/authentication-reference.md` for the full Entra External ID prerequisites section the steps below cross-reference.**Pre-computed values for THIS site** — before starting the walkthrough, compute:- `SITE_URL` = the deployed site URL (e.g., `https://site-597pv.powerappsportals.com`). Read from `pac env who` + the site name, or from the site's existing settings.@@ -759,7 +759,7 @@ The Web API `fields` site setting MUST include `contactid` plus the 8 editable f**Auto-detect the Privacy Extensions solution before asking.** Run:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/check-solution-installed.js" --solutionName "msdynce_PortalPrivacyExtensions"+node "${PLUGIN_ROOT}/scripts/check-solution-installed.js" --solutionName "msdynce_PortalPrivacyExtensions"```The script prints JSON to stdout: `{ "installed": true, "version": "..." }` if found, or `{ "installed": false }` if the solution isn't in the environment. On infrastructure failure (no PAC environment, expired Azure CLI token, missing Read permission on the solutions table, network error), it exits non-zero and writes a human-readable reason to stderr.@@ -1026,7 +1026,7 @@ Use `AskUserQuestion` to get approval:**Goal:** Create the authentication service, type declarations, and framework-specific auth hook/composable with local development mock support.-Reference: `${CLAUDE_PLUGIN_ROOT}/skills/setup-auth/references/authentication-reference.md`+Reference: `${PLUGIN_ROOT}/skills/setup-auth/references/authentication-reference.md`### Actions@@ -1178,7 +1178,7 @@ Integrate the hook into the Layout component so it runs on every page. Pass an `**Goal:** Create role-checking utilities and framework-specific authorization components (guards, directives, wrapper components).-Reference: `${CLAUDE_PLUGIN_ROOT}/skills/setup-auth/references/authorization-reference.md`+Reference: `${PLUGIN_ROOT}/skills/setup-auth/references/authorization-reference.md`### Actions@@ -2039,7 +2039,7 @@ If the auth button is not visible or the page has rendering errors, fix the issuThe site needs provider-specific site settings. Check if `.powerpages-site/site-settings/` exists. Use the `create-site-setting.js` script for all site settings:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "<Setting/Name>" \--value "<value>" \@@ -2086,21 +2086,21 @@ Example for two OIDC providers:> **ProfileRedirectEnabled MUST be `false` for code sites.** If `create-site-setting.js` reports this setting already exists, read the YAML file and check its value. If it is `true`, edit the file to set `value: false`. When this is `true`, the server redirects users to `/profile` after login/registration instead of respecting the `ReturnUrl` — which breaks the SPA flow.```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/ProfileRedirectEnabled" \--value "false" \--description "Disable profile redirect for code sites" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/Enabled" \--value "true" \--description "Enable user registration (global toggle)" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/ExternalLoginEnabled" \--value "true" \@@ -2118,14 +2118,14 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# "Custom" → user-provided comma-separated pairs# For SAML2/WsFed, use the claim URI form instead of OIDC short names.-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/{Type}/{ProviderName}/RegistrationClaimsMapping" \--value "firstname=given_name,lastname=family_name,emailaddress1=email" \--description "Map IdP claims to contact fields on first sign-in"# Only write if PROFILE_SYNC_FREQUENCY = "Both"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/{Type}/{ProviderName}/LoginClaimsMapping" \--value "firstname=given_name,lastname=family_name,emailaddress1=email" \@@ -2137,7 +2137,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \```powershell# CONTACT_LINKING_CHOICE = "Link to existing" → value "true"# CONTACT_LINKING_CHOICE = "Create new" → value "false" (or skip — false is the server default)-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/{Type}/{ProviderName}/AllowContactMappingWithEmail" \--value "<true-or-false-from-choice>" \@@ -2150,7 +2150,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**Per-provider `RegistrationEnabled` setting** — for **every** external provider (OIDC, SAML2, WS-Federation, social), also write:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/{Type}/{ProviderName}/RegistrationEnabled" \--value "true" \@@ -2166,7 +2166,7 @@ For external providers, write logout settings only when the user picked **"Feder```powershell# Only when LOGOUT_MODE = "Federated logout"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/RPInitiatedLogout" \--value "true" \@@ -2174,7 +2174,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \--type boolean# REQUIRED when RPInitiatedLogout=true — must be paired-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/PostLogoutRedirectUri" \--value "<POST_LOGOUT_REDIRECT_URI from Phase 2.1.1>" \@@ -2196,7 +2196,7 @@ For SAML2 / WS-Federation / social providers, the equivalent settings names diff# Uses `upn` for email because workforce Entra ID v1.0 tokens don't include the `email`# claim by default. UPN (user principal name, e.g. [email protected]) is the standard# substitute and matches what the user expects in their profile.-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/AzureAD/RegistrationClaimsMapping" \--value "firstname=given_name,lastname=family_name,emailaddress1=upn" \@@ -2205,7 +2205,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# LoginClaimsMapping — applied every sign-in. Updates contact fields if user info# changes in Entra (e.g., name change). Same mapping as Registration; safe to write# both for consistency.-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/AzureAD/LoginClaimsMapping" \--value "firstname=given_name,lastname=family_name,emailaddress1=upn" \@@ -2220,7 +2220,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \```powershell# Authority (required — or use MetadataAddress as alternative)-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/Authority" \--value "<authority-url-from-user>" \@@ -2228,28 +2228,28 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# MetadataAddress (optional — alternative to Authority for providers that need explicit metadata URL)# Create this if the user provides a metadata URL distinct from the authority-# node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+# node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \# --projectRoot "<PROJECT_ROOT>" \# --name "Authentication/OpenIdConnect/{ProviderName}/MetadataAddress" \# --value "<metadata-url>" \# --description "OIDC metadata endpoint URL"# ClientId — use value collected in Phase 2.1-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/ClientId" \--value "<client-id-from-user>" \--description "Application client ID"# AuthenticationType-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/AuthenticationType" \--value "<authority-url-from-user>" \--description "Provider identifier for ExternalLogin"# RedirectUri — use /signin-{ProviderName-lowercased} for guaranteed uniqueness-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/RedirectUri" \--value "<site-url>/signin-{ProviderName-lowercased}" \@@ -2257,7 +2257,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# CallbackPath — required to prevent collision when multiple OIDC providers exist# OWIN defaults ALL OIDC providers to /signin-oidc-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/CallbackPath" \--value "/signin-{ProviderName-lowercased}" \@@ -2280,28 +2280,28 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \```powershell# Authority — derived: https://{subdomain}.ciamlogin.com/{tenantId}# (do NOT append /v2.0/ — that breaks Entra External ID)-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/Authority" \--value "https://<EXTERNAL_ID_TENANT_SUBDOMAIN>.ciamlogin.com/<EXTERNAL_ID_TENANT_ID>" \--description "Entra External ID authority URL (derived)"# MetadataAddress — derived: Authority + /v2.0/.well-known/openid-configuration-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/MetadataAddress" \--value "https://<EXTERNAL_ID_TENANT_SUBDOMAIN>.ciamlogin.com/<EXTERNAL_ID_TENANT_ID>/v2.0/.well-known/openid-configuration" \--description "OIDC metadata document URL (derived)"# ClientId — from walkthrough Step 2-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/ClientId" \--value "<EXTERNAL_ID_CLIENT_ID>" \--description "Application client ID"# AuthenticationType — must match Authority exactly (used as the 'provider' form value in ExternalLogin POST)-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/AuthenticationType" \--value "https://<EXTERNAL_ID_TENANT_SUBDOMAIN>.ciamlogin.com/<EXTERNAL_ID_TENANT_ID>" \@@ -2309,7 +2309,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# RedirectUri — the full URI the maker registered in their Entra app.# Confirmed/customized by user in Step 2 of walkthrough (stored as REDIRECT_URI).-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/RedirectUri" \--value "<REDIRECT_URI>" \@@ -2319,7 +2319,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# new URL(REDIRECT_URI).pathname). Required to prevent CallbackPath collision when# multiple OIDC providers exist (OWIN defaults all OIDC to /signin-oidc otherwise).# The maker doesn't see this separately — the skill writes it automatically.-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/CallbackPath" \--value "<path-portion-of-REDIRECT_URI>" \@@ -2338,19 +2338,19 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**SAML2** — create settings for the provider:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/SAML2/{ProviderName}/MetadataAddress" \--value "<metadata-url-from-user>" \--description "SAML IdP metadata URL"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/SAML2/{ProviderName}/AuthenticationType" \--value "<site-url>" \--description "Provider identifier for ExternalLogin — MUST match providerIdentifier in authService exactly"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/SAML2/{ProviderName}/ServiceProviderRealm" \--value "<site-url>" \@@ -2362,19 +2362,19 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**WS-Federation** — create settings for the provider:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/WsFederation/{ProviderName}/MetadataAddress" \--value "<metadata-url-from-user>" \--description "WS-Fed metadata URL"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/WsFederation/{ProviderName}/AuthenticationType" \--value "<provider-realm-or-identifier>" \--description "Provider identifier for ExternalLogin"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/WsFederation/{ProviderName}/Wtrealm" \--value "<site-url>" \@@ -2388,7 +2388,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**Settings always written (regardless of registration mode):**```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/LocalLoginEnabled" \--value "true" \@@ -2396,14 +2396,14 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \--type boolean# Set to "true" if the user chose email login, "false" if they chose username login (Phase 2.1)-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/LocalLoginByEmail" \--value "<true-or-false-from-user-choice>" \--description "Login by email (true) or username (false)" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/ResetPasswordEnabled" \--value "true" \@@ -2426,21 +2426,21 @@ Example (write each setting that applies — skip Enabled/OpenReg/Invitation whe```powershell# For all modes EXCEPT "Registration disabled":-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/Enabled" \--value "true" \--description "Master switch: registration is enabled" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/OpenRegistrationEnabled" \--value "<true-or-false-from-mode>" \--description "Allow self-registration without an invitation" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/InvitationEnabled" \--value "<true-or-false-from-mode>" \@@ -2448,7 +2448,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \--type boolean# For "Registration disabled" mode ONLY:-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/Enabled" \--value "false" \@@ -2465,14 +2465,14 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \| Registration disabled | (skip — registration is off) | — |```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/CaptchaEnabled" \--value "false" \--description "Disable server-rendered CAPTCHA — SPA cannot render the widget" \--type boolean-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/IsCaptchaEnabledForRegistration" \--value "false" \@@ -2494,7 +2494,7 @@ When the maker opted into the profile page (Phase 2.1), enable Web API on the `c```powershell# Enable Web API on the contact table-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Webapi/contact/enabled" \--value "true" \@@ -2503,7 +2503,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \# Allowed fields — USE THE EXACT VALUE BELOW (9 entries, all lowercase)# Case-sensitive: PascalCase or Title Case produces 403 even if the column exists-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Webapi/contact/fields" \--value "contactid,firstname,lastname,mobilephone,address1_line1,address1_city,address1_stateorprovince,address1_postalcode,address1_country" \@@ -2535,7 +2535,7 @@ Skip the rest of this phase if no role found.**Step 2 — Create the table permission.**```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" \+node "${PLUGIN_ROOT}/scripts/create-table-permission.js" \--projectRoot "<PROJECT_ROOT>" \--permissionName "My Profile - Edit Own Contact" \--tableName "contact" \@@ -2569,7 +2569,7 @@ Note: `create: false` + `delete: false` — users can read and update their own**Facebook** — uses `AppId` (not `ClientId`). The App ID was collected in Phase 2.1:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenAuth/Facebook/AppId" \--value "<app-id-from-user>" \@@ -2579,7 +2579,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**Google** — the Client ID was collected in Phase 2.1:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenAuth/Google/ClientId" \--value "<client-id-from-user>" \@@ -2589,7 +2589,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \**Microsoft Account** — the Client ID was collected in Phase 2.1:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenAuth/MicrosoftAccount/ClientId" \--value "<client-id-from-user>" \@@ -2615,7 +2615,7 @@ For secrets (`ClientSecret`, `AppSecret`), **never store them in site setting YA**Step 1 — List available Key Vaults:**```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/list-azure-keyvaults.js"+node "${PLUGIN_ROOT}/scripts/list-azure-keyvaults.js"```**Step 2 — Select or create a Key Vault:**@@ -2635,7 +2635,7 @@ If **no Key Vaults are found**:**If "Create a new Key Vault"**: Ask for vault name, resource group, and location:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-azure-keyvault.js" \+node "${PLUGIN_ROOT}/scripts/create-azure-keyvault.js" \--name "<vault-name>" \--resourceGroup "<resource-group>" \--location "<location>"@@ -2653,7 +2653,7 @@ Do **not** ask for secret values — they must never pass through the conversatiFor each secret, run the following command (replacing <YOUR_SECRET_VALUE> with the actual value):1. <Provider> Client Secret:- printf '%s' '<YOUR_SECRET_VALUE>' | node "${CLAUDE_PLUGIN_ROOT}/scripts/store-keyvault-secret.js" \+ printf '%s' '<YOUR_SECRET_VALUE>' | node "${PLUGIN_ROOT}/scripts/store-keyvault-secret.js" \--vaultName "<selected-vault>" \--secretName "<provider>-client-secret"```@@ -2675,7 +2675,7 @@ Tell the user each command outputs a JSON object with a `secretUri` and to shareAfter the user shares the `secretUri`, create an environment variable that references the Key Vault secret:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \+node "${PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \--schemaName "<prefix_ProviderClientSecret>" \--displayName "<Provider> Client Secret" \--type "secret" \@@ -2685,7 +2685,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>"**Step 5 — Create site setting for the environment variable:**```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/OpenIdConnect/{ProviderName}/ClientSecret" \--envVarSchema "<prefix_ProviderClientSecret>"@@ -2707,12 +2707,12 @@ This creates a site setting with `envvar_schema` and `source: 1`, which tells PoIf the user chose not to use Key Vault, create environment variables with placeholder values (plain string type, not secret type). The user updates them later via the Power Apps maker portal:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \+node "${PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \--schemaName "<prefix_ProviderClientSecret>" \--displayName "<Provider> Client Secret" \--value "PLACEHOLDER_SET_ACTUAL_VALUE"-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "<site-setting-name-from-table-above>" \--envVarSchema "<prefix_ProviderClientSecret>"@@ -2730,7 +2730,7 @@ Present the list of environment variables that need updating (display name and s> **Prerequisite**: The GDPR/Privacy Extensions solution (`msdynce_PortalPrivacyExtensions`) must be installed in the Dataverse environment. Without it, the server ignores `TermsAgreementEnabled` entirely. Remind the user of this requirement.```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/TermsAgreementEnabled" \--value "true" \@@ -2741,7 +2741,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \If the user provided a `TermsPublicationDate`:```powershell-node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \+node "${PLUGIN_ROOT}/scripts/create-site-setting.js" \--projectRoot "<PROJECT_ROOT>" \--name "Authentication/Registration/TermsPublicationDate" \--value "<ISO-date-from-user>" \@@ -2759,7 +2759,7 @@ Optionally create the other 3 snippets for the server-rendered terms page (used#### 8.2 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "SetupAuth"`.@@ -2855,7 +2855,7 @@ After the summary, generate an HTML setup report at `<PROJECT_ROOT>/docs/auth-se**2. Render the report.** Run:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/render-auth-report.js" \+node "${PLUGIN_ROOT}/scripts/render-auth-report.js" \--output "<PROJECT_ROOT>/docs/auth-setup-report.html" \--data "<path-to-temp-data.json>"```diff --git a/plugins/power-pages/skills/setup-datamodel/SKILL.md b/plugins/power-pages/skills/setup-datamodel/SKILL.mdindex 0495d3627..bee6e09ea 100644--- a/plugins/power-pages/skills/setup-datamodel/SKILL.md+++ b/plugins/power-pages/skills/setup-datamodel/SKILL.md@@ -9,7 +9,7 @@ allowed-tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, Task, TaskCreate,model: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Set Up Dataverse Data Model@@ -32,7 +32,7 @@ Guide the user through creating Dataverse tables, columns, and relationships for**Actions**:1. Create todo list with all 8 phases (see [Progress Tracking](#progress-tracking) table)-2. Follow the prerequisite steps in `${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md` to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as `<envUrl>` for subsequent script calls.+2. Follow the prerequisite steps in `${PLUGIN_ROOT}/references/dataverse-prerequisites.md` to verify PAC CLI auth, acquire an Azure CLI token, and confirm API access. Note the environment URL as `<envUrl>` for subsequent script calls.**Output**: Verified PAC CLI auth, valid Azure CLI token, confirmed API access, `<envUrl>` noted@@ -112,7 +112,7 @@ If the user chooses to let the Data Model Architect figure it out, proceed to **prompt: |You are the data-model-architect agent. Follow the instructions inthe agent definition file at:- ${CLAUDE_PLUGIN_ROOT}/agents/data-model-architect.md+ ${PLUGIN_ROOT}/agents/data-model-architect.mdAnalyze the current project and Dataverse environment, then proposea complete data model. Return:@@ -180,7 +180,7 @@ Only proceed to creation after explicit user approval.Re-acquire the auth token (tokens expire after ~60 minutes):```-node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>+node "${PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>```### 5.2 Query Existing Tables@@ -188,7 +188,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/verify-dataverse-access.js" <envUrl>For each table in the approved proposal marked as `new`, check whether it already exists:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table_logical_name>')"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table_logical_name>')"```- **If 404**: Table does not exist, proceed to create it@@ -224,7 +224,7 @@ Refer to `references/odata-api-patterns.md` for full JSON body templates.For each new table, POST to the EntityDefinitions endpoint:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions" --body '<JSON body from references/odata-api-patterns.md>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions" --body '<JSON body from references/odata-api-patterns.md>'```Use the deep-insert pattern to create the table and its columns in a single POST request. See `references/odata-api-patterns.md` for the complete JSON structure.@@ -234,7 +234,7 @@ Use the deep-insert pattern to create the table and its columns in a single POSTFor tables marked as `modified`, add new columns one at a time:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions(LogicalName='<table>')/Attributes" --body '<column JSON from references/odata-api-patterns.md>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions(LogicalName='<table>')/Attributes" --body '<column JSON from references/odata-api-patterns.md>'```### 6.3 Track Progress@@ -260,7 +260,7 @@ If creating many tables, the `dataverse-request.js` script handles 401 token refCreate lookup columns that establish 1:N relationships:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<relationship JSON from references/odata-api-patterns.md>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<relationship JSON from references/odata-api-patterns.md>'```### 7.2 Many-to-Many Relationships@@ -268,7 +268,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/datCreate M:N relationships (intersect tables are created automatically):```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<M:N relationship JSON from references/odata-api-patterns.md>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/RelationshipDefinitions" --body '<M:N relationship JSON from references/odata-api-patterns.md>'```### 7.3 Track Relationship Creation@@ -290,7 +290,7 @@ Track each relationship creation attempt. Report failures without rolling back.Publish all customizations so the new tables and columns become available:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/PublishXml" --body '{"ParameterXml":"<importexportxml><entities><entity>cr123_project</entity><entity>cr123_task</entity></entities></importexportxml>"}'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/PublishXml" --body '{"ParameterXml":"<importexportxml><entities><entity>cr123_project</entity><entity>cr123_task</entity></entities></importexportxml>"}'```See `references/odata-api-patterns.md` for the full PublishXml pattern.@@ -300,7 +300,7 @@ See `references/odata-api-patterns.md` for the full PublishXml pattern.For each created table, run a verification query:```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table>')?$select=LogicalName,DisplayName"+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> GET "api/data/v9.2/EntityDefinitions(LogicalName='<table>')?$select=LogicalName,DisplayName"```### 8.3 Write Manifest@@ -324,11 +324,11 @@ After successful verification, write `.datamodel-manifest.json` to the project r}```-Use the `Write` tool to create this file at `<PROJECT_ROOT>/.datamodel-manifest.json`. Only include tables and columns that were confirmed to exist in Step 8.2. See `${CLAUDE_PLUGIN_ROOT}/references/datamodel-manifest-schema.md` for the full schema specification.+Use the `Write` tool to create this file at `<PROJECT_ROOT>/.datamodel-manifest.json`. Only include tables and columns that were confirmed to exist in Step 8.2. See `${PLUGIN_ROOT}/references/datamodel-manifest-schema.md` for the full schema specification.### 8.4 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "SetupDatamodel"`.diff --git a/plugins/power-pages/skills/setup-datamodel/references/odata-api-patterns.md b/plugins/power-pages/skills/setup-datamodel/references/odata-api-patterns.mdindex d549fc9b0..d09b4f7ab 100644--- a/plugins/power-pages/skills/setup-datamodel/references/odata-api-patterns.md+++ b/plugins/power-pages/skills/setup-datamodel/references/odata-api-patterns.md@@ -2,7 +2,7 @@Reference document for the `setup-datamodel` skill. Contains full JSON body templates for creating tables, columns, and relationships via the Dataverse OData Web API (v9.2).-> **Authentication, error handling, and retry patterns** are in the shared reference: `${CLAUDE_PLUGIN_ROOT}/references/odata-common.md`. Read that file first for headers, token refresh, HTTP status codes, and retry logic.+> **Authentication, error handling, and retry patterns** are in the shared reference: `${PLUGIN_ROOT}/references/odata-common.md`. Read that file first for headers, token refresh, HTTP status codes, and retry logic.---@@ -270,7 +270,7 @@ Lookups are NOT created as standalone columns. They are created as part of a relUse the same column JSON bodies as above. The column is added to the specified table.```-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions(LogicalName='cr123_project')/Attributes" --body '<column JSON>'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/EntityDefinitions(LogicalName='cr123_project')/Attributes" --body '<column JSON>'```---@@ -370,7 +370,7 @@ After creating tables, columns, and relationships, publish them so they become a``````-node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/PublishXml" --body '{"ParameterXml":"<importexportxml><entities><entity>cr123_project</entity><entity>cr123_task</entity></entities></importexportxml>"}'+node "${PLUGIN_ROOT}/scripts/dataverse-request.js" <envUrl> POST "api/data/v9.2/PublishXml" --body '{"ParameterXml":"<importexportxml><entities><entity>cr123_project</entity><entity>cr123_task</entity></entities></importexportxml>"}'```### Publish All Customizations (Fallback)@@ -397,4 +397,4 @@ If publishing specific tables fails, publish everything:## Error Handling-See `${CLAUDE_PLUGIN_ROOT}/references/odata-common.md` for HTTP status codes, error response format, Dataverse error codes, and retry patterns.+See `${PLUGIN_ROOT}/references/odata-common.md` for HTTP status codes, error response format, Dataverse error codes, and retry patterns.diff --git a/plugins/power-pages/skills/setup-pipeline/SKILL.md b/plugins/power-pages/skills/setup-pipeline/SKILL.mdindex 710a8810e..c42e1b2ef 100644--- a/plugins/power-pages/skills/setup-pipeline/SKILL.md+++ b/plugins/power-pages/skills/setup-pipeline/SKILL.md@@ -16,7 +16,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# setup-pipeline@@ -24,7 +24,7 @@ Sets up a **Power Platform Pipeline** for automated Power Pages solution deploymGitHub Actions and Azure DevOps Pipeline options are shown in the platform menu as **coming soon**.-> Refer to `${CLAUDE_PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` for all HAR-confirmed API patterns used in this skill.+> Refer to `${PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` for all HAR-confirmed API patterns used in this skill.## Prerequisites@@ -53,7 +53,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" \--projectRoot "." \--envUrl "{devEnvUrl}" \--token "{token}" \@@ -124,7 +124,7 @@ Steps:1. Read project context using `detect-project-context.js`:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/detect-project-context.js"+ node "${PLUGIN_ROOT}/scripts/lib/detect-project-context.js"```Capture output as JSON; extract `.siteName` (store as `siteName`), `.websiteRecordId`, `.environmentUrl` (store as `devEnvUrl`), and `.solutionManifest` (store as `solutionManifest`). If `siteName` is absent (no `powerpages.config.json`), stop and advise running `/power-pages:create-site` first. If `solutionManifest` is null (no `.solution-manifest.json`), stop and advise running `/power-pages:setup-solution` first.@@ -134,7 +134,7 @@ Steps:2. Run `verify-alm-prerequisites.js` to confirm PAC CLI auth, acquire a token, and verify API access:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{devEnvUrl}"+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{devEnvUrl}"```Capture output as JSON; extract `.envUrl` (use to confirm `devEnvUrl`) and `.token` (store as `DEV_TOKEN`).@@ -148,7 +148,7 @@ Steps:```bashBAP_TOKEN=$(az account get-access-token --resource "https://service.powerapps.com/" --query accessToken -o tsv)- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/ensure-pipelines-host-detect.js" \+ node "${PLUGIN_ROOT}/scripts/lib/ensure-pipelines-host-detect.js" \--envUrl "{devEnvUrl}" \--token "{DEV_TOKEN}" \--userId "{userId}" \@@ -188,13 +188,13 @@ Steps:### Phase 1.5 — Ground in current Pipelines documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Platform Pipelines setup OData API host environment deploymentenvironments`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/pipelines` (and at most one sister page on host setup or pipeline creation) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about Pipelines host resolution, `deploymentenvironments` / `deploymentpipelines` / `deploymentstages` schema, and pipeline lifecycle. Compare against `${CLAUDE_PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` and flag any divergence (new fields, deprecated APIs, changed validation status codes).+3. Extract a one-paragraph summary of what Microsoft Learn currently says about Pipelines host resolution, `deploymentenvironments` / `deploymentpipelines` / `deploymentstages` schema, and pipeline lifecycle. Compare against `${PLUGIN_ROOT}/references/cicd-pipeline-patterns.md` and flag any divergence (new fields, deprecated APIs, changed validation status codes).4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 5 (Register Environments with the Pipelines Host).### Phase 2 — Select CI/CD Platform@@ -270,7 +270,7 @@ If response is 404 or returns an "unknown entity" error, stop and inform the use**4.2 Verify solution exists in dev environment** using `verify-solution-exists.js`:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-solution-exists.js" \+node "${PLUGIN_ROOT}/scripts/lib/verify-solution-exists.js" \--envUrl "{devEnvUrl}" \--uniqueName "{uniqueName}" \--token "{DEV_TOKEN}"@@ -298,7 +298,7 @@ If found: ask via `AskUserQuestion` whether to use the existing pipeline ID or cPower Pages code sites include `.js` files in their compiled output. If `.js` is in the env's `blockedattachments` setting, `pac pages upload-code-site` (on the source) and `deploy-pipeline` (on targets) will both fail with `AttachmentBlocked`. Run this on the **source env** and on **every target env**:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \+node "${PLUGIN_ROOT}/scripts/lib/fix-blocked-attachments.js" \--envUrl "{envUrl}" \--extensions js \--dry-run@@ -323,7 +323,7 @@ Register each environment (source + targets) with the Pipelines host by creatingUse `create-deployment-environment.js` for each environment (dev source + each target):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-deployment-environment.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-deployment-environment.js" \--hostEnvUrl "{HOST_ENV_URL}" \--token "{HOST_TOKEN}" \--name "{siteName} {label}" \@@ -360,7 +360,7 @@ Match all of these case-insensitively (`String.prototype.toLowerCase()` before `<!-- gate: setup-pipeline:5a.pattern-15 | category=consent | cancel-leaves=nothing -->> 🚦 **Gate (consent · setup-pipeline:5a.pattern-15):** Target env stamped to a different Pipelines host. Offer force-link as documented auto-fix — DESTRUCTIVE: previous host loses pipeline access for this env. Cancel here exits setup-pipeline cleanly. **Fires PER ENV that triggers Pattern 15.** Phase 5 loops over source + each target env when registering with the host; if two target envs both turn out to be stamped to different hosts, this gate fires twice — once per env. Do NOT batch the consent across envs; the destructive blast radius is per-env (each env carries its own previous-host stamp and its own group of makers losing access).-This is **Pattern 15** in `${CLAUDE_PLUGIN_ROOT}/references/deployment-error-catalog.md`. Do NOT silently retry. Surface the raw `errormessage` to the user verbatim and offer the documented auto-fix via `AskUserQuestion`:+This is **Pattern 15** in `${PLUGIN_ROOT}/references/deployment-error-catalog.md`. Do NOT silently retry. Surface the raw `errormessage` to the user verbatim and offer the documented auto-fix via `AskUserQuestion`:```question: "<envLabel> is already linked to a different Pipelines host. The /power-pages:force-link-environment skill can take over the association (DESTRUCTIVE to the previous host — makers there lose pipeline access for this env). Run it now?"@@ -385,7 +385,7 @@ Report progress for each environment as validation completes.Use `create-deployment-pipeline.js` to create the pipeline, associate the source environment, and create all stage records in one call:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-deployment-pipeline.js" \+node "${PLUGIN_ROOT}/scripts/lib/create-deployment-pipeline.js" \--hostEnvUrl "{HOST_ENV_URL}" \--token "{HOST_TOKEN}" \--pipelineName "{PIPELINE_NAME}" \@@ -516,14 +516,14 @@ git commit -m "Add Power Platform Pipeline configuration for {siteName}"**7.5 Record skill usage:**-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "SetupPipeline"`.**7.5b Refresh the ALM plan (if one exists):**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase setup-pipeline \--renderdiff --git a/plugins/power-pages/skills/setup-solution/SKILL.md b/plugins/power-pages/skills/setup-solution/SKILL.mdindex 2c44aeb39..be4538f8a 100644--- a/plugins/power-pages/skills/setup-solution/SKILL.md+++ b/plugins/power-pages/skills/setup-solution/SKILL.md@@ -11,7 +11,7 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TaskCreate, TaskUpdate, Taskmodel: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# setup-solution@@ -42,7 +42,7 @@ When `inExecution.status` is anything other than `"active"` (`"not-running"`, `"**Step 1 — Run the gate helper.**```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."+node "${PLUGIN_ROOT}/scripts/lib/check-alm-plan.js" --projectRoot "."```The helper returns JSON with `{ exists, deferred, stale, staleness: { reason, detail }, generatedAt, planStatus, ... }`. Sync mode (when `.solution-manifest.json` already exists) may additionally pass `--envUrl`, `--token`, `--solutionId` once Phase 1 has acquired them, but for the initial gate the existence-only check is sufficient.@@ -109,9 +109,9 @@ Steps:1. Run `pac env who` — extract `environmentUrl`, `organizationId` (shown to user for confirmation)2. Run `verify-alm-prerequisites.js` to confirm PAC CLI auth, acquire a token, and verify API access:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{environmentUrl}"+ node "${PLUGIN_ROOT}/scripts/lib/verify-alm-prerequisites.js" --envUrl "{environmentUrl}"```- Capture output as JSON; extract `.envUrl` (store as `envUrl`) and `.token` (store as `token`). If the script exits non-zero, stop and explain what is missing (reference `${CLAUDE_PLUGIN_ROOT}/references/dataverse-prerequisites.md`).+ Capture output as JSON; extract `.envUrl` (store as `envUrl`) and `.token` (store as `token`). If the script exits non-zero, stop and explain what is missing (reference `${PLUGIN_ROOT}/references/dataverse-prerequisites.md`).3. Locate `powerpages.config.json` — read `siteName` and `websiteRecordId`4. Confirm `.powerpages-site/` folder exists (required to find component records)5. **Check for ALM plan context** — look for `docs/alm/alm-plan-context.json`:@@ -148,13 +148,13 @@ Steps:### Phase 1.5 — Ground in current ALM documentation-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md`+> Reference: `${PLUGIN_ROOT}/references/alm-docs-grounding.md`Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.1. Run `microsoft_docs_search` with the query: `Power Pages solution publisher creation Dataverse component types ALM`.2. Fetch `https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm` (and at most one sister page if the search surfaces a relevant new tutorial — e.g. multi-solution layering, managed-properties guidance) in parallel via `microsoft_docs_fetch`.-3. Extract a one-paragraph summary of what Microsoft Learn currently says about solution components, publisher prefix immutability, managed vs unmanaged choice, and component-type integers. Compare against `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence (new component types, changed action signatures, deprecated patterns).+3. Extract a one-paragraph summary of what Microsoft Learn currently says about solution components, publisher prefix immutability, managed vs unmanaged choice, and component-type integers. Compare against `${PLUGIN_ROOT}/references/solution-api-patterns.md` and flag any divergence (new component types, changed action signatures, deprecated patterns).4. Use the summary to inform Phase 2+ decisions. Do not silently change skill behavior — surface any divergence to the user as a soft warning before Phase 4 (Create Publisher and Solution).### Phase 2 — Gather Solution Configuration@@ -187,7 +187,7 @@ Before creating anything, check if publisher and solution already exist:(No dedicated script for publishers — query the OData endpoint directly.)2. Check solution existence using `verify-solution-exists.js`:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/verify-solution-exists.js" \+ node "${PLUGIN_ROOT}/scripts/lib/verify-solution-exists.js" \--envUrl "{envUrl}" \--uniqueName "{solutionUniqueName}" \--token "{token}"@@ -208,7 +208,7 @@ Wait for user confirmation before proceeding.> **Version bump in sync mode**: before any add operations in Phase 5, bump the existing solution's patch segment so the post-sync manifest and any subsequent export cleanly supersede the prior version. Use the shared helper — it is the single source of truth for the bump rule (pad-with-zero for missing segments, integer-numeric `1.0.0.9 → 1.0.0.10`, reject `1.0.0.a`, reject more-than-4 segments). The same helper is called from `export-solution` Phase 4 Step 4.0 — both skills must produce identical bumps for the same input version.>> ```bash-> node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \+> node "${PLUGIN_ROOT}/scripts/lib/bump-solution-version.js" \> --envUrl "{envUrl}" \> --token "{token}" \> --solutionId "{solutionId}" \@@ -217,7 +217,7 @@ Wait for user confirmation before proceeding.>> Capture output as JSON; the helper returns `{ previous, next, bumped: true, manifestUpdated, manifestUpdateReason }`. Passing `--projectRoot "."` lets the helper update `.solution-manifest.json`'s `solution.version` (single-solution) or matching `solutions[].version` (multi-solution) field automatically — without it, the manifest drifts behind every bump. Update `existingSolution.solution.version` locally to `.next` so the final manifest write reflects the bump. Do this **before** Step 5.6's component adds, so the manifest stays consistent if the skill is interrupted midway. **Do not inline the PATCH** — diverging the rule between this skill and `export-solution` is exactly the bug class the helper exists to prevent.-Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for exact request body templates.+Refer to `${PLUGIN_ROOT}/references/solution-api-patterns.md` for exact request body templates.1. **Create publisher** (if not existing):- `POST {envUrl}/api/data/v9.2/publishers` with publisher body@@ -229,7 +229,7 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for exact r**Single-solution mode** (`MULTI_SOLUTION_MODE = false`) — call `create-solution.js`. Omit `--token` so the helper refreshes via `getAuthToken(envUrl)` at call time (passing a possibly-stale cached token would surface as a 401 the helper doesn't retry):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-solution.js" \+ node "${PLUGIN_ROOT}/scripts/lib/create-solution.js" \--envUrl "{envUrl}" \--uniqueName "{solutionUniqueName}" \--friendlyName "{solutionFriendlyName}" \@@ -242,7 +242,7 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for exact r**Multi-solution mode** (`MULTI_SOLUTION_MODE = true`) — call `create-solutions-batch.js`, which fans out all `PROPOSED_SOLUTIONS` in parallel via `Promise.allSettled` (typical 5-6 solution splits complete in ~2s vs ~10s serial). The helper skips `isFutureBuffer: true` entries automatically (the reserved buffer is created later when the user actually adds new components) and handles 409 races idempotently via `verify-solution-exists.js`. Write the specs to a tmp JSON file, then invoke:```bashnode -e "require('fs').writeFileSync('./docs/alm/.solutions-batch.json', JSON.stringify({{PROPOSED_SOLUTIONS_AS_SPECS}}))"- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-solutions-batch.js" \+ node "${PLUGIN_ROOT}/scripts/lib/create-solutions-batch.js" \--envUrl "{envUrl}" \--token "{token}" \--publisherId "{publisherId}" \@@ -256,7 +256,7 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for exact r### Phase 5 — Add Site Components-Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for `AddSolutionComponent` body templates and `powerpagecomponents` discovery patterns.+Refer to `${PLUGIN_ROOT}/references/solution-api-patterns.md` for `AddSolutionComponent` body templates and `powerpagecomponents` discovery patterns.> **Sync-mode behavior**: When `syncMode = true`, run the discovery helper with `--solutionId` populated and use the returned `missing.*` arrays as the candidate set. Everything else in this phase (dynamic component-type lookup in 5.1, categorization in 5.3, OAuth secret conversion in 5.4, env var adoption in 5.4b, **orphan ppc adoption in 5.4c**, manifest summary in 5.5, bulk add in 5.6) runs the same way, just with a pre-filtered "only things that aren't already in the solution" list. The goal of sync mode is: a user who added a server logic, bot, flow, env var, or page *after* `setup-solution` last ran can re-invoke the skill and get those components adopted without any fresh-setup prompts.>@@ -268,7 +268,7 @@ Refer to `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` for `AddSolRun `discover-component-types.js` with the website record ID plus one sample powerpagecomponent ID and one site language ID (obtained from the preliminary discovery queries in Step 5.2 below — run those first if not yet available):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-component-types.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-component-types.js" \--envUrl "{envUrl}" \--token "{token}" \--websiteRecordId "{websiteRecordId}" \@@ -287,7 +287,7 @@ Run six discovery queries in parallel:```GET {envUrl}/api/data/v9.2/GlobalOptionSetDefinitions(Name='powerpagecomponenttype')```-Build a `typeLabel` map: `{ [Value]: Label.UserLocalizedLabel.Label }`. Fall back to the static table in `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 3b if this fails.+Build a `typeLabel` map: `{ [Value]: Label.UserLocalizedLabel.Label }`. Fall back to the static table in `${PLUGIN_ROOT}/references/solution-api-patterns.md` Section 3b if this fails.**B. All Power Pages sub-components for this site**:```@@ -365,7 +365,7 @@ Skip this query if Query E returned `cloudFlows = []`.3. **Resolve the connection-reference componenttype at runtime** — the value is environment-specific (observed values include `10137` and `10160` across tenants; do NOT hardcode):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-component-types.js" \+ node "${PLUGIN_ROOT}/scripts/lib/discover-component-types.js" \--envUrl "{envUrl}" --token "{token}" \--websiteRecordId "{websiteRecordId}" \--objectIds "{firstConnectionReferenceId}"@@ -380,7 +380,7 @@ If Query G returns no references (the cloud flows don't use connectors, or the p**If `preloadedSettings` is available** (user chose "Use pre-loaded choices from plan" in Phase 1 Step 5), skip the classification below — use `preloadedSettings.keepAsIs`, `preloadedSettings.promoteToEnvVar`, `preloadedSettings.authNoValue`, and `preloadedSettings.credentialNeedsDecision` directly. (Plans generated before 2026-05-08 use the older `excluded` bucket — treat its contents as `credentialNeedsDecision` for backward compatibility.)-**Otherwise**, run the shared classifier — `${CLAUDE_PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` — which is the **single source of truth** for the credential regex + tier mapping shared with `plan-alm` Phase 1 Step 7. Either invoke the CLI (pipe JSON to stdin) or `require()` it inline. The output is the same four-bucket shape `plan-alm` produces:+**Otherwise**, run the shared classifier — `${PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` — which is the **single source of truth** for the credential regex + tier mapping shared with `plan-alm` Phase 1 Step 7. Either invoke the CLI (pipe JSON to stdin) or `require()` it inline. The output is the same four-bucket shape `plan-alm` produces:```js{@@ -421,9 +421,9 @@ Ask via `AskUserQuestion` with `multiSelect: true`, listing each `promoteToEnvVa- Plus options: **"Promote all of them to env vars"** and **"Keep all as plain site settings"**For each setting the user selects to promote:-1. Generate the canonical schema name with `${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` so it matches what `configure-env-variables` and `deploy-pipeline` will expect later:+1. Generate the canonical schema name with `${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` so it matches what `configure-env-variables` and `deploy-pipeline` will expect later:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \+ node "${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \--publisherPrefix "{prefix}" \--settingName "{settingName}"```@@ -431,7 +431,7 @@ For each setting the user selects to promote:2. Create an `environmentvariabledefinition` using the resolved schema name:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \+ node "${PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \--envUrl "{envUrl}" \--token "{token}" \--schemaName "{schemaName from step 1}" \@@ -442,7 +442,7 @@ For each setting the user selects to promote:2. Record the `definitionId` for inclusion in the components list (Step 5.6, `ComponentType: 380`).3. **Link the site setting to the env var** using `link-site-setting-to-env-var.js`:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/link-site-setting-to-env-var.js" \+ node "${PLUGIN_ROOT}/scripts/lib/link-site-setting-to-env-var.js" \--envUrl "{envUrl}" \--token "{token}" \--siteSettingId "{settingId}" \@@ -464,7 +464,7 @@ These are credential-style site settings (ConsumerKey / ClientSecret / etc.) tha**Step 5.4.C.1 — Auto-classify by name pattern.**-Call `autoClassifyCredential(name)` from `${CLAUDE_PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` for each setting. The helper applies these regexes in order (the **single source of truth** — do not duplicate them here):+Call `autoClassifyCredential(name)` from `${PLUGIN_ROOT}/scripts/lib/classify-site-settings.js` for each setting. The helper applies these regexes in order (the **single source of truth** — do not duplicate them here):| Default | Matcher in helper | When it fires ||---|---|---|@@ -504,16 +504,16 @@ Branching logic:For each setting routed to env-var-backed handling:-1. Generate the canonical schema name with `${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` (same helper Step 5.4.A uses — single source of truth so configure-env-variables and deploy-pipeline can reference the same schema names later):+1. Generate the canonical schema name with `${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js` (same helper Step 5.4.A uses — single source of truth so configure-env-variables and deploy-pipeline can reference the same schema names later):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \+ node "${PLUGIN_ROOT}/scripts/lib/generate-env-var-schema-name.js" \--publisherPrefix "{prefix}" \--settingName "{settingName}"```2. Create an `environmentvariabledefinition` using the resolved schema name:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \+ node "${PLUGIN_ROOT}/scripts/lib/create-env-var-definition.js" \--envUrl "{envUrl}" \--token "{token}" \--schemaName "{schemaName from step 1}" \@@ -536,7 +536,7 @@ Separately from the OAuth-secret conversion above, other skills (notably `setup-Run the shared discovery helper to get the complete site inventory in one call:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \--envUrl "{envUrl}" --token "{token}" \--siteId "{websiteRecordId}" \--publisherPrefix "{publisherPrefix}" \@@ -584,7 +584,7 @@ Symmetric to 5.4b but for `powerpagecomponent` rows. Catches components on the sUse the shared discovery helper to collect the orphan list (it already excludes Vite/Rollup bundle chunks — `Home-XYZ.js`, `index-XYZ.css`, etc. — so the prompt doesn't drown the user in hash-named noise):```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \+node "${PLUGIN_ROOT}/scripts/lib/discover-site-components.js" \--envUrl "{envUrl}" --token "{token}" \--siteId "{websiteRecordId}" \--publisherPrefix "{publisherPrefix}" \@@ -733,7 +733,7 @@ The components array should be built in this order:**Single-solution mode** (`MULTI_SOLUTION_MODE = false`): write the array to a temp file (e.g., `C:/Users/{user}/AppData/Local/Temp/components-to-add.json`), then run:```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/add-components-to-solution.js" \+node "${PLUGIN_ROOT}/scripts/lib/add-components-to-solution.js" \--envUrl "{envUrl}" \--componentsFile "C:/Users/{user}/AppData/Local/Temp/components-to-add.json" \--solutionUniqueName "{solutionUniqueName}"@@ -743,7 +743,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/add-components-to-solution.js" \1. Filter the unified component array down to components whose Dataverse type-name maps into this solution's `componentTypes` array. The mapping from numeric `componentType` → name is the same one `discover-component-types.js` and `discover-site-components.js` use (`PPC_TYPE_LABELS`). Tables route to the solution whose `tableLogicalNames` includes the table's logical name (Strategy 3) or to whichever solution claims `'Table'` (Strategies 1 and 2).2. Write the per-solution sub-array to a temp file (e.g., `C:/Users/{user}/AppData/Local/Temp/components-{uniqueName}.json`), then invoke the helper with all three required flags:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/add-components-to-solution.js" \+ node "${PLUGIN_ROOT}/scripts/lib/add-components-to-solution.js" \--envUrl "{envUrl}" \--componentsFile "C:/Users/{user}/AppData/Local/Temp/components-{uniqueName}.json" \--solutionUniqueName "{proposedSolutions[i].uniqueName}"@@ -764,7 +764,7 @@ The script handles token refresh every 20 calls, treats "already in solution" as```bashnode -e "require('fs').mkdirSync('docs/alm',{recursive:true})"- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \+ node "${PLUGIN_ROOT}/scripts/lib/discover-env-var-definitions.js" \--envUrl "{envUrl}" \--publisherPrefix "{publisherPrefix}" \--websiteRecordId "{websiteRecordId}" \@@ -777,7 +777,7 @@ The script handles token refresh every 20 calls, treats "already in solution" asThe sidecar's shape mirrors what `discover-env-var-definitions.js` already returns: `{ envVars: [{ schemaName, type, defaultValue, siteSetting }], count }`. Don't transform — the renderer reads these fields directly.3. Write `.solution-manifest.json` to project root (alongside `powerpages.config.json`):- - See manifest format in `${CLAUDE_PLUGIN_ROOT}/references/solution-api-patterns.md` Section 7+ - See manifest format in `${PLUGIN_ROOT}/references/solution-api-patterns.md` Section 7- If cloud flows were confirmed, include a `cloudFlows` array: `[{ "workflowId": "...", "name": "...", "status": "active|inactive" }]`- If bot components were confirmed, include a `botComponents` array: `[{ "botId": "...", "name": "..." }]`- Omit these arrays entirely if no flows/bots were discovered or confirmed (absence = not tracked; `[]` = tracked but none selected)@@ -871,14 +871,14 @@ If the user selects **option 3**, show:### Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "SetupSolution"`.### Refresh the ALM plan (if one exists)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase setup-solution \--renderdiff --git a/plugins/power-pages/skills/telemetry/SKILL.md b/plugins/power-pages/skills/telemetry/SKILL.mdindex 082300b49..321e6a3aa 100644--- a/plugins/power-pages/skills/telemetry/SKILL.md+++ b/plugins/power-pages/skills/telemetry/SKILL.md@@ -11,6 +11,6 @@ allowed-tools: Bashmodel: haiku----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.-**Workflow: [telemetry-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/telemetry/telemetry-workflow.md)** — Read and follow all steps defined in that bundled file.+**Workflow: [telemetry-workflow.md](${PLUGIN_ROOT}/skills/telemetry/telemetry-workflow.md)** — Read and follow all steps defined in that bundled file.diff --git a/plugins/power-pages/skills/test-site/SKILL.md b/plugins/power-pages/skills/test-site/SKILL.mdindex c1b3df680..8b5d31503 100644--- a/plugins/power-pages/skills/test-site/SKILL.md+++ b/plugins/power-pages/skills/test-site/SKILL.md@@ -10,7 +10,7 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: opus----> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.+> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.# Test Power Pages Site@@ -76,7 +76,7 @@ If no URL was provided, attempt auto-detection:2. Run the activation status check script:```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"+ node "${PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"```3. Evaluate the JSON result:@@ -492,7 +492,7 @@ Mark the "Test authenticated pages and APIs" task as `completed`.#### 6.1 Record Skill Usage-> Reference: `${CLAUDE_PLUGIN_ROOT}/references/skill-tracking-reference.md`+> Reference: `${PLUGIN_ROOT}/references/skill-tracking-reference.md`Follow the skill tracking instructions in the reference to record this skill's usage. Use `--skillName "TestSite"`.@@ -735,7 +735,7 @@ or — when invoked from `plan-alm`, the orchestrator may supply the JSON inline#### 6.7b Refresh the ALM plan (if one exists)```bash-node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \+node "${PLUGIN_ROOT}/scripts/lib/refresh-alm-plan-data.js" \--projectRoot "." \--phase test-site \--stageName "{stageName}" \diff --git a/scripts/ensure-skill-version-check.js b/scripts/ensure-skill-version-check.jsindex cb1b35a56..54ba9f4aa 100644--- a/scripts/ensure-skill-version-check.js+++ b/scripts/ensure-skill-version-check.js@@ -15,7 +15,7 @@ const path = require('path');const ROOT = path.resolve(__dirname, '..');const SKILLS_DIR = path.join(ROOT, 'plugins', 'power-pages', 'skills');const VERSION_CHECK_LINE =- '> **Plugin check**: Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.';+ '> **Plugin check**: Run `node "${PLUGIN_ROOT}/scripts/check-version.js"` — if it outputs a message, show it to the user before proceeding.';const checkOnly = process.argv.includes('--check');diff --git a/scripts/install.js b/scripts/install.jsindex 30192363d..4c0fde0e4 100644--- a/scripts/install.js+++ b/scripts/install.js@@ -3,7 +3,7 @@* Power Platform Skills — Installation Script** Clones the marketplace repository and uses CLI commands to register- * the marketplace and install plugins for Claude Code and GitHub Copilot.+ * the Open Plugins marketplace and install plugins for Claude Code and GitHub Copilot.** Usage:* node scripts/install.js (from local clone)@@ -82,6 +82,16 @@ function httpsGet(url) {});}+function parseMarketplaceManifest(raw) {+ const manifest = JSON.parse(raw);+ if (manifest.name !== MARKETPLACE_NAME) {+ throw new Error(+ `manifest name is '${manifest.name || "(missing)"}', expected '${MARKETPLACE_NAME}'`+ );+ }+ return manifest;+}+// ── Auto-update ──────────────────────────────────────────────// The CLI's `marketplace add` does not set autoUpdate — patch it manually.// `getMarketplaces` extracts the marketplaces object from the config root.@@ -110,21 +120,38 @@ async function loadMarketplace() {const scriptDir = process.argv[1] ? path.dirname(path.resolve(process.argv[1])) : process.cwd();// Script lives in scripts/, so the repo root is one level upconst repoRoot = path.resolve(scriptDir, "..");- const localFile = path.join(repoRoot, ".claude-plugin", "marketplace.json");-- if (fs.existsSync(localFile)) {- return JSON.parse(fs.readFileSync(localFile, "utf8"));+ const roots = [...new Set([repoRoot, process.cwd()])];+ const marketplacePaths = [+ "marketplace.json",+ path.join(".plugin", "marketplace.json"),+ path.join(".claude-plugin", "marketplace.json"),+ ];+ const errors = [];++ for (const root of roots) {+ for (const relativePath of marketplacePaths) {+ const filePath = path.join(root, relativePath);+ if (fs.existsSync(filePath)) {+ try {+ return parseMarketplaceManifest(fs.readFileSync(filePath, "utf8"));+ } catch (err) {+ errors.push(`${filePath}: ${err.message}`);+ }+ }+ }}- // Also check cwd (handles running from repo root or piped download)- const cwdFile = path.join(process.cwd(), ".claude-plugin", "marketplace.json");- if (fs.existsSync(cwdFile)) {- return JSON.parse(fs.readFileSync(cwdFile, "utf8"));+ info("Fetching marketplace manifest from GitHub...");+ for (const relativePath of ["marketplace.json", ".plugin/marketplace.json", ".claude-plugin/marketplace.json"]) {+ try {+ const raw = await httpsGet(`${GITHUB_RAW}/${relativePath}`);+ return parseMarketplaceManifest(raw);+ } catch (err) {+ errors.push(`${relativePath}: ${err.message}`);+ }}- info("Fetching marketplace manifest from GitHub...");- const raw = await httpsGet(`${GITHUB_RAW}/.claude-plugin/marketplace.json`);- return JSON.parse(raw);+ throw new Error(`Could not load marketplace manifest. Tried: ${errors.join("; ")}`);}// ── Claude Code installation ──────────────────────────────────diff --git a/scripts/validate-legacy-compatibility.js b/scripts/validate-legacy-compatibility.jsnew file mode 100644index 000000000..c130a22e0--- /dev/null+++ b/scripts/validate-legacy-compatibility.js@@ -0,0 +1,111 @@+#!/usr/bin/env node++/**+ * Validates that legacy .claude-plugin manifests symlink to the Open Plugins+ * metadata. These symlinks allow existing marketplace subscriptions to+ * auto-update without requiring users to remove and reinstall the marketplace.+ */++const fs = require('fs');+const path = require('path');+const assert = require('assert/strict');++const ROOT = path.resolve(__dirname, '..');+const OPEN_MARKETPLACE_PATH = path.join(ROOT, 'marketplace.json');+const LEGACY_MARKETPLACE_PATH = path.join(ROOT, '.claude-plugin', 'marketplace.json');++function readJson(filePath) {+ return JSON.parse(fs.readFileSync(filePath, 'utf8'));+}++function normalizeRelative(relativePath) {+ return relativePath.replace(/\\/g, '/').replace(/\/+$/, '');+}++function pluginDirectoryFromOpenEntry(openMarketplace, plugin) {+ const pluginRoot = openMarketplace.metadata?.pluginRoot || '.';+ return path.resolve(ROOT, pluginRoot, plugin.source);+}++function expectedLegacySource(pluginDirectory) {+ return `./${normalizeRelative(path.relative(ROOT, pluginDirectory))}`;+}++function assertSymlinkTarget(linkPath, expectedTarget) {+ const stat = fs.lstatSync(linkPath);+ assert.ok(stat.isSymbolicLink(), 'legacy plugin manifest must be a symlink');+ assert.equal(+ normalizeRelative(fs.readlinkSync(linkPath)),+ normalizeRelative(expectedTarget)+ );+}++const errors = [];++function check(label, fn) {+ try {+ fn();+ } catch (error) {+ errors.push(`${label}: ${error.message}`);+ }+}++check('legacy marketplace manifest', () => {+ assert.ok(fs.existsSync(LEGACY_MARKETPLACE_PATH), 'missing .claude-plugin/marketplace.json');+ assertSymlinkTarget(LEGACY_MARKETPLACE_PATH, path.join('..', 'marketplace.json'));+});++if (errors.length === 0) {+ const openMarketplace = readJson(OPEN_MARKETPLACE_PATH);+ const legacyMarketplace = readJson(LEGACY_MARKETPLACE_PATH);+ const legacyPlugins = new Map((legacyMarketplace.plugins || []).map((plugin) => [plugin.name, plugin]));+ const openPluginNames = new Set();++ check('marketplace name', () => {+ assert.equal(legacyMarketplace.name, openMarketplace.name);+ });++ for (const plugin of openMarketplace.plugins || []) {+ openPluginNames.add(plugin.name);+ const pluginDirectory = pluginDirectoryFromOpenEntry(openMarketplace, plugin);+ const openManifestPath = path.join(pluginDirectory, '.plugin', 'plugin.json');+ const legacyManifestPath = path.join(pluginDirectory, '.claude-plugin', 'plugin.json');+ const relativeLegacyManifestPath = normalizeRelative(path.relative(ROOT, legacyManifestPath));++ check(`${plugin.name} legacy marketplace entry`, () => {+ const legacyPlugin = legacyPlugins.get(plugin.name);+ assert.ok(legacyPlugin, 'missing from .claude-plugin/marketplace.json');+ assert.equal(legacyPlugin.source, expectedLegacySource(pluginDirectory));+ assert.equal(legacyPlugin.description, plugin.description);+ assert.equal(legacyPlugin.category, 'development');+ assert.deepEqual(legacyPlugin.tags || [], plugin.keywords || []);+ });++ check(`${plugin.name} marketplace version`, () => {+ const pluginManifest = readJson(openManifestPath);+ assert.equal(plugin.version, pluginManifest.version);+ });++ check(relativeLegacyManifestPath, () => {+ assert.ok(fs.existsSync(legacyManifestPath), 'missing legacy plugin manifest');+ assertSymlinkTarget(legacyManifestPath, path.join('..', '.plugin', 'plugin.json'));+ assert.deepEqual(readJson(legacyManifestPath), readJson(openManifestPath));+ });+ }++ for (const legacyPluginName of legacyPlugins.keys()) {+ check(`${legacyPluginName} legacy marketplace entry`, () => {+ assert.ok(openPluginNames.has(legacyPluginName), 'not present in marketplace.json');+ });+ }+}++if (errors.length > 0) {+ console.log('Found legacy compatibility metadata issues:');+ for (const error of errors) {+ console.log(`- ${error}`);+ }+ process.exit(1);+}++console.log('Legacy .claude-plugin compatibility metadata is in sync.');diff --git a/scripts/validate-plugin-names.js b/scripts/validate-plugin-names.jsindex ad95f8349..b5cf08513 100644--- a/scripts/validate-plugin-names.js+++ b/scripts/validate-plugin-names.js@@ -1,18 +1,24 @@#!/usr/bin/env node/**- * Validates that plugin names use kebab-case in all plugin metadata files.+ * Validates that plugin names follow the Open Plugins name constraints.*/const fs = require('fs');const path = require('path');const ROOT = path.resolve(__dirname, '..');-const KEBAB_CASE_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;+const OPEN_PLUGIN_NAME_PATTERN = /^[a-z0-9](?:[a-z0-9.-]{0,62}[a-z0-9])?$/;function validateName(name, source) {- if (KEBAB_CASE_PATTERN.test(name)) return null;- return `${source}: '${name}' is not kebab-case`;+ if (typeof name !== 'string') {+ return `${source}: plugin name must be a string`;+ }++ if (OPEN_PLUGIN_NAME_PATTERN.test(name) && !name.includes('--') && !name.includes('..')) {+ return null;+ }+ return `${source}: '${name}' does not follow Open Plugins name constraints`;}function readJson(filePath) {@@ -26,14 +32,14 @@ function getPluginManifestPaths() {return fs.readdirSync(pluginsDirectory, { withFileTypes: true }).filter((entry) => entry.isDirectory())- .map((entry) => path.join(pluginsDirectory, entry.name, '.claude-plugin', 'plugin.json'))+ .map((entry) => path.join(pluginsDirectory, entry.name, '.plugin', 'plugin.json')).filter((filePath) => fs.existsSync(filePath)).sort();}const errors = [];-const marketplacePath = path.join(ROOT, '.claude-plugin', 'marketplace.json');+const marketplacePath = path.join(ROOT, 'marketplace.json');const marketplace = readJson(marketplacePath);for (const [index, plugin] of (marketplace.plugins || []).entries()) {const error = validateName(@@ -53,11 +59,11 @@ for (const pluginManifestPath of getPluginManifestPaths()) {}if (errors.length > 0) {- console.log('Found plugin names that are not kebab-case:');+ console.log('Found plugin names that do not follow Open Plugins name constraints:');for (const error of errors) {console.log(`- ${error}`);}process.exit(1);}-console.log('All plugin names are kebab-case.');+console.log('All plugin names follow Open Plugins name constraints.');diff --git a/shared/skills/report-issue/SKILL.template.md b/shared/skills/report-issue/SKILL.template.mdindex bbeda0769..fce589bad 100644--- a/shared/skills/report-issue/SKILL.template.md+++ b/shared/skills/report-issue/SKILL.template.md@@ -10,4 +10,4 @@ allowed-tools: Read, Bash, Glob, Grep, AskUserQuestion, TaskCreate, TaskUpdate,model: sonnet----**Workflow: [report-issue-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.+**Workflow: [report-issue-workflow.md](${PLUGIN_ROOT}/skills/report-issue/report-issue-workflow.md)** — Read and follow all phases defined in that bundled file.diff --git a/shared/skills/report-issue/report-issue-workflow.md b/shared/skills/report-issue/report-issue-workflow.mdindex fbd454e3f..20401ebb8 100644--- a/shared/skills/report-issue/report-issue-workflow.md+++ b/shared/skills/report-issue/report-issue-workflow.md@@ -15,7 +15,7 @@ File a bug report on the [power-platform-skills](https://github.com/microsoft/po**Actions**:1. Create a task list with all 5 phases (see [Progress Tracking](#progress-tracking) table).-2. **Auto-detect the plugin name** from the current plugin context by reading `${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json`. Extract the `name` field.+2. **Auto-detect the plugin name** from the current plugin context by reading `${PLUGIN_ROOT}/.plugin/plugin.json`. Extract the `name` field.3. **Auto-detect the plugin version** from the same `plugin.json` — extract the `version` field.4. If the plugin name or version cannot be determined, use `AskUserQuestion` to ask the user.diff --git a/shared/skills/telemetry/SKILL.template.md b/shared/skills/telemetry/SKILL.template.mdindex 866cc1587..ac4294acc 100644--- a/shared/skills/telemetry/SKILL.template.md+++ b/shared/skills/telemetry/SKILL.template.md@@ -11,4 +11,4 @@ allowed-tools: Bashmodel: haiku----**Workflow: [telemetry-workflow.md](${CLAUDE_PLUGIN_ROOT}/skills/telemetry/telemetry-workflow.md)** — Read and follow all steps defined in that bundled file.+**Workflow: [telemetry-workflow.md](${PLUGIN_ROOT}/skills/telemetry/telemetry-workflow.md)** — Read and follow all steps defined in that bundled file.diff --git a/shared/skills/telemetry/telemetry-workflow.md b/shared/skills/telemetry/telemetry-workflow.mdindex 605e3687b..7fed7f370 100644--- a/shared/skills/telemetry/telemetry-workflow.md+++ b/shared/skills/telemetry/telemetry-workflow.md@@ -10,7 +10,7 @@ usage telemetry for this plugin. Default to `status` when no argument is given.2. Run the synced CLI (it auto-detects the plugin from the plugin manifest):```bash- node "${CLAUDE_PLUGIN_ROOT}/scripts/lib/telemetry/lib/telemetry-config.js" --action <action>+ node "${PLUGIN_ROOT}/scripts/lib/telemetry/lib/telemetry-config.js" --action <action>```3. Show the command's stdout to the user verbatim. Do not add or remove lines.