Skip to content

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.

[Pages] Remove PowerShell-specific syntax from power-pages docs (#106)

Priyanshu Agrawal8a7e9e01f7b2
diff --git a/plugins/power-pages/AGENTS.md b/plugins/power-pages/AGENTS.md
index d3a4cc088..6c0afb798 100644
--- a/plugins/power-pages/AGENTS.md
+++ b/plugins/power-pages/AGENTS.md
@@ -12,7 +12,7 @@ Read `PLUGIN_DEVELOPMENT_GUIDE.md` for UX and reliability standards when creatin
- **Validation scripts** must import from `scripts/lib/validation-helpers.js` for boilerplate, path finders, auth helpers, and constants.
- **UUID generation** must use the shared `scripts/generate-uuid.js` — never copy it into skill-specific directories.
- **Power Pages config loading** must reuse `scripts/lib/powerpages-config.js` anywhere a script reads `.powerpages-site` table-permission or site-setting YAML. Keep that module focused on loading/parsing code-site config only; put validation or business rules in separate validator modules.
-- **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 PowerShell test command passing: `$files = Get-ChildItem .\plugins\power-pages\scripts\tests\*.test.js | ForEach-Object { $_.FullName }` followed by `node --test $files`. Validator changes are not an exception; they must always ship with test coverage.
+- **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`.
- **Reference docs** shared across skills live in `references/` — reference via `${CLAUDE_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.
@@ -66,6 +66,7 @@ This runs a lightweight check comparing the local plugin version against `origin
- **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`.
+- **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.
## Common Review Pitfalls
diff --git a/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md b/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md
index f40fc2014..99e545a2c 100644
--- a/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md
+++ b/plugins/power-pages/PLUGIN_DEVELOPMENT_GUIDE.md
@@ -226,7 +226,7 @@ LLMs are probabilistic. When an LLM constructs inline bash commands for Datavers
Skills invoke scripts via `node` with CLI arguments:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" \
--projectRoot "<PROJECT_ROOT>" \
--permissionName "<Permission Name>" \
@@ -242,9 +242,8 @@ Scripts that call Dataverse APIs import `getAuthToken` and `makeRequest` from `s
Every script must have test coverage in `scripts/tests/`. Run tests with:
-```powershell
-$files = Get-ChildItem .\plugins\power-pages\scripts\tests\*.test.js | ForEach-Object { $_.FullName }
-node --test $files
+```bash
+node --test plugins/power-pages/scripts/tests/
```
> **Acceptance criterion:** All file creation, YAML generation, UUID generation, and Dataverse API calls must use shared scripts. No skill may use LLM-generated inline commands for operations that have a shared script. New scripts must ship with test coverage.
diff --git a/plugins/power-pages/README.md b/plugins/power-pages/README.md
index 0e7856339..444178137 100644
--- a/plugins/power-pages/README.md
+++ b/plugins/power-pages/README.md
@@ -216,15 +216,14 @@ claude --dangerously-skip-permissions
Run the validator unit tests with Node's built-in test runner:
-```powershell
-$files = Get-ChildItem .\plugins\power-pages\scripts\tests\*.test.js | ForEach-Object { $_.FullName }
-node --test $files
+```bash
+node --test plugins/power-pages/scripts/tests/
```
To validate table-permission relationship names against live Dataverse metadata during local testing, run:
-```powershell
-node .\plugins\power-pages\scripts\validate-permissions-schema.js --projectRoot C:\path\to\site --validate-dataverse-relationships --envUrl https://your-org.crm.dynamics.com
+```bash
+node plugins/power-pages/scripts/validate-permissions-schema.js --projectRoot /path/to/site --validate-dataverse-relationships --envUrl https://your-org.crm.dynamics.com
```
This Dataverse relationship check is intended for local validation only and should not be used in CI.
diff --git a/plugins/power-pages/agents/data-model-architect.md b/plugins/power-pages/agents/data-model-architect.md
index 8fa0c3564..29d11477e 100644
--- a/plugins/power-pages/agents/data-model-architect.md
+++ b/plugins/power-pages/agents/data-model-architect.md
@@ -79,7 +79,7 @@ Always query the Dataverse OData API to discover what already exists in the envi
Run `pac env who` and parse the `Environment URL` field:
-```powershell
+```bash
pac env who
```
@@ -331,7 +331,7 @@ Include these rationale categories:
2. Run the render script:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-data-model-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
diff --git a/plugins/power-pages/agents/table-permissions-architect.md b/plugins/power-pages/agents/table-permissions-architect.md
index d0786f8ef..7111a9a97 100644
--- a/plugins/power-pages/agents/table-permissions-architect.md
+++ b/plugins/power-pages/agents/table-permissions-architect.md
@@ -412,7 +412,7 @@ For each permission, prepare the exact `create-table-permission.js` script invoc
**For Global/Contact/Account/Self scope:**
-```powershell
+```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]
@@ -421,7 +421,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<
**For Parent scope:**
-```powershell
+```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]
```
@@ -464,8 +464,8 @@ 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:
-```powershell
-$result = node "${CLAUDE_PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]
+```bash
+node "${CLAUDE_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.
@@ -474,11 +474,11 @@ Capture the JSON output (`{ "id": "<uuid>", "filePath": "<path>" }`) — you nee
Run each script invocation prepared in section 5.1:
-```powershell
+```bash
# Parent permission first
-$parentResult = 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]
-$contactResult = 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]
-$accountResult = 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 "${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]
# 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]
@@ -488,7 +488,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:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "<envUrl>"
```
diff --git a/plugins/power-pages/agents/webapi-settings-architect.md b/plugins/power-pages/agents/webapi-settings-architect.md
index 1bd9ecfbc..94632690b 100644
--- a/plugins/power-pages/agents/webapi-settings-architect.md
+++ b/plugins/power-pages/agents/webapi-settings-architect.md
@@ -339,13 +339,13 @@ For each table that needs Web API access, prepare the exact `create-site-setting
**1. Enable setting:**
-```powershell
+```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"
```
**2. Fields setting:**
-```powershell
+```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"
```
@@ -355,13 +355,13 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJ
Example (with lookup column `cra5b_productcategoryid`):
-```powershell
+```bash
--value "_cra5b_productcategoryid_value,cra5b_description,cra5b_name,cra5b_price,cra5b_productcategoryid,cra5b_productid"
```
**3. Optionally**, if `Webapi/error/innererror` does not already exist, suggest it for debugging:
-```powershell
+```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"
```
@@ -399,7 +399,7 @@ Use `EnterPlanMode` to present the complete proposal (sections 6.1, 6.2, and the
After the user approves the plan, create the site setting files using the `create-site-setting.js` script. Run each invocation prepared in section 6.1:
-```powershell
+```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"
diff --git a/plugins/power-pages/references/permissions-plan-data-format.md b/plugins/power-pages/references/permissions-plan-data-format.md
index 839444168..e222564d5 100644
--- a/plugins/power-pages/references/permissions-plan-data-format.md
+++ b/plugins/power-pages/references/permissions-plan-data-format.md
@@ -124,7 +124,7 @@ Use HTML entity references for icons if needed: `&#x1F6E1;&#xFE0F;` (shield), `&
Run the render script (it creates the output directory if needed):
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-permissions-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
diff --git a/plugins/power-pages/references/skill-tracking-reference.md b/plugins/power-pages/references/skill-tracking-reference.md
index d23c68c87..11121cca1 100644
--- a/plugins/power-pages/references/skill-tracking-reference.md
+++ b/plugins/power-pages/references/skill-tracking-reference.md
@@ -10,7 +10,7 @@ Tracking only runs when `.powerpages-site/site-settings/` exists (site has been
Run the shared tracking script:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/update-skill-tracking.js" --projectRoot "<PROJECT_ROOT>" --skillName "<PascalCaseName>" --authoringTool "<YourAgentName>"
```
diff --git a/plugins/power-pages/skills/activate-site/SKILL.md b/plugins/power-pages/skills/activate-site/SKILL.md
index ca9cc18e6..3167ade3e 100644
--- a/plugins/power-pages/skills/activate-site/SKILL.md
+++ b/plugins/power-pages/skills/activate-site/SKILL.md
@@ -45,7 +45,7 @@ Provision a new Power Pages website in a Power Platform environment via the Powe
Run `pac help` to check if the PAC CLI is installed and available on the system PATH.
-```powershell
+```bash
pac help
```
@@ -53,7 +53,7 @@ pac help
1. Tell the user: "PAC CLI is not installed. You can install it by running:"
- ```powershell
+ ```bash
dotnet tool install --global Microsoft.PowerApps.CLI.Tool
```
@@ -64,7 +64,7 @@ pac help
Run `pac auth who` to check current authentication status.
-```powershell
+```bash
pac auth who
```
@@ -80,7 +80,7 @@ pac auth who
Verify the user is logged in to Azure CLI (the activation scripts acquire tokens internally):
-```powershell
+```bash
az account show
```
@@ -90,7 +90,7 @@ az account show
Before gathering parameters, check whether the site is already activated by running the shared activation status script:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"
```
@@ -132,7 +132,7 @@ Read the file and extract the `siteName` field. If not found, ask the user for t
Run the subdomain generator script to create a random suggestion:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/skills/activate-site/scripts/generate-subdomain.js"
```
@@ -158,7 +158,7 @@ Present the generated subdomain to the user and ask them to accept or enter thei
Run `pac pages list` to get the website record ID:
-```powershell
+```bash
pac pages list
```
@@ -204,7 +204,7 @@ Present all activation parameters to the user using `AskUserQuestion`:
Run the shared activation script, passing all parameters gathered in Phases 1–2:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/skills/activate-site/scripts/activate-site.js" --siteName "<siteName>" --subdomain "<subdomain>" --organizationId "<organizationId>" --environmentId "<environmentId>" --cloud "<cloud>" --websiteRecordId "<websiteRecordId>"
```
diff --git a/plugins/power-pages/skills/add-sample-data/SKILL.md b/plugins/power-pages/skills/add-sample-data/SKILL.md
index 0188d1ca3..2e52ffac8 100644
--- a/plugins/power-pages/skills/add-sample-data/SKILL.md
+++ b/plugins/power-pages/skills/add-sample-data/SKILL.md
@@ -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. Store the environment URL as `$envUrl`.
+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.
**Output**: Authenticated session with valid token and confirmed API access
@@ -48,11 +48,6 @@ Populate Dataverse tables with sample records via OData API so users can test an
Check 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.
-```powershell
-# Check if manifest exists
-Test-Path ".datamodel-manifest.json"
-```
-
See `${CLAUDE_PLUGIN_ROOT}/references/datamodel-manifest-schema.md` for the full manifest schema.
### Path B: Query OData API (Fallback)
diff --git a/plugins/power-pages/skills/add-seo/SKILL.md b/plugins/power-pages/skills/add-seo/SKILL.md
index 60064388a..b9ff322e5 100644
--- a/plugins/power-pages/skills/add-seo/SKILL.md
+++ b/plugins/power-pages/skills/add-seo/SKILL.md
@@ -45,22 +45,13 @@ Add essential SEO assets to a Power Pages code site: `robots.txt`, `sitemap.xml`
#### 1.1 Locate Project
-Look for `powerpages.config.json` in the current directory or immediate subdirectories to find the project root.
-
-```powershell
-# Check current directory and subdirectories
-Get-ChildItem -Path . -Filter "powerpages.config.json" -Recurse -Depth 1
-```
+Look for `powerpages.config.json` in the current directory or immediate subdirectories to find the project root. Use your file-search tool (e.g., `Glob` with patterns `powerpages.config.json` and `*/powerpages.config.json`) rather than a shell-specific command.
**If not found**: Tell the user to create a site first with `/create-site`.
#### 1.2 Read Existing Config
-Read `powerpages.config.json` to get the site name and config:
-
-```powershell
-Get-Content "<PROJECT_ROOT>/powerpages.config.json" | ConvertFrom-Json
-```
+Read `powerpages.config.json` to get the site name and config.
#### 1.3 Detect Framework & Discover Routes
@@ -315,7 +306,7 @@ Follow the skill tracking instructions in the reference to record this skill's u
Stage the specific SEO files and commit:
-```powershell
+```bash
git add public/robots.txt public/sitemap.xml public/favicon.svg index.html
git commit -m "Add SEO: robots.txt, sitemap.xml, meta tags, favicon"
```
diff --git a/plugins/power-pages/skills/add-server-logic/SKILL.md b/plugins/power-pages/skills/add-server-logic/SKILL.md
index 39aa44f46..b607d15d1 100644
--- a/plugins/power-pages/skills/add-server-logic/SKILL.md
+++ b/plugins/power-pages/skills/add-server-logic/SKILL.md
@@ -167,7 +167,7 @@ If any planned server logic item involves Dataverse operations, check whether th
**Step 1 — Fetch custom actions:**
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"
```
@@ -345,7 +345,7 @@ Create the `docs/` folder if it does not already exist. Keep this HTML file insi
Do **not** hand-author the HTML. Use the render script:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
@@ -686,7 +686,7 @@ Do **not** duplicate Microsoft Learn SDK usage patterns inline in this skill. Us
For 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.
-```powershell
+```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>"
```
@@ -816,7 +816,7 @@ If the user chose Azure Key Vault in Phase 2.3.1:
**Step 1 — List available Key Vaults:**
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/list-azure-keyvaults.js"
```
@@ -848,7 +848,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. |
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-azure-keyvault.js" \
--name "<vault-name>" \
--resourceGroup "<resource-group>" \
@@ -906,7 +906,7 @@ Tell the user the Secret Identifier URI looks like `https://<vault-name>.vault.a
After 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:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \
--schemaName "<prefix_SecretName>" \
--displayName "<Secret Display Name>" \
@@ -918,7 +918,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:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \
--projectRoot "<PROJECT_ROOT>" \
--name "<SiteSetting/Name>" \
@@ -935,7 +935,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:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>" \
--schemaName "<prefix_SecretName>" \
--displayName "<Secret Display Name>" \
@@ -944,7 +944,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-environment-variable.js" "<ENV_URL>"
**Step 2 — Create site setting for the environment variable:**
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" \
--projectRoot "<PROJECT_ROOT>" \
--name "<SiteSetting/Name>" \
@@ -996,7 +996,7 @@ The following site settings control server logic behavior. Only create settings
Use the existing site setting creation script:
-```powershell
+```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"
```
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.md
index b299857d1..f810f4f8e 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
@@ -152,7 +152,7 @@ When `SECRETS_DATA` is `null` or `useKeyVault` is `false`, the banner and per-ca
Do **not** write the HTML manually. Use the render script:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-serverlogic-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
diff --git a/plugins/power-pages/skills/audit-permissions/SKILL.md b/plugins/power-pages/skills/audit-permissions/SKILL.md
index be87da447..505ad79c4 100644
--- a/plugins/power-pages/skills/audit-permissions/SKILL.md
+++ b/plugins/power-pages/skills/audit-permissions/SKILL.md
@@ -94,8 +94,8 @@ Build a map of: which tables are referenced in code, which CRUD operations are p
Run the shared validator against the existing site:
-```powershell
-$schemaValidation = node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>"
+```bash
+node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>"
```
Parse the JSON output and carry the findings into the audit. Treat:
@@ -106,10 +106,10 @@ Parse the JSON output and carry the findings into the audit. Treat:
These findings should be included in the final audit report even if the later code/Dataverse analysis also finds additional issues.
-After Step 3.1 determines `$envUrl`, if this audit is running locally with Dataverse access available, rerun the shared validator with live relationship verification enabled and merge any additional findings:
+After 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:
-```powershell
-$schemaValidation = node "${CLAUDE_PLUGIN_ROOT}/scripts/validate-permissions-schema.js" --projectRoot "<PROJECT_ROOT>" --validate-dataverse-relationships --envUrl "$envUrl"
+```bash
+node "${CLAUDE_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.
@@ -122,21 +122,21 @@ Use deterministic Node.js scripts for all Dataverse API calls. These scripts han
### 3.1 Get Environment URL
-```powershell
+```bash
pac env who
```
-Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`). Store as `$envUrl`.
+Extract the `Environment URL` (e.g., `https://org12345.crm.dynamics.com`) and use it as `<envUrl>` in subsequent script calls.
### 3.2 Query Lookup Columns
For each table that has permissions with `create` or `write` enabled, use the lookup query script:
-```powershell
-$lookups = node "${CLAUDE_PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-lookups.js" --envUrl "$envUrl" --table "<table_logical_name>"
+```bash
+node "${CLAUDE_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.
+The script returns a JSON array of `{ logicalName, targets }` for each lookup column. Capture this output for the maps described below.
After querying **all** tables with create or write permissions, build two maps from the combined results:
@@ -155,8 +155,8 @@ Both maps are used in Sections H and H2:
For tables with parent-scope permissions, verify the relationship names using the relationship query script:
-```powershell
-$rels = node "${CLAUDE_PLUGIN_ROOT}/skills/audit-permissions/scripts/query-table-relationships.js" --envUrl "$envUrl" --table "<parent_table>"
+```bash
+node "${CLAUDE_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.
@@ -465,7 +465,7 @@ Write a temporary JSON data file (e.g., `<OUTPUT_DIR>/audit-data.json`) with the
Run the render script (it creates the output directory if needed):
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-audit-report.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
diff --git a/plugins/power-pages/skills/create-site/SKILL.md b/plugins/power-pages/skills/create-site/SKILL.md
index 4e2d3438e..ee50f95c6 100644
--- a/plugins/power-pages/skills/create-site/SKILL.md
+++ b/plugins/power-pages/skills/create-site/SKILL.md
@@ -121,7 +121,7 @@ Rename `gitignore` → `.gitignore` in the project root (stored without dot pref
Run `npm install` **before** initializing git so that `package-lock.json` is included in the initial commit:
-```powershell
+```bash
cd "<PROJECT_ROOT>"
npm install
```
@@ -130,7 +130,7 @@ npm install
Initialize a git repo and make the first commit. This captures all template files AND `package-lock.json` in one clean baseline:
-```powershell
+```bash
cd "<PROJECT_ROOT>"
git init
git add -A
@@ -143,7 +143,7 @@ From this point, **commit after every significant milestone** so any breaking ch
**This MUST happen now — before any planning or customization begins.** The dev server gives the user a live preview while features and design are being planned:
-```powershell
+```bash
cd "<PROJECT_ROOT>"
npm run dev
```
@@ -325,7 +325,7 @@ Use high-quality photos from Unsplash wherever the site needs visual content. Do
Commit after **every individual page and component** so breaking changes can be reverted. Each page and each component gets its own commit — do NOT batch multiple pages or components into a single commit.
-```powershell
+```bash
git add -A
git commit -m "<short description of what was added/changed>"
```
@@ -340,7 +340,7 @@ git commit -m "<short description of what was added/changed>"
**If something breaks**, revert to the last good commit:
-```powershell
+```bash
git revert HEAD
```
@@ -372,7 +372,7 @@ The user is previewing in their own browser via the dev server URL shared in Pha
Install `playwright` as a dev dependency in the project so the audit script can launch a headless browser. This uses the system-installed browser (Edge/Chrome) — no browser download is needed:
-```powershell
+```bash
cd "<PROJECT_ROOT>"
npm install --save-dev playwright
```
@@ -381,7 +381,7 @@ npm install --save-dev playwright
Run the audit script via `Bash`, passing the dev server URL and all site routes:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/skills/create-site/scripts/axe-audit.js" --url <DEV_SERVER_URL> --routes /,/about,/services,/contact --project-root "<PROJECT_ROOT>"
```
@@ -406,7 +406,7 @@ For each violation found, identify the source file and apply the fix:
After fixing each group of related violations, commit:
-```powershell
+```bash
git add -A
git commit -m "Fix accessibility: <violation description>"
```
diff --git a/plugins/power-pages/skills/create-site/references/design-aesthetics.md b/plugins/power-pages/skills/create-site/references/design-aesthetics.md
index 65ad78059..3fa629440 100644
--- a/plugins/power-pages/skills/create-site/references/design-aesthetics.md
+++ b/plugins/power-pages/skills/create-site/references/design-aesthetics.md
@@ -179,7 +179,7 @@ Refine the overall visual rhythm:
Commit after each major design subsection:
-```powershell
+```bash
git add -A
git commit -m "<short description of design change>"
```
diff --git a/plugins/power-pages/skills/create-webroles/SKILL.md b/plugins/power-pages/skills/create-webroles/SKILL.md
index d87c1a3ca..6975ce817 100644
--- a/plugins/power-pages/skills/create-webroles/SKILL.md
+++ b/plugins/power-pages/skills/create-webroles/SKILL.md
@@ -48,11 +48,7 @@ Create web roles for a Power Pages code site. Web roles define the permissions a
2. **If `.powerpages-site` does NOT exist:** Ask the user to deploy first via `AskUserQuestion` (options: "Yes, deploy now (Recommended)", "No, I'll do it later"). If yes, invoke `/deploy-site` then resume from Phase 2. If no, stop.
-3. **If `.powerpages-site` exists but `web-roles/` does NOT:** Create it:
-
- ```powershell
- New-Item -ItemType Directory -Path "<PROJECT_ROOT>/.powerpages-site/web-roles" -Force
- ```
+3. **If `.powerpages-site` exists but `web-roles/` does NOT:** Create the `<PROJECT_ROOT>/.powerpages-site/web-roles/` directory.
4. **If both exist:** Proceed to Phase 2.
@@ -133,7 +129,7 @@ For each new web role the user approved, create a YAML file in `.powerpages-site
For each role, generate a UUID using the Node script. **NEVER generate UUIDs yourself — always use the script.**
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js"
```
diff --git a/plugins/power-pages/skills/deploy-site/SKILL.md b/plugins/power-pages/skills/deploy-site/SKILL.md
index 802ecf4cd..fdf0a954c 100644
--- a/plugins/power-pages/skills/deploy-site/SKILL.md
+++ b/plugins/power-pages/skills/deploy-site/SKILL.md
@@ -34,7 +34,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
1. Create todo list with all 6 phases (see [Progress Tracking](#progress-tracking) table)
2. Run `pac help` to check if the PAC CLI is installed and available on the system PATH.
- ```powershell
+ ```bash
pac help
```
@@ -46,7 +46,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
2. Fetch installation instructions from `https://aka.ms/PowerPlatformCLI` using the following approach:
- Tell the user: "PAC CLI is not installed. You can install it by running:"
- ```powershell
+ ```bash
dotnet tool install --global Microsoft.PowerApps.CLI.Tool
```
@@ -67,7 +67,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
1. Run `pac auth who` to check the current authentication status.
- ```powershell
+ ```bash
pac auth who
```
@@ -93,7 +93,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
3. Once the user provides the URL, run the authentication command:
- ```powershell
+ ```bash
pac auth create --environment "<USER_PROVIDED_URL>"
```
@@ -127,7 +127,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
1. Run `pac org list` to retrieve all available environments:
- ```powershell
+ ```bash
pac org list
```
@@ -135,7 +135,7 @@ Guide the user through deploying an existing Power Pages code site to a Power Pa
3. Use `AskUserQuestion` to present the available environments as options (pick up to 4 most relevant, or let user specify).
4. Once the user selects an environment, switch to it:
- ```powershell
+ ```bash
pac org select --environment "<SELECTED_ENV_ID_OR_URL>"
```
@@ -182,7 +182,7 @@ If `.powerpages-site` does **not** exist (first deployment), skip this step —
Before uploading, ensure the site is built:
-```powershell
+```bash
cd "<PROJECT_ROOT>"
npm run build
```
@@ -193,7 +193,7 @@ If the build fails, stop and help the user fix the build errors before retrying.
Run the upload command:
-```powershell
+```bash
pac pages upload-code-site --rootPath "<PROJECT_ROOT>"
```
@@ -233,7 +233,7 @@ Review the output from the `pac pages upload-code-site` command in Phase 4 (or P
Stage and commit deployment artifacts:
-```powershell
+```bash
git add -A
git commit -m "Deploy site to Power Pages"
```
@@ -242,7 +242,7 @@ git commit -m "Deploy site to Power Pages"
Run the activation status check:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"
```
@@ -279,7 +279,7 @@ Use `AskUserQuestion` to confirm before proceeding:
**If "Yes"**: Run the cache-clearing script, passing the project root:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/clear-site-cache.js" --projectRoot "<PROJECT_ROOT>"
```
@@ -321,7 +321,7 @@ Use `AskUserQuestion`:
1. Run `pac env list-settings` to retrieve the current environment settings:
- ```powershell
+ ```bash
pac env list-settings
```
@@ -331,7 +331,7 @@ Use `AskUserQuestion`:
4. Update the setting:
- ```powershell
+ ```bash
pac env update-settings --name blockedattachments --value "<UPDATED_LIST_WITHOUT_JS>"
```
@@ -341,7 +341,7 @@ Use `AskUserQuestion`:
Run the upload command again:
-```powershell
+```bash
pac pages upload-code-site --rootPath "<PROJECT_ROOT>"
```
@@ -365,21 +365,13 @@ Error: Unable to upload webfile name 'index.html' with record Id <GUID> as '.htm
### Fix
-1. Locate the environment-specific manifest file in the `.powerpages-site` folder. It follows the naming pattern `<environment-host>-manifest.yml` (e.g., `demo1.crm.dynamics.com-manifest.yml`). List the folder contents to find it:
+1. Locate the environment-specific manifest file in the `.powerpages-site` folder. It follows the naming pattern `<environment-host>-manifest.yml` (e.g., `demo1.crm.dynamics.com-manifest.yml`). Use your file-search tool (e.g., `Glob` with pattern `<PROJECT_ROOT>/.powerpages-site/*-manifest.yml`) to find it.
- ```powershell
- Get-ChildItem -Path "<PROJECT_ROOT>/.powerpages-site" -Filter "*-manifest.yml"
- ```
-
-2. Delete the manifest file:
-
- ```powershell
- Remove-Item -Path "<PROJECT_ROOT>/.powerpages-site/<environment-host>-manifest.yml"
- ```
+2. Delete the manifest file at `<PROJECT_ROOT>/.powerpages-site/<environment-host>-manifest.yml`.
3. Retry the upload:
- ```powershell
+ ```bash
pac pages upload-code-site --rootPath "<PROJECT_ROOT>"
```
diff --git a/plugins/power-pages/skills/integrate-backend/SKILL.md b/plugins/power-pages/skills/integrate-backend/SKILL.md
index 03804f845..3e8cbb46a 100644
--- a/plugins/power-pages/skills/integrate-backend/SKILL.md
+++ b/plugins/power-pages/skills/integrate-backend/SKILL.md
@@ -68,7 +68,7 @@ Use the **Explore agent** to quickly scan the site for existing backend integrat
Check whether the user's Dataverse environment has existing custom actions that could be leveraged in the integration:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/list-custom-actions.js" "<ENV_URL>"
```
@@ -270,7 +270,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:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/render-backend-plan.js" --output "<OUTPUT_PATH>" --data "<DATA_JSON_PATH>"
```
diff --git a/plugins/power-pages/skills/integrate-webapi/SKILL.md b/plugins/power-pages/skills/integrate-webapi/SKILL.md
index 1170b85cb..89f7071ea 100644
--- a/plugins/power-pages/skills/integrate-webapi/SKILL.md
+++ b/plugins/power-pages/skills/integrate-webapi/SKILL.md
@@ -53,21 +53,13 @@ Integrate Power Pages Web API into a code site's frontend. This skill orchestrat
### 1.1 Locate Project
-Look for `powerpages.config.json` in the current directory or immediate subdirectories to find the project root.
-
-```powershell
-Get-ChildItem -Path . -Filter "powerpages.config.json" -Recurse -Depth 1
-```
+Look for `powerpages.config.json` in the current directory or immediate subdirectories to find the project root. Use your file-search tool (e.g., `Glob` with patterns `powerpages.config.json` and `*/powerpages.config.json`) rather than a shell-specific command.
**If not found**: Tell the user to create a site first with `/create-site`.
### 1.2 Read Existing Config
-Read `powerpages.config.json` to get the site name:
-
-```powershell
-Get-Content "<PROJECT_ROOT>/powerpages.config.json" | ConvertFrom-Json
-```
+Read `powerpages.config.json` to get the site name.
### 1.3 Detect Framework
@@ -219,7 +211,7 @@ After each agent completes (or after all parallel agents complete), verify the o
After all integrations are complete, stage and commit:
-```powershell
+```bash
git add -A
git commit -m "Add Web API integration for [table names]"
```
@@ -252,7 +244,7 @@ Also verify:
Run the project build to catch any import errors, type errors, or missing dependencies:
-```powershell
+```bash
npm run build
```
@@ -390,7 +382,7 @@ After parsing the user's diagram, create the YAML files using the deterministic
If the plan requires new web roles that don't already exist, create them first (their UUIDs are needed for table permissions):
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/skills/create-webroles/scripts/create-web-role.js" --projectRoot "<PROJECT_ROOT>" --name "<Role Name>" [--anonymous] [--authenticated]
```
@@ -402,7 +394,7 @@ For each table permission in the plan. Process **parent permissions before child
**For Global/Contact/Account/Self scope:**
-```powershell
+```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]
@@ -411,7 +403,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table-permission.js" --projectRoot "<
**For Parent scope** (requires parent permission UUID and relationship name):
-```powershell
+```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]
```
@@ -423,19 +415,19 @@ For each site setting in the plan:
**Enabled setting (boolean):**
-```powershell
+```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"
```
**Fields setting (string — use the validated column names from the diagram):**
-```powershell
+```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"
```
**Inner error setting (boolean, optional for debugging):**
-```powershell
+```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"
```
@@ -449,7 +441,7 @@ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-site-setting.js" --projectRoot "<PROJ
Stage and commit the permission and settings files:
-```powershell
+```bash
git add -A
git commit -m "Add table permissions and Web API site settings for [table names]"
```
diff --git a/plugins/power-pages/skills/setup-auth/SKILL.md b/plugins/power-pages/skills/setup-auth/SKILL.md
index 53258492a..f3be25e12 100644
--- a/plugins/power-pages/skills/setup-auth/SKILL.md
+++ b/plugins/power-pages/skills/setup-auth/SKILL.md
@@ -336,7 +336,7 @@ Find the site's navigation component and integrate the auth button:
Stage and commit the auth files:
-```powershell
+```bash
git add -A
git commit -m "Add authentication service and auth UI component"
```
@@ -399,7 +399,7 @@ Based on the user's choices, wrap the appropriate components:
Stage and commit:
-```powershell
+```bash
git add -A
git commit -m "Add role-based access control to site components"
```
@@ -438,7 +438,7 @@ Read each file and verify it contains the expected exports and functions:
Run the project build to catch any import errors, type errors, or missing dependencies:
-```powershell
+```bash
npm run build
```
@@ -448,7 +448,7 @@ If the build fails, fix the issues before proceeding.
Start the dev server and verify the auth button appears in the navigation:
-```powershell
+```bash
npm run dev
```
@@ -480,7 +480,7 @@ The site needs the `Authentication/Registration/ProfileRedirectEnabled` setting
Check if `.powerpages-site/site-settings/` exists. If it does, create the site setting file:
-```powershell
+```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/generate-uuid.js"
```
diff --git a/plugins/power-pages/skills/setup-datamodel/SKILL.md b/plugins/power-pages/skills/setup-datamodel/SKILL.md
index 179af60a0..4397ecf15 100644
--- a/plugins/power-pages/skills/setup-datamodel/SKILL.md
+++ b/plugins/power-pages/skills/setup-datamodel/SKILL.md
@@ -32,9 +32,9 @@ 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. Store the environment URL as `$envUrl`.
+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.
-**Output**: Verified PAC CLI auth, valid Azure CLI token, confirmed API access, `$envUrl` stored
+**Output**: Verified PAC CLI auth, valid Azure CLI token, confirmed API access, `<envUrl>` noted
---
diff --git a/plugins/power-pages/skills/test-site/SKILL.md b/plugins/power-pages/skills/test-site/SKILL.md
index f96cb275b..a0d4bf700 100644
--- a/plugins/power-pages/skills/test-site/SKILL.md
+++ b/plugins/power-pages/skills/test-site/SKILL.md
@@ -59,7 +59,7 @@ If no URL was provided, attempt auto-detection:
2. Run the activation status check script:
- ```powershell
+ ```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-activation-status.js" --projectRoot "<PROJECT_ROOT>"
```