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.

Update README and add a new website for skills (#815)

Priyanshu Agrawal22f9137d636b
diff --git a/.github/workflows/process-intelligence-script-tests.yml b/.github/workflows/process-intelligence-script-tests.yml
index 12e2ee2bc..0a7d062a4 100644
--- a/.github/workflows/process-intelligence-script-tests.yml
+++ b/.github/workflows/process-intelligence-script-tests.yml
@@ -11,6 +11,7 @@ on:
- "marketplace.json"
- ".claude-plugin/marketplace.json"
- "README.md"
+ - "docs/development.md"
- ".github/ISSUE_TEMPLATE/bug_report.yml"
- ".github/ISSUE_TEMPLATE/feature_request.yml"
- "shared/telemetry/README.md"
@@ -24,6 +25,7 @@ on:
- "marketplace.json"
- ".claude-plugin/marketplace.json"
- "README.md"
+ - "docs/development.md"
- ".github/ISSUE_TEMPLATE/bug_report.yml"
- ".github/ISSUE_TEMPLATE/feature_request.yml"
- "shared/telemetry/README.md"
diff --git a/.github/workflows/showcase-site.yml b/.github/workflows/showcase-site.yml
new file mode 100644
index 000000000..00eb459b9
--- /dev/null
+++ b/.github/workflows/showcase-site.yml
@@ -0,0 +1,130 @@
+name: showcase-site
+
+# Publishes the repository's one GitHub Pages site, which holds:
+# - the plugin showcase built from site/, at the site root, with the video and poster that
+# site/media.json pins, fetched from the site-media branch. They are kept off main because
+# every marketplace install clones main (see site/lib/media.js).
+# - the GitHub Repo Stats report, copied read-only from the github-repo-stats branch into
+# microsoft/, so its existing URLs (for example microsoft/power-platform-skills/latest-report/
+# report.html) keep working
+# Pages deploys one artifact, so every deploy must carry both; deploying the site alone would
+# take the stats report offline. The github-repo-stats branch is only read here, never written.
+#
+# Pull requests only test and build. The path filter lists every input the build or its tests
+# read, so a change that could break the site (a renamed skill, a new marketplace plugin, a README
+# link) runs this workflow.
+
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - "site/**"
+ - "marketplace.json"
+ - "plugins/*/.plugin/plugin.json"
+ - "plugins/*/skills/**"
+ - "README.md"
+ - "scripts/install.js"
+ - ".github/workflows/showcase-site.yml"
+ - ".github/workflows/github-repo-stats.yml"
+ push:
+ branches:
+ - main
+ paths:
+ - "site/**"
+ - "marketplace.json"
+ - "plugins/*/.plugin/plugin.json"
+ - "plugins/*/skills/**"
+ - "README.md"
+ - "scripts/install.js"
+ - ".github/workflows/showcase-site.yml"
+ - ".github/workflows/github-repo-stats.yml"
+ # Republish after the daily stats run so the report stays current.
+ workflow_run:
+ workflows:
+ - github-repo-stats
+ types:
+ - completed
+ branches:
+ - main
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: showcase-site-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
+ # Superseded pull request runs are cancelled. Runs on main are never cancelled here, because
+ # that would also cancel a Pages deployment halfway; the deploy job's own group queues them.
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
+jobs:
+ build:
+ name: build-showcase-site
+ # A failed stats run has nothing new to publish, and the live site keeps the last report.
+ if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - name: checkout
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+
+ - name: setup-node
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version: 22
+
+ - name: test
+ run: node --test site/tests/site.test.js
+
+ # Pull requests fetch the media too, so a change to site/media.json that pins a file the
+ # site-media branch does not have fails here rather than at deploy.
+ - name: fetch media
+ run: node site/fetch-media.js
+
+ - name: build
+ run: node site/build.js --require-media
+
+ - name: checkout repo stats
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ ref: github-repo-stats
+ path: repo-stats
+ sparse-checkout: microsoft
+ persist-credentials: false
+
+ - name: add repo stats to site
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
+ run: cp -R repo-stats/microsoft site/dist/microsoft
+
+ - name: upload pages artifact
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
+ uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
+ with:
+ path: site/dist
+
+ deploy:
+ name: deploy-showcase-site
+ if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
+ needs: build
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ # Only this job can publish. Pages deployments authenticate with an OIDC token.
+ # https://docs.github.com/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages
+ permissions:
+ pages: write
+ id-token: write
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ # Never cancel a deployment halfway; a newer run waits for the current one instead.
+ concurrency:
+ group: showcase-site-pages
+ cancel-in-progress: false
+ steps:
+ - name: deploy
+ id: deployment
+ uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
diff --git a/.gitignore b/.gitignore
index b563fdf76..2f48f756f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,3 +51,8 @@ Thumbs.db
# oh-my-claudecode scratch state
.omc/
+
+# Showcase site build output
+site/dist/
+# The site's video and poster, fetched from the site-media branch (see site/lib/media.js)
+site/media
diff --git a/AGENTS.md b/AGENTS.md
index de22b69dd..8b1e8bc9e 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -74,10 +74,26 @@ power-platform-skills/
├── shared/ # Cross-plugin shared resources
│ └── skills/ # Shared skill definitions
│ └── <skill-name>/ # SKILL.template.md + workflow .md files
+├── site/ # Plugin showcase site for GitHub Pages (see site/README.md)
+│ └── catalog.json # Plain-language content for each marketplace plugin
+├── docs/ # Developer docs moved out of the README (repository layout, installer notes)
├── AGENTS.md # Generic development guidelines (this file)
-└── README.md # Repository overview
+└── README.md # Repository overview, written for makers as well as developers
```
+The README is for people who use the plugins, and its first half is for people who are not
+developers: plain words, outcomes before technology, and install steps before internals. Material
+for people who work on the plugins (local loading, repository layout) goes in
+`docs/development.md`, which the README links from Contributing. The README's Telemetry section is
+the short user-facing summary; field-level detail belongs in `shared/telemetry/README.md` and each
+plugin's README. The README's install links are checked against `site/lib/install-links.js`, so a new
+marketplace plugin also needs a `site/catalog.json` entry and README install links.
+
+**Keep large binaries off `main`.** Every marketplace install clones `main`, and every update
+downloads each new version of a file again. The site's video and poster live on the never-merged
+`site-media` branch, pinned by hash in `site/media.json` (see `site/README.md`, "Site media"). A
+site test rejects audio, video, or any file over 256 KB under `site/`.
+
## Local Development
Test a plugin locally by launching your AI agent with the plugin path:
@@ -97,7 +113,9 @@ runs standalone installer regression tests on Linux and Windows.
**Every test workflow is path-filtered** — to a single plugin (`power-pages` → `plugins/power-pages/**`;
`model-apps` → `plugins/model-apps/**` + `evals/model-apps/**` + the `shared/` sources it bundles;
`pcf` → `plugins/pcf/**` + `evals/pcf/**` + the model-apps/shared sources it bundles), or,
-for code no plugin owns, to that code (`shared-telemetry-tests` → `shared/telemetry/**`).
+for code no plugin owns, to that code (`shared-telemetry-tests` → `shared/telemetry/**`;
+`showcase-site` → `site/**` plus every input the site reads: `marketplace.json`, plugin manifests and
+skills, `README.md` and `scripts/install.js`). `showcase-site` also deploys the site to GitHub Pages from `main`.
This is deliberate — a PR should not spend CI on a plugin it never touched — but it has a corollary:
*a green PR does not mean the repo is green*, only that the paths you touched are. A plugin that ships
copies of `shared/` sources may list those sources too, so a change to one runs that plugin's drift
diff --git a/README.md b/README.md
index 73ca82676..a3531c162 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,46 @@
# Power Platform Skills
-Official agent skills/plugins for Power Platform development by Microsoft.
+Plugins from Microsoft that teach AI assistants, such as GitHub Copilot and Claude Code, to build on Power Platform.
-## Overview
+**[Browse the plugins and install them with one click](https://microsoft.github.io/power-platform-skills/)**
-This repository is a **plugin marketplace** containing GitHub Copilot/Claude Code plugins for Power Platform services. Each plugin provides skills, agents, and commands to help developers build on the Power Platform.
+You describe what you want in your own words, such as "Create a Power Pages site with React for a job board" or "Why did the last run of my approval flow fail?".
+Your assistant asks follow-up questions, shows you what it plans to do, and asks before it runs commands or changes files.
+Then it does the work, from creating tables to publishing the result to your Power Platform environment.
+
+## What can I build?
+
+| I want to... | Plugin | Try asking |
+| --- | --- | --- |
+| Build a website | [Power Pages](plugins/power-pages/README.md) | "Create a Power Pages site with React for a job board" |
+| Build a business app | [Model-driven apps](plugins/model-apps/README.md) | "Build an app for tracking service requests" |
+| Build or change a canvas app | [Canvas apps](plugins/canvas-apps/README.md) | "Edit my Canvas App to add a new screen for reports" |
+| Build a web app with code | [Code apps](plugins/code-apps/README.md) (preview) | "Create a code app for tracking customer requests" |
+| Build a phone app | [Mobile apps](plugins/mobile-apps/README.md) (private preview) | "Build me a small notes app" |
+| Add native phone features to a canvas app | [Power Apps Mobile extensions](plugins/power-apps-mobile-extension/README.md) (preview) | "Design a native barcode scanning feature for my wrapped canvas app" |
+| Automate work | [Power Automate](plugins/power-automate/README.md) | "Create a flow that emails me when a new item is added to my SharePoint list" |
+| Work with Dataverse data | [Dataverse](https://github.com/microsoft/Dataverse-skills) | "Import this CSV into the contacts table" |
+| Find where a process slows down | [Process Intelligence](plugins/process-intelligence/README.md) | "Which steps cause the most waiting in this process?" |
+| Build custom controls for forms and views | [PCF](plugins/pcf/README.md) (preview) | "Create a PCF star rating control for a model-driven form" |
+| Build tools and widgets for AI assistants | [MCP Apps](plugins/mcp-apps/README.md) | "Show account revenue as a bar chart" |
+
+The [plugin website](https://microsoft.github.io/power-platform-skills/) shows what each plugin needs and more things to ask.
+
+## Before you start
+
+- **An AI assistant:** [Claude Code](https://code.claude.com/docs/en/setup), the [GitHub Copilot app](https://github.com/features/ai/github-app), or [GitHub Copilot CLI](https://docs.github.com/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli).
+- **A Power Platform environment you can build in.** A [developer environment](https://learn.microsoft.com/power-platform/developer/create-developer-environment) is free and the safest place to try things.
+- **[Node.js](https://nodejs.org/en/download)**, which the installer and most plugins need.
+
+Some plugins need more tools, such as the Azure CLI or the .NET SDK.
+Each plugin's page lists them, and your assistant tells you when something is missing.
## Installation
-### Quick Install (Recommended)
+### Quick install (recommended)
-Run the installer to set up all plugins with auto-update enabled:
+Open a terminal and run one command.
+It installs every plugin into Claude Code and GitHub Copilot CLI, whichever you have.
**Windows (PowerShell)**:
@@ -18,23 +48,18 @@ Run the installer to set up all plugins with auto-update enabled:
iwr https://raw.githubusercontent.com/microsoft/power-platform-skills/main/scripts/install.js -OutFile install.js; node install.js; del install.js
```
-**Mac OS/Linux/Windows (cmd)**:
+**macOS, Linux, or Windows (cmd)**:
```bash
curl -fsSL https://raw.githubusercontent.com/microsoft/power-platform-skills/main/scripts/install.js | node
```
-The installer automatically:
+The installer:
-- Installs `pac` CLI if not already installed
-- Detects available tools (GitHub Copilot CLI, Claude Code)
-- Registers the plugin marketplace and installs all listed plugins except `dataverse`
-- Enables auto-update so plugins stay current
-
-The installer validates plugin names in local and downloaded marketplace manifests before
-installation. Names must follow the Open Plugins format: 1–64 lowercase ASCII letters or
-digits, with single dots or hyphens allowed between alphanumeric endpoints. CLI arguments
-are passed directly to executables; Windows batch launchers accept only shell-inert arguments.
+- Installs the Power Platform CLI (`pac`) if it is missing
+- Finds Claude Code and GitHub Copilot CLI on your computer
+- Adds this plugin marketplace and installs every plugin except `dataverse`
+- Turns on automatic updates, so your plugins stay current
To also install the [Dataverse](#dataverse-external) plugin, pass `--include-dataverse`:
@@ -48,9 +73,36 @@ curl -fsSL https://raw.githubusercontent.com/microsoft/power-platform-skills/mai
The `-` tells Node to read the piped script, so the arguments after it reach the installer.
-### Manual Installation
+### Install one plugin with a click
+
+The **Claude Code** links open a terminal with the install command already typed.
+Press Enter to install.
+If nothing happens, open Claude Code once and send any message, then try the link again.
-If you prefer to install manually, run these commands inside a GitHub Copilot CLI or Claude Code session:
+For the **GitHub Copilot app**, [add the Power Platform marketplace](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Fmarketplace%2Fadd%3Fsource%3Dmicrosoft%252Fpower-platform-skills) first.
+You only do this once.
+The app asks you to confirm each step.
+
+| Plugin | Claude Code | GitHub Copilot app |
+| --- | --- | --- |
+| Power Pages | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=power-pages) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dpower-pages%2540power-platform-skills) |
+| Model-driven apps | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=model-apps) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dmodel-apps%2540power-platform-skills) |
+| Canvas apps | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=canvas-apps) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dcanvas-apps%2540power-platform-skills) |
+| Code apps | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=code-apps-preview) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dcode-apps-preview%2540power-platform-skills) |
+| Mobile apps | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=mobile-app) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dmobile-app%2540power-platform-skills) |
+| Power Apps Mobile extensions | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=power-apps-mobile-extension) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dpower-apps-mobile-extension%2540power-platform-skills) |
+| Power Automate | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=power-automate) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dpower-automate%2540power-platform-skills) |
+| Process Intelligence | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=process-intelligence) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dprocess-intelligence%2540power-platform-skills) |
+| Dataverse | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=dataverse) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Ddataverse%2540power-platform-skills) |
+| PCF code components | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=pcf) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dpcf%2540power-platform-skills) |
+| MCP Apps | [Install in Claude Code](https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=mcp-apps) | [Install in GitHub Copilot app](https://github.com/copilot/app/launch?open=ghapp%3A%2F%2Fplugins%2Finstall%3Fsource%3Dmcp-apps%2540power-platform-skills) |
+
+The Claude desktop app's Code tab and the Claude Code extension for VS Code use the plugins you install in Claude Code.
+VS Code also picks up plugins you install with GitHub Copilot CLI.
+
+### Manual installation
+
+To install from inside a GitHub Copilot CLI or Claude Code session, run these commands:
1. Add the marketplace
@@ -58,22 +110,98 @@ If you prefer to install manually, run these commands inside a GitHub Copilot CL
/plugin marketplace add microsoft/power-platform-skills
```
-2. Install the desired plugin
+2. Install the plugins you want
```bash
/plugin install power-pages@power-platform-skills
/plugin install model-apps@power-platform-skills
- /plugin install pcf@power-platform-skills
- /plugin install mcp-apps@power-platform-skills
+ /plugin install canvas-apps@power-platform-skills
/plugin install code-apps-preview@power-platform-skills
/plugin install mobile-app@power-platform-skills
/plugin install power-apps-mobile-extension@power-platform-skills
- /plugin install canvas-apps@power-platform-skills
/plugin install power-automate@power-platform-skills
/plugin install process-intelligence@power-platform-skills
/plugin install dataverse@power-platform-skills
+ /plugin install pcf@power-platform-skills
+ /plugin install mcp-apps@power-platform-skills
+ ```
+
+## Your first request
+
+1. Open a terminal, make an empty folder for your project, and go into it:
+
+ ```bash
+ mkdir my-first-site
+ cd my-first-site
```
+2. Start your assistant by typing `claude` or `copilot`.
+ In the GitHub Copilot app, add the folder and start a session instead.
+3. Describe what you want, for example "Create a Power Pages site with React for a job board".
+4. Answer its questions.
+ It may ask you to sign in to Power Platform in your browser and to pick an environment.
+5. Read each permission request before you approve it.
+ When it finishes, it tells you what it created.
+
+## Questions
+
+### Do I need to know how to code?
+
+No.
+You describe what you want in your own words.
+You run a few commands to install things, and some plugins are aimed at developers.
+The [plugin website](https://microsoft.github.io/power-platform-skills/) says who each plugin is for.
+
+### What does it cost?
+
+The plugins are free and open source under the [MIT](LICENSE) license.
+You need your own AI assistant, such as GitHub Copilot or Claude, and a Power Platform environment, which can need Power Platform licenses.
+
+### Can it break something?
+
+Your assistant asks before it runs commands or changes files.
+Many plugins also show you a plan or confirm the environment before they publish.
+Try things in a [developer environment](https://learn.microsoft.com/power-platform/developer/create-developer-environment) first.
+It's free and separate from your organization's live apps.
+
+### Why does my assistant keep asking for permission?
+
+Plugins edit files, run commands, and call MCP servers, and your assistant asks before each one by default.
+Read what it wants to do before you approve it.
+If you trust the work and want fewer prompts, see [Running Without Interruption](#running-without-interruption).
+
+### What data is collected?
+
+Some plugins send usage data to Microsoft by default, and each one has a command to turn it off.
+See [Telemetry](#telemetry) for what is collected.
+
+### How do I update or remove a plugin?
+
+The quick install turns on automatic updates.
+Otherwise, run `claude plugin update <name>` or `copilot plugin update <name>`.
+To remove a plugin, run `claude plugin uninstall <name>` or `copilot plugin uninstall <name>`.
+
+### Where do I get help?
+
+Most plugins include a `report-issue` skill that drafts a bug report for you.
+You can also [open an issue](https://github.com/microsoft/power-platform-skills/issues) or read [SUPPORT.md](SUPPORT.md).
+
+## Words you'll see
+
+For plugins and skills in action, watch the 35-second video [What are plugins and skills?](https://microsoft.github.io/power-platform-skills/#questions) on the plugin website.
+
+| Word | What it means |
+| --- | --- |
+| AI assistant | An AI tool that can work on your computer, such as Claude Code or GitHub Copilot. |
+| Plugin | A package that teaches your assistant a set of jobs. |
+| Skill | Instructions for one job, such as creating a site. Your assistant picks one from your request, or you can type its name, such as `/create-site`. |
+| Marketplace | A list of plugins your assistant can install. This repository is one. |
+| Environment | A space in Power Platform that holds your apps, flows, and data. |
+| Dataverse | The database behind Power Apps and Power Automate. |
+| PAC CLI | The Power Platform command-line tool. Plugins use it to sign in and publish. |
+| Azure CLI | Microsoft's command-line tool for Azure. Some plugins use it to sign in. |
+| MCP server | A small program that gives your assistant extra tools, such as access to a service. |
+
## Available Plugins
### [Power Pages](plugins/power-pages/README.md) (`plugins/power-pages`)
@@ -172,44 +300,6 @@ This plugin is maintained in [microsoft/Dataverse-skills](https://github.com/mic
Report issues and send changes there.
If you already installed `dataverse` from the `dataverse-skills` marketplace, keep only one of the two installs so its skills are not loaded twice.
-## Local Development
-
-To develop and test plugins locally, follow these steps:
-
-1. Clone this repository
-1. Launch GitHub Copilot CLI or Claude Code with the plugin path:
-
- GitHub Copilot CLI:
-
- ```bash
- copilot --plugin-dir /path/to/power-platform-skills/plugins/power-pages
- copilot --plugin-dir /path/to/power-platform-skills/plugins/model-apps
- copilot --plugin-dir /path/to/power-platform-skills/plugins/mcp-apps
- copilot --plugin-dir /path/to/power-platform-skills/plugins/code-apps
- copilot --plugin-dir /path/to/power-platform-skills/plugins/mobile-apps
- copilot --plugin-dir /path/to/power-platform-skills/plugins/power-apps-mobile-extension
- copilot --plugin-dir /path/to/power-platform-skills/plugins/canvas-apps
- copilot --plugin-dir /path/to/power-platform-skills/plugins/power-automate
- copilot --plugin-dir /path/to/power-platform-skills/plugins/process-intelligence
- ```
-
- Claude Code:
-
- ```bash
- claude --plugin-dir /path/to/power-platform-skills/plugins/power-pages
- claude --plugin-dir /path/to/power-platform-skills/plugins/model-apps
- claude --plugin-dir /path/to/power-platform-skills/plugins/mcp-apps
- claude --plugin-dir /path/to/power-platform-skills/plugins/code-apps
- claude --plugin-dir /path/to/power-platform-skills/plugins/mobile-apps
- claude --plugin-dir /path/to/power-platform-skills/plugins/power-apps-mobile-extension
- claude --plugin-dir /path/to/power-platform-skills/plugins/canvas-apps
- claude --plugin-dir /path/to/power-platform-skills/plugins/power-automate
- claude --plugin-dir /path/to/power-platform-skills/plugins/process-intelligence
- ```
-
-For Process Intelligence, first follow its [setup instructions](plugins/process-intelligence/README.md#installation),
-including the explicit profile and absolute plugin root needed to avoid duplicate workspace MCP loads.
-
## Running Without Interruption
Plugins in this repo may invoke multiple tools (file edits, shell commands, MCP servers) during a session, which can result in frequent approval prompts. Use the options below to reduce or eliminate these interruptions.
@@ -271,88 +361,6 @@ claude --dangerously-skip-permissions
See the [Claude Code permissions docs](https://code.claude.com/docs/en/permissions) for the full reference.
-## Repository Structure
-
-```text
-power-platform-skills/
-├── 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
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── .claude-plugin/ # Legacy manifest mirror
-│ │ │ └── plugin.json
-│ │ ├── commands/
-│ │ ├── shared/
-│ │ └── skills/
-│ ├── model-apps/ # Model Apps plugin
-│ | ├── .plugin/
-│ │ └── plugin.json
-│ | ├── commands/
-│ | ├── skills/
-│ | ├── shared/ # Shared references + samples
-│ | └── github/ # GitHub Copilot instructions
-│ ├── mcp-apps/ # MCP codeful tool + widget generator plugin
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── references/
-│ │ ├── samples/
-│ │ └── skills/
-│ ├── code-apps/ # Code Apps plugin
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── agents/
-│ │ ├── skills/
-│ │ └── shared/ # Shared instructions + references
-│ ├── mobile-apps/ # Mobile Apps plugin
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── .claude-plugin/ # Legacy manifest mirror
-│ │ │ └── plugin.json
-│ │ ├── agents/
-│ │ ├── skills/
-│ │ ├── shared/ # Shared instructions + references
-│ │ └── template/ # Bundled Expo app template
-│ ├── power-apps-mobile-extension/ # Native controls for wrapped Canvas apps
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── .claude-plugin/ # Legacy manifest mirror
-│ │ │ └── plugin.json
-│ │ ├── shared/
-│ │ └── skills/
-│ ├── canvas-apps/ # Canvas Apps plugin
-│ │ ├── .plugin/
-│ │ │ └── plugin.json
-│ │ ├── references/ # Technical + design guides
-│ │ └── skills/
-│ └── process-intelligence/ # Process Mining analytics plugin
-│ ├── .plugin/
-│ │ └── plugin.json
-│ ├── server/ # Self-contained MCP bundle
-│ ├── references/
-│ └── skills/
-├── AGENTS.md # Development guidelines
-└── README.md
-```
-
-The `.claude-plugin` files are compatibility mirrors for users who subscribed
-before the Open Plugins migration. The root legacy marketplace mirrors
-`marketplace.json`, and per-plugin legacy manifests mirror `.plugin/plugin.json`.
-The shared marketplace keeps marketplace-level `owner` and `metadata`, while each
-plugin entry is intentionally just `name` plus repository-root-relative `source`.
-Plugin descriptions, versions, licenses, and keywords are controlled from each
-plugin's `.plugin/plugin.json`. This keeps existing subscriptions updating without
-duplicating display/update metadata.
-
-Plugins maintained in other repositories, such as `dataverse`, use a remote `source` object instead of a path.
-Copilot CLI reads `marketplace.json` and Claude Code reads `.claude-plugin/marketplace.json`, and they spell a plugin in a repository subdirectory differently.
-So `marketplace.json` uses `"source": "github"` with `repo` and `path`, and the legacy file uses `"source": "git-subdir"` with `url` and `path`.
-`scripts/validate-legacy-compatibility.js` enforces that pairing.
-
## Documentation
- [Power Pages Code Sites](https://learn.microsoft.com/en-us/power-pages/configure/create-code-sites)
@@ -364,7 +372,8 @@ So `marketplace.json` uses `"source": "github"` with `repo` and `path`, and the
## Contributing
-See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guide.
+To work on the plugins, see [CONTRIBUTING.md](CONTRIBUTING.md) and the [developer guide](docs/development.md).
+The developer guide covers loading a plugin from a local checkout and how the repository fits together.
## License
@@ -380,6 +389,15 @@ Any use of third-party trademarks or logos are subject to those third-party's po
## Telemetry
-Power Pages, Mobile Apps, Model Apps, and Power Automate ship 1DS telemetry code, but their committed configurations and event schemas differ. All four are enabled and default-on. Power Pages events can include Dataverse organization and Entra tenant GUIDs when PAC is signed in, plus the signed-in user's Entra object ID when PAC exposes it. Power Pages also records approved create-site/localization choices, canonical locales, public localization package names and versions, stable validation failure codes, and localization completion data. It never records site names, free-text requirements, paths, prompts, raw errors, evidence URLs, or private-use locale subtags. Mobile Apps excludes those identity fields and records its documented invocation, project-instance, checkpoint, and App Insights selection fields. Model Apps events can include organization and tenant GUIDs but exclude the signed-in user's Entra object ID. Power Automate records the same identity fields as Power Pages from its skill hooks, and its bundled MCP server and CLI additionally record a per-invocation outcome (success or failure), duration, and, on failure, the error's class name and code — never the error message. Power Automate provisions public-cloud ingestion only, so events outside public cloud stay in the local mirror.
+Some plugins send usage data to Microsoft to help improve them: Power Pages, Model-driven apps, PCF, Mobile apps, Power Apps Mobile extensions, and Power Automate.
+It is on by default.
+
+- **What's sent:** which skill ran, the plugin version, your AI assistant, and your operating system, and for some skills whether they succeeded and how long they took.
+ When you're signed in to Power Platform, it can also include your organization and tenant IDs, and for some plugins your Microsoft Entra user ID.
+- **What's never sent:** what you type, file paths, site or app names, error messages, or usernames.
+- **To turn it off** for a plugin, ask your assistant to "turn off telemetry", or run the plugin's telemetry skill, such as `/power-pages:telemetry off`.
+ In scripts and CI, set the plugin's environment variable instead, such as `POWER_PLATFORM_SKILLS_TELEMETRY_POWER_PAGES_OPTOUT=1`.
+ Turning it off stops sending; the plugin still keeps a local log, so you can see what would have been sent.
-For an enabled plugin, users opt out of transmission via `/<plugin>:telemetry off` (for example, `/power-pages:telemetry off`), stored in `~/.power-platform-skills/config.json`. The local diagnostic mirror is still written after this transmission-only opt-out. Each adopting plugin also honors `POWER_PLATFORM_SKILLS_TELEMETRY_<PLUGIN>_OPTOUT` for automation and CI. The environment variable has highest precedence and disables transmission regardless of the saved command choice. See the [shared telemetry guide](shared/telemetry/README.md) for the full field list, current plugin states, geo-routing behavior, kill-switch semantics, and local-mirror behavior.
+Each plugin's README lists exactly what it sends, and the [telemetry guide](shared/telemetry/README.md) has the full details.
+See also the [Microsoft Privacy Statement](https://www.microsoft.com/privacy/privacystatement).
diff --git a/docs/development.md b/docs/development.md
new file mode 100644
index 000000000..810766372
--- /dev/null
+++ b/docs/development.md
@@ -0,0 +1,131 @@
+# Developing Power Platform Skills
+
+This page is for people who work on the plugins in this repository.
+To install and use the plugins, start with the [README](../README.md).
+
+## Local Development
+
+To develop and test plugins locally, follow these steps:
+
+1. Clone this repository
+1. Launch GitHub Copilot CLI or Claude Code with the plugin path:
+
+ GitHub Copilot CLI:
+
+ ```bash
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/power-pages
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/model-apps
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/mcp-apps
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/code-apps
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/mobile-apps
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/power-apps-mobile-extension
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/canvas-apps
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/power-automate
+ copilot --plugin-dir /path/to/power-platform-skills/plugins/process-intelligence
+ ```
+
+ Claude Code:
+
+ ```bash
+ claude --plugin-dir /path/to/power-platform-skills/plugins/power-pages
+ claude --plugin-dir /path/to/power-platform-skills/plugins/model-apps
+ claude --plugin-dir /path/to/power-platform-skills/plugins/mcp-apps
+ claude --plugin-dir /path/to/power-platform-skills/plugins/code-apps
+ claude --plugin-dir /path/to/power-platform-skills/plugins/mobile-apps
+ claude --plugin-dir /path/to/power-platform-skills/plugins/power-apps-mobile-extension
+ claude --plugin-dir /path/to/power-platform-skills/plugins/canvas-apps
+ claude --plugin-dir /path/to/power-platform-skills/plugins/power-automate
+ claude --plugin-dir /path/to/power-platform-skills/plugins/process-intelligence
+ ```
+
+For Process Intelligence, first follow its [setup instructions](../plugins/process-intelligence/README.md#installation),
+including the explicit profile and absolute plugin root needed to avoid duplicate workspace MCP loads.
+
+## Repository Structure
+
+```text
+power-platform-skills/
+├── 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
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── .claude-plugin/ # Legacy manifest mirror
+│ │ │ └── plugin.json
+│ │ ├── commands/
+│ │ ├── shared/
+│ │ └── skills/
+│ ├── model-apps/ # Model Apps plugin
+│ | ├── .plugin/
+│ │ └── plugin.json
+│ | ├── commands/
+│ | ├── skills/
+│ | ├── shared/ # Shared references + samples
+│ | └── github/ # GitHub Copilot instructions
+│ ├── mcp-apps/ # MCP codeful tool + widget generator plugin
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── references/
+│ │ ├── samples/
+│ │ └── skills/
+│ ├── code-apps/ # Code Apps plugin
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── agents/
+│ │ ├── skills/
+│ │ └── shared/ # Shared instructions + references
+│ ├── mobile-apps/ # Mobile Apps plugin
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── .claude-plugin/ # Legacy manifest mirror
+│ │ │ └── plugin.json
+│ │ ├── agents/
+│ │ ├── skills/
+│ │ ├── shared/ # Shared instructions + references
+│ │ └── template/ # Bundled Expo app template
+│ ├── power-apps-mobile-extension/ # Native controls for wrapped Canvas apps
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── .claude-plugin/ # Legacy manifest mirror
+│ │ │ └── plugin.json
+│ │ ├── shared/
+│ │ └── skills/
+│ ├── canvas-apps/ # Canvas Apps plugin
+│ │ ├── .plugin/
+│ │ │ └── plugin.json
+│ │ ├── references/ # Technical + design guides
+│ │ └── skills/
+│ └── process-intelligence/ # Process Mining analytics plugin
+│ ├── .plugin/
+│ │ └── plugin.json
+│ ├── server/ # Self-contained MCP bundle
+│ ├── references/
+│ └── skills/
+├── AGENTS.md # Development guidelines
+└── README.md
+```
+
+The `.claude-plugin` files are compatibility mirrors for users who subscribed
+before the Open Plugins migration. The root legacy marketplace mirrors
+`marketplace.json`, and per-plugin legacy manifests mirror `.plugin/plugin.json`.
+The shared marketplace keeps marketplace-level `owner` and `metadata`, while each
+plugin entry is intentionally just `name` plus repository-root-relative `source`.
+Plugin descriptions, versions, licenses, and keywords are controlled from each
+plugin's `.plugin/plugin.json`. This keeps existing subscriptions updating without
+duplicating display/update metadata.
+
+Plugins maintained in other repositories, such as `dataverse`, use a remote `source` object instead of a path.
+Copilot CLI reads `marketplace.json` and Claude Code reads `.claude-plugin/marketplace.json`, and they spell a plugin in a repository subdirectory differently.
+So `marketplace.json` uses `"source": "github"` with `repo` and `path`, and the legacy file uses `"source": "git-subdir"` with `url` and `path`.
+`scripts/validate-legacy-compatibility.js` enforces that pairing.
+
+## Installer name validation
+
+The installer validates plugin names in local and downloaded marketplace manifests before
+installation. Names must follow the Open Plugins format: 1–64 lowercase ASCII letters or
+digits, with single dots or hyphens allowed between alphanumeric endpoints. CLI arguments
+are passed directly to executables; Windows batch launchers accept only shell-inert arguments.
diff --git a/plugins/process-intelligence/tests/identity.test.mjs b/plugins/process-intelligence/tests/identity.test.mjs
index 78ef73ee1..222205330 100644
--- a/plugins/process-intelligence/tests/identity.test.mjs
+++ b/plugins/process-intelligence/tests/identity.test.mjs
@@ -59,7 +59,7 @@ test('plugin CI is path-filtered, read-only and runs the local build and test en
// Match the complete trigger block, not a stray path in a comment or another event.
const triggers = /^on:\n([\s\S]*?)(?=^\S)/m.exec(workflow)?.[1].trimEnd();
const paths = ['plugins/process-intelligence/**', 'LICENSE', workflowFile,
- 'marketplace.json', '.claude-plugin/marketplace.json', 'README.md',
+ 'marketplace.json', '.claude-plugin/marketplace.json', 'README.md', 'docs/development.md',
'.github/ISSUE_TEMPLATE/bug_report.yml', '.github/ISSUE_TEMPLATE/feature_request.yml',
'shared/telemetry/README.md'];
assert.equal(triggers, ['pull_request', 'push'].flatMap(event => [
@@ -91,11 +91,13 @@ test('plugin CI is path-filtered, read-only and runs the local build and test en
}
});
-test('repository README includes installation, local loading and every Process Intelligence skill', async () => {
+test('repository docs include installation, local loading and every Process Intelligence skill', async () => {
const readme = await fs.readFile(path.join(workspace, 'README.md'), 'utf8');
assert.match(readme, /\/plugin install process-intelligence@power-platform-skills/);
assert.doesNotMatch(readme, /\b(?:dev(?:elopment)?[- ]only|unpublished|prototype)\b/i);
- const localDevelopment = readme.split('## Local Development')[1]?.split('\n## ')[0];
+ // Local loading is for people working on the plugins, so it lives in the developer guide.
+ const development = await fs.readFile(path.join(workspace, 'docs', 'development.md'), 'utf8');
+ const localDevelopment = development.split('## Local Development')[1]?.split('\n## ')[0];
assert.ok(localDevelopment?.includes('claude --plugin-dir /path/to/power-platform-skills/plugins/process-intelligence'));
const catalog = readme.split('### [Process Intelligence]')[1]?.split('\n## ')[0];
assert.ok(catalog, 'Process Intelligence is missing from Available Plugins');
diff --git a/site/README.md b/site/README.md
new file mode 100644
index 000000000..64fae3542
--- /dev/null
+++ b/site/README.md
@@ -0,0 +1,140 @@
+# Showcase site
+
+The source for the plugin showcase at <https://microsoft.github.io/power-platform-skills/>.
+It is a static site with no dependencies beyond Node.js.
+
+## Build and preview
+
+```bash
+node site/fetch-media.js
+node site/build.js
+node --test site/tests/site.test.js
+```
+
+`fetch-media.js` downloads the explainer video and poster into `site/media/` (see [Site media](#site-media)).
+Skip it if you don't need the video: the build then leaves it out with a warning, and the rest of the site works.
+The build writes to `site/dist/`, which Git ignores.
+To preview it, serve that folder with any static file server, for example `npx serve site/dist`.
+The [showcase-site workflow](../.github/workflows/showcase-site.yml) runs the tests and the build on pull requests, and deploys to GitHub Pages from `main`.
+
+## Deployment and repo stats
+
+GitHub Pages serves one artifact for the whole repository.
+The [github-repo-stats workflow](../.github/workflows/github-repo-stats.yml) writes its daily report to the `github-repo-stats` branch, and every site deploy copies that branch's `microsoft/` folder into the artifact.
+That keeps the report at its existing address, `microsoft/power-platform-skills/latest-report/report.html`.
+The site workflow also runs after each successful stats run, so the published report stays current.
+A test fails if a deploy would stop carrying the report.
+
+## Where the content comes from
+
+- `marketplace.json` decides which plugins appear.
+- Each plugin's `.plugin/plugin.json` supplies its version.
+- `site/catalog.json` holds the plain-language content that no manifest carries: who a plugin is for, example prompts, what you need, skills to list, notes, and Microsoft Learn links.
+- `site/lib/install-links.js` builds every install command and link. The README's install links come from the same templates, and a test fails if they drift.
+
+## Design
+
+The design follows the Power Pages plugin's design references (`plugins/power-pages/references/design-aesthetics.md`, `page-blueprints.md`, and `design-critique.md`).
+The brief and design thesis are at the top of `site/lib/render.js`.
+
+- **Theme.** Light and dark themes follow the visitor's system setting by default.
+ The header switch pins either one, and `assets/theme.js` applies the choice before the page paints.
+ Every color is a `light-dark()` token in `assets/styles.css`.
+- **Brand.** The Power Platform logo and product icons are Microsoft's official icons, used under the rules in [`assets/brand/README.md`](assets/brand/README.md).
+ Each plugin names its Microsoft product in `catalog.json` (`product`), and a test checks that every product icon has its product name beside it.
+- **Fonts.** Schibsted Grotesk, Public Sans, and JetBrains Mono are self-hosted under the SIL Open Font License (licenses in `assets/fonts/`), so the site loads nothing from other origins.
+- **Hero session.** `showcase` in `catalog.json` lists the example sessions in the hero.
+ Each prompt must be one of the plugin's example prompts, and each step must describe something the plugin's skill really does, in order.
+
+## Explainer video
+
+The Questions section opens with "What are plugins and skills?", a 35-second film with captions and a transcript.
+Only the finished film is kept, not the tools that made it:
+
+- The video and its poster are on the `site-media` branch (see [Site media](#site-media)).
+- The captions are `assets/video/plugins-and-skills.vtt`.
+- The transcript is `video.transcript` in `catalog.json`: each part of the narration (`spoken`) and what is on screen while it plays (`shown`), for anyone who cannot see or play the video.
+
+A test fails if the transcript and the captions disagree, or if the transcript names a Power Pages skill that no longer exists.
+If a skill the video shows is renamed or removed, the video needs replacing.
+[`assets/video/README.md`](assets/video/README.md) says how the film was made and what is illustrative.
+
+The video never autoplays and preloads nothing, so its 3 MB download starts only when a visitor presses play.
+Until then, `assets/site.js` shows one large play button over the poster in place of the native controls.
+The film's text is sized for a desktop embed, so on a touch screen with a narrow player that button also opens the film full screen.
+
+## Site media
+
+Marketplace installs clone `main`.
+Every byte committed there is downloaded by everyone who adds the marketplace, and every new version of a file is downloaded again on each update.
+Claude Code and GitHub Copilot CLI clone only the default branch, so the site keeps its large binary files, the explainer video and its poster, on the `site-media` branch instead.
+That branch is never merged.
+
+- `site/media.json` pins each file: where the site serves it, its path on `site-media`, its SHA-256 hash, and its size.
+- `node site/fetch-media.js` fetches only the tip of `site-media` from the public repository and writes the pinned files to `site/media/`, which Git ignores.
+ It fetches into a temporary repository and deletes it, so it never changes your clone.
+ `--from <remote or path>` fetches from somewhere else, for example `--from .` for a local branch you have not pushed yet.
+- `node site/build.js` checks each file's hash and copies it into the site.
+ A different file stops the build, and `--require-media` also stops it when a file is missing.
+ The workflow fetches the media and builds with `--require-media` on every pull request and deploy.
+- A test fails if anyone commits audio, video, or a file over 256 KB under `site/`.
+
+Files on `site-media` are named by their hash, so a new version sits next to the old one.
+To publish one:
+
+1. Name each new file after the first 12 characters of its SHA-256 hash, such as `video/plugins-and-skills-51f78cf58fab.mp4`, and update its entry in `site/media.json`.
+ This prints a file's hash and size on any system:
+
+ ```bash
+ node -e "const d = require('fs').readFileSync(process.argv[1]); console.log(require('crypto').createHash('sha256').update(d).digest('hex'), d.length)" <file>
+ ```
+
+ For a new video, also update the captions and `video.transcript` in `catalog.json` to match it.
+2. Commit the new files to `site-media` and push it, from the repository root:
+
+ ```bash
+ git fetch origin site-media
+ git worktree add --detach ../site-media-worktree origin/site-media
+ ```
+
+ Copy the new files to `../site-media-worktree/video/`, then:
+
+ ```bash
+ git -C ../site-media-worktree add video
+ git -C ../site-media-worktree commit -m "Add the new explainer video"
+ git -C ../site-media-worktree push origin HEAD:site-media
+ git worktree remove ../site-media-worktree
+ ```
+
+3. Open the pull request on `main` with the new `site/media.json`.
+ `main` keeps deploying the files it pins until that pull request merges.
+
+Keep old files on `site-media` until `main` no longer pins them.
+
+## Check a design change
+
+To check a change, run the Power Pages design capture against a local preview:
+
+```bash
+node plugins/power-pages/scripts/capture-design-review.js --input - --axe <<'REQUEST'
+{"url": "http://localhost:8080/", "routes": ["/", "/plugins/model-apps/"]}
+REQUEST
+```
+
+## Add or change a plugin
+
+1. Add an entry to `site/catalog.json` with the plugin's marketplace name and its Microsoft `product`.
+ The build fails if a marketplace plugin has no entry, if an entry names a plugin that isn't in the marketplace, or if a listed skill has no `skills/<name>/SKILL.md`.
+2. Add the plugin's install links to the README.
+ Run the tests to see which links are missing.
+3. Run the build and look at the new page.
+
+## How the install buttons work
+
+Each button uses a link handler that the assistant already registers, so a click never installs anything by itself:
+
+- **Claude Code** registers `claude-cli://` links.
+ The link opens a terminal with `/plugin install <name> --marketplace microsoft/power-platform-skills` typed in, and the user presses Enter.
+ GitHub removes `claude-cli:` links from Markdown, so README links go through the site's `install/` page, which only accepts plugin names from the marketplace.
+- **The GitHub Copilot app** accepts `ghapp://plugins/...` links through GitHub's https launcher and asks the user to confirm.
+- **GitHub Copilot CLI** has no link handler, so the site offers commands to copy.
diff --git a/site/assets/brand/README.md b/site/assets/brand/README.md
new file mode 100644
index 000000000..04fa520d7
--- /dev/null
+++ b/site/assets/brand/README.md
@@ -0,0 +1,37 @@
+# Brand assets
+
+The SVG files here are Microsoft's official Power Platform product icons, copied unchanged from the
+[Microsoft Power Platform icons](https://learn.microsoft.com/power-platform/guidance/icons) download
+(`Power-Platform-icons-scalable.zip`, December 2025 update).
+
+| File | Source file in the download | Represents |
+| --- | --- | --- |
+| `power-platform.svg` | `Power Platform/PowerPlatform_scalable.svg` | Microsoft Power Platform |
+| `power-apps.svg` | `Power Platform/PowerApps_scalable.svg` | Power Apps |
+| `power-automate.svg` | `Power Platform/PowerAutomate_scalable.svg` | Power Automate |
+| `power-pages.svg` | `Power Platform/PowerPages_scalable.svg` | Power Pages |
+| `dataverse.svg` | `Power Platform/Dataverse_scalable.svg` | Dataverse |
+
+`favicon-32.png` and `apple-touch-icon.png` are rasterized from `power-platform.svg` without
+cropping, recoloring, or distortion.
+The home-screen icon sits on a white tile because iOS fills transparent areas with black.
+
+## Terms
+
+Microsoft's [icon page](https://learn.microsoft.com/power-platform/guidance/icons) and the
+`CELA_Licenses_Public_Use_Icons.pdf` in the download set these terms:
+
+- Microsoft permits the use of these icons in architectural diagrams, training materials, or documentation.
+- Don't crop, flip, or rotate icons, and don't distort or change their shape.
+- Don't use Microsoft product icons to represent your product or service.
+- Show the service's full name near the icon (from the FAQ in the download).
+
+## Where the site uses them
+
+- Each product icon appears beside a plugin to show which Microsoft product it works with, with the
+ product's name next to it (`PRODUCTS` in `site/lib/catalog.js`). A test checks every use.
+- The Power Platform icon appears in the header and footer next to the "Power Platform Skills" name,
+ and as the favicon, to identify this Microsoft-published Power Platform site.
+
+Because the terms list the permitted uses narrowly, check Microsoft's brand guidance before using
+these files anywhere else, and replace them only with a newer version from the same download page.
diff --git a/site/assets/brand/apple-touch-icon.png b/site/assets/brand/apple-touch-icon.png
new file mode 100644
index 000000000..b6553c395
Binary files /dev/null and b/site/assets/brand/apple-touch-icon.png differ
diff --git a/site/assets/brand/dataverse.svg b/site/assets/brand/dataverse.svg
new file mode 100644
index 000000000..c6e9c2c94
--- /dev/null
+++ b/site/assets/brand/dataverse.svg
@@ -0,0 +1,60 @@
+<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_4303_1230)">
+<g clip-path="url(#clip1_4303_1230)">
+<g clip-path="url(#clip2_4303_1230)">
+<path d="M13.8776 21.8242C29.1033 8.13791 49.7501 8.1861 62.955 18.9134C74.9816 28.6836 77.4697 44.3159 70.851 55.7801C64.2321 67.2443 52.5277 70.1455 39.5011 62.6247L31.7286 76.087L31.7234 76.0862C27.4181 83.5324 17.8937 86.0828 10.4437 81.7817C7.45394 80.0556 5.25322 77.4879 3.96665 74.551L3.96096 74.5511C-4.07832 55.7804 0.200745 34.1184 13.8776 21.8242Z" fill="url(#paint0_radial_4303_1230)"/>
+<path d="M13.8776 21.8242C29.1033 8.13791 49.7501 8.1861 62.955 18.9134C74.9816 28.6836 77.4697 44.3159 70.851 55.7801C64.2321 67.2443 52.5277 70.1455 39.5011 62.6247L31.7286 76.087L31.7234 76.0862C27.4181 83.5324 17.8937 86.0828 10.4437 81.7817C7.45394 80.0556 5.25322 77.4879 3.96665 74.551L3.96096 74.5511C-4.07832 55.7804 0.200745 34.1184 13.8776 21.8242Z" fill="url(#paint1_radial_4303_1230)" fill-opacity="0.8"/>
+<path d="M85.4327 14.2231C88.4528 15.9668 90.6686 18.569 91.9494 21.5433L91.9533 21.5444C99.9406 40.2943 95.6533 61.9068 81.9983 74.1814C66.7726 87.8677 46.1257 87.8196 32.9209 77.0923C20.8945 67.3221 18.4062 51.6897 25.0249 40.2256C31.6438 28.7614 43.3482 25.8601 56.3748 33.381L64.1434 19.9255L64.1482 19.9249C68.4516 12.4736 77.9805 9.92084 85.4327 14.2231Z" fill="url(#paint2_radial_4303_1230)"/>
+<path d="M85.4327 14.2231C88.4528 15.9668 90.6686 18.569 91.9494 21.5433L91.9533 21.5444C99.9406 40.2943 95.6533 61.9068 81.9983 74.1814C66.7726 87.8677 46.1257 87.8196 32.9209 77.0923C20.8945 67.3221 18.4062 51.6897 25.0249 40.2256C31.6438 28.7614 43.3482 25.8601 56.3748 33.381L64.1434 19.9255L64.1482 19.9249C68.4516 12.4736 77.9805 9.92084 85.4327 14.2231Z" fill="url(#paint3_radial_4303_1230)" fill-opacity="0.9"/>
+<path d="M39.5041 62.6261C52.5307 70.1469 64.2352 67.2456 70.8541 55.7814C77.2488 44.7055 75.1426 29.7389 64.147 19.9271L56.3791 33.3814L39.5041 62.6261Z" fill="url(#paint4_radial_4303_1230)"/>
+<path d="M56.3794 33.3815C43.3528 25.8607 31.6482 28.762 25.0294 40.2262C18.6347 51.3021 20.7409 66.2687 31.7364 76.0806L39.5043 62.6262L56.3794 33.3815Z" fill="url(#paint5_radial_4303_1230)"/>
+<path d="M33.3215 56.4453C37.9837 64.5204 48.3094 67.2872 56.3846 62.625C64.4598 57.9628 67.2266 47.6371 62.5643 39.5619C57.9021 31.4867 47.5764 28.72 39.5013 33.3822C31.4261 38.0444 28.6593 48.3701 33.3215 56.4453Z" fill="url(#paint6_radial_4303_1230)"/>
+</g>
+</g>
+</g>
+<defs>
+<radialGradient id="paint0_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(46.0001 49.4996) rotate(-148.717) scale(46.2195 47.5359)">
+<stop offset="0.465088" stop-color="#09442A"/>
+<stop offset="0.70088" stop-color="#136C6C"/>
+<stop offset="1" stop-color="#22918B"/>
+</radialGradient>
+<radialGradient id="paint1_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(50.0001 32.4996) rotate(123.57) scale(66.0095 46.5498)">
+<stop offset="0.718705" stop-color="#1A7F7C" stop-opacity="0"/>
+<stop offset="1" stop-color="#16BBDA"/>
+</radialGradient>
+<radialGradient id="paint2_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(50.4999 44.5001) rotate(30.75) scale(45.9618 44.5095)">
+<stop offset="0.358097" stop-color="#136C6C"/>
+<stop offset="0.789474" stop-color="#42B870"/>
+<stop offset="1" stop-color="#76D45E"/>
+</radialGradient>
+<radialGradient id="paint3_radial_4303_1230" cx="0" cy="0" r="1" gradientTransform="matrix(42.5 -36.0002 31.1824 36.8127 49.4998 55.5001)" gradientUnits="userSpaceOnUse">
+<stop offset="0.583166" stop-color="#76D45E" stop-opacity="0"/>
+<stop offset="1" stop-color="#C8F5B7"/>
+</radialGradient>
+<radialGradient id="paint4_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(47.5 48) rotate(-58.9042) scale(32.6898)">
+<stop offset="0.486266" stop-color="#22918B"/>
+<stop offset="0.729599" stop-color="#42B870"/>
+<stop offset="1" stop-color="#43E5CA"/>
+</radialGradient>
+<radialGradient id="paint5_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(47.3833 49.0077) rotate(119.859) scale(31.1328 29.4032)">
+<stop offset="0.459553" stop-color="#08494E"/>
+<stop offset="0.742242" stop-color="#1A7F7C"/>
+<stop offset="1" stop-color="#309C61"/>
+</radialGradient>
+<radialGradient id="paint6_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(52.5 40) rotate(120.784) scale(27.3542)">
+<stop stop-color="#C8F5B7"/>
+<stop offset="0.24583" stop-color="#98F0B0"/>
+<stop offset="0.643961" stop-color="#52D17C"/>
+<stop offset="1" stop-color="#119FC5"/>
+</radialGradient>
+<clipPath id="clip0_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip1_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip2_4303_1230">
+<rect width="95.9998" height="96" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/site/assets/brand/favicon-32.png b/site/assets/brand/favicon-32.png
new file mode 100644
index 000000000..cce22d1a5
Binary files /dev/null and b/site/assets/brand/favicon-32.png differ
diff --git a/site/assets/brand/power-apps.svg b/site/assets/brand/power-apps.svg
new file mode 100644
index 000000000..0316a7f5a
--- /dev/null
+++ b/site/assets/brand/power-apps.svg
@@ -0,0 +1,57 @@
+<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_4303_1230)">
+<g clip-path="url(#clip1_4303_1230)">
+<path d="M44.1553 9.77196L62.9254 42.6196C64.8305 45.9536 64.8305 50.0464 62.9254 53.3804L44.1553 86.228C38.7808 95.6334 25.219 95.6335 19.8445 86.228L2.2525 55.4421C-0.382637 50.8306 -0.382645 45.1694 2.25249 40.5579L19.8445 9.77196C25.219 0.366551 38.7808 0.366549 44.1553 9.77196Z" fill="url(#paint0_linear_4303_1230)"/>
+<path d="M44.1553 9.77196L62.9254 42.6196C64.8305 45.9536 64.8305 50.0464 62.9254 53.3804L44.1553 86.228C38.7808 95.6334 25.219 95.6335 19.8445 86.228L2.2525 55.4421C-0.382637 50.8306 -0.382645 45.1694 2.25249 40.5579L19.8445 9.77196C25.219 0.366551 38.7808 0.366549 44.1553 9.77196Z" fill="url(#paint1_radial_4303_1230)"/>
+<path d="M65.9999 48L44.1553 86.228C38.7808 95.6334 25.219 95.6334 19.8445 86.228L1.99988 55C7.30568 64.2852 20.6941 64.2852 25.9999 55L47.9999 16.5L65.9999 48Z" fill="url(#paint2_linear_4303_1230)"/>
+<path d="M65.9999 48L44.1553 86.228C38.7808 95.6334 25.219 95.6334 19.8445 86.228L1.99988 55C7.30568 64.2852 20.6941 64.2852 25.9999 55L47.9999 16.5L65.9999 48Z" fill="url(#paint3_linear_4303_1230)"/>
+<path d="M54.9458 28.6554L81.9999 76L93.3881 56.0705C96.2458 51.0696 96.2458 44.9304 93.3881 39.9295L76.1553 9.77196C70.7808 0.366554 57.219 0.366554 51.8445 9.77197L41.0539 28.6554C44.1251 23.2809 51.8747 23.2809 54.9458 28.6554Z" fill="url(#paint4_linear_4303_1230)"/>
+<path d="M54.9458 28.6554L81.9999 76L93.3881 56.0705C96.2458 51.0696 96.2458 44.9304 93.3881 39.9295L76.1553 9.77196C70.7808 0.366554 57.219 0.366554 51.8445 9.77197L41.0539 28.6554C44.1251 23.2809 51.8747 23.2809 54.9458 28.6554Z" fill="url(#paint5_linear_4303_1230)"/>
+<path d="M79.7318 23.9691L47.9999 79.5L51.8445 86.228C57.219 95.6334 70.7808 95.6335 76.1553 86.228L94.0308 54.9459C96.4902 50.6419 96.4902 45.3581 94.0308 41.0541L79.7318 16.0309C81.1372 18.4903 81.1372 21.5096 79.7318 23.9691Z" fill="url(#paint6_linear_4303_1230)"/>
+<path d="M51.8445 86.228L47.9999 79.5L65.9999 48L81.9999 76L76.1553 86.228C70.7808 95.6334 57.219 95.6334 51.8445 86.228Z" fill="url(#paint7_linear_4303_1230)"/>
+</g>
+</g>
+<defs>
+<linearGradient id="paint0_linear_4303_1230" x1="15.9999" y1="60.5" x2="27.9994" y2="5.00001" gradientUnits="userSpaceOnUse">
+<stop stop-color="#520B56"/>
+<stop offset="1" stop-color="#742774"/>
+</linearGradient>
+<radialGradient id="paint1_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(31.4999 8.00002) rotate(123.811) scale(65.5935 20.3157)">
+<stop offset="0.512391" stop-color="#4C1E4C" stop-opacity="0"/>
+<stop offset="1" stop-color="#4C1E4C"/>
+</radialGradient>
+<linearGradient id="paint2_linear_4303_1230" x1="11.9999" y1="71" x2="59.4999" y2="41.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#D467B9"/>
+<stop offset="0.308079" stop-color="#982F90"/>
+<stop offset="1" stop-color="#742774"/>
+</linearGradient>
+<linearGradient id="paint3_linear_4303_1230" x1="43.9999" y1="53.4998" x2="67.5" y2="50.9998" gradientUnits="userSpaceOnUse">
+<stop stop-color="#742774" stop-opacity="0"/>
+<stop offset="1" stop-color="#520B56"/>
+</linearGradient>
+<linearGradient id="paint4_linear_4303_1230" x1="42.9999" y1="29" x2="82.4999" y2="56" gradientUnits="userSpaceOnUse">
+<stop stop-color="#E9A1CB"/>
+<stop offset="0.40829" stop-color="#D467B9"/>
+<stop offset="1" stop-color="#BB35A4"/>
+</linearGradient>
+<linearGradient id="paint5_linear_4303_1230" x1="67.4999" y1="23.5" x2="80.9999" y2="26.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#E48CC7" stop-opacity="0"/>
+<stop offset="1" stop-color="#BB35A4"/>
+</linearGradient>
+<linearGradient id="paint6_linear_4303_1230" x1="89.2565" y1="77.1621" x2="76.4515" y2="41.3836" gradientUnits="userSpaceOnUse">
+<stop stop-color="#E48CC7"/>
+<stop offset="1" stop-color="#F7C4E2"/>
+</linearGradient>
+<linearGradient id="paint7_linear_4303_1230" x1="75.1999" y1="77.5801" x2="54.869" y2="32.0777" gradientUnits="userSpaceOnUse">
+<stop stop-color="#E48CC7" stop-opacity="0"/>
+<stop offset="0.67724" stop-color="#D467B9" stop-opacity="0.5"/>
+<stop offset="1" stop-color="#BB35A4"/>
+</linearGradient>
+<clipPath id="clip0_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip1_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/site/assets/brand/power-automate.svg b/site/assets/brand/power-automate.svg
new file mode 100644
index 000000000..c617c2677
--- /dev/null
+++ b/site/assets/brand/power-automate.svg
@@ -0,0 +1,37 @@
+<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_4303_1230)">
+<g clip-path="url(#clip1_4303_1230)">
+<path d="M52.5093 3C55.3657 3 58.0858 4.22148 59.9834 6.35636L82.6577 31.8649C88.9106 38.8995 85.0005 50.0661 75.7251 51.6632L21.5 61L28.2997 53.3134C30.9819 50.2813 30.9765 45.7235 28.287 42.6979L7.79435 19.6436C2.06189 13.1946 6.63995 3 15.2684 3H52.5093Z" fill="url(#paint0_linear_4303_1230)"/>
+<path d="M15.2684 93C6.63995 93 2.0619 82.8054 7.79436 76.3563L59.0945 18.6436C62.4624 14.8548 62.4624 9.14522 59.0945 5.35636L57 3L91.0945 41.3564C94.4624 45.1453 94.4624 50.8548 91.0945 54.6437L59.9834 89.6436C58.0858 91.7785 55.3657 93 52.5093 93H15.2684Z" fill="url(#paint1_linear_4303_1230)"/>
+<path d="M15.2684 93C6.63995 93 2.0619 82.8054 7.79436 76.3563L59.0945 18.6436C62.4624 14.8548 62.4624 9.14522 59.0945 5.35636L57 3L91.0945 41.3564C94.4624 45.1453 94.4624 50.8548 91.0945 54.6437L59.9834 89.6436C58.0858 91.7785 55.3657 93 52.5093 93H15.2684Z" fill="url(#paint2_linear_4303_1230)"/>
+<path d="M38.3611 93C33.184 93 30.4371 86.8833 33.8766 83.0139L75.0945 36.6436C78.4624 32.8548 78.4624 27.1452 75.0945 23.3563L71 18.75L91.0945 41.3563C94.4624 45.1452 94.4624 50.8547 91.0946 54.6436L59.9834 89.6437C58.0858 91.7785 55.3657 93 52.5093 93H38.3611Z" fill="url(#paint3_linear_4303_1230)"/>
+</g>
+</g>
+<defs>
+<linearGradient id="paint0_linear_4303_1230" x1="48" y1="31.5" x2="14" y2="-2.50001" gradientUnits="userSpaceOnUse">
+<stop stop-color="#102784"/>
+<stop offset="0.274053" stop-color="#1B44B1"/>
+<stop offset="1" stop-color="#2764E7"/>
+</linearGradient>
+<linearGradient id="paint1_linear_4303_1230" x1="76.5" y1="25" x2="11.5" y2="91.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#0FAFFF"/>
+<stop offset="0.177827" stop-color="#4894FE"/>
+<stop offset="1" stop-color="#2764E7"/>
+</linearGradient>
+<linearGradient id="paint2_linear_4303_1230" x1="28.5" y1="72" x2="38.5" y2="83.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#2764E7" stop-opacity="0"/>
+<stop offset="1" stop-color="#2052CB"/>
+</linearGradient>
+<linearGradient id="paint3_linear_4303_1230" x1="89" y1="38.5" x2="43" y2="90.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#6CE0FF"/>
+<stop offset="0.211723" stop-color="#66C0FF"/>
+<stop offset="1" stop-color="#58AAFE"/>
+</linearGradient>
+<clipPath id="clip0_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip1_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/site/assets/brand/power-pages.svg b/site/assets/brand/power-pages.svg
new file mode 100644
index 000000000..20f0abc46
--- /dev/null
+++ b/site/assets/brand/power-pages.svg
@@ -0,0 +1,68 @@
+<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_4303_1230)">
+<g clip-path="url(#clip1_4303_1230)">
+<path d="M16.9956 59.6815L53.8327 31.9692C57.2907 29.3677 62.0518 29.3642 65.5137 31.9606L90.717 50.8624C95.8984 54.7484 95.9048 62.5182 90.7298 66.4127L54.1952 93.9067C50.5268 96.6673 45.4741 96.6667 41.8063 93.9051L16.9923 75.2216C11.8239 71.3301 11.8255 63.5709 16.9956 59.6815Z" fill="url(#paint0_linear_4303_1230)"/>
+<path d="M16.9956 59.6815L53.8327 31.9692C57.2907 29.3677 62.0518 29.3642 65.5137 31.9606L90.717 50.8624C95.8984 54.7484 95.9048 62.5182 90.7298 66.4127L54.1952 93.9067C50.5268 96.6673 45.4741 96.6667 41.8063 93.9051L16.9923 75.2216C11.8239 71.3301 11.8255 63.5709 16.9956 59.6815Z" fill="url(#paint1_radial_4303_1230)"/>
+<path d="M16.9211 59.6727L20.7708 56.7522L62.1484 87.9297L54.1946 93.9107C50.5262 96.6692 45.4753 96.6676 41.8087 93.9069L16.9492 75.1891C11.7938 71.3074 11.7798 63.573 16.9211 59.6727Z" fill="url(#paint2_linear_4303_1230)" fill-opacity="0.6"/>
+<path d="M16.9211 59.6727L20.7708 56.7522L62.1484 87.9297L54.1946 93.9107C50.5262 96.6692 45.4753 96.6676 41.8087 93.9069L16.9492 75.1891C11.7938 71.3074 11.7798 63.573 16.9211 59.6727Z" fill="url(#paint3_radial_4303_1230)"/>
+<path d="M5.29615 29.5932L41.8043 2.0974C45.4729 -0.665539 50.5274 -0.665864 54.1963 2.09661L79.0079 20.7782C84.1763 24.6697 84.1747 32.429 79.0046 36.3183L42.1698 64.029C38.7106 66.6313 33.9479 66.6339 30.4859 64.0355L5.30905 45.1391C0.131502 41.2531 0.12506 33.4878 5.29615 29.5932Z" fill="url(#paint4_linear_4303_1230)"/>
+<path d="M5.29615 29.5932L41.8043 2.0974C45.4729 -0.665539 50.5274 -0.665864 54.1963 2.09661L79.0079 20.7782C84.1763 24.6697 84.1747 32.429 79.0046 36.3183L42.1698 64.029C38.7106 66.6313 33.9479 66.6339 30.4859 64.0355L5.30905 45.1391C0.131502 41.2531 0.12506 33.4878 5.29615 29.5932Z" fill="url(#paint5_radial_4303_1230)"/>
+<path d="M5.29615 29.5932L41.8043 2.0974C45.4729 -0.665539 50.5274 -0.665864 54.1963 2.09661L79.0079 20.7782C84.1763 24.6697 84.1747 32.429 79.0046 36.3183L42.1698 64.029C38.7106 66.6313 33.9479 66.6339 30.4859 64.0355L5.30905 45.1391C0.131502 41.2531 0.12506 33.4878 5.29615 29.5932Z" fill="url(#paint6_linear_4303_1230)"/>
+<path d="M33.8989 8.1284L41.798 2.136C45.4675 -0.647759 50.5391 -0.656925 54.2187 2.11355L79.0508 20.8107C84.2062 24.6924 84.2202 32.4269 79.0789 36.3272L75.2292 39.2477L33.8989 8.1284Z" fill="url(#paint7_linear_4303_1230)" fill-opacity="0.6"/>
+<path d="M33.8989 8.1284L41.798 2.136C45.4675 -0.647759 50.5391 -0.656925 54.2187 2.11355L79.0508 20.8107C84.2062 24.6924 84.2202 32.4269 79.0789 36.3272L75.2292 39.2477L33.8989 8.1284Z" fill="url(#paint8_radial_4303_1230)"/>
+<path d="M43.1557 65.6655L82.0238 49.9688C85.0498 48.7467 88.4946 49.1965 91.1054 51.1546L65.5586 31.9945C61.9035 29.2532 57.0808 28.6234 52.8444 30.3343L13.9763 46.031C10.9502 47.2531 7.50545 46.8033 4.89468 44.8452L30.4415 64.0053C34.0966 66.7466 38.9193 67.3764 43.1557 65.6655Z" fill="url(#paint9_linear_4303_1230)"/>
+</g>
+</g>
+<defs>
+<linearGradient id="paint0_linear_4303_1230" x1="45.569" y1="98.5687" x2="72.7984" y2="40.2201" gradientUnits="userSpaceOnUse">
+<stop stop-color="#6864F6"/>
+<stop offset="0.528781" stop-color="#4A43CB"/>
+<stop offset="1" stop-color="#5B2AB5"/>
+</linearGradient>
+<radialGradient id="paint1_radial_4303_1230" cx="0" cy="0" r="1" gradientTransform="matrix(5.08644 19.5482 -61.0372 19.6565 67.7072 51.7559)" gradientUnits="userSpaceOnUse">
+<stop stop-color="#312A9A"/>
+<stop offset="1" stop-color="#4A43CB" stop-opacity="0"/>
+</radialGradient>
+<linearGradient id="paint2_linear_4303_1230" x1="56.4986" y1="61.6072" x2="12.0717" y2="70.1145" gradientUnits="userSpaceOnUse">
+<stop stop-color="#A3A3FF" stop-opacity="0"/>
+<stop offset="1" stop-color="#A3A3FF"/>
+</linearGradient>
+<radialGradient id="paint3_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(23.2299 56.7522) rotate(34.6614) scale(26.4656 13.4356)">
+<stop stop-color="#4A43CB"/>
+<stop offset="1" stop-color="#6864F6" stop-opacity="0"/>
+</radialGradient>
+<linearGradient id="paint4_linear_4303_1230" x1="71.6719" y1="5.51946" x2="8.44126" y2="47.3941" gradientUnits="userSpaceOnUse">
+<stop stop-color="#AC80FF"/>
+<stop offset="0.660101" stop-color="#7B7BFF"/>
+<stop offset="1" stop-color="#5750E2"/>
+</linearGradient>
+<radialGradient id="paint5_radial_4303_1230" cx="0" cy="0" r="1" gradientTransform="matrix(-3.23682 -14.4039 45.1794 -12.5656 31.0675 42.1862)" gradientUnits="userSpaceOnUse">
+<stop stop-color="#1B44B1"/>
+<stop offset="1" stop-color="#7B7BFF" stop-opacity="0"/>
+</radialGradient>
+<linearGradient id="paint6_linear_4303_1230" x1="22.2818" y1="19.0371" x2="7.40873" y2="49.2411" gradientUnits="userSpaceOnUse">
+<stop stop-color="#7B7BFF" stop-opacity="0"/>
+<stop offset="1" stop-color="#2052CB"/>
+</linearGradient>
+<linearGradient id="paint7_linear_4303_1230" x1="39.1689" y1="31.9892" x2="81.7199" y2="18.3849" gradientUnits="userSpaceOnUse">
+<stop stop-color="#BABAFF" stop-opacity="0"/>
+<stop offset="1" stop-color="#BABAFF"/>
+</linearGradient>
+<radialGradient id="paint8_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(65.6886 42.812) rotate(-125.652) scale(24.9712 18.783)">
+<stop stop-color="#5750E2"/>
+<stop offset="1" stop-color="#8F8FFF" stop-opacity="0"/>
+</radialGradient>
+<linearGradient id="paint9_linear_4303_1230" x1="21" y1="69.4999" x2="70.7221" y2="29.6433" gradientUnits="userSpaceOnUse">
+<stop stop-color="#58AAFE"/>
+<stop offset="0.28329" stop-color="#8F8FFF"/>
+<stop offset="0.671554" stop-color="#A3A3FF"/>
+<stop offset="1" stop-color="#CEB0FF"/>
+</linearGradient>
+<clipPath id="clip0_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip1_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/site/assets/brand/power-platform.svg b/site/assets/brand/power-platform.svg
new file mode 100644
index 000000000..e1f80767f
--- /dev/null
+++ b/site/assets/brand/power-platform.svg
@@ -0,0 +1,48 @@
+<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_4303_1230)">
+<g clip-path="url(#clip1_4303_1230)">
+<path d="M38.1026 71.6921L31.6529 91.0414C30.1188 95.6436 24.4821 97.328 20.6746 94.322L4.89891 81.8676C1.95908 79.5466 0.78931 75.6321 1.97376 72.0787C3.18381 68.4486 6.58102 66 10.4075 66H46C42.4169 66 39.2357 68.2928 38.1026 71.6921Z" fill="url(#paint0_linear_4303_1230)"/>
+<path d="M38.1026 71.6921L31.6529 91.0414C30.1188 95.6436 24.4821 97.328 20.6746 94.322L4.89891 81.8676C1.95908 79.5466 0.78931 75.6321 1.97376 72.0787C3.18381 68.4486 6.58102 66 10.4075 66H46C42.4169 66 39.2357 68.2928 38.1026 71.6921Z" fill="url(#paint1_radial_4303_1230)"/>
+<path d="M24.3245 30H60.8335C74.7805 30 89.1466 40.0237 85.2858 51.5882L95.406 21.2744C98.1908 13.1151 89.4514 0 69.8184 0H30.3245C27.7419 0 25.4491 1.65259 24.6324 4.10265L18.6324 22.1026C17.3374 25.9878 20.2292 30 24.3245 30Z" fill="url(#paint2_linear_4303_1230)"/>
+<path d="M24.3245 30H60.8335C74.7805 30 89.1466 40.0237 85.2858 51.5882L95.406 21.2744C98.1908 13.1151 89.4514 0 69.8184 0H30.3245C27.7419 0 25.4491 1.65259 24.6324 4.10265L18.6324 22.1026C17.3374 25.9878 20.2292 30 24.3245 30Z" fill="url(#paint3_linear_4303_1230)"/>
+<path d="M59.8325 65.9999L11.2076 65.9999C6.9044 65.9999 3.08387 68.7528 1.72181 72.8344L11.7208 42.8376C13.0819 38.7542 16.9033 35.9999 21.2076 35.9999L69.8147 35.9999C83.2662 35.9999 92.6205 29.6694 95.5007 21.0261L85.2939 51.6972C82.952 58.6938 74.4997 65.9999 59.8325 65.9999Z" fill="url(#paint4_linear_4303_1230)"/>
+<path d="M59.8325 65.9999L11.2076 65.9999C6.9044 65.9999 3.08387 68.7528 1.72181 72.8344L11.7208 42.8376C13.0819 38.7542 16.9033 35.9999 21.2076 35.9999L69.8147 35.9999C83.2662 35.9999 92.6205 29.6694 95.5007 21.0261L85.2939 51.6972C82.952 58.6938 74.4997 65.9999 59.8325 65.9999Z" fill="url(#paint5_linear_4303_1230)"/>
+</g>
+</g>
+<defs>
+<linearGradient id="paint0_linear_4303_1230" x1="3.99902" y1="70" x2="15.999" y2="105.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#309C61"/>
+<stop offset="1" stop-color="#1EC8B0"/>
+</linearGradient>
+<radialGradient id="paint1_radial_4303_1230" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(25.4991 102) rotate(-90) scale(44 55.1631)">
+<stop offset="0.615451" stop-color="#1E794A" stop-opacity="0"/>
+<stop offset="1" stop-color="#1E794A"/>
+</radialGradient>
+<linearGradient id="paint2_linear_4303_1230" x1="30" y1="12.5" x2="90.4155" y2="29.1851" gradientUnits="userSpaceOnUse">
+<stop stop-color="#20AC9D"/>
+<stop offset="0.568447" stop-color="#1A7F7C"/>
+<stop offset="1" stop-color="#024169"/>
+</linearGradient>
+<linearGradient id="paint3_linear_4303_1230" x1="60" y1="1.00002" x2="75.5" y2="42.5" gradientUnits="userSpaceOnUse">
+<stop stop-color="#1A7F7C" stop-opacity="0"/>
+<stop offset="0.588659" stop-color="#004695" stop-opacity="0.6"/>
+<stop offset="1" stop-color="#003580"/>
+</linearGradient>
+<linearGradient id="paint4_linear_4303_1230" x1="16" y1="40.9999" x2="74" y2="65.4999" gradientUnits="userSpaceOnUse">
+<stop stop-color="#76EB95"/>
+<stop offset="0.179334" stop-color="#52D17C"/>
+<stop offset="0.713946" stop-color="#22918B"/>
+<stop offset="1" stop-color="#0C74A1"/>
+</linearGradient>
+<linearGradient id="paint5_linear_4303_1230" x1="21" y1="53.4999" x2="11.5" y2="49.4999" gradientUnits="userSpaceOnUse">
+<stop stop-color="#52D17C" stop-opacity="0"/>
+<stop offset="1" stop-color="#B0F098"/>
+</linearGradient>
+<clipPath id="clip0_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+<clipPath id="clip1_4303_1230">
+<rect width="96" height="96" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/site/assets/fonts/OFL-jetbrains-mono.txt b/site/assets/fonts/OFL-jetbrains-mono.txt
new file mode 100644
index 000000000..821a3dac2
--- /dev/null
+++ b/site/assets/fonts/OFL-jetbrains-mono.txt
@@ -0,0 +1,93 @@
+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/site/assets/fonts/OFL-public-sans.txt b/site/assets/fonts/OFL-public-sans.txt
new file mode 100644
index 000000000..9eef1e990
--- /dev/null
+++ b/site/assets/fonts/OFL-public-sans.txt
@@ -0,0 +1,93 @@
+Copyright 2015 The Public Sans Project Authors (https://github.com/uswds/public-sans)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/site/assets/fonts/OFL-schibsted-grotesk.txt b/site/assets/fonts/OFL-schibsted-grotesk.txt
new file mode 100644
index 000000000..ba41e1147
--- /dev/null
+++ b/site/assets/fonts/OFL-schibsted-grotesk.txt
@@ -0,0 +1,93 @@
+Copyright 2023 The Schibsted-Grotesk Project Authors (https://github.com/schibsted/schibsted-grotesk)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/site/assets/fonts/jetbrains-mono-latin.woff2 b/site/assets/fonts/jetbrains-mono-latin.woff2
new file mode 100644
index 000000000..2ca6ac605
Binary files /dev/null and b/site/assets/fonts/jetbrains-mono-latin.woff2 differ
diff --git a/site/assets/fonts/public-sans-latin.woff2 b/site/assets/fonts/public-sans-latin.woff2
new file mode 100644
index 000000000..6631ea40d
Binary files /dev/null and b/site/assets/fonts/public-sans-latin.woff2 differ
diff --git a/site/assets/fonts/schibsted-grotesk-latin.woff2 b/site/assets/fonts/schibsted-grotesk-latin.woff2
new file mode 100644
index 000000000..dbca3fdc0
Binary files /dev/null and b/site/assets/fonts/schibsted-grotesk-latin.woff2 differ
diff --git a/site/assets/launcher.js b/site/assets/launcher.js
new file mode 100644
index 000000000..e635bd807
--- /dev/null
+++ b/site/assets/launcher.js
@@ -0,0 +1,60 @@
+(function () {
+ 'use strict';
+
+ // Opens Claude Code with a plugin install command pre-filled, for links that cannot use the
+ // claude-cli: scheme directly. GitHub strips custom schemes from Markdown, so README buttons
+ // point here instead, the same way VS Code links go through vscode.dev/redirect.
+ //
+ // Expected URL: install/?app=claude-code&plugin=<marketplace plugin name>
+ // The page only builds links for plugin names in its build-time allowlist, and only from the
+ // fixed templates in install-links.js. Anything else shows the "not valid" state, so a crafted
+ // link cannot use this page to pre-fill an arbitrary prompt.
+
+ const links = window.PowerPlatformSkillsInstallLinks;
+ const data = JSON.parse(document.getElementById('page-data').textContent);
+ const params = new URLSearchParams(window.location.search);
+ const app = params.get('app');
+ const plugin = params.get('plugin');
+ const ready = document.querySelector('[data-launcher-state="ready"]');
+ const invalid = document.querySelector('[data-launcher-state="invalid"]');
+
+ // Duplicate parameters are ambiguous, because URLSearchParams.get reads only the first.
+ const valid = params.getAll('app').length === 1
+ && params.getAll('plugin').length === 1
+ && links.LAUNCHER_APPS.indexOf(app) !== -1
+ && Object.prototype.hasOwnProperty.call(data.plugins, plugin)
+ && links.isValidPluginName(plugin);
+
+ if (!valid) {
+ invalid.hidden = false;
+ return;
+ }
+
+ const title = data.plugins[plugin];
+ const deepLink = links.claudeCodeDeepLink(plugin);
+ const shellCommand = links.claudeCodeShellCommand(plugin);
+
+ ready.querySelector('[data-launcher-plugin]').textContent = title;
+ ready.querySelector('[data-launcher-prompt]').textContent = links.claudeCodePrompt(plugin);
+ ready.querySelector('[data-launcher-shell]').textContent = shellCommand;
+ ready.querySelector('[data-launcher-copy]').dataset.copy = shellCommand;
+ ready.querySelector('[data-launcher-open]').href = deepLink;
+ ready.hidden = false;
+ document.title = `Install ${title} in Claude Code | Power Platform Skills`;
+
+ // Claude Code runs on desktop computers. Phones and tablets have no handler, and mobile Chrome
+ // refuses to open an app link without a tap anyway, so say where to open the page instead.
+ const touchOnly = typeof window.matchMedia === 'function' && window.matchMedia('(hover: none) and (pointer: coarse)').matches;
+ if (touchOnly) {
+ ready.querySelector('[data-launcher-touch]').hidden = false;
+ ready.querySelector('[data-launcher-desktop]').hidden = true;
+ return;
+ }
+
+ // Try once on load, like vscode.dev/redirect does. The browser asks before it opens another
+ // app, and if the person dismisses that prompt or has no handler, the button and the
+ // fallback steps stay on screen. The short delay lets the page paint behind the prompt.
+ window.setTimeout(() => {
+ window.location.href = deepLink;
+ }, 400);
+}());
diff --git a/site/assets/site.js b/site/assets/site.js
new file mode 100644
index 000000000..e3f06d399
--- /dev/null
+++ b/site/assets/site.js
@@ -0,0 +1,386 @@
+(function () {
+ 'use strict';
+
+ const root = document.documentElement;
+ const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+ const announcer = document.getElementById('announcer');
+
+ function announce(message) {
+ if (!announcer) return;
+ // Clearing first makes screen readers repeat a message that is identical to the last one.
+ announcer.textContent = '';
+ window.setTimeout(() => {
+ announcer.textContent = message;
+ }, 50);
+ }
+
+ // Storage can be blocked in private windows. Every choice then lasts only for the page.
+ function readStored(key) {
+ try {
+ return window.localStorage.getItem(key);
+ } catch {
+ return null;
+ }
+ }
+
+ function writeStored(key, value) {
+ try {
+ if (value === null) window.localStorage.removeItem(key);
+ else window.localStorage.setItem(key, value);
+ } catch {
+ // Nothing to do; the choice resets on the next page.
+ }
+ }
+
+ // ── Color theme ─────────────────────────────────────────────
+ // theme.js already applied the saved theme before paint. "system" removes data-theme so the
+ // stylesheet follows prefers-color-scheme again.
+ const THEME_KEY = 'power-platform-skills.theme';
+ const THEME_COLORS = { light: '#f4f7f7', dark: '#08161f' };
+ const themeSwitch = document.querySelector('[data-theme-switch]');
+
+ function applyTheme(choice) {
+ if (choice === 'light' || choice === 'dark') root.setAttribute('data-theme', choice);
+ else root.removeAttribute('data-theme');
+ // The browser chrome color follows the same choice. Each meta keeps its own media query,
+ // so pinning a theme means giving both the chosen theme's color.
+ document.querySelectorAll('meta[data-theme-color]').forEach((meta) => {
+ meta.setAttribute('content', THEME_COLORS[choice in THEME_COLORS ? choice : meta.dataset.themeColor]);
+ });
+ if (themeSwitch) {
+ themeSwitch.querySelectorAll('[data-theme-choice]').forEach((button) => {
+ button.setAttribute('aria-pressed', String(button.dataset.themeChoice === choice));
+ });
+ }
+ }
+
+ if (themeSwitch) {
+ themeSwitch.hidden = false;
+ applyTheme(root.getAttribute('data-theme') || 'system');
+ themeSwitch.addEventListener('click', (event) => {
+ const button = event.target.closest('[data-theme-choice]');
+ if (!button) return;
+ const choice = button.dataset.themeChoice;
+ applyTheme(choice);
+ writeStored(THEME_KEY, choice === 'system' ? null : choice);
+ announce(choice === 'system' ? 'Theme matches your system' : `${choice === 'light' ? 'Light' : 'Dark'} theme`);
+ });
+ }
+
+ // ── Mobile menu ─────────────────────────────────────────────
+ const header = document.querySelector('.site-header');
+ const menuButton = document.querySelector('[data-menu-button]');
+ const nav = document.getElementById('site-nav');
+
+ function setMenu(open, { returnFocus = false } = {}) {
+ if (!header || !menuButton) return;
+ menuButton.setAttribute('aria-expanded', String(open));
+ if (open) {
+ header.setAttribute('data-menu-open', '');
+ const first = nav && nav.querySelector('a');
+ if (first) first.focus();
+ } else {
+ header.removeAttribute('data-menu-open');
+ if (returnFocus) menuButton.focus();
+ }
+ }
+
+ if (menuButton && nav) {
+ menuButton.addEventListener('click', () => {
+ setMenu(menuButton.getAttribute('aria-expanded') !== 'true');
+ });
+ nav.addEventListener('click', (event) => {
+ if (event.target.closest('a')) setMenu(false);
+ });
+ document.addEventListener('keydown', (event) => {
+ if (event.key === 'Escape' && menuButton.getAttribute('aria-expanded') === 'true') {
+ setMenu(false, { returnFocus: true });
+ }
+ });
+ // The desktop layout shows the links inline, so an open menu state must not linger.
+ window.matchMedia('(min-width: 64rem)').addEventListener('change', (event) => {
+ if (event.matches) setMenu(false);
+ });
+ }
+
+ // ── Copy buttons ────────────────────────────────────────────
+ const COPIED_MS = 2000;
+
+ // The Clipboard API needs a secure context, which a file:// preview is not, so fall back to
+ // a temporary textarea and execCommand there.
+ async function copyText(text) {
+ if (navigator.clipboard && window.isSecureContext) {
+ await navigator.clipboard.writeText(text);
+ return;
+ }
+ const area = document.createElement('textarea');
+ area.value = text;
+ area.setAttribute('readonly', '');
+ area.style.position = 'fixed';
+ area.style.opacity = '0';
+ document.body.appendChild(area);
+ area.select();
+ const copied = document.execCommand('copy');
+ area.remove();
+ if (!copied) throw new Error('Copy failed');
+ }
+
+ document.querySelectorAll('.copy-button[hidden]').forEach((button) => {
+ button.hidden = false;
+ });
+
+ document.addEventListener('click', async (event) => {
+ const trigger = event.target.closest('[data-copy]');
+ if (!trigger) return;
+ event.preventDefault();
+ // Buttons with hidden context text keep their visible label in [data-button-label], so
+ // only that part changes to "Copied".
+ const labelEl = trigger.querySelector('[data-button-label]') || trigger;
+ const label = trigger.dataset.label || labelEl.textContent;
+ try {
+ await copyText(trigger.dataset.copy);
+ } catch {
+ // A link with data-copy also points at the plugin page, where the text can be selected.
+ if (trigger.tagName === 'A') {
+ window.location.href = trigger.href;
+ return;
+ }
+ announce('Copy failed. Select the text and copy it instead.');
+ return;
+ }
+ labelEl.textContent = 'Copied';
+ trigger.setAttribute('data-copied', '');
+ announce('Copied to the clipboard');
+ window.setTimeout(() => {
+ labelEl.textContent = label;
+ trigger.removeAttribute('data-copied');
+ }, COPIED_MS);
+ });
+
+ // ── Assistant choice ────────────────────────────────────────
+ // styles.css shows the matching install options with :has(), so this only remembers the
+ // choice between pages.
+ const ASSISTANT_KEY = 'power-platform-skills.assistant';
+ const savedAssistant = readStored(ASSISTANT_KEY);
+ document.querySelectorAll('[data-assistant-picker]').forEach((picker) => {
+ if (savedAssistant) {
+ picker.querySelectorAll('input[type="radio"]').forEach((input) => {
+ if (input.value === savedAssistant) input.checked = true;
+ });
+ }
+ picker.addEventListener('change', (event) => {
+ if (event.target.matches('input[type="radio"]')) writeStored(ASSISTANT_KEY, event.target.value);
+ });
+ });
+
+ // ── Install everything: pick the visitor's computer ─────────
+ // Preselects the computer the browser reports, so most visitors see one command and two
+ // steps. They can still pick another; styles.css swaps the steps with :has().
+ const osPicker = document.querySelector('[data-os-picker]');
+ const osHint = document.querySelector('[data-os-hint]');
+ const installLinks = window.PowerPlatformSkillsInstallLinks;
+ if (osPicker && osHint && installLinks) {
+ const detected = installLinks.detectOs(window.navigator);
+ const input = detected && osPicker.querySelector(`input[value="${detected}"]`);
+ if (input) {
+ input.checked = true;
+ osHint.textContent = `Showing the steps for ${input.parentElement.textContent.trim()}, based on your browser. On a different computer? Pick it above.`;
+ } else {
+ osHint.textContent = 'Run this on the computer where you use your AI assistant. Pick its system above.';
+ }
+ osHint.hidden = false;
+ // Once the visitor picks a system themselves, the hint must stop crediting the browser.
+ osPicker.addEventListener('change', (event) => {
+ if (!event.target.matches('input[type="radio"]')) return;
+ osHint.textContent = `Showing the steps for ${event.target.parentElement.textContent.trim()}.`;
+ });
+ }
+
+ // ── Explainer video ─────────────────────────────────────────
+ // Until the video first plays, one large play button sits over the poster in place of the
+ // native controls. Desktop Chrome shows a paused video as a thin control bar that is easy to
+ // miss, and on a phone that bar covers the poster's labels. Without JavaScript the native
+ // controls stay, so the video always plays. Focus moves to the video so the keyboard can
+ // pause it right away.
+ //
+ // The film's text is sized for a desktop embed and is too small to read at phone width, so
+ // on a touch screen with a narrow player the button also asks for full screen. iPhone Safari
+ // already plays full screen (the video has no playsinline) and has no requestFullscreen on a
+ // video, which the check skips; Android Chrome and iPadOS would otherwise play inline.
+ const READABLE_WIDTH = 560;
+ const wantsFullscreen = (video) => typeof video.requestFullscreen === 'function'
+ && window.matchMedia('(pointer: coarse)').matches
+ && video.getBoundingClientRect().width < READABLE_WIDTH;
+ for (const player of document.querySelectorAll('[data-explainer]')) {
+ const video = player.querySelector('video');
+ const button = player.querySelector('[data-explainer-play]');
+ if (!video || !button) continue;
+ const reveal = () => {
+ button.hidden = true;
+ video.controls = true;
+ };
+ video.controls = false;
+ button.hidden = false;
+ video.addEventListener('play', reveal, { once: true });
+ button.addEventListener('click', () => {
+ const fullscreen = wantsFullscreen(video);
+ reveal();
+ video.focus();
+ // A rejected play (for example, a failed download) leaves the native controls showing,
+ // which is the right fallback.
+ video.play().catch(() => {});
+ // play() needs only the page's earlier interaction, while requestFullscreen() uses up the
+ // click's activation, so it comes second. A refusal just leaves the film playing inline.
+ if (fullscreen) video.requestFullscreen().catch(() => {});
+ });
+ }
+
+ // ── Hero session (the signature moment) ─────────────────────
+ // The server renders the first example finished. With motion allowed, this replays it: the
+ // request types in, the plugin answers, and each step lands in order, ending on the point
+ // where the assistant waits for approval. The whole run takes about four seconds and then
+ // stops, so it needs no pause control (WCAG 2.2.2).
+ const session = document.querySelector('[data-session]');
+ const pageData = document.getElementById('page-data');
+ if (!session || !pageData) return;
+
+ const scenarios = JSON.parse(pageData.textContent).scenarios || [];
+ const promptEl = session.querySelector('[data-session-prompt]');
+ const replyEl = session.querySelector('[data-session-reply]');
+ const iconEl = session.querySelector('[data-session-icon]');
+ const productEl = session.querySelector('[data-session-product]');
+ const pluginEl = session.querySelector('[data-session-plugin]');
+ const stepsEl = session.querySelector('[data-session-steps]');
+ const linkEl = session.querySelector('[data-session-link]');
+ const barEl = session.querySelector('.session-bar');
+ const tabList = document.querySelector('[data-scenario-tabs]');
+ const tabs = tabList ? Array.from(tabList.querySelectorAll('[role="tab"]')) : [];
+ const panel = document.getElementById('session-panel');
+ const doneIcon = document.getElementById('icon-done');
+ const waitingIcon = document.getElementById('icon-waiting');
+
+ let run = 0;
+ const wait = (ms) => new Promise((resolve) => { window.setTimeout(resolve, ms); });
+
+ function stepItem(text, state) {
+ const item = document.createElement('li');
+ item.className = `step is-${state}`;
+ item.appendChild((state === 'waiting' ? waitingIcon : doneIcon).content.cloneNode(true));
+ const label = document.createElement('span');
+ label.className = 'step-text';
+ label.textContent = text;
+ item.appendChild(label);
+ if (state === 'waiting') {
+ const badge = document.createElement('span');
+ badge.className = 'step-badge';
+ badge.textContent = 'Your turn';
+ item.appendChild(badge);
+ }
+ return item;
+ }
+
+ function setProgress(value) {
+ if (barEl) barEl.style.setProperty('--progress', String(value));
+ }
+
+ async function play(index, animate) {
+ const scenario = scenarios[index];
+ if (!scenario) return;
+ run += 1;
+ const current = run;
+ const stale = () => current !== run;
+
+ tabs.forEach((tab, tabIndex) => {
+ const selected = tabIndex === index;
+ tab.setAttribute('aria-selected', String(selected));
+ tab.tabIndex = selected ? 0 : -1;
+ });
+ if (panel && tabs[index]) panel.setAttribute('aria-labelledby', tabs[index].id);
+ iconEl.src = scenario.icon;
+ productEl.textContent = scenario.product;
+ pluginEl.textContent = `${scenario.title} plugin`;
+ linkEl.href = scenario.href;
+ linkEl.textContent = `See the ${scenario.title} plugin`;
+
+ const states = scenario.steps.map((text) => [text, 'done']);
+ if (scenario.waiting) states.push([scenario.waiting, 'waiting']);
+
+ if (!animate || reduceMotion) {
+ promptEl.textContent = scenario.prompt;
+ stepsEl.replaceChildren(...states.map(([text, state]) => stepItem(text, state)));
+ replyEl.removeAttribute('data-pending');
+ session.removeAttribute('data-typing');
+ setProgress(1);
+ return;
+ }
+
+ // Every step is in place from the start, invisible, so the window keeps its final height
+ // while the steps reveal. Appending them one by one would collapse the window and shift
+ // the tabs under the pointer and the page below it.
+ const items = states.map(([text, state]) => {
+ const item = stepItem(text, state);
+ item.setAttribute('data-entering', '');
+ return item;
+ });
+ stepsEl.replaceChildren(...items);
+ replyEl.setAttribute('data-pending', '');
+ // Reserve the finished prompt's height too, so retyping it does not shrink the box.
+ const promptBox = promptEl.parentElement;
+ promptBox.style.minHeight = '';
+ promptEl.textContent = scenario.prompt;
+ promptBox.style.minHeight = `${promptBox.offsetHeight}px`;
+ promptEl.textContent = '';
+ setProgress(0);
+ session.setAttribute('data-typing', '');
+
+ const perChar = Math.min(38, Math.max(14, 1100 / scenario.prompt.length));
+ for (let shown = 1; shown <= scenario.prompt.length; shown += 1) {
+ promptEl.textContent = scenario.prompt.slice(0, shown);
+ await wait(perChar);
+ if (stale()) return;
+ }
+ session.removeAttribute('data-typing');
+ // The full prompt now holds the height itself; dropping the reservation lets a later
+ // resize reflow the box naturally.
+ promptBox.style.minHeight = '';
+ await wait(220);
+ if (stale()) return;
+ replyEl.removeAttribute('data-pending');
+
+ for (const [position, item] of items.entries()) {
+ await wait(position === 0 ? 260 : 460);
+ if (stale()) return;
+ item.removeAttribute('data-entering');
+ setProgress((position + 1) / items.length);
+ }
+ }
+
+ if (tabList && tabs.length > 1) {
+ tabList.hidden = false;
+ panel.setAttribute('role', 'tabpanel');
+ panel.setAttribute('aria-labelledby', tabs[0].id);
+ tabList.addEventListener('click', (event) => {
+ const tab = event.target.closest('[role="tab"]');
+ if (tab) play(Number(tab.dataset.scenario), true);
+ });
+ // Arrow keys move between tabs and select them, per the ARIA tabs pattern.
+ // https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
+ tabList.addEventListener('keydown', (event) => {
+ const currentIndex = tabs.indexOf(document.activeElement);
+ if (currentIndex === -1) return;
+ const last = tabs.length - 1;
+ const next = {
+ ArrowRight: currentIndex === last ? 0 : currentIndex + 1,
+ ArrowLeft: currentIndex === 0 ? last : currentIndex - 1,
+ Home: 0,
+ End: last,
+ }[event.key];
+ if (next === undefined) return;
+ event.preventDefault();
+ tabs[next].focus();
+ play(next, true);
+ });
+ }
+
+ play(0, true);
+}());
diff --git a/site/assets/styles.css b/site/assets/styles.css
new file mode 100644
index 000000000..02964cfec
--- /dev/null
+++ b/site/assets/styles.css
@@ -0,0 +1,2303 @@
+/*
+ * Power Platform Skills showcase site.
+ *
+ * Design thesis: official and calm. The Power Platform ribbon's teal-to-green is the one signal
+ * for "your assistant is working", on navy ink and cool paper. Schibsted Grotesk headlines,
+ * Public Sans text, JetBrains Mono for anything you type, and 10px corners that echo the soft
+ * folds of the logo. Palette values come from the official Power Platform icon's gradient stops.
+ *
+ * Theme: every color token uses light-dark(), so the page follows the system theme by default.
+ * theme.js sets data-theme="light" or "dark" on <html> when a visitor picks one, which pins
+ * color-scheme and with it every light-dark() value.
+ *
+ * Components use tokens only; raw colors, font names, and shadows live in :root.
+ */
+
+@font-face {
+ font-family: "Schibsted Grotesk";
+ src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
+ font-weight: 500 800;
+ font-style: normal;
+ font-display: swap;
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+@font-face {
+ font-family: "Public Sans";
+ src: url("fonts/public-sans-latin.woff2") format("woff2");
+ font-weight: 400 700;
+ font-style: normal;
+ font-display: swap;
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+@font-face {
+ font-family: "JetBrains Mono";
+ src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
+ font-weight: 400 600;
+ font-style: normal;
+ font-display: swap;
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+:root {
+ color-scheme: light dark;
+
+ /* Color roles. Neutrals carry the page; primary is for actions only. */
+ --color-bg: light-dark(#f4f7f7, #08161f);
+ --color-surface: light-dark(#ffffff, #0e212b);
+ --color-surface-strong: light-dark(#e5eeed, #0f2a35);
+ --color-sunken: light-dark(#edf2f2, #061219);
+ --color-text: light-dark(#0b1d2a, #e7f1f1);
+ --color-text-muted: light-dark(#475a65, #a6bac0);
+ --color-border: light-dark(#d3dede, #213c48);
+ --color-border-strong: light-dark(#768b92, #5f7f89);
+ --color-primary: light-dark(#0d6b67, #45d3bd);
+ --color-primary-strong: light-dark(#095450, #7be3d2);
+ --color-on-primary: light-dark(#ffffff, #04211e);
+ --color-primary-wash: light-dark(#ddf1ee, #0f3337);
+ --color-accent: light-dark(#52d17c, #76eb95);
+ --color-accent-text: light-dark(#1b6a3f, #8ff0aa);
+ --color-link: light-dark(#0a5d85, #86caef);
+ --color-focus: light-dark(#0a6aa3, #7cc8f2);
+ --color-success: light-dark(#1b6a3f, #8ff0aa);
+
+ /* Fixed ink for the inverted install band and the button on the brand band. */
+ --color-ink: #071a28;
+ --color-ink-raised: #0f2c3f;
+ --color-on-ink: #e7f3f2;
+ --color-on-ink-muted: #a9c1c6;
+ --color-ink-link: #86caef;
+ --band-bg: light-dark(#071a28, #0b2530);
+
+ /* The ribbon gradient from the Power Platform icon, kept light enough for ink text on it. */
+ --brand-gradient: linear-gradient(110deg, #b0f098 0%, #52d17c 34%, #20ac9d 70%, #1a7f7c 100%);
+ --brand-band: linear-gradient(110deg, #c6f6ab 0%, #74dd92 45%, #34bfaa 100%);
+
+ /* Type */
+ --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
+ --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
+ --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
+ --text-xs: 0.8125rem;
+ --text-sm: 0.9375rem;
+ --text-base: 1.0625rem;
+ --text-lg: clamp(1.125rem, 0.95rem + 0.6vw, 1.3125rem);
+ --text-h3: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
+ --text-h2: clamp(2rem, 1.4rem + 2vw, 3rem);
+ --text-hero: clamp(3.1875rem, 2.1rem + 2.8vw, 4.25rem);
+
+ /* Space: 4px base; sections breathe more than components. */
+ --space-1: 0.25rem;
+ --space-2: 0.5rem;
+ --space-3: 0.75rem;
+ --space-4: 1rem;
+ --space-6: 1.5rem;
+ --space-8: 2rem;
+ --space-12: 3rem;
+ --space-16: 4rem;
+ --section-space: clamp(4rem, 2.5rem + 5vw, 7.5rem);
+
+ /* Shape and elevation: one corner language, navy-tinted shadows. */
+ --radius-sm: 6px;
+ --radius-md: 10px;
+ --radius-lg: 16px;
+ --radius-pill: 999px;
+ --shadow-sm: 0 1px 2px rgb(7 26 40 / 0.07), 0 1px 1px rgb(7 26 40 / 0.04);
+ --shadow-md: 0 10px 28px -12px rgb(7 26 40 / 0.22);
+ --shadow-lg: 0 30px 70px -28px rgb(7 40 60 / 0.38), 0 8px 20px -12px rgb(7 26 40 / 0.18);
+
+ /* Layout */
+ --container: 76rem;
+ --measure: 68ch;
+ --gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
+ --header-height: 4rem;
+
+ /* Motion */
+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
+ --duration-fast: 150ms;
+ --duration-base: 250ms;
+ --duration-slow: 600ms;
+}
+
+:root[data-theme="light"] {
+ color-scheme: light;
+}
+
+:root[data-theme="dark"] {
+ color-scheme: dark;
+}
+
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+}
+
+html {
+ -webkit-text-size-adjust: 100%;
+ text-size-adjust: 100%;
+ /* The sticky header must not cover a focused element or an anchor target (WCAG 2.4.11). */
+ scroll-padding-top: calc(var(--header-height) + var(--space-4));
+ scroll-behavior: smooth;
+}
+
+body {
+ margin: 0;
+ background: var(--color-bg);
+ color: var(--color-text);
+ font-family: var(--font-body);
+ font-size: var(--text-base);
+ line-height: 1.6;
+ font-synthesis: none;
+}
+
+h1,
+h2,
+h3,
+h4 {
+ font-family: var(--font-display);
+ font-weight: 700;
+ line-height: 1.1;
+ letter-spacing: -0.02em;
+ margin: 0 0 0.5em;
+ text-wrap: balance;
+}
+
+h1 {
+ font-size: var(--text-hero);
+ font-weight: 800;
+ line-height: 1.02;
+ letter-spacing: -0.035em;
+}
+
+h2 {
+ font-size: var(--text-h2);
+ letter-spacing: -0.03em;
+}
+
+h3,
+h4 {
+ font-size: var(--text-h3);
+ letter-spacing: -0.015em;
+}
+
+p {
+ margin: 0 0 1em;
+ text-wrap: pretty;
+}
+
+a {
+ color: var(--color-link);
+ text-underline-offset: 0.2em;
+ text-decoration-thickness: 1px;
+}
+
+a:hover {
+ text-decoration-thickness: 2px;
+}
+
+img {
+ max-width: 100%;
+}
+
+code {
+ font-family: var(--font-mono);
+ font-size: 0.875em;
+ background: var(--color-sunken);
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-sm);
+ padding: 0.05em 0.35em;
+}
+
+/* Inline code holds short flags and commands, such as --include-dataverse, that must not split at a hyphen. */
+:not(pre) > code {
+ white-space: nowrap;
+}
+
+:focus-visible {
+ outline: 3px solid var(--color-focus);
+ outline-offset: 3px;
+ border-radius: 4px;
+}
+
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0 0 0 0);
+ white-space: nowrap;
+ border: 0;
+}
+
+.skip-link {
+ position: absolute;
+ left: var(--space-4);
+ top: -5rem;
+ z-index: 30;
+ padding: var(--space-2) var(--space-4);
+ background: var(--color-surface);
+ color: var(--color-text);
+ border: 2px solid var(--color-focus);
+ border-radius: var(--radius-md);
+}
+
+.skip-link:focus {
+ top: var(--space-4);
+}
+
+.wrap {
+ max-width: var(--container);
+ margin-inline: auto;
+ padding-inline: var(--gutter);
+}
+
+.lede {
+ font-size: var(--text-lg);
+ line-height: 1.5;
+ color: var(--color-text-muted);
+ max-width: 40em;
+}
+
+.fine-print {
+ font-size: var(--text-sm);
+ color: var(--color-text-muted);
+}
+
+.icon {
+ flex: none;
+ width: 1.25rem;
+ height: 1.25rem;
+}
+
+.section-head {
+ max-width: 44rem;
+ margin-bottom: var(--space-8);
+}
+
+.section-head p {
+ font-size: var(--text-lg);
+ color: var(--color-text-muted);
+ margin: 0;
+}
+
+/* ── Buttons ──────────────────────────────────────────────── */
+
+.button {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: var(--space-2);
+ min-height: 2.75rem;
+ padding: 0.625rem 1.125rem;
+ border: 1.5px solid transparent;
+ border-radius: var(--radius-md);
+ font: inherit;
+ font-weight: 600;
+ line-height: 1.2;
+ text-align: center;
+ text-decoration: none;
+ cursor: pointer;
+ transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
+}
+
+.button:hover {
+ text-decoration: none;
+}
+
+.button:active {
+ transform: scale(0.98);
+}
+
+.button-primary {
+ background: var(--color-primary);
+ color: var(--color-on-primary);
+}
+
+.button-primary:hover {
+ background: var(--color-primary-strong);
+}
+
+.button-secondary {
+ background: var(--color-surface);
+ border-color: var(--color-border-strong);
+ color: var(--color-text);
+}
+
+.button-secondary:hover {
+ border-color: var(--color-text);
+}
+
+.button-ink {
+ background: var(--color-ink);
+ color: var(--color-on-ink);
+}
+
+.button-ink:hover {
+ background: var(--color-ink-raised);
+}
+
+.button-small {
+ min-height: 2.5rem;
+ padding: 0.4rem 0.9rem;
+ font-size: var(--text-sm);
+}
+
+.button-large {
+ min-height: 3.25rem;
+ padding: 0.8rem 1.5rem;
+}
+
+.button-block {
+ display: flex;
+ width: 100%;
+}
+
+.text-link {
+ font-weight: 600;
+}
+
+.copy-button {
+ font: inherit;
+ font-size: var(--text-sm);
+ font-weight: 600;
+ min-height: 2.25rem;
+ padding: 0.3rem 0.8rem;
+ border: 1.5px solid var(--color-border-strong);
+ border-radius: var(--radius-sm);
+ background: var(--color-surface);
+ color: var(--color-text);
+ cursor: pointer;
+ transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
+}
+
+.copy-button:hover {
+ border-color: var(--color-text);
+}
+
+.copy-button[data-copied] {
+ border-color: var(--color-success);
+ color: var(--color-success);
+}
+
+.plugin-actions .button[data-copied] {
+ background: var(--color-success);
+ color: var(--color-on-primary);
+}
+
+.badge {
+ display: inline-flex;
+ align-items: center;
+ padding: 0.05rem 0.55rem;
+ border-radius: var(--radius-pill);
+ border: 1px solid var(--color-border-strong);
+ font-size: var(--text-xs);
+ font-weight: 600;
+ line-height: 1.5;
+ color: var(--color-text);
+ background: var(--color-surface);
+}
+
+/* ── Header ───────────────────────────────────────────────── */
+
+.site-header {
+ position: sticky;
+ top: 0;
+ z-index: 20;
+ background: color-mix(in srgb, var(--color-bg) 86%, transparent);
+ backdrop-filter: saturate(1.4) blur(14px);
+ -webkit-backdrop-filter: saturate(1.4) blur(14px);
+ border-bottom: 1px solid var(--color-border);
+}
+
+.header-row {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: var(--space-4) var(--space-6);
+ min-height: var(--header-height);
+}
+
+.brand {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-3);
+ color: var(--color-text);
+ text-decoration: none;
+ margin-right: auto;
+}
+
+.brand-mark {
+ width: 2rem;
+ height: 2rem;
+}
+
+.brand-name {
+ font-family: var(--font-display);
+ font-weight: 700;
+ font-size: 1.125rem;
+ letter-spacing: -0.02em;
+ white-space: nowrap;
+}
+
+.site-nav {
+ display: flex;
+ align-items: center;
+ gap: var(--space-6);
+}
+
+.nav-list,
+.footer-links {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-1) var(--space-6);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.nav-list a {
+ color: var(--color-text);
+ text-decoration: none;
+ font-weight: 500;
+ font-size: var(--text-sm);
+}
+
+.nav-list a:hover {
+ color: var(--color-primary);
+}
+
+.header-tools {
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.nav-theme {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+}
+
+/* The label only shows in the phone menu, where the switch sits in a list of rows. */
+.nav-theme-label {
+ display: none;
+ font-weight: 500;
+}
+
+.nav-theme:has(.theme-switch[hidden]) {
+ display: none;
+}
+
+.theme-switch {
+ display: inline-flex;
+ padding: 3px;
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-pill);
+ background: var(--color-sunken);
+}
+
+.theme-switch[hidden] {
+ display: none;
+}
+
+.theme-option {
+ display: grid;
+ place-items: center;
+ width: 2.125rem;
+ height: 2.125rem;
+ padding: 0;
+ border: 0;
+ border-radius: var(--radius-pill);
+ background: transparent;
+ color: var(--color-text-muted);
+ cursor: pointer;
+ transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
+}
+
+.theme-option .icon {
+ width: 1.125rem;
+ height: 1.125rem;
+}
+
+.theme-option:hover {
+ color: var(--color-text);
+}
+
+.theme-option[aria-pressed="true"] {
+ background: var(--color-surface);
+ color: var(--color-primary);
+ box-shadow: var(--shadow-sm);
+}
+
+.menu-button {
+ display: none;
+ place-items: center;
+ width: 2.75rem;
+ height: 2.75rem;
+ padding: 0;
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-md);
+ background: var(--color-surface);
+ color: var(--color-text);
+ cursor: pointer;
+}
+
+.menu-button .icon-close,
+.menu-button[aria-expanded="true"] .icon-open {
+ display: none;
+}
+
+.menu-button[aria-expanded="true"] .icon-close {
+ display: block;
+}
+
+/*
+ * Below 64rem the navigation collapses behind the menu button. Only when JavaScript runs
+ * (theme.js adds .js), so without it the links stay visible and wrap instead.
+ */
+@media (max-width: 63.99rem) {
+ .js .menu-button {
+ display: grid;
+ }
+
+ .js .site-nav {
+ display: none;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ flex-direction: column;
+ align-items: stretch;
+ gap: var(--space-4);
+ padding: var(--space-4) var(--gutter) var(--space-6);
+ background: var(--color-surface);
+ border-bottom: 1px solid var(--color-border);
+ box-shadow: var(--shadow-md);
+ }
+
+ .js .site-header[data-menu-open] .site-nav {
+ display: flex;
+ }
+
+ .js .nav-list {
+ flex-direction: column;
+ gap: 0;
+ }
+
+ .js .nav-list a {
+ display: block;
+ padding: var(--space-3) 0;
+ font-size: var(--text-base);
+ border-bottom: 1px solid var(--color-border);
+ }
+
+ .js .nav-cta {
+ min-height: 2.75rem;
+ }
+
+ .js .nav-theme {
+ justify-content: space-between;
+ }
+
+ .js .nav-theme-label {
+ display: inline;
+ }
+
+ .header-row {
+ flex-wrap: wrap;
+ padding-block: var(--space-2);
+ }
+
+ html:not(.js) .site-nav {
+ order: 3;
+ width: 100%;
+ flex-wrap: wrap;
+ }
+}
+
+/* ── Footer ───────────────────────────────────────────────── */
+
+.site-footer {
+ background: var(--color-surface);
+ border-top: 1px solid var(--color-border);
+ color: var(--color-text-muted);
+ font-size: var(--text-sm);
+}
+
+.footer-grid {
+ display: grid;
+ gap: var(--space-6) var(--space-12);
+ padding-block: var(--space-12) var(--space-8);
+}
+
+@media (min-width: 56rem) {
+ .footer-grid {
+ grid-template-columns: 1fr auto;
+ }
+}
+
+.footer-brand p {
+ margin: var(--space-3) 0 0;
+ max-width: 34em;
+}
+
+.footer-links {
+ gap: var(--space-2) var(--space-6);
+}
+
+.footer-links a {
+ color: var(--color-text);
+}
+
+.trademarks {
+ grid-column: 1 / -1;
+ margin: 0;
+ padding-top: var(--space-6);
+ border-top: 1px solid var(--color-border);
+ font-size: var(--text-xs);
+}
+
+/* ── Code ─────────────────────────────────────────────────── */
+
+.code-block {
+ display: grid;
+ justify-items: end;
+ gap: var(--space-2);
+ margin: 0 0 var(--space-4);
+}
+
+.code-block pre {
+ justify-self: stretch;
+ margin: 0;
+ padding: 0.875rem 1rem;
+ background: var(--color-sunken);
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-md);
+ font-family: var(--font-mono);
+ font-size: 0.875rem;
+ line-height: 1.6;
+ white-space: pre-wrap;
+ overflow-wrap: anywhere;
+}
+
+.code-block pre code {
+ background: none;
+ border: 0;
+ padding: 0;
+ font-size: inherit;
+}
+
+.code-line {
+ display: block;
+ padding-left: 1.5em;
+ text-indent: -1.5em;
+}
+
+.code-line + .code-line {
+ margin-top: 0.5em;
+}
+
+.code-word {
+ display: inline-block;
+ max-width: 100%;
+ text-indent: 0;
+ overflow-wrap: break-word;
+}
+
+/* ── Hero ─────────────────────────────────────────────────── */
+
+.hero {
+ position: relative;
+ padding-block: clamp(2rem, 0.75rem + 4.5vw, 4.5rem) var(--space-12);
+ isolation: isolate;
+}
+
+/* A faint dotted canvas, like the grid in the Power Apps and Power Pages studios. */
+.hero::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: -1;
+ background-image: radial-gradient(circle at 1px 1px, light-dark(rgb(11 29 42 / 0.13), rgb(231 241 241 / 0.1)) 1px, transparent 0);
+ background-size: 22px 22px;
+ mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
+ -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
+}
+
+.hero-grid {
+ display: grid;
+ gap: var(--space-12);
+ align-items: center;
+}
+
+@media (min-width: 64rem) {
+ .hero {
+ padding-bottom: 0;
+ }
+
+ .hero-grid {
+ grid-template-columns: minmax(0, 7fr) minmax(0, 5.4fr);
+ gap: var(--space-16);
+ align-items: start;
+ }
+
+ .hero-copy {
+ padding-top: var(--space-8);
+ }
+
+ /* The session straddles the boundary into "How it works". */
+ .hero-visual {
+ margin-bottom: calc(var(--space-16) * -1.25);
+ }
+
+ .hero-visual::before {
+ inset: -12% -10% 10% -12%;
+ }
+}
+
+.hero h1 {
+ max-width: 15ch;
+}
+
+.hero-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-3);
+ margin: var(--space-8) 0 var(--space-8);
+}
+
+.proof-list {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-3) var(--space-6);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ font-size: var(--text-sm);
+ color: var(--color-text-muted);
+}
+
+.proof-list li {
+ display: inline-flex;
+ align-items: center;
+ gap: var(--space-2);
+}
+
+.proof-list .icon {
+ color: var(--color-accent-text);
+}
+
+/* One orchestrated entrance: headline first, then the supporting lines, done by ~600ms. */
+@keyframes rise {
+ from {
+ opacity: 0;
+ transform: translateY(10px);
+ }
+}
+
+.hero-copy > * {
+ animation: rise 520ms var(--ease-out) both;
+}
+
+.hero-copy > :nth-child(2) {
+ animation-delay: 70ms;
+}
+
+.hero-copy > :nth-child(3) {
+ animation-delay: 140ms;
+}
+
+.hero-copy > :nth-child(4) {
+ animation-delay: 210ms;
+}
+
+.hero-visual {
+ position: relative;
+ z-index: 2;
+ animation: rise 640ms var(--ease-out) 120ms both;
+}
+
+/* Light behind the session, in the logo's teal and green. */
+.hero-visual::before {
+ content: "";
+ position: absolute;
+ inset: -8% 0 8% 0;
+ z-index: -1;
+ background:
+ radial-gradient(closest-side at 35% 40%, light-dark(rgb(82 209 124 / 0.32), rgb(82 209 124 / 0.18)), transparent),
+ radial-gradient(closest-side at 70% 65%, light-dark(rgb(32 172 157 / 0.3), rgb(32 172 157 / 0.22)), transparent);
+ filter: blur(8px);
+}
+
+/* ── Session (signature moment) ───────────────────────────── */
+
+.session {
+ margin: 0;
+ background: var(--color-surface);
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-lg);
+ box-shadow: var(--shadow-lg);
+ overflow: hidden;
+}
+
+.session-bar {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: var(--space-2);
+ padding: var(--space-3) var(--space-4);
+ border-bottom: 1px solid var(--color-border);
+ font-size: var(--text-xs);
+ font-weight: 600;
+ color: var(--color-text-muted);
+}
+
+/* The brand ribbon as a progress line: it fills while the session runs. */
+.session-bar::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: -1px;
+ height: 3px;
+ background: var(--brand-gradient);
+ transform-origin: left;
+ transform: scaleX(var(--progress, 1));
+ transition: transform var(--duration-slow) var(--ease-out);
+}
+
+.session-body {
+ padding: var(--space-6) var(--space-6) var(--space-4);
+}
+
+.session-who {
+ margin: 0 0 var(--space-2);
+ font-size: var(--text-xs);
+ font-weight: 600;
+ color: var(--color-text-muted);
+}
+
+.session-prompt {
+ margin: 0 0 var(--space-6);
+ padding: var(--space-4) var(--space-4);
+ min-height: 4.75rem;
+ border-radius: var(--radius-md);
+ background: var(--color-sunken);
+ border: 1px solid var(--color-border);
+ font-size: var(--text-lg);
+ font-weight: 500;
+ line-height: 1.4;
+}
+
+.caret {
+ display: inline-block;
+ width: 2px;
+ height: 1.1em;
+ margin-left: 2px;
+ vertical-align: -0.18em;
+ background: var(--color-primary);
+ opacity: 0;
+}
+
+.session[data-typing] .caret {
+ opacity: 1;
+}
+
+.session-reply {
+ transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
+}
+
+.session-reply[data-pending] {
+ opacity: 0;
+ transform: translateY(6px);
+}
+
+.session-plugin {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ margin: 0 0 var(--space-4);
+ line-height: 1.3;
+}
+
+.session-plugin img {
+ width: 1.75rem;
+ height: 1.75rem;
+}
+
+.session-plugin strong {
+ display: block;
+ font-size: var(--text-sm);
+}
+
+.session-plugin-name {
+ display: block;
+ font-size: var(--text-xs);
+ color: var(--color-text-muted);
+}
+
+.session-steps {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.step {
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+ padding: var(--space-2) 0;
+ font-size: var(--text-sm);
+ line-height: 1.45;
+ transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
+}
+
+.step[data-entering] {
+ opacity: 0;
+ transform: translateY(6px);
+}
+
+.step-icon {
+ margin-top: 1px;
+ width: 1.125rem;
+ height: 1.125rem;
+}
+
+.step.is-done .step-icon {
+ color: var(--color-success);
+}
+
+.step.is-waiting {
+ margin-top: var(--space-2);
+ padding: var(--space-3);
+ border: 1px solid var(--color-primary);
+ border-radius: var(--radius-md);
+ background: var(--color-primary-wash);
+}
+
+.step.is-waiting .step-icon {
+ color: var(--color-primary);
+}
+
+.step-text {
+ flex: 1;
+}
+
+.step-badge {
+ flex: none;
+ align-self: center;
+ padding: 0.1rem 0.5rem;
+ border-radius: var(--radius-pill);
+ background: var(--color-primary);
+ color: var(--color-on-primary);
+ font-size: var(--text-xs);
+ font-weight: 700;
+}
+
+.session-caption {
+ padding: var(--space-3) var(--space-6) var(--space-4);
+ border-top: 1px solid var(--color-border);
+ font-size: var(--text-xs);
+ color: var(--color-text-muted);
+}
+
+/* Above the window, so only the window itself crosses into the next section. */
+.scenario-tabs {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+ margin-bottom: var(--space-4);
+}
+
+.scenario-tabs[hidden] {
+ display: none;
+}
+
+.scenario-tab {
+ display: inline-flex;
+ align-items: center;
+ min-height: 2.5rem;
+ padding: 0.35rem 0.95rem;
+ border: 1.5px solid var(--color-border);
+ border-radius: var(--radius-pill);
+ background: var(--color-surface);
+ color: var(--color-text);
+ font: inherit;
+ font-size: var(--text-sm);
+ font-weight: 600;
+ cursor: pointer;
+ transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
+}
+
+.scenario-tab:hover {
+ border-color: var(--color-border-strong);
+}
+
+.scenario-tab[aria-selected="true"] {
+ border-color: var(--color-primary);
+ background: var(--color-primary-wash);
+}
+
+/* ── How it works ─────────────────────────────────────────── */
+
+.how {
+ background: var(--color-surface-strong);
+ padding-block: var(--section-space);
+}
+
+@media (min-width: 64rem) {
+ .how {
+ padding-top: calc(var(--section-space) + var(--space-8));
+ }
+}
+
+.process {
+ position: relative;
+ display: grid;
+ gap: var(--space-8);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.process li {
+ position: relative;
+}
+
+.process-node {
+ position: relative;
+ display: grid;
+ place-items: center;
+ width: 2.75rem;
+ height: 2.75rem;
+ margin-bottom: var(--space-4);
+ border-radius: var(--radius-pill);
+ background: var(--color-surface);
+ border: 2px solid var(--color-primary);
+ color: var(--color-primary);
+ font-family: var(--font-display);
+ font-weight: 800;
+ font-size: 1.125rem;
+}
+
+.process p {
+ margin: 0;
+ color: var(--color-text-muted);
+ max-width: 32ch;
+}
+
+@media (min-width: 48rem) {
+ .process {
+ --process-gap: var(--space-12);
+ grid-template-columns: repeat(3, 1fr);
+ gap: var(--process-gap);
+ }
+
+ /* Side by side, each step is centered in its column, so the line from the first node to the
+ last is centered on the page and ends at the last step instead of running on past it.
+ The heading is centered to match. */
+ .how .section-head {
+ margin-inline: auto;
+ text-align: center;
+ }
+
+ /* Centered lines read badly when the last one holds a single word, so even them out. */
+ .how .section-head p {
+ text-wrap: balance;
+ }
+
+ .process li {
+ text-align: center;
+ }
+
+ .process-node {
+ margin-inline: auto;
+ }
+
+ .process p {
+ margin-inline: auto;
+ }
+
+ /* From the middle of the first column to the middle of the last: half a column in from each
+ edge. */
+ .process::before {
+ content: "";
+ position: absolute;
+ top: 1.375rem;
+ left: calc((100% - 2 * var(--process-gap)) / 6);
+ right: calc((100% - 2 * var(--process-gap)) / 6);
+ height: 3px;
+ border-radius: var(--radius-pill);
+ background: var(--brand-gradient);
+ }
+}
+
+/* ── Plugin catalog ───────────────────────────────────────── */
+
+.plugins {
+ padding-block: var(--section-space);
+}
+
+.catalog-tools {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: end;
+ justify-content: space-between;
+ gap: var(--space-6);
+ margin-bottom: var(--space-6);
+}
+
+.assistant-picker {
+ border: 0;
+ margin: 0;
+ padding: 0;
+ min-width: 0;
+}
+
+.assistant-picker legend {
+ padding: 0;
+ margin-bottom: var(--space-2);
+ font-size: var(--text-sm);
+ font-weight: 600;
+}
+
+.picker-options {
+ display: inline-grid;
+ grid-auto-flow: column;
+ grid-auto-columns: 1fr;
+ gap: 3px;
+ padding: 3px;
+ border: 1px solid var(--color-border);
+ border-radius: 12px;
+ background: var(--color-sunken);
+}
+
+.picker-option {
+ position: relative;
+}
+
+/* On a phone the picker spans the column; long names wrap onto two lines inside each option. */
+@media (max-width: 30rem) {
+ .picker-options {
+ display: grid;
+ width: 100%;
+ }
+
+ .picker-option > span {
+ padding-inline: var(--space-2);
+ }
+}
+
+.picker-option input {
+ position: absolute;
+ opacity: 0;
+ inset: 0;
+ margin: 0;
+ cursor: pointer;
+}
+
+.picker-option {
+ display: flex;
+}
+
+.picker-option > span {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 100%;
+ padding: 0.55rem 0.9rem;
+ border-radius: 9px;
+ font-size: var(--text-sm);
+ font-weight: 600;
+ line-height: 1.25;
+ text-align: center;
+ text-wrap: balance;
+ color: var(--color-text-muted);
+ transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
+}
+
+.picker-option input:hover + span {
+ color: var(--color-text);
+}
+
+.picker-option input:checked + span {
+ background: var(--color-surface);
+ color: var(--color-text);
+ box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--color-primary);
+}
+
+.picker-option input:focus-visible + span {
+ outline: 3px solid var(--color-focus);
+ outline-offset: 2px;
+}
+
+.goal-nav ul {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-2);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+@media (max-width: 47.99rem) {
+ .goal-nav {
+ width: 100%;
+ }
+
+ .goal-nav ul {
+ flex-wrap: nowrap;
+ overflow-x: auto;
+ padding-bottom: var(--space-2);
+ scrollbar-width: thin;
+ }
+
+ .goal-nav li {
+ flex: none;
+ }
+}
+
+.goal-nav a {
+ display: inline-block;
+ white-space: nowrap;
+ padding: 0.3rem 0.8rem;
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-pill);
+ font-size: var(--text-sm);
+ color: var(--color-text);
+ text-decoration: none;
+ background: var(--color-surface);
+}
+
+.goal-nav a:hover {
+ border-color: var(--color-border-strong);
+}
+
+/*
+ * Show only the parts that match the chosen assistant. Each element type keeps its own
+ * display value through --shown. Browsers without :has() show every option instead.
+ */
+.button[data-for] {
+ --shown: inline-flex;
+}
+
+.button-block[data-for] {
+ --shown: flex;
+}
+
+.callout[data-for] {
+ --shown: flex;
+}
+
+.install-option[data-for] {
+ --shown: block;
+}
+
+.os-option[data-os] {
+ --shown: block;
+}
+
+@supports selector(:has(*)) {
+ .assistant-scope [data-for] {
+ display: none;
+ }
+
+ .assistant-scope:has(input[value="claude-code"]:checked) [data-for="claude-code"],
+ .assistant-scope:has(input[value="copilot-app"]:checked) [data-for="copilot-app"],
+ .assistant-scope:has(input[value="copilot-cli"]:checked) [data-for="copilot-cli"] {
+ display: var(--shown, block);
+ }
+
+ .os-scope [data-os] {
+ display: none;
+ }
+
+ .os-scope:has(input[value="windows"]:checked) [data-os="windows"],
+ .os-scope:has(input[value="macos"]:checked) [data-os="macos"],
+ .os-scope:has(input[value="linux"]:checked) [data-os="linux"] {
+ display: var(--shown, block);
+ }
+}
+
+.callout {
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-3) var(--space-6);
+ margin-bottom: var(--space-4);
+ padding: var(--space-4) var(--space-6);
+ border: 1px solid var(--color-border);
+ background: var(--color-surface);
+ border-radius: var(--radius-md);
+ font-size: var(--text-sm);
+}
+
+.callout p {
+ margin: 0;
+ max-width: 60em;
+}
+
+.goal-group {
+ padding-top: var(--space-12);
+}
+
+.goal-head {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 0 var(--space-4);
+ padding-bottom: var(--space-3);
+ border-bottom: 2px solid var(--color-text);
+}
+
+.goal-head h3 {
+ margin: 0;
+}
+
+.goal-head p {
+ margin: 0;
+ color: var(--color-text-muted);
+}
+
+.plugin-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.plugin-row {
+ display: grid;
+ gap: var(--space-3) var(--space-8);
+ padding: var(--space-6) 0;
+ border-bottom: 1px solid var(--color-border);
+}
+
+@media (min-width: 60rem) {
+ .plugin-row {
+ grid-template-columns: 17rem minmax(0, 1fr) 13.5rem;
+ align-items: start;
+ }
+}
+
+.plugin-ident {
+ display: flex;
+ align-items: flex-start;
+ gap: var(--space-3);
+}
+
+.product-icon {
+ flex: none;
+ width: 2.75rem;
+ height: 2.75rem;
+}
+
+.plugin-ident h4 {
+ margin: 0.15rem 0 0.1rem;
+}
+
+.plugin-ident h4 a {
+ color: var(--color-text);
+ text-decoration: none;
+}
+
+.plugin-ident h4 a:hover {
+ text-decoration: underline;
+}
+
+.plugin-product {
+ margin: 0;
+ font-size: var(--text-sm);
+ color: var(--color-text-muted);
+}
+
+.plugin-body p {
+ margin: 0 0 var(--space-2);
+ max-width: 42em;
+}
+
+.sample-prompt,
+.prompt-quote {
+ color: var(--color-text-muted);
+}
+
+.sample-prompt {
+ font-size: var(--text-sm);
+}
+
+.sample-prompt::before,
+.prompt-quote::before {
+ content: "\201C";
+}
+
+.sample-prompt::after,
+.prompt-quote::after {
+ content: "\201D";
+}
+
+.plugin-meta {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2) var(--space-3);
+ font-size: var(--text-sm);
+ color: var(--color-text-muted);
+}
+
+.plugin-actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2) var(--space-4);
+}
+
+@media (min-width: 60rem) {
+ .plugin-actions {
+ flex-direction: column;
+ align-items: stretch;
+ text-align: center;
+ }
+}
+
+/* ── You stay in control ──────────────────────────────────── */
+
+.control {
+ background: var(--color-surface);
+ border-block: 1px solid var(--color-border);
+ padding-block: var(--section-space);
+}
+
+.control-grid {
+ display: grid;
+ gap: var(--space-8) var(--space-16);
+}
+
+@media (min-width: 60rem) {
+ .control-grid {
+ grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
+ }
+}
+
+.control-intro p {
+ font-size: var(--text-lg);
+ color: var(--color-text-muted);
+ max-width: 30em;
+}
+
+.assurances {
+ display: grid;
+ gap: var(--space-8) var(--space-8);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+@media (min-width: 40rem) {
+ .assurances {
+ grid-template-columns: repeat(2, 1fr);
+ }
+}
+
+.assurance-icon {
+ width: 2.5rem;
+ height: 2.5rem;
+ padding: 0.5rem;
+ margin-bottom: var(--space-3);
+ border-radius: var(--radius-md);
+ background: var(--color-primary-wash);
+ color: var(--color-primary);
+}
+
+.assurances h3 {
+ margin-bottom: var(--space-2);
+}
+
+.assurances p {
+ margin: 0;
+ color: var(--color-text-muted);
+}
+
+/* ── Install everything (inverted band) ───────────────────── */
+
+.install-all {
+ background: var(--band-bg);
+ color: var(--color-on-ink);
+ padding-block: var(--section-space);
+}
+
+.install-all a {
+ color: var(--color-ink-link);
+}
+
+.install-all .fine-print,
+.install-copy p {
+ color: var(--color-on-ink-muted);
+}
+
+.install-copy p:first-of-type {
+ font-size: var(--text-lg);
+ color: var(--color-on-ink);
+}
+
+.install-grid {
+ display: grid;
+ gap: var(--space-8) var(--space-16);
+ align-items: start;
+}
+
+@media (min-width: 60rem) {
+ .install-grid {
+ grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
+ }
+}
+
+.terminal {
+ padding: var(--space-6);
+ border: 1px solid rgb(255 255 255 / 0.12);
+ border-radius: var(--radius-lg);
+ background: rgb(255 255 255 / 0.04);
+}
+
+.terminal h3 {
+ font-family: var(--font-body);
+ font-size: var(--text-sm);
+ font-weight: 600;
+ letter-spacing: 0;
+ margin-bottom: var(--space-2);
+ color: var(--color-on-ink-muted);
+}
+
+.terminal .code-block pre {
+ background: rgb(0 0 0 / 0.28);
+ border-color: rgb(255 255 255 / 0.12);
+ color: var(--color-on-ink);
+}
+
+.terminal .copy-button {
+ background: transparent;
+ border-color: rgb(255 255 255 / 0.35);
+ color: var(--color-on-ink);
+}
+
+.terminal .copy-button:hover {
+ border-color: var(--color-on-ink);
+}
+
+.terminal .copy-button[data-copied] {
+ border-color: #8ff0aa;
+ color: #8ff0aa;
+}
+
+.install-all :focus-visible {
+ outline-color: #7cc8f2;
+}
+
+/* The segmented picker, restyled for the inverted band. */
+.install-all .picker-options {
+ background: rgb(255 255 255 / 0.06);
+ border-color: rgb(255 255 255 / 0.16);
+}
+
+.install-all .picker-option > span {
+ color: var(--color-on-ink-muted);
+}
+
+.install-all .picker-option input:hover + span {
+ color: var(--color-on-ink);
+}
+
+.install-all .picker-option input:checked + span {
+ background: rgb(255 255 255 / 0.12);
+ color: var(--color-on-ink);
+ box-shadow: inset 0 0 0 1.5px #45d3bd;
+}
+
+.os-picker {
+ margin-bottom: var(--space-3);
+}
+
+.os-hint {
+ margin: 0 0 var(--space-6);
+ font-size: var(--text-sm);
+ color: var(--color-on-ink-muted);
+}
+
+.os-steps {
+ margin: 0;
+ padding-left: 1.4rem;
+}
+
+.os-steps li {
+ margin-bottom: var(--space-4);
+ padding-left: var(--space-1);
+}
+
+.os-steps li::marker {
+ font-family: var(--font-display);
+ font-weight: 800;
+ color: #45d3bd;
+}
+
+.os-steps strong {
+ color: var(--color-on-ink);
+}
+
+kbd {
+ display: inline-block;
+ min-width: 1.6em;
+ padding: 0.05em 0.45em;
+ border: 1px solid var(--color-border-strong);
+ border-bottom-width: 2px;
+ border-radius: var(--radius-sm);
+ background: var(--color-surface);
+ color: var(--color-text);
+ font-family: var(--font-mono);
+ font-size: 0.82em;
+ font-weight: 600;
+ line-height: 1.5;
+ text-align: center;
+ white-space: nowrap;
+}
+
+.kbd-combo {
+ white-space: nowrap;
+}
+
+.kbd-plus {
+ margin-inline: 0.3em;
+ color: var(--color-text-muted);
+}
+
+.install-all kbd {
+ border-color: rgb(255 255 255 / 0.32);
+ background: rgb(255 255 255 / 0.08);
+ color: var(--color-on-ink);
+}
+
+.install-all .kbd-plus {
+ color: var(--color-on-ink-muted);
+}
+
+.os-steps li {
+ line-height: 1.8;
+}
+
+.os-steps .code-block {
+ margin-top: var(--space-3);
+}
+
+.dataverse-commands {
+ margin-top: var(--space-6);
+ padding-top: var(--space-4);
+ border-top: 1px solid rgb(255 255 255 / 0.12);
+}
+
+.dataverse-commands summary {
+ cursor: pointer;
+ font-weight: 600;
+ margin-bottom: var(--space-4);
+}
+
+/* ── Questions ────────────────────────────────────────────── */
+
+.faq {
+ padding-block: var(--section-space);
+}
+
+.faq-grid {
+ display: grid;
+ gap: var(--space-8) var(--space-16);
+}
+
+@media (min-width: 60rem) {
+ .faq-grid {
+ grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
+ }
+}
+
+.faq-grid > div > p {
+ color: var(--color-text-muted);
+ max-width: 30em;
+}
+
+.faq-answers {
+ display: grid;
+ gap: var(--space-8);
+ align-content: start;
+ min-width: 0;
+}
+
+/* The explainer video answers the first question, so it leads the answers column. */
+.explainer {
+ margin: 0;
+}
+
+.explainer-head {
+ margin-bottom: var(--space-4);
+}
+
+.explainer-head h3 {
+ margin: 0;
+}
+
+/* The film is dark in both themes, so the frame is the film's own navy: no flash of white
+ before the poster loads, and a hairline border keeps its edge on the dark page. */
+.explainer-player {
+ position: relative;
+ /* The play button's text scales with the player's width (cqi), not the viewport's. */
+ container-type: inline-size;
+}
+
+.explainer-video {
+ display: block;
+ width: 100%;
+ height: auto;
+ aspect-ratio: 16 / 9;
+ border-radius: var(--radius-lg);
+ border: 1px solid var(--color-border);
+ background: #08161f;
+ box-shadow: var(--shadow-lg);
+}
+
+/* The play button sits in the poster's empty lower-left corner, under "What you install", so
+ it covers none of the poster's labels at any width. It scales with the video (a share of its
+ width) for the same reason. The film is dark in both themes, so the button uses the film's
+ own teal and ink rather than theme tokens. */
+.explainer-play {
+ position: absolute;
+ left: 9.5%;
+ bottom: 4.5%;
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5em;
+ padding: 0.5em 1.05em 0.5em 0.8em;
+ font: 700 clamp(0.75rem, 0.45rem + 1.6cqi, 1.0625rem) / 1 var(--font-body);
+ color: #04211e;
+ background: #45d3bd;
+ border: 0;
+ border-radius: var(--radius-pill);
+ box-shadow: 0 0 0 0 rgb(69 211 189 / 0.45), 0 10px 24px -8px rgb(0 0 0 / 0.6);
+ cursor: pointer;
+ transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
+}
+
+.explainer-play[hidden] {
+ display: none;
+}
+
+.explainer-play:hover {
+ transform: translateY(-1px);
+ box-shadow: 0 0 0 6px rgb(69 211 189 / 0.25), 0 12px 28px -8px rgb(0 0 0 / 0.6);
+}
+
+.explainer-play:focus-visible {
+ outline: 3px solid #e7f3f2;
+ outline-offset: 3px;
+}
+
+.explainer-play-icon {
+ width: 1.15em;
+ height: 1.15em;
+ fill: currentColor;
+}
+
+.transcript {
+ margin-top: var(--space-4);
+}
+
+.transcript summary {
+ display: inline-block;
+ cursor: pointer;
+ font-weight: 600;
+ color: var(--color-link);
+ padding-block: var(--space-2);
+}
+
+.transcript p {
+ color: var(--color-text-muted);
+ max-width: 44em;
+}
+
+/* What is on screen, set apart from the narration it follows. */
+.transcript-visual {
+ padding-left: var(--space-4);
+ border-left: 2px solid var(--color-border);
+ font-size: var(--text-sm);
+}
+
+.transcript-visual strong {
+ color: var(--color-text);
+}
+
+.faq-list details {
+ border-top: 1px solid var(--color-border);
+}
+
+.faq-list details:last-of-type {
+ border-bottom: 1px solid var(--color-border);
+ margin-bottom: var(--space-6);
+}
+
+.faq-list summary {
+ display: flex;
+ justify-content: space-between;
+ gap: var(--space-4);
+ cursor: pointer;
+ padding: var(--space-4) 0;
+ font-weight: 600;
+ font-size: var(--text-lg);
+ list-style: none;
+}
+
+.faq-list summary::-webkit-details-marker {
+ display: none;
+}
+
+.faq-list summary::after {
+ content: "+";
+ flex: none;
+ font-family: var(--font-display);
+ font-size: 1.5rem;
+ line-height: 1;
+ color: var(--color-primary);
+ transition: transform var(--duration-base) var(--ease-out);
+}
+
+.faq-list details[open] summary::after {
+ transform: rotate(45deg);
+}
+
+.faq-list details p {
+ color: var(--color-text-muted);
+ max-width: 44em;
+}
+
+/* ── Final call to action (brand band) ────────────────────── */
+
+.final-cta {
+ background: var(--brand-band);
+ color: var(--color-ink);
+ padding-block: var(--space-16);
+}
+
+.final-grid {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-6) var(--space-12);
+}
+
+.final-cta h2 {
+ max-width: 18ch;
+ margin-bottom: var(--space-3);
+}
+
+.final-cta p {
+ margin: 0;
+ font-size: var(--text-lg);
+ max-width: 32em;
+}
+
+.final-actions {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-3);
+}
+
+.button-ink-outline {
+ background: transparent;
+ border-color: var(--color-ink);
+ color: var(--color-ink);
+}
+
+.button-ink-outline:hover {
+ background: rgb(7 26 40 / 0.08);
+}
+
+.final-cta :focus-visible {
+ outline-color: var(--color-ink);
+}
+
+/* ── Plugin page ──────────────────────────────────────────── */
+
+.plugin-page {
+ position: relative;
+ isolation: isolate;
+}
+
+/* The same dotted canvas as the home hero, fading out below the heading. */
+.plugin-page::before {
+ content: "";
+ position: absolute;
+ inset: 0 0 auto;
+ height: 30rem;
+ z-index: -1;
+ background-image: radial-gradient(circle at 1px 1px, light-dark(rgb(11 29 42 / 0.12), rgb(231 241 241 / 0.09)) 1px, transparent 0);
+ background-size: 22px 22px;
+ mask-image: linear-gradient(to bottom, #000 40%, transparent);
+ -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
+}
+
+.plugin-grid {
+ display: grid;
+ grid-template-areas: "head" "install" "details";
+ gap: var(--space-8);
+ padding-block: var(--space-6) var(--section-space);
+}
+
+.plugin-head {
+ grid-area: head;
+}
+
+.plugin-grid .install-panel {
+ grid-area: install;
+}
+
+.plugin-details {
+ grid-area: details;
+}
+
+@media (min-width: 60rem) {
+ .plugin-grid {
+ grid-template-columns: minmax(0, 1fr) 26rem;
+ grid-template-areas: "head install" "details install";
+ grid-template-rows: auto 1fr;
+ column-gap: var(--space-16);
+ row-gap: var(--space-12);
+ padding-top: var(--space-8);
+ }
+
+ .plugin-grid .install-panel {
+ align-self: start;
+ margin-top: var(--space-12);
+ }
+}
+
+/* Only stick when the whole panel fits on screen; a taller panel would hide its own bottom. */
+@media (min-width: 60rem) and (min-height: 50rem) {
+ .plugin-grid .install-panel {
+ position: sticky;
+ top: calc(var(--header-height) + var(--space-6));
+ }
+}
+
+.breadcrumb ol {
+ display: flex;
+ flex-wrap: wrap;
+ gap: var(--space-1);
+ margin: 0 0 var(--space-6);
+ padding: 0;
+ list-style: none;
+ font-size: var(--text-sm);
+}
+
+.breadcrumb li + li::before {
+ content: "/";
+ margin-right: var(--space-1);
+ color: var(--color-text-muted);
+}
+
+.product-line {
+ display: flex;
+ align-items: center;
+ gap: var(--space-3);
+ margin-bottom: var(--space-3);
+ font-weight: 600;
+ color: var(--color-text-muted);
+}
+
+.product-line .product-icon {
+ width: 2.5rem;
+ height: 2.5rem;
+}
+
+.plugin-head h1 {
+ font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
+}
+
+.plugin-head .lede {
+ margin-bottom: var(--space-4);
+}
+
+.plugin-facts {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: var(--space-2) var(--space-6);
+ margin: 0;
+ color: var(--color-text-muted);
+ font-size: var(--text-sm);
+}
+
+.install-panel {
+ padding: var(--space-6);
+ background: var(--color-surface);
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-lg);
+ box-shadow: var(--shadow-md);
+}
+
+.install-panel h2 {
+ font-size: var(--text-h3);
+ margin-bottom: var(--space-4);
+}
+
+.install-panel .assistant-picker {
+ margin-bottom: var(--space-4);
+}
+
+.install-panel .picker-options {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ width: 100%;
+}
+
+.install-panel .picker-option > span {
+ padding-inline: var(--space-1);
+ font-size: 0.875rem;
+}
+
+.install-option > p:first-child {
+ margin-bottom: var(--space-3);
+}
+
+.install-option > .button {
+ margin-bottom: var(--space-4);
+}
+
+/* Sized so "microsoft/power-platform-skills" fits on one line inside the panel. */
+.install-panel .code-block pre {
+ padding-inline: 0.75rem;
+ font-size: 0.8125rem;
+}
+
+.install-steps {
+ margin: 0 0 var(--space-4);
+ padding-left: 1.25rem;
+}
+
+.install-steps li {
+ margin-bottom: var(--space-4);
+}
+
+.install-steps p {
+ margin-bottom: var(--space-2);
+}
+
+.plugin-details > section {
+ margin-bottom: var(--space-12);
+}
+
+.plugin-details h2 {
+ font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
+ margin-bottom: var(--space-4);
+}
+
+.prompt-list,
+.plain-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+.prompt-list li {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: var(--space-2) var(--space-4);
+ padding: var(--space-4) 0;
+ border-top: 1px solid var(--color-border);
+}
+
+.prompt-list li:last-child {
+ border-bottom: 1px solid var(--color-border);
+}
+
+.prompt-list .prompt-quote {
+ flex: 1 1 18rem;
+ color: var(--color-text);
+ font-size: var(--text-lg);
+ line-height: 1.4;
+}
+
+.plain-list li {
+ padding: var(--space-3) 0;
+ border-top: 1px solid var(--color-border);
+ max-width: 46em;
+}
+
+.plain-list li:last-child {
+ border-bottom: 1px solid var(--color-border);
+}
+
+.plain-list.numbered {
+ list-style: decimal;
+ padding-left: 1.5rem;
+}
+
+.plain-list.numbered li {
+ border: 0;
+ padding: var(--space-1) 0;
+}
+
+.skill-list {
+ margin: 0;
+}
+
+.skill-list div {
+ display: grid;
+ gap: var(--space-1) var(--space-6);
+ padding: var(--space-3) 0;
+ border-top: 1px solid var(--color-border);
+}
+
+.skill-list div:last-child {
+ border-bottom: 1px solid var(--color-border);
+}
+
+@media (min-width: 40rem) {
+ .skill-list div {
+ grid-template-columns: 17rem 1fr;
+ }
+}
+
+.skill-list dt code {
+ font-size: var(--text-sm);
+ overflow-wrap: anywhere;
+ white-space: normal;
+}
+
+.skill-list dd {
+ margin: 0;
+ color: var(--color-text-muted);
+}
+
+.related {
+ background: var(--color-surface-strong);
+ padding-block: var(--space-16);
+}
+
+.related h2 {
+ font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
+}
+
+.related-list {
+ display: grid;
+ gap: var(--space-4);
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+
+@media (min-width: 48rem) {
+ .related-list {
+ grid-template-columns: repeat(3, 1fr);
+ }
+}
+
+.related-link {
+ display: flex;
+ gap: var(--space-3);
+ height: 100%;
+ padding: var(--space-4);
+ border: 1px solid var(--color-border);
+ border-radius: var(--radius-md);
+ background: var(--color-surface);
+ color: var(--color-text);
+ text-decoration: none;
+ transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
+}
+
+.related-link:hover {
+ border-color: var(--color-primary);
+ box-shadow: var(--shadow-md);
+}
+
+.related-link img {
+ flex: none;
+ width: 2.25rem;
+ height: 2.25rem;
+}
+
+.related-link strong {
+ display: block;
+ font-family: var(--font-display);
+ font-size: 1.0625rem;
+ margin-bottom: var(--space-1);
+}
+
+.related-link span span {
+ display: block;
+ font-size: var(--text-sm);
+ color: var(--color-text-muted);
+}
+
+.related-link .related-product {
+ margin: calc(var(--space-1) * -1) 0 var(--space-1);
+ font-size: var(--text-xs);
+ font-weight: 600;
+}
+
+/* ── Launcher and 404 ─────────────────────────────────────── */
+
+.launcher {
+ max-width: 50rem;
+ padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section-space);
+}
+
+.launcher h1 {
+ font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.5rem);
+}
+
+.launcher h2 {
+ font-size: var(--text-h3);
+ margin-top: var(--space-12);
+}
+
+.launcher .code-block pre {
+ font-size: var(--text-sm);
+}
+
+/* ── Motion and contrast preferences ──────────────────────── */
+
+@media (prefers-reduced-motion: reduce) {
+ html {
+ scroll-behavior: auto;
+ }
+
+ .hero-copy > *,
+ .hero-visual {
+ animation: none;
+ }
+
+ .button:active {
+ transform: none;
+ }
+
+ .session-bar::after,
+ .session-reply,
+ .step,
+ .faq-list summary::after {
+ transition: none;
+ }
+}
+
+@media (forced-colors: active) {
+ .button,
+ .picker-option > span,
+ .scenario-tab,
+ .copy-button,
+ .theme-option {
+ border: 1px solid ButtonText;
+ }
+
+ .picker-option input:checked + span,
+ .scenario-tab[aria-selected="true"],
+ .theme-option[aria-pressed="true"] {
+ outline: 2px solid Highlight;
+ }
+}
diff --git a/site/assets/theme.js b/site/assets/theme.js
new file mode 100644
index 000000000..ae70cec52
--- /dev/null
+++ b/site/assets/theme.js
@@ -0,0 +1,17 @@
+// Applies the saved color theme before the stylesheet paints, so a page never flashes the
+// wrong theme. It loads as a normal blocking script in <head> because the content security
+// policy allows no inline scripts; it is a few lines and does no network work.
+//
+// No saved choice (or "system") leaves <html> without data-theme, and the stylesheet follows
+// prefers-color-scheme. site.js owns the toggle that writes the choice.
+(function () {
+ 'use strict';
+ var root = document.documentElement;
+ root.classList.add('js');
+ try {
+ var theme = window.localStorage.getItem('power-platform-skills.theme');
+ if (theme === 'light' || theme === 'dark') root.setAttribute('data-theme', theme);
+ } catch (error) {
+ // Storage is blocked in some private windows; the system theme applies.
+ }
+}());
diff --git a/site/assets/video/README.md b/site/assets/video/README.md
new file mode 100644
index 000000000..cad79f01d
--- /dev/null
+++ b/site/assets/video/README.md
@@ -0,0 +1,20 @@
+# Explainer video
+
+This folder holds the captions for "What are plugins and skills?", the video in the site's Questions section.
+The video and its poster are served from this folder too, but they are not committed on `main`: the build copies them in from the `site-media` branch, pinned by `site/media.json`, so marketplace clones of `main` stay small.
+See [Site media](../../README.md#site-media) for how to replace them, and keep these captions and `video.transcript` in `site/catalog.json` in step with the video.
+
+## How the film was made
+
+Everything in it was generated locally.
+Nothing was recorded, licensed, or sent to an online service.
+
+- **Voice:** the Kokoro 82M text-to-speech model (Apache 2.0) with the kokoro-onnx runtime (MIT).
+- **Picture:** drawn frame by frame in Python with the site's own fonts (SIL Open Font License) and Microsoft's official Power Pages icon, under the terms in [`../brand/README.md`](../brand/README.md).
+- **Music and sound effects:** original, synthesized in code.
+
+## What is real and what is illustrative
+
+- The Power Pages plugin, its five skills, and the steps shown for `/create-site` and `/deploy-site` come from the plugin's skills.
+- The assistant window, the "Allow this command?" prompt, and the `npm run build` command are illustrations, not the interface of any one AI assistant.
+- "It asks before it runs commands or changes files" describes the assistants' default permission settings, which a user can change.
diff --git a/site/assets/video/plugins-and-skills.vtt b/site/assets/video/plugins-and-skills.vtt
new file mode 100644
index 000000000..982e38f72
--- /dev/null
+++ b/site/assets/video/plugins-and-skills.vtt
@@ -0,0 +1,40 @@
+WEBVTT
+
+00:00:00.900 --> 00:00:03.699
+Your AI assistant knows a lot about code.
+
+00:00:03.769 --> 00:00:06.957
+A plugin teaches it how to
+build on Power Platform.
+
+00:00:07.327 --> 00:00:10.646
+You install a plugin once,
+and it adds a set of skills.
+
+00:00:11.016 --> 00:00:14.310
+Each skill is one job,
+written down step by step.
+
+00:00:14.380 --> 00:00:17.044
+Creating a Power Pages site is one skill.
+
+00:00:17.114 --> 00:00:18.777
+Deploying it is another.
+
+00:00:19.147 --> 00:00:20.889
+When you describe what you need,
+
+00:00:20.889 --> 00:00:24.352
+your assistant picks the right
+skill and follows its steps.
+
+00:00:24.422 --> 00:00:27.582
+It asks before it runs
+commands or changes files.
+
+00:00:27.952 --> 00:00:32.514
+So, plugins are what you install,
+and skills are the jobs inside them.
+
+00:00:32.584 --> 00:00:33.798
+You just ask.
diff --git a/site/build.js b/site/build.js
new file mode 100644
index 000000000..0eab11d44
--- /dev/null
+++ b/site/build.js
@@ -0,0 +1,143 @@
+#!/usr/bin/env node
+'use strict';
+
+/**
+ * Builds the Power Platform Skills showcase site into a static folder for GitHub Pages.
+ *
+ * Usage:
+ * node site/build.js [--out <dir>] [--base-path <path>] [--media <dir>] [--require-media]
+ *
+ * --out Output folder. Default: site/dist
+ * --base-path Absolute path the site is served from, used only by 404.html.
+ * Default: the path of the production site URL, /power-platform-skills/
+ * --media Local copy of the site-media branch. Default: site/media, which
+ * `node site/fetch-media.js` fills. See site/lib/media.js.
+ * --require-media Fail if a pinned media file is missing. Without it, the build leaves the
+ * video out with a warning, so the rest of the site can be previewed.
+ *
+ * The build has no dependencies beyond Node.js, so CI and contributors need no npm install.
+ */
+
+const fs = require('node:fs');
+const path = require('node:path');
+const { loadCatalog } = require('./lib/catalog.js');
+const render = require('./lib/render.js');
+const links = require('./lib/install-links.js');
+const { copyMedia, loadMediaManifest } = require('./lib/media.js');
+
+const SITE_DIR = __dirname;
+const REPO_ROOT = path.resolve(SITE_DIR, '..');
+// Written into every build. The build only clears an output folder that has this marker,
+// so a mistyped --out can never delete an unrelated folder.
+const MARKER = '.power-platform-skills-site';
+
+// Everything under site/assets ships as-is, except Markdown notes for maintainers.
+// The launcher page also runs the same link builders as the build, so the two cannot disagree.
+const ASSETS_DIR = 'assets';
+const EXTRA_ASSETS = [['lib/install-links.js', 'assets/install-links.js']];
+const MEDIA_MANIFEST = path.join(SITE_DIR, 'media.json');
+const USAGE = 'Usage: node site/build.js [--out <dir>] [--base-path <path>] [--media <dir>] [--require-media]';
+
+function listAssets(dir, relative = '') {
+ return fs.readdirSync(path.join(dir, relative), { withFileTypes: true }).flatMap((entry) => {
+ const child = path.join(relative, entry.name);
+ if (entry.isDirectory()) return listAssets(dir, child);
+ return entry.name.endsWith('.md') ? [] : [child];
+ });
+}
+
+function parseArgs(argv) {
+ const options = {
+ outDir: path.join(SITE_DIR, 'dist'),
+ basePath: new URL(links.SITE_URL).pathname,
+ mediaDir: path.join(SITE_DIR, 'media'),
+ requireMedia: false,
+ };
+ for (let index = 0; index < argv.length; index += 1) {
+ const arg = argv[index];
+ const value = argv[index + 1];
+ if (arg === '--out' && value) {
+ options.outDir = path.resolve(value);
+ index += 1;
+ } else if (arg === '--base-path' && value) {
+ options.basePath = value;
+ index += 1;
+ } else if (arg === '--media' && value) {
+ options.mediaDir = path.resolve(value);
+ index += 1;
+ } else if (arg === '--require-media') {
+ options.requireMedia = true;
+ } else {
+ throw new Error(`Unknown or incomplete argument: ${arg}\n${USAGE}`);
+ }
+ }
+ if (!options.basePath.startsWith('/')) options.basePath = `/${options.basePath}`;
+ if (!options.basePath.endsWith('/')) options.basePath = `${options.basePath}/`;
+ return options;
+}
+
+function prepareOutDir(outDir) {
+ if (fs.existsSync(outDir)) {
+ const entries = fs.readdirSync(outDir);
+ if (entries.length > 0 && !entries.includes(MARKER)) {
+ throw new Error(`Refusing to clear ${outDir}: it is not empty and was not created by this build.`);
+ }
+ fs.rmSync(outDir, { recursive: true, force: true });
+ }
+ fs.mkdirSync(outDir, { recursive: true });
+ fs.writeFileSync(path.join(outDir, MARKER), '');
+}
+
+function writeFile(outDir, relative, contents) {
+ const file = path.join(outDir, relative);
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, contents);
+ return relative.split(path.sep).join('/');
+}
+
+// mediaDir defaults to none, so a build in a test never depends on what happens to be in
+// site/media; the command line passes site/media.
+function build({ repoRoot = REPO_ROOT, outDir, basePath, mediaDir = null, requireMedia = false }) {
+ const catalog = loadCatalog(repoRoot);
+ prepareOutDir(outDir);
+
+ const written = [];
+ written.push(writeFile(outDir, 'index.html', render.renderHome(catalog)));
+ for (const plugin of catalog.plugins) {
+ written.push(writeFile(outDir, path.join('plugins', plugin.name, 'index.html'), render.renderPlugin(plugin, catalog)));
+ }
+ written.push(writeFile(outDir, path.join('install', 'index.html'), render.renderLauncher(catalog)));
+ written.push(writeFile(outDir, '404.html', render.renderNotFound(basePath)));
+ // GitHub Pages runs Jekyll on branch deploys, which drops files and folders that start
+ // with "_" or ".". Actions deploys skip Jekyll already; this keeps a branch deploy safe too.
+ written.push(writeFile(outDir, '.nojekyll', ''));
+
+ const assetsDir = path.join(SITE_DIR, ASSETS_DIR);
+ const assets = listAssets(assetsDir).map((file) => [path.join(ASSETS_DIR, file), path.join(ASSETS_DIR, file)]);
+ for (const [from, to] of [...assets, ...EXTRA_ASSETS]) {
+ written.push(writeFile(outDir, to, fs.readFileSync(path.join(SITE_DIR, from))));
+ }
+
+ const media = copyMedia({ manifest: loadMediaManifest(MEDIA_MANIFEST), mediaDir, outDir });
+ if (requireMedia && media.missing.length > 0) {
+ throw new Error(`Missing ${media.missing.join(', ')} from ${mediaDir || 'the media folder'}. Run node site/fetch-media.js first.`);
+ }
+ written.push(...media.written);
+ return { catalog, files: written, missingMedia: media.missing };
+}
+
+if (require.main === module) {
+ try {
+ const options = parseArgs(process.argv.slice(2));
+ const { catalog, files, missingMedia } = build(options);
+ console.log(`Built ${files.length} files for ${catalog.plugins.length} plugins into ${path.relative(process.cwd(), options.outDir) || '.'}`);
+ if (missingMedia.length > 0) {
+ console.warn(`Left out ${missingMedia.join(', ')}, so the explainer video will not play. Run node site/fetch-media.js to include it.`);
+ }
+ } catch (error) {
+ console.error(error.message);
+ process.exitCode = 1;
+ }
+}
+
+module.exports = { build, parseArgs, MARKER };
diff --git a/site/catalog.json b/site/catalog.json
new file mode 100644
index 000000000..061967dd8
--- /dev/null
+++ b/site/catalog.json
@@ -0,0 +1,640 @@
+{
+ "goals": [
+ {
+ "id": "website",
+ "title": "Build a website",
+ "summary": "Public or partner-facing sites, with data and sign-in."
+ },
+ {
+ "id": "app",
+ "title": "Build an app",
+ "summary": "Business apps for your team, from data model to screens."
+ },
+ {
+ "id": "mobile",
+ "title": "Build for phones",
+ "summary": "Apps and native features for iPhone and Android."
+ },
+ {
+ "id": "automate",
+ "title": "Automate work",
+ "summary": "Flows that run tasks for you and tell you when something fails."
+ },
+ {
+ "id": "data",
+ "title": "Work with your data",
+ "summary": "Ask questions about records and manage tables in Dataverse."
+ },
+ {
+ "id": "analyze",
+ "title": "Find where work slows down",
+ "summary": "Look for delays and rework in your business processes."
+ },
+ {
+ "id": "extend",
+ "title": "Extend apps with code",
+ "summary": "Custom controls and tools for developers."
+ }
+ ],
+ "plugins": [
+ {
+ "name": "power-pages",
+ "title": "Power Pages",
+ "product": "power-pages",
+ "goal": "website",
+ "audience": "both",
+ "status": null,
+ "summary": "Create, customize, and publish Power Pages websites, including the data behind them and sign-in for visitors.",
+ "prompts": [
+ "Create a Power Pages site with React for a job board",
+ "Create a site from a Power Pages template",
+ "Deploy my site to Power Pages"
+ ],
+ "requirements": [
+ "Node.js (LTS version)",
+ "Power Platform CLI (PAC CLI)",
+ "Azure CLI, for site data, sample data, and activating the site",
+ "A Power Platform environment where you can create Power Pages sites"
+ ],
+ "skills": [
+ {
+ "name": "create-site",
+ "description": "Start a new site from a template or from scratch."
+ },
+ {
+ "name": "edit-site",
+ "description": "Change the pages, content, navigation, and styling of a downloaded site."
+ },
+ {
+ "name": "setup-datamodel",
+ "description": "Create the Dataverse tables your site needs."
+ },
+ {
+ "name": "setup-auth",
+ "description": "Add sign-in, sign-out, and role-based access."
+ },
+ {
+ "name": "deploy-site",
+ "description": "Build your site and upload it to Power Pages."
+ }
+ ],
+ "notes": [
+ "Works with single-page sites built with React, Angular, Vue, or Astro, and with Liquid-based sites you download with PAC CLI.",
+ "Server-rendered frameworks such as Next.js are not supported."
+ ],
+ "learn": [
+ {
+ "title": "What is Power Pages?",
+ "url": "https://learn.microsoft.com/power-pages/introduction"
+ },
+ {
+ "title": "Create code sites",
+ "url": "https://learn.microsoft.com/power-pages/configure/create-code-sites"
+ }
+ ]
+ },
+ {
+ "name": "model-apps",
+ "title": "Model-driven apps",
+ "product": "power-apps",
+ "goal": "app",
+ "audience": "both",
+ "status": null,
+ "summary": "Build a complete model-driven Power App from a description, with its tables, forms, views, and security roles, or add generative pages to an app you already have.",
+ "prompts": [
+ "Build an app for tracking service requests",
+ "Create a model-driven app to manage suppliers and contracts",
+ "Build a data grid page for my model-driven app"
+ ],
+ "requirements": [
+ "Node.js (LTS version)",
+ "Power Platform CLI (PAC CLI) newer than 2.10.0",
+ "Azure CLI, signed in with the same account as PAC CLI",
+ "A Dataverse environment where you can create apps and tables"
+ ],
+ "skills": [
+ {
+ "name": "app-builder",
+ "description": "Build or change a whole app from a plain-language description."
+ },
+ {
+ "name": "genpage",
+ "description": "Create and publish a generative page in an existing app."
+ }
+ ],
+ "notes": [
+ "You review a plan and previews before anything is created in your environment.",
+ "Use a general-purpose or advanced reasoning model. Lightweight coding models are not recommended."
+ ],
+ "learn": [
+ {
+ "title": "Build model-driven apps with external tools",
+ "url": "https://learn.microsoft.com/power-apps/maker/model-driven-apps/model-driven-app-external-tools"
+ },
+ {
+ "title": "Generative pages with external tools",
+ "url": "https://learn.microsoft.com/power-apps/maker/model-driven-apps/generative-page-external-tools"
+ }
+ ]
+ },
+ {
+ "name": "canvas-apps",
+ "title": "Canvas apps",
+ "product": "power-apps",
+ "goal": "app",
+ "audience": "both",
+ "status": null,
+ "summary": "Build or change a canvas app's screens, controls, and formulas while the app is open in Power Apps Studio.",
+ "prompts": [
+ "Create a Canvas App for managing inventory",
+ "Edit my Canvas App to add a new screen for reports",
+ "List the available Canvas App controls."
+ ],
+ "requirements": [
+ ".NET 10 SDK or later",
+ "A canvas app saved in your environment, with coauthoring turned on in Settings > Updates > Coauthoring",
+ "Power Apps Studio open in your browser while you work",
+ "A work account that can edit the app"
+ ],
+ "skills": [
+ {
+ "name": "configure-canvas-mcp",
+ "description": "Connect your assistant to the app that is open in Power Apps Studio."
+ },
+ {
+ "name": "canvas-app",
+ "description": "Build a new connected app or change an existing one."
+ }
+ ],
+ "notes": [
+ "Create the app and turn on coauthoring in Power Apps Studio first. The plugin can't do those two steps for you.",
+ "Your organization's data policies can limit which connectors you can use, and an admin may need to allow local MCP servers."
+ ],
+ "learn": [
+ {
+ "title": "Get started with canvas apps",
+ "url": "https://learn.microsoft.com/power-apps/maker/canvas-apps/getting-started"
+ }
+ ]
+ },
+ {
+ "name": "code-apps-preview",
+ "title": "Code apps",
+ "product": "power-apps",
+ "goal": "app",
+ "audience": "developers",
+ "status": "preview",
+ "summary": "Create and publish Power Apps code apps: React web apps that connect to Dataverse, SharePoint, Excel, Teams, Outlook, and other Power Platform connectors.",
+ "prompts": [
+ "Create a code app for tracking customer requests",
+ "Add Dataverse tables for customers and requests",
+ "Connect my app to a SharePoint list"
+ ],
+ "requirements": [
+ "Node.js 22 or later",
+ "A Power Platform environment where you can publish apps"
+ ],
+ "skills": [
+ {
+ "name": "create-code-app",
+ "description": "Set up, build, and publish a new code app."
+ },
+ {
+ "name": "add-datasource",
+ "description": "Pick the right data source or connector for your app."
+ },
+ {
+ "name": "add-dataverse",
+ "description": "Add Dataverse tables to your app."
+ },
+ {
+ "name": "add-connector",
+ "description": "Add any other Power Platform connector."
+ },
+ {
+ "name": "deploy",
+ "description": "Build and publish your app."
+ }
+ ],
+ "notes": [
+ "This plugin is in preview and may change before general availability."
+ ],
+ "learn": [
+ {
+ "title": "Power Apps code apps overview",
+ "url": "https://learn.microsoft.com/power-apps/developer/code-apps/overview"
+ }
+ ]
+ },
+ {
+ "name": "mobile-app",
+ "title": "Mobile apps",
+ "product": "power-apps",
+ "goal": "mobile",
+ "audience": "both",
+ "status": "private-preview",
+ "summary": "Create iPhone and Android apps that use your Power Platform data, and preview them on your own phone as you build.",
+ "prompts": [
+ "Build me a small notes app",
+ "I want a field inspection app where technicians log site visits with photos, GPS location, and notes",
+ "I need an Asset table with name, serial number, and a lookup to an existing Account"
+ ],
+ "requirements": [
+ "Node.js 24 LTS",
+ "The Power Apps Mobile Preview app on your phone, from the Apple App Store or Google Play",
+ "Azure CLI, signed in",
+ "A Power Apps app registration. The plugin helps you find or configure one."
+ ],
+ "skills": [
+ {
+ "name": "create-mobile-app",
+ "description": "Create a new mobile app from a description."
+ },
+ {
+ "name": "edit-app",
+ "description": "Improve an app you already generated."
+ },
+ {
+ "name": "add-dataverse",
+ "description": "Add Dataverse tables and fields."
+ },
+ {
+ "name": "add-native",
+ "description": "Add phone features such as the camera or barcode scanning."
+ },
+ {
+ "name": "deploy",
+ "description": "Build and publish the app to your organization."
+ }
+ ],
+ "notes": [
+ "Private preview. Don't use it for production apps."
+ ],
+ "learn": []
+ },
+ {
+ "name": "power-apps-mobile-extension",
+ "title": "Power Apps Mobile extensions",
+ "product": "power-apps",
+ "goal": "mobile",
+ "audience": "developers",
+ "status": "preview",
+ "summary": "Add your own native phone features, written for Android and iOS, to a wrapped canvas app.",
+ "prompts": [
+ "Design a native barcode scanning feature for my wrapped canvas app",
+ "Generate the Android and iOS code and the companion control",
+ "Build the ppmplugin bundle and check it"
+ ],
+ "requirements": [
+ "Node.js 20 or 22",
+ "JDK 17 or later and the Android SDK with platform 35, for Android",
+ "Xcode 16 or later on a Mac, for iOS",
+ "PAC CLI 1.40 or later and .NET SDK 10 or later, to publish the companion control",
+ "Power Apps component framework for canvas apps, turned on by an admin"
+ ],
+ "skills": [
+ {
+ "name": "design-native-extension-feature",
+ "description": "Plan the feature and its technical design."
+ },
+ {
+ "name": "generate-native-extension",
+ "description": "Generate the Android and iOS code."
+ },
+ {
+ "name": "generate-pcf-companion",
+ "description": "Generate the control that connects the feature to your canvas app."
+ },
+ {
+ "name": "generate-ppmplugin",
+ "description": "Build and check the bundle you upload when you wrap the app."
+ },
+ {
+ "name": "publish-pcf-companion",
+ "description": "Publish the companion control to your environment."
+ }
+ ],
+ "notes": [
+ "Native code doesn't run in the browser preview. Test it in the wrapped app on a real phone.",
+ "Uploading a ppmplugin bundle during wrap is a preview feature."
+ ],
+ "learn": [
+ {
+ "title": "Power Apps component framework overview",
+ "url": "https://learn.microsoft.com/power-apps/developer/component-framework/overview"
+ },
+ {
+ "title": "Wrap a canvas app as a mobile app",
+ "url": "https://learn.microsoft.com/power-apps/maker/common/wrap/overview"
+ }
+ ]
+ },
+ {
+ "name": "power-automate",
+ "title": "Power Automate",
+ "product": "power-automate",
+ "goal": "automate",
+ "audience": "makers",
+ "status": null,
+ "summary": "Create, change, run, and troubleshoot Power Automate cloud flows by describing what you want, and run your desktop flows.",
+ "prompts": [
+ "Create a flow that emails me when a new item is added to my SharePoint list",
+ "Why did the last run of my approval flow fail?",
+ "Show me the flows in my environment"
+ ],
+ "requirements": [
+ "Node.js 18 or later",
+ "Azure CLI, signed in with az login",
+ "Access to the environments and flows you want to work with"
+ ],
+ "skills": [
+ {
+ "name": "setup",
+ "description": "Check and set up what the plugin needs the first time."
+ },
+ {
+ "name": "create-flow",
+ "description": "Create a new flow step by step."
+ },
+ {
+ "name": "build-flow",
+ "description": "Generate a complete flow from a description."
+ },
+ {
+ "name": "debug-flow",
+ "description": "Find out why a flow run failed."
+ },
+ {
+ "name": "manage-flows",
+ "description": "Publish, test, and list your flows."
+ }
+ ],
+ "notes": [
+ "The plugin can publish, turn off, copy, and delete flows. Check the environment and flow name before you approve a change."
+ ],
+ "learn": [
+ {
+ "title": "Get started with Power Automate",
+ "url": "https://learn.microsoft.com/power-automate/getting-started"
+ }
+ ]
+ },
+ {
+ "name": "process-intelligence",
+ "title": "Process Intelligence",
+ "product": "power-automate",
+ "goal": "analyze",
+ "audience": "makers",
+ "status": null,
+ "summary": "Ask questions about your Power Automate Process Mining data to find slow steps, rework, and differences between groups of cases.",
+ "prompts": [
+ "Why are invoice approvals taking longer this quarter?",
+ "Which steps cause the most waiting in this process?",
+ "Compare this month's cases with last month's"
+ ],
+ "requirements": [
+ "Node.js 22 or later, ideally a maintained LTS release",
+ "Azure CLI 2.54 or later",
+ "A Power Automate Process Mining account and environment you can use"
+ ],
+ "skills": [
+ {
+ "name": "setup",
+ "description": "Connect to your Process Mining environment and sign in."
+ },
+ {
+ "name": "investigate-process",
+ "description": "Test an idea about why a process behaves the way it does."
+ },
+ {
+ "name": "analytics",
+ "description": "Pick a process and get an overview."
+ },
+ {
+ "name": "analyze-performance",
+ "description": "Find slow steps and handoffs."
+ },
+ {
+ "name": "compare-cohorts",
+ "description": "Compare groups of cases or time periods."
+ }
+ ],
+ "notes": [
+ "Run the setup skill first. You review a privacy notice and confirm before any process data reaches your assistant.",
+ "Results can include business or personal data from your processes.",
+ "GCC, GCC High, DoD and Mooncake are not supported yet."
+ ],
+ "learn": [
+ {
+ "title": "Overview of process mining",
+ "url": "https://learn.microsoft.com/power-automate/process-mining-overview"
+ }
+ ]
+ },
+ {
+ "name": "dataverse",
+ "title": "Dataverse",
+ "product": "dataverse",
+ "goal": "data",
+ "audience": "both",
+ "status": null,
+ "external": "https://github.com/microsoft/Dataverse-skills",
+ "summary": "Connect to Dataverse and work with your business data: ask questions about records, import data, and manage tables, solutions, and security.",
+ "prompts": [
+ "Show me my open deals over $100K closing this quarter",
+ "Import this CSV into the contacts table",
+ "Create a customer feedback table with name, rating, and comment columns"
+ ],
+ "requirements": [
+ "A Dataverse environment. The free Power Apps Developer Plan works.",
+ "The dv-connect skill checks for the other tools it needs and helps you install them."
+ ],
+ "skills": [
+ {
+ "name": "dv-connect",
+ "description": "Set up tools, sign in, and connect to an environment."
+ },
+ {
+ "name": "dv-query",
+ "description": "Ask questions about your records."
+ },
+ {
+ "name": "dv-data",
+ "description": "Create, update, and import records."
+ },
+ {
+ "name": "dv-metadata",
+ "description": "Create and change tables, columns, forms, and views."
+ },
+ {
+ "name": "dv-solution",
+ "description": "Create, export, and import solutions."
+ }
+ ],
+ "notes": [
+ "Maintained in the microsoft/Dataverse-skills repository. Report issues there.",
+ "The install-everything command skips this plugin. To include it, use the Include Dataverse commands on the home page.",
+ "If you already installed it from the dataverse-skills marketplace, keep only one copy so its skills don't load twice."
+ ],
+ "learn": [
+ {
+ "title": "What is Dataverse?",
+ "url": "https://learn.microsoft.com/power-apps/maker/data-platform/data-platform-intro"
+ },
+ {
+ "title": "Power Apps Developer Plan",
+ "url": "https://learn.microsoft.com/power-platform/developer/plan"
+ }
+ ]
+ },
+ {
+ "name": "pcf",
+ "title": "PCF code components",
+ "product": "power-apps",
+ "goal": "extend",
+ "audience": "developers",
+ "status": "preview",
+ "summary": "Build, test, and deploy custom controls for Power Apps forms and views, with guided setup for Power Pages and canvas apps.",
+ "prompts": [
+ "Create a PCF star rating control for a model-driven form",
+ "Diagnose why this PCF project will not build",
+ "Deploy this PCF control and verify the binding"
+ ],
+ "requirements": [
+ "Node.js 20 or later",
+ "PAC CLI and .NET SDK 8, to deploy",
+ "Azure CLI, to check what you deployed"
+ ],
+ "skills": [
+ {
+ "name": "pcf",
+ "description": "Plan, build, test, deploy, and check a control."
+ }
+ ],
+ "notes": [
+ "For canvas apps, an admin must turn on Power Apps component framework for canvas apps in each environment.",
+ "Deployment and binding pause for your approval."
+ ],
+ "learn": [
+ {
+ "title": "Power Apps component framework overview",
+ "url": "https://learn.microsoft.com/power-apps/developer/component-framework/overview"
+ }
+ ]
+ },
+ {
+ "name": "mcp-apps",
+ "title": "MCP Apps",
+ "product": "dataverse",
+ "goal": "extend",
+ "audience": "developers",
+ "status": null,
+ "summary": "Generate tools that AI assistants can call to work with your Dataverse data, plus small interactive widgets that show the results.",
+ "prompts": [
+ "Create a tool named account-summary",
+ "Show account revenue as a bar chart",
+ "Create a tool that searches accounts and a widget that shows the results"
+ ],
+ "requirements": [
+ "PAC CLI, when a tool reads Dataverse tables"
+ ],
+ "skills": [
+ {
+ "name": "generate-codeful-mcp-tool",
+ "description": "Generate a tool and its description, inputs, and outputs."
+ },
+ {
+ "name": "generate-mcp-app-ui",
+ "description": "Generate a widget that shows a tool's results."
+ }
+ ],
+ "notes": [],
+ "learn": []
+ }
+ ],
+ "faq": [
+ {
+ "question": "Do I need to know how to code?",
+ "answer": "No. You describe what you want in your own words. You run a few commands to install things, and some plugins are aimed at developers. Each plugin page says who it's for."
+ },
+ {
+ "question": "What does it cost?",
+ "answer": "The plugins are free and open source under the MIT license. You need your own AI assistant, such as GitHub Copilot or Claude, and a Power Platform environment, which can need Power Platform licenses."
+ },
+ {
+ "question": "How do I update or remove a plugin?",
+ "answer": "The install-everything command turns on automatic updates. Otherwise, run claude plugin update or copilot plugin update with the plugin name. To remove a plugin, use uninstall instead of update."
+ },
+ {
+ "question": "Where do I get help?",
+ "answer": "Most plugins include a report-issue skill that drafts a bug report for you. You can also open an issue on GitHub."
+ }
+ ],
+ "video": {
+ "transcript": [
+ {
+ "spoken": "Your AI assistant knows a lot about code. A plugin teaches it how to build on Power Platform.",
+ "shown": "An AI assistant window opens, titled \"Your AI assistant\". Its Plugins list is empty and reads \"No plugins yet\", and the message box says \"Describe what you need\". A Power Pages plugin card flies in and settles into the list."
+ },
+ {
+ "spoken": "You install a plugin once, and it adds a set of skills.",
+ "shown": "Under \"Skills in this plugin\", five skills unfold from the plugin, each with what it does: /create-site, Start a new site. /edit-site, Change pages. /setup-datamodel, Add tables. /setup-auth, Add sign-in. /deploy-site, Upload the site."
+ },
+ {
+ "spoken": "Each skill is one job, written down step by step. Creating a Power Pages site is one skill. Deploying it is another.",
+ "shown": "/create-site opens into a card titled \"Create a Power Pages site\" with four steps: Ask what the site is for. Show you a plan to approve. Build the site. Ask before deploying it. A badge reads \"One skill, one job\". A second card, /deploy-site, titled \"Deploy the site\", slides in front with three steps: Check your sign-in and environment. Build the site. Upload it to Power Pages."
+ },
+ {
+ "spoken": "When you describe what you need, your assistant picks the right skill and follows its steps. It asks before it runs commands or changes files.",
+ "shown": "The cards fold back into the list of skills, which moves into the window's sidebar. Someone types \"Create a Power Pages site for a job board\" and sends it. A line links the request to /create-site, and the reply reads \"Using /create-site\" as three steps get checked off: Asked what the site is for. Showed you a plan to approve. Built the site. Then the assistant stops and asks \"Allow this command?\" for npm run build, with Deny and Allow buttons and a \"Your turn\" badge. Allow is pressed and changes to \"Allowed\"."
+ },
+ {
+ "spoken": "So, plugins are what you install, and skills are the jobs inside them. You just ask.",
+ "shown": "The window fades. The plugin card sits on the left above \"Plugin: What you install\", and the five skills line up on the right above \"Skills: The jobs inside it\". The film ends on \"You just ask.\" over a message box that says \"Describe what you need\", with \"Power Platform Skills\" and microsoft.github.io/power-platform-skills."
+ }
+ ]
+ },
+ "showcase": [
+ {
+ "plugin": "power-pages",
+ "prompt": "Create a Power Pages site with React for a job board",
+ "steps": [
+ "Asks what the site is for, who uses it, and how it should look",
+ "Shows you a plan of pages and design to approve",
+ "Builds the site in React with a live preview you can open"
+ ],
+ "waiting": "Asks before it deploys the site to your environment"
+ },
+ {
+ "plugin": "model-apps",
+ "prompt": "Build an app for tracking service requests",
+ "steps": [
+ "Confirms which environment to build in",
+ "Checks for tables you already have",
+ "Drafts the tables, forms, views, and security roles"
+ ],
+ "waiting": "Waits for you to approve the plan before it builds anything"
+ },
+ {
+ "plugin": "power-automate",
+ "prompt": "Create a flow that emails me when a new item is added to my SharePoint list",
+ "steps": [
+ "Picks the environment to build in",
+ "Finds the SharePoint and email actions and checks your connections",
+ "Drafts the trigger and the email step"
+ ],
+ "waiting": "Asks you to confirm the design before it creates the flow"
+ },
+ {
+ "plugin": "process-intelligence",
+ "prompt": "Why are invoice approvals taking longer this quarter?",
+ "steps": [
+ "Confirms the process, the question, and the time periods",
+ "States what it expects to find and what would prove it wrong",
+ "Compares this quarter's cases with the last",
+ "Reports each finding as supported, contradicted, or inconclusive"
+ ],
+ "waiting": null
+ }
+ ]
+}
diff --git a/site/fetch-media.js b/site/fetch-media.js
new file mode 100644
index 000000000..132624f16
--- /dev/null
+++ b/site/fetch-media.js
@@ -0,0 +1,52 @@
+#!/usr/bin/env node
+'use strict';
+
+/**
+ * Fetches the site's pinned media (the explainer video and its poster) from the site-media
+ * branch into site/media, which Git ignores. See site/lib/media.js for why they live there.
+ *
+ * Usage:
+ * node site/fetch-media.js [--from <remote, URL, or path>]
+ *
+ * --from Where to fetch the branch from: a URL, a remote name, or a folder in a Git
+ * repository. Default: the public repository on GitHub, so a fork or a clone with other
+ * remote names still gets the real files. Use "." to try a site-media branch that is
+ * not pushed yet.
+ *
+ * Needs Git. The fetch runs in a temporary repository, so it never changes your clone.
+ */
+
+const path = require('node:path');
+const links = require('./lib/install-links.js');
+const { fetchMedia, loadMediaManifest } = require('./lib/media.js');
+
+const SITE_DIR = __dirname;
+
+function parseArgs(argv) {
+ const options = { from: `https://github.com/${links.REPO}.git` };
+ for (let index = 0; index < argv.length; index += 1) {
+ if (argv[index] === '--from' && argv[index + 1]) {
+ options.from = argv[index + 1];
+ index += 1;
+ } else {
+ throw new Error(`Unknown or incomplete argument: ${argv[index]}\nUsage: node site/fetch-media.js [--from <remote, URL, or path>]`);
+ }
+ }
+ return options;
+}
+
+if (require.main === module) {
+ try {
+ const { from } = parseArgs(process.argv.slice(2));
+ const manifest = loadMediaManifest(path.join(SITE_DIR, 'media.json'));
+ const mediaDir = path.join(SITE_DIR, 'media');
+ // Remote names resolve in the site's repository; relative folders from where this was run.
+ const { fetched } = fetchMedia({ manifest, mediaDir, from, cwd: SITE_DIR, pathBase: process.cwd() });
+ console.log(fetched.length ? `Fetched ${fetched.join(', ')} into site/media` : 'site/media already has every pinned file');
+ } catch (error) {
+ console.error(error.message);
+ process.exitCode = 1;
+ }
+}
+
+module.exports = { parseArgs };
diff --git a/site/lib/catalog.js b/site/lib/catalog.js
new file mode 100644
index 000000000..f0937ff6b
--- /dev/null
+++ b/site/lib/catalog.js
@@ -0,0 +1,182 @@
+'use strict';
+
+// Loads site/catalog.json and checks it against the marketplace, so the site cannot drift
+// from what users can actually install. The catalog holds only the plain-language content
+// that no manifest carries (who a plugin is for, example prompts, prerequisites); names,
+// versions and sources always come from marketplace.json and each plugin's manifest.
+
+const fs = require('node:fs');
+const path = require('node:path');
+const { isValidPluginName } = require('./install-links.js');
+
+const AUDIENCES = new Set(['makers', 'developers', 'both']);
+const STATUSES = new Set([null, 'preview', 'private-preview']);
+
+// The Microsoft product each plugin works with, shown as the product's official icon with its
+// full name beside it. Microsoft's icon terms require the name near the icon and allow an icon
+// only for the product it was designed for, so the label here must be that product's name.
+// Icons: https://learn.microsoft.com/power-platform/guidance/icons (see site/assets/brand/README.md)
+const PRODUCTS = {
+ 'power-pages': { label: 'Power Pages', icon: 'assets/brand/power-pages.svg' },
+ 'power-apps': { label: 'Power Apps', icon: 'assets/brand/power-apps.svg' },
+ 'power-automate': { label: 'Power Automate', icon: 'assets/brand/power-automate.svg' },
+ dataverse: { label: 'Dataverse', icon: 'assets/brand/dataverse.svg' },
+};
+
+function readJson(file) {
+ return JSON.parse(fs.readFileSync(file, 'utf8'));
+}
+
+function isNonEmptyString(value) {
+ return typeof value === 'string' && value.trim().length > 0;
+}
+
+function isHttpsUrl(value) {
+ if (!isNonEmptyString(value)) return false;
+ try {
+ return new URL(value).protocol === 'https:';
+ } catch {
+ return false;
+ }
+}
+
+// Collects every problem instead of stopping at the first, so one CI run reports the whole
+// list when someone adds a plugin to the marketplace without a catalog entry.
+function loadCatalog(repoRoot) {
+ const marketplace = readJson(path.join(repoRoot, 'marketplace.json'));
+ const catalog = readJson(path.join(repoRoot, 'site', 'catalog.json'));
+ const problems = [];
+
+ const goals = Array.isArray(catalog.goals) ? catalog.goals : [];
+ const goalIds = new Set();
+ for (const goal of goals) {
+ if (!isNonEmptyString(goal.id) || !isNonEmptyString(goal.title) || !isNonEmptyString(goal.summary)) {
+ problems.push(`goal ${JSON.stringify(goal.id)} needs an id, title and summary`);
+ continue;
+ }
+ if (goalIds.has(goal.id)) problems.push(`goal ${goal.id} is listed twice`);
+ goalIds.add(goal.id);
+ }
+
+ const marketplaceEntries = new Map(marketplace.plugins.map((entry) => [entry.name, entry]));
+ const catalogPlugins = Array.isArray(catalog.plugins) ? catalog.plugins : [];
+ const seen = new Set();
+ const plugins = [];
+
+ for (const entry of catalogPlugins) {
+ const name = entry && entry.name;
+ const where = `plugin ${JSON.stringify(name)}`;
+ if (!isValidPluginName(name)) {
+ problems.push(`${where} has an invalid name`);
+ continue;
+ }
+ if (seen.has(name)) problems.push(`${where} is listed twice`);
+ seen.add(name);
+
+ const source = marketplaceEntries.get(name);
+ if (!source) {
+ problems.push(`${where} is in site/catalog.json but not in marketplace.json`);
+ continue;
+ }
+
+ if (!isNonEmptyString(entry.title)) problems.push(`${where} needs a title`);
+ if (!isNonEmptyString(entry.summary)) problems.push(`${where} needs a summary`);
+ if (!goalIds.has(entry.goal)) problems.push(`${where} uses unknown goal ${JSON.stringify(entry.goal)}`);
+ if (!AUDIENCES.has(entry.audience)) problems.push(`${where} has unknown audience ${JSON.stringify(entry.audience)}`);
+ if (!STATUSES.has(entry.status)) problems.push(`${where} has unknown status ${JSON.stringify(entry.status)}`);
+ if (!Object.prototype.hasOwnProperty.call(PRODUCTS, entry.product)) problems.push(`${where} has unknown product ${JSON.stringify(entry.product)}`);
+ for (const field of ['prompts', 'requirements', 'notes']) {
+ if (!Array.isArray(entry[field]) || !entry[field].every(isNonEmptyString)) {
+ problems.push(`${where} needs ${field} as a list of strings`);
+ }
+ }
+ if (Array.isArray(entry.prompts) && (entry.prompts.length < 1 || entry.prompts.length > 5)) {
+ problems.push(`${where} needs 1 to 5 example prompts`);
+ }
+ if (!Array.isArray(entry.learn) || !entry.learn.every((link) => isNonEmptyString(link.title) && isHttpsUrl(link.url))) {
+ problems.push(`${where} needs learn links with a title and an https url`);
+ }
+
+ // marketplace.json uses a "./plugins/<dir>" string for plugins in this repository and a
+ // source object for external ones, e.g.
+ // { "source": "github", "repo": "microsoft/Dataverse-skills", "path": ".github/plugins/dataverse" }
+ let version = null;
+ let docsUrl;
+ const skills = Array.isArray(entry.skills) ? entry.skills : [];
+ if (typeof source.source === 'string') {
+ const pluginDir = path.join(repoRoot, source.source);
+ const manifest = readJson(path.join(pluginDir, '.plugin', 'plugin.json'));
+ if (manifest.name !== name) problems.push(`${where} manifest is named ${JSON.stringify(manifest.name)}`);
+ version = manifest.version || null;
+ docsUrl = `https://github.com/microsoft/power-platform-skills/tree/main/${source.source.replace(/^\.\//, '')}`;
+ for (const skill of skills) {
+ if (!isNonEmptyString(skill.name) || !fs.existsSync(path.join(pluginDir, 'skills', skill.name, 'SKILL.md'))) {
+ problems.push(`${where} lists skill ${JSON.stringify(skill.name)}, which has no skills/<name>/SKILL.md`);
+ }
+ }
+ if (entry.external) problems.push(`${where} lives in this repository, so it must not set external`);
+ } else {
+ // External skills live in another repository, so only their shape can be checked here.
+ if (!isHttpsUrl(entry.external)) problems.push(`${where} is external, so it needs an https external url`);
+ docsUrl = entry.external;
+ for (const skill of skills) {
+ if (!isNonEmptyString(skill.name)) problems.push(`${where} has a skill with no name`);
+ }
+ }
+ if (!skills.every((skill) => isNonEmptyString(skill.description))) {
+ problems.push(`${where} needs a description for every skill`);
+ }
+
+ plugins.push({ ...entry, skills, version, docsUrl, external: Boolean(entry.external) });
+ }
+
+ for (const name of marketplaceEntries.keys()) {
+ if (!seen.has(name)) problems.push(`marketplace plugin ${name} has no entry in site/catalog.json`);
+ }
+ for (const goal of goalIds) {
+ if (!plugins.some((plugin) => plugin.goal === goal)) problems.push(`goal ${goal} has no plugins`);
+ }
+
+ const faq = Array.isArray(catalog.faq) ? catalog.faq : [];
+ if (!faq.every((item) => isNonEmptyString(item.question) && isNonEmptyString(item.answer))) {
+ problems.push('every faq entry needs a question and an answer');
+ }
+
+ // The transcript under the explainer video: each paragraph of narration ("spoken"), then what
+ // is on screen while it is spoken ("shown"), for anyone who cannot see or play the video.
+ const video = catalog.video && typeof catalog.video === 'object' ? catalog.video : {};
+ const transcript = Array.isArray(video.transcript) ? video.transcript : [];
+ if (transcript.length === 0 || !transcript.every((item) => isNonEmptyString(item.spoken) && isNonEmptyString(item.shown))) {
+ problems.push('video.transcript needs at least one paragraph, each with spoken and shown text');
+ }
+
+ // The hero replays example sessions. Each prompt must be one of the plugin's own example
+ // prompts, so the demo and the plugin page never disagree about what to ask.
+ const showcase = Array.isArray(catalog.showcase) ? catalog.showcase : [];
+ if (showcase.length < 1 || showcase.length > 6) problems.push('showcase needs 1 to 6 example sessions');
+ for (const [index, item] of showcase.entries()) {
+ const where = `showcase[${index}]`;
+ const plugin = plugins.find((candidate) => candidate.name === item.plugin);
+ if (!plugin) {
+ problems.push(`${where} names unknown plugin ${JSON.stringify(item.plugin)}`);
+ continue;
+ }
+ if (!Array.isArray(plugin.prompts) || !plugin.prompts.includes(item.prompt)) problems.push(`${where} prompt is not one of ${item.plugin}'s prompts`);
+ if (!Array.isArray(item.steps) || item.steps.length < 2 || item.steps.length > 5 || !item.steps.every(isNonEmptyString)) {
+ problems.push(`${where} needs 2 to 5 steps`);
+ }
+ if (item.waiting !== null && item.waiting !== undefined && !isNonEmptyString(item.waiting)) {
+ problems.push(`${where} waiting must be text or null`);
+ }
+ }
+
+ if (problems.length > 0) {
+ const error = new Error(`site/catalog.json has ${problems.length} problem(s):\n - ${problems.join('\n - ')}`);
+ error.problems = problems;
+ throw error;
+ }
+
+ return { goals, plugins, faq, showcase, video: { transcript } };
+}
+
+module.exports = { loadCatalog, PRODUCTS };
diff --git a/site/lib/install-links.js b/site/lib/install-links.js
new file mode 100644
index 000000000..ae0926734
--- /dev/null
+++ b/site/lib/install-links.js
@@ -0,0 +1,188 @@
+/**
+ * Install commands and one-click install links for Power Platform Skills plugins.
+ *
+ * This file is the single source of truth for every install command and link that the
+ * showcase site renders, that the browser launcher page builds, and that the README tests
+ * compare against. It runs in Node (build and tests) and in the browser (copied to the
+ * site's assets folder as-is), so it uses no Node APIs and no ES module syntax.
+ *
+ * Every link reuses a URL handler that the AI assistant already registers, so a click never
+ * runs anything by itself:
+ * - Claude Code registers `claude-cli://open`. The link only pre-fills the prompt box in a
+ * new terminal window; the user still reads it and presses Enter.
+ * https://code.claude.com/docs/en/deep-links
+ * - The GitHub Copilot app accepts `ghapp://plugins/...` links through GitHub's hosted
+ * https launcher, and shows a confirmation before it adds a marketplace or installs.
+ * https://docs.github.com/copilot/how-tos/github-copilot-app/open-with-deep-links
+ * - GitHub Copilot CLI registers no URL handler, so it gets copyable commands instead.
+ *
+ * GitHub-rendered Markdown strips custom schemes such as `claude-cli:`, so README links to
+ * Claude Code go through the site's /install/ launcher page, the same way VS Code links go
+ * through vscode.dev/redirect.
+ */
+(function (root, factory) {
+ 'use strict';
+ const api = factory();
+ if (typeof module === 'object' && module.exports) {
+ module.exports = api;
+ } else {
+ root.PowerPlatformSkillsInstallLinks = api;
+ }
+}(typeof globalThis !== 'undefined' ? globalThis : this, function () {
+ 'use strict';
+
+ const REPO = 'microsoft/power-platform-skills';
+ const MARKETPLACE = 'power-platform-skills';
+ const SITE_URL = 'https://microsoft.github.io/power-platform-skills/';
+ const INSTALLER_URL = 'https://raw.githubusercontent.com/' + REPO + '/main/scripts/install.js';
+ const COPILOT_APP_LAUNCHER = 'https://github.com/copilot/app/launch?open=';
+
+ // The launcher page accepts only these `app` values. Copilot app links already use an https
+ // launcher that GitHub renders, so only Claude Code needs our own redirect page.
+ const LAUNCHER_APPS = ['claude-code'];
+
+ // The same Open Plugins name grammar as scripts/install.js: 1-64 lowercase letters or
+ // digits, with single dots or hyphens between alphanumeric characters. Names are already
+ // allowlisted against marketplace.json; this is defense in depth, because a name ends up
+ // inside a prompt that an assistant will run once the user presses Enter.
+ function isValidPluginName(name) {
+ const match = typeof name === 'string' && /^[a-z0-9](?:[a-z0-9.-]{0,62}[a-z0-9])?$/.exec(name);
+ return Boolean(match && match[0] === name && name.indexOf('--') === -1 && name.indexOf('..') === -1);
+ }
+
+ function requireName(name) {
+ if (!isValidPluginName(name)) {
+ throw new Error('Invalid plugin name: ' + JSON.stringify(name));
+ }
+ return name;
+ }
+
+ // Claude Code v2.1.275 and later accept `--marketplace` in a session: it adds the marketplace
+ // when it is missing and reuses it otherwise, so one prompt works on a fresh machine.
+ // https://code.claude.com/docs/en/plugins/install#add-a-marketplace-and-install-in-one-command
+ function claudeCodePrompt(name) {
+ return '/plugin install ' + requireName(name) + ' --marketplace ' + REPO;
+ }
+
+ function claudeCodeShellCommand(name) {
+ return 'claude plugin install ' + requireName(name) + ' --marketplace ' + REPO;
+ }
+
+ function claudeCodeDeepLink(name) {
+ return 'claude-cli://open?q=' + encodeURIComponent(claudeCodePrompt(name));
+ }
+
+ // `base` is the site root: an absolute URL for README links, or a relative path such as
+ // '../../' for links between site pages, so the site also works from a local preview.
+ function launcherUrl(base, app, name) {
+ if (LAUNCHER_APPS.indexOf(app) === -1) {
+ throw new Error('Unsupported launcher app: ' + JSON.stringify(app));
+ }
+ return base + 'install/?app=' + encodeURIComponent(app) + '&plugin=' + encodeURIComponent(requireName(name));
+ }
+
+ // The launcher wants the whole app link encoded in `open`, and each query value inside the
+ // app link encoded first, so `@` and `/` end up double-encoded in the final URL.
+ function copilotAppUrl(appLink) {
+ return COPILOT_APP_LAUNCHER + encodeURIComponent(appLink);
+ }
+
+ function copilotAppMarketplaceUrl() {
+ return copilotAppUrl('ghapp://plugins/marketplace/add?source=' + encodeURIComponent(REPO));
+ }
+
+ function copilotAppInstallUrl(name) {
+ return copilotAppUrl('ghapp://plugins/install?source=' + encodeURIComponent(requireName(name) + '@' + MARKETPLACE));
+ }
+
+ function copilotCliCommands(name) {
+ return [
+ 'copilot plugin marketplace add ' + REPO,
+ 'copilot plugin install ' + requireName(name) + '@' + MARKETPLACE,
+ ];
+ }
+
+ // Both commands on one line, so a single paste and a single Enter run them. Two pasted lines
+ // run as two commands, or wait in the buffer, depending on the shell.
+ // The separator is ';' rather than '&&' for two reasons:
+ // - `copilot plugin marketplace add` exits 1 when the marketplace is already registered:
+ // Failed to add marketplace: ... Marketplace "power-platform-skills" already registered
+ // so '&&' would skip the install for anyone adding a second plugin.
+ // - Windows PowerShell 5.1, the default on Windows, rejects '&&'; ';' works there, in
+ // PowerShell 7, bash, zsh, and fish. cmd.exe needs '&' instead, which the site says.
+ function copilotCliCommand(name) {
+ return copilotCliCommands(name).join('; ');
+ }
+
+ // The one-line installers from the README. PowerShell gets its own form because Windows
+ // PowerShell aliases `curl` to Invoke-WebRequest, which cannot pipe a script into node.
+ const INSTALL_ALL = {
+ windows: 'iwr ' + INSTALLER_URL + ' -OutFile install.js; node install.js; del install.js',
+ unix: 'curl -fsSL ' + INSTALLER_URL + ' | node',
+ };
+
+ // The installer flag must reach install.js, not node or del, so it cannot simply be appended:
+ // curl ... | node --include-dataverse -> node rejects the unknown option
+ // ...; del install.js --include-dataverse -> the flag lands on del, and the install skips Dataverse
+ // `node -` makes node read the piped script and pass the arguments after it to the script.
+ const INSTALL_ALL_WITH_DATAVERSE = {
+ windows: 'iwr ' + INSTALLER_URL + ' -OutFile install.js; node install.js --include-dataverse; del install.js',
+ unix: 'curl -fsSL ' + INSTALLER_URL + ' | node - --include-dataverse',
+ };
+
+ // Computers the site has install steps for. macOS and Linux share the curl one-liner; only
+ // how you open a terminal differs.
+ const OPERATING_SYSTEMS = ['windows', 'macos', 'linux'];
+
+ function installAllCommand(os, options) {
+ const commands = options && options.dataverse ? INSTALL_ALL_WITH_DATAVERSE : INSTALL_ALL;
+ if (OPERATING_SYSTEMS.indexOf(os) === -1) throw new Error('Unknown operating system: ' + JSON.stringify(os));
+ return os === 'windows' ? commands.windows : commands.unix;
+ }
+
+ // Guesses the visitor's computer from what the browser reports, so the site can show the one
+ // install command that fits. Returns null for phones and tablets (the assistant runs on a
+ // computer) and when nothing matches; the page then asks the visitor to choose.
+ // Inputs, as browsers report them:
+ // userAgentData.platform "Windows" | "macOS" | "Linux" | "Chrome OS" | "Android" (Chromium only)
+ // userAgentData.mobile true on phones (Chromium only)
+ // platform "Win32" | "MacIntel" | "Linux x86_64" | "iPhone" | "iPad" (deprecated, still set)
+ // userAgent "... (Windows NT 10.0; Win64; x64) ..." | "... (Macintosh; Intel Mac OS X 10_15_7) ..."
+ // | "... (X11; Linux x86_64) ..." | "... (Linux; Android 14; ...) ..."
+ // maxTouchPoints iPadOS 13+ reports "MacIntel" like a Mac, but with touch points above 1
+ function detectOs(nav) {
+ const data = (nav && nav.userAgentData) || {};
+ const platform = String(data.platform || (nav && nav.platform) || '');
+ const agent = String((nav && nav.userAgent) || '');
+ if (data.mobile || /android|iphone|ipad|ipod/i.test(platform + ' ' + agent)) return null;
+ if (/^win/i.test(platform) || /windows nt/i.test(agent)) return 'windows';
+ if (/mac/i.test(platform) || /macintosh/i.test(agent)) {
+ return nav && nav.maxTouchPoints > 1 ? null : 'macos';
+ }
+ // Chrome OS runs the commands in its Linux development environment.
+ if (/linux|chrome os|cros|x11/i.test(platform + ' ' + agent)) return 'linux';
+ return null;
+ }
+
+ return {
+ REPO: REPO,
+ MARKETPLACE: MARKETPLACE,
+ SITE_URL: SITE_URL,
+ INSTALLER_URL: INSTALLER_URL,
+ LAUNCHER_APPS: LAUNCHER_APPS,
+ INSTALL_ALL: INSTALL_ALL,
+ INSTALL_ALL_WITH_DATAVERSE: INSTALL_ALL_WITH_DATAVERSE,
+ OPERATING_SYSTEMS: OPERATING_SYSTEMS,
+ installAllCommand: installAllCommand,
+ detectOs: detectOs,
+ isValidPluginName: isValidPluginName,
+ claudeCodePrompt: claudeCodePrompt,
+ claudeCodeShellCommand: claudeCodeShellCommand,
+ claudeCodeDeepLink: claudeCodeDeepLink,
+ launcherUrl: launcherUrl,
+ copilotAppMarketplaceUrl: copilotAppMarketplaceUrl,
+ copilotAppInstallUrl: copilotAppInstallUrl,
+ copilotCliCommands: copilotCliCommands,
+ copilotCliCommand: copilotCliCommand,
+ };
+}));
diff --git a/site/lib/media.js b/site/lib/media.js
new file mode 100644
index 000000000..fabe88750
--- /dev/null
+++ b/site/lib/media.js
@@ -0,0 +1,173 @@
+'use strict';
+
+// The site's large binary files, the explainer video and its poster, are not committed on main.
+// Marketplace installs clone main: every byte there is downloaded by everyone who adds the
+// marketplace, and every new version of a file is downloaded again on each update. Claude Code
+// and GitHub Copilot CLI both clone only the default branch (shallow, single-branch), so these
+// files live on the site-media branch instead, which no assistant ever fetches.
+//
+// site/media.json on main pins each file by SHA-256, so a build can only publish the exact bytes
+// main was reviewed with. The branch keeps every version under a content-hashed name, so a new
+// render can be pushed there before the pull request that switches main to it, and main keeps
+// deploying the old one until then.
+
+const crypto = require('node:crypto');
+const fs = require('node:fs');
+const os = require('node:os');
+const path = require('node:path');
+const { execFileSync } = require('node:child_process');
+
+const MEDIA_BRANCH = 'site-media';
+// Paths are lowercase words joined by "/". Every segment starts with a letter or digit, so no
+// segment can be "." or "..", and neither a published path nor a branch path can leave its folder.
+const SAFE_PATH = /^[a-z0-9][a-z0-9._-]*(?:\/[a-z0-9][a-z0-9._-]*)*$/;
+
+function sha256(data) {
+ return crypto.createHash('sha256').update(data).digest('hex');
+}
+
+// site/media.json looks like:
+// { "branch": "site-media",
+// "files": [{ "path": "assets/video/plugins-and-skills.mp4", <- where the site serves it
+// "source": "video/plugins-and-skills-1a2b3c4d5e6f.mp4", <- where it is on the branch
+// "sha256": "<64 hex>", "bytes": 3187458 }] }
+function loadMediaManifest(file) {
+ const manifest = JSON.parse(fs.readFileSync(file, 'utf8'));
+ const fail = (message) => {
+ throw new Error(`${file}: ${message}`);
+ };
+ if (manifest.branch !== MEDIA_BRANCH) fail(`branch must be "${MEDIA_BRANCH}"`);
+ if (!Array.isArray(manifest.files) || manifest.files.length === 0) fail('files must list at least one file');
+ const seen = new Set();
+ for (const entry of manifest.files) {
+ if (typeof entry.path !== 'string' || !SAFE_PATH.test(entry.path) || !entry.path.startsWith('assets/')) {
+ fail(`${JSON.stringify(entry.path)} is not a path under assets/`);
+ }
+ if (typeof entry.source !== 'string' || !SAFE_PATH.test(entry.source)) fail(`${JSON.stringify(entry.source)} is not a safe branch path`);
+ if (typeof entry.sha256 !== 'string' || !/^[0-9a-f]{64}$/.test(entry.sha256)) fail(`${entry.path} needs a lowercase hex sha256`);
+ if (!Number.isInteger(entry.bytes) || entry.bytes <= 0) fail(`${entry.path} needs its size in bytes`);
+ if (seen.has(entry.path)) fail(`${entry.path} is listed twice`);
+ seen.add(entry.path);
+ }
+ return manifest;
+}
+
+function checkPinned(entry, data, where) {
+ if (data.length !== entry.bytes || sha256(data) !== entry.sha256) {
+ throw new Error(`${where} is not the version site/media.json pins for ${entry.path}. Run node site/fetch-media.js to fetch it.`);
+ }
+}
+
+// Copies each pinned file from a local copy of the branch into the built site.
+// A missing file is reported rather than thrown, so a contributor can build and preview the
+// rest of the site without the video; the deploy passes --require-media to make it an error.
+// A file that is present but different always throws, because publishing it would be wrong.
+function copyMedia({ manifest, mediaDir, outDir }) {
+ const written = [];
+ const missing = [];
+ for (const entry of manifest.files) {
+ const from = mediaDir ? path.join(mediaDir, entry.source) : null;
+ if (!from || !fs.existsSync(from)) {
+ missing.push(entry.source);
+ continue;
+ }
+ const data = fs.readFileSync(from);
+ checkPinned(entry, data, from);
+ const to = path.join(outDir, entry.path);
+ fs.mkdirSync(path.dirname(to), { recursive: true });
+ fs.writeFileSync(to, data);
+ written.push(entry.path);
+ }
+ return { written, missing };
+}
+
+function git(args, cwd) {
+ try {
+ // Buffers, not strings: cat-file returns the binary files themselves.
+ return execFileSync('git', args, { cwd, stdio: ['ignore', 'pipe', 'pipe'], maxBuffer: 512 * 1024 * 1024 });
+ } catch (error) {
+ const detail = error.stderr ? error.stderr.toString().trim() : error.message;
+ throw new Error(`git ${args.join(' ')} failed: ${detail}`);
+ }
+}
+
+// Turns --from into something a fresh repository can fetch from: a URL as is, a remote name of
+// the repository in cwd as its URL, and a folder as the path of its Git directory. git fetch
+// accepts a remote name only in the repository that defines it, and a folder only at the top of
+// a repository, not a subfolder. A relative folder is relative to pathBase, the directory the
+// command was run from, as a user expects; remote names still belong to the site's repository.
+function resolveSource(from, cwd, pathBase = cwd) {
+ // "https://host/owner/repo.git", "ssh://...", or scp-like "git@host:owner/repo.git".
+ if (/^[a-z][a-z0-9+.-]*:\/\//i.test(from) || /^[^/\\:]+@[^/\\:]+:/.test(from)) return from;
+ try {
+ return git(['remote', 'get-url', from], cwd).toString().trim();
+ } catch {
+ // Not a remote name; try it as a folder.
+ }
+ const folder = path.resolve(pathBase, from);
+ if (fs.existsSync(folder)) {
+ try {
+ return path.resolve(folder, git(['rev-parse', '--git-common-dir'], folder).toString().trim());
+ } catch {
+ // Not in a repository; fall through to the error.
+ }
+ }
+ throw new Error(`--from ${from} is not a URL, a Git remote, or a folder in a Git repository.`);
+}
+
+// Fetches the pinned files from the site-media branch into mediaDir, keeping their branch paths.
+// Files already present with the right hash are left alone, and if every file is, nothing is
+// fetched at all.
+//
+// The fetch runs in a private, temporary bare repository, never in the contributor's own clone.
+// A --depth fetch records the fetched commit in the repository's shared "shallow" file, which
+// would turn a full clone (and every worktree of it) into a shallow one, and would also drop
+// local history of site-media. A throwaway repository keeps all of that out of their clone.
+function fetchMedia({ manifest, mediaDir, from, cwd, pathBase = cwd }) {
+ const needed = manifest.files.filter((entry) => {
+ const file = path.join(mediaDir, entry.source);
+ if (!fs.existsSync(file)) return true;
+ const data = fs.readFileSync(file);
+ return data.length !== entry.bytes || sha256(data) !== entry.sha256;
+ });
+ if (needed.length === 0) return { fetched: [] };
+
+ const source = resolveSource(from, cwd, pathBase);
+ const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'pps-site-media-'));
+ try {
+ const repo = (args) => git([`--git-dir=${scratch}`, ...args]);
+ git(['init', '--quiet', '--bare', scratch]);
+ try {
+ // Only the tip of the branch, into FETCH_HEAD: no refs, tags, or older versions.
+ repo(['fetch', '--quiet', '--depth', '1', '--no-tags', source, `refs/heads/${manifest.branch}`]);
+ } catch (error) {
+ // git reports a branch that does not exist as: "fatal: couldn't find remote ref refs/heads/site-media"
+ const hint = /couldn't find remote ref/.test(error.message) ? ` The ${manifest.branch} branch is not on ${from}; push it first, or pass --from.` : '';
+ throw new Error(`${error.message}${hint}`);
+ }
+ const commit = repo(['rev-parse', '--verify', 'FETCH_HEAD^{commit}']).toString().trim();
+ for (const entry of needed) {
+ let data;
+ try {
+ data = repo(['cat-file', 'blob', `${commit}:${entry.source}`]);
+ } catch {
+ throw new Error(`The ${manifest.branch} branch has no ${entry.source}. Push it there before merging the change to site/media.json.`);
+ }
+ checkPinned(entry, data, `${manifest.branch}:${entry.source}`);
+ const to = path.join(mediaDir, entry.source);
+ fs.mkdirSync(path.dirname(to), { recursive: true });
+ fs.writeFileSync(to, data);
+ }
+ } finally {
+ // Git marks object files read-only; fs.rmSync clears that on Windows before deleting.
+ // A cleanup failure only leaves a temporary folder behind, so it must not fail the fetch.
+ try {
+ fs.rmSync(scratch, { recursive: true, force: true });
+ } catch {
+ // Ignored: see above.
+ }
+ }
+ return { fetched: needed.map((entry) => entry.source) };
+}
+
+module.exports = { MEDIA_BRANCH, copyMedia, fetchMedia, loadMediaManifest, sha256 };
diff --git a/site/lib/render.js b/site/lib/render.js
new file mode 100644
index 000000000..ef2fda128
--- /dev/null
+++ b/site/lib/render.js
@@ -0,0 +1,792 @@
+'use strict';
+
+// Renders the showcase site's HTML from the validated catalog. Every value that comes from
+// JSON goes through escapeHtml or escapeAttr; nothing is inserted as raw HTML.
+//
+// Design brief (see plugins/power-pages/references/design-aesthetics.md for the method):
+// - Audience and job: Power Platform makers, partners, and developers who want an AI assistant
+// to build for them. They come to find the plugin for their goal and install it.
+// - Primary action: "Install everything" (one command, picked for the visitor's computer).
+// Secondary: "Choose a plugin".
+// - Principal doubt: "Will an AI agent build this correctly, and is it safe in my environment?"
+// - Proof: it is Microsoft's, open source, and the assistant asks before it acts; the hero
+// session shows the real steps a plugin takes, including where it stops for approval.
+// - Design thesis: official and calm. The Power Platform ribbon's teal-to-green is the one
+// signal for "your assistant is working", on navy ink and cool paper, with Schibsted Grotesk
+// headlines, Public Sans text, JetBrains Mono for anything you type, and 10px corners.
+// - Signature moment: the hero session, which turns a plain request into finished steps.
+
+const links = require('./install-links.js');
+const { PRODUCTS } = require('./catalog.js');
+
+const REPO_URL = `https://github.com/${links.REPO}`;
+const README_URL = `${REPO_URL}#readme`;
+const TELEMETRY_URL = `${REPO_URL}#telemetry`;
+const DEV_ENV_URL = 'https://learn.microsoft.com/power-platform/developer/create-developer-environment';
+const CLAUDE_CODE_URL = 'https://code.claude.com/docs/en/setup';
+const COPILOT_CLI_URL = 'https://docs.github.com/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli';
+const COPILOT_APP_URL = 'https://github.com/features/ai/github-app';
+
+// Always the products' full names: "GitHub Copilot app", never just "Copilot app".
+const ASSISTANTS = [
+ { id: 'copilot-app', label: 'GitHub Copilot app' },
+ { id: 'copilot-cli', label: 'GitHub Copilot CLI' },
+ { id: 'claude-code', label: 'Claude Code' },
+];
+
+const AUDIENCE_LABELS = {
+ makers: 'Makers',
+ developers: 'Developers',
+ both: 'Makers and developers',
+};
+
+const STATUS_LABELS = {
+ preview: 'Preview',
+ 'private-preview': 'Private preview',
+};
+
+const HTML_ESCAPES = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' };
+
+function escapeHtml(value) {
+ return String(value).replace(/[&<>"']/g, (ch) => HTML_ESCAPES[ch]);
+}
+
+const escapeAttr = escapeHtml;
+
+// JSON inside <script type="application/json"> is data, not code, but the HTML parser still
+// ends the element at the first "</script". Escaping "<" keeps any string value from closing it.
+function jsonForScript(value) {
+ return JSON.stringify(value).replace(/</g, '\\u003c');
+}
+
+// One icon style for the whole site: 24px grid, 1.75 stroke, round caps and joins.
+const ICON_PATHS = {
+ check: '<path d="M5 12.5l4.5 4.5L19 7.5"/>',
+ waiting: '<circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/>',
+ system: '<rect x="3" y="4.5" width="18" height="12" rx="2"/><path d="M9 20h6M12 16.5V20"/>',
+ light: '<circle cx="12" cy="12" r="4"/><path d="M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"/>',
+ dark: '<path d="M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z"/>',
+ menu: '<path d="M4 7h16M4 12h16M4 17h16"/>',
+ close: '<path d="M6 6l12 12M18 6L6 18"/>',
+ badge: '<path d="M12 3l2.4 1.8 3-.2.9 2.9 2.4 1.8-.9 2.9.9 2.9-2.4 1.8-.9 2.9-3-.2L12 21l-2.4-1.8-3 .2-.9-2.9L3.3 14.7l.9-2.9-.9-2.9 2.4-1.8.9-2.9 3 .2z"/><path d="M8.8 12.2l2.2 2.2 4.2-4.4"/>',
+ code: '<path d="M8.5 7.5L4 12l4.5 4.5M15.5 7.5L20 12l-4.5 4.5M13.5 5l-3 14"/>',
+ plug: '<path d="M9 3v4M15 3v4M6.5 7h11v3.5a5.5 5.5 0 0 1-11 0z"/><path d="M12 16v5"/>',
+ shield: '<path d="M12 3l7.5 3v5.5c0 4.6-3.2 8.3-7.5 9.5-4.3-1.2-7.5-4.9-7.5-9.5V6z"/><path d="M8.8 12.2l2.2 2.2 4.2-4.4"/>',
+ sandbox: '<path d="M9 3h6M10 3v6.2L4.8 18.1A2 2 0 0 0 6.5 21h11a2 2 0 0 0 1.7-2.9L14 9.2V3"/><path d="M7.2 15h9.6"/>',
+ eye: '<path d="M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z"/><circle cx="12" cy="12" r="3"/>',
+};
+
+function icon(name, className = 'icon') {
+ return `<svg class="${className}" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${ICON_PATHS[name]}</svg>`;
+}
+
+// Product icons are decorative here: the product's name always appears beside them.
+function productIcon(root, product, size, className = 'product-icon') {
+ return `<img class="${className}" src="${escapeAttr(root + PRODUCTS[product].icon)}" alt="" width="${size}" height="${size}">`;
+}
+
+function themeSwitch() {
+ // Hidden until site.js runs, because switching needs JavaScript. Without it the page
+ // follows the system theme, which is also the default.
+ const options = [
+ ['system', 'Match system theme'],
+ ['light', 'Light theme'],
+ ['dark', 'Dark theme'],
+ ].map(([value, label]) => `<button type="button" class="theme-option" data-theme-choice="${value}" aria-pressed="${value === 'system'}" title="${label}">${icon(value)}<span class="sr-only">${label}</span></button>`).join('');
+ return `<div class="theme-switch" role="group" aria-label="Color theme" data-theme-switch hidden>${options}</div>`;
+}
+
+function siteHeader(root) {
+ const home = root || './';
+ return `<header class="site-header">
+ <div class="wrap header-row">
+ <a class="brand" href="${escapeAttr(home)}">
+ <img class="brand-mark" src="${escapeAttr(root)}assets/brand/power-platform.svg" alt="" width="32" height="32">
+ <span class="brand-name">Power Platform Skills</span>
+ </a>
+ <nav class="site-nav" id="site-nav" aria-label="Main">
+ <ul class="nav-list">
+ <li><a href="${escapeAttr(root)}#plugins">Plugins</a></li>
+ <li><a href="${escapeAttr(root)}#how-it-works">How it works</a></li>
+ <li><a href="${escapeAttr(root)}#install-everything">Install</a></li>
+ <li><a href="${escapeAttr(root)}#questions">Questions</a></li>
+ <li><a href="${REPO_URL}">GitHub</a></li>
+ </ul>
+ <a class="button button-primary button-small nav-cta" href="${escapeAttr(root)}#install-everything">Install everything</a>
+ <div class="nav-theme"><span class="nav-theme-label" aria-hidden="true">Theme</span>${themeSwitch()}</div>
+ </nav>
+ <div class="header-tools">
+ <button type="button" class="menu-button" aria-expanded="false" aria-controls="site-nav" data-menu-button>${icon('menu', 'icon icon-open')}${icon('close', 'icon icon-close')}<span class="sr-only">Menu</span></button>
+ </div>
+ </div>
+</header>`;
+}
+
+function siteFooter(root) {
+ return `<footer class="site-footer">
+ <div class="wrap footer-grid">
+ <div class="footer-brand">
+ <a class="brand" href="${escapeAttr(root || './')}">
+ <img class="brand-mark" src="${escapeAttr(root)}assets/brand/power-platform.svg" alt="" width="28" height="28">
+ <span class="brand-name">Power Platform Skills</span>
+ </a>
+ <p>An open source project from Microsoft, licensed under <a href="${REPO_URL}/blob/main/LICENSE">MIT</a>.</p>
+ </div>
+ <nav aria-label="Footer">
+ <ul class="footer-links">
+ <li><a href="${REPO_URL}">Source on GitHub</a></li>
+ <li><a href="${REPO_URL}/issues">Report an issue</a></li>
+ <li><a href="${TELEMETRY_URL}">Telemetry and privacy</a></li>
+ <li><a href="${REPO_URL}/blob/main/SECURITY.md">Security</a></li>
+ <li><a href="${REPO_URL}/blob/main/SUPPORT.md">Support</a></li>
+ </ul>
+ </nav>
+ <p class="trademarks">Microsoft, Power Platform, Power Apps, Power Automate, Power Pages, and Dataverse are trademarks of the Microsoft group of companies. Other names may be trademarks of their respective owners.</p>
+ </div>
+</footer>`;
+}
+
+function layout({ title, description, root, body, scripts = [], data = null }) {
+ const pageTitle = title ? `${title} | Power Platform Skills` : 'Power Platform Skills: AI assistant plugins for Power Platform';
+ const dataBlock = data ? `\n<script type="application/json" id="page-data">${jsonForScript(data)}</script>` : '';
+ // install-links.js is shared by the build and the browser; site.js uses its detectOs().
+ const scriptTags = ['assets/install-links.js', 'assets/site.js', ...scripts].map((src) => `\n<script src="${escapeAttr(root + src)}" defer></script>`).join('');
+ // The site loads nothing from other origins, so the policy only allows its own files.
+ // GitHub Pages cannot send response headers, which is why this is a meta tag.
+ // Fonts are self-hosted for the same reason, and so visitors' addresses go to no font CDN.
+ return `<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; object-src 'none'; base-uri 'none'; form-action 'none'">
+<title>${escapeHtml(pageTitle)}</title>
+<meta name="description" content="${escapeAttr(description)}">
+<meta property="og:title" content="${escapeAttr(pageTitle)}">
+<meta property="og:description" content="${escapeAttr(description)}">
+<meta property="og:type" content="website">
+<meta name="color-scheme" content="light dark">
+<meta name="theme-color" content="#f4f7f7" media="(prefers-color-scheme: light)" data-theme-color="light">
+<meta name="theme-color" content="#08161f" media="(prefers-color-scheme: dark)" data-theme-color="dark">
+<link rel="icon" href="${escapeAttr(root)}assets/brand/favicon-32.png" type="image/png" sizes="32x32">
+<link rel="icon" href="${escapeAttr(root)}assets/brand/power-platform.svg" type="image/svg+xml">
+<link rel="apple-touch-icon" href="${escapeAttr(root)}assets/brand/apple-touch-icon.png">
+<link rel="preload" href="${escapeAttr(root)}assets/fonts/schibsted-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin>
+<link rel="preload" href="${escapeAttr(root)}assets/fonts/public-sans-latin.woff2" as="font" type="font/woff2" crossorigin>
+<script src="${escapeAttr(root)}assets/theme.js"></script>
+<link rel="stylesheet" href="${escapeAttr(root)}assets/styles.css">
+</head>
+<body>
+<a class="skip-link" href="#main">Skip to content</a>
+${siteHeader(root)}
+<main id="main">
+${body}
+</main>
+${siteFooter(root)}
+<div class="sr-only" aria-live="polite" id="announcer"></div>${dataBlock}${scriptTags}
+</body>
+</html>
+`;
+}
+
+function copyButton(text, label = 'Copy') {
+ // Hidden until site.js runs, because copying needs JavaScript. The text stays visible
+ // and selectable either way.
+ return `<button type="button" class="copy-button" data-copy="${escapeAttr(text)}" data-label="${escapeAttr(label)}" hidden>${escapeHtml(label)}</button>`;
+}
+
+function codeBlock(text, label) {
+ // One block per command with a hanging indent, so a long command that wraps in a narrow
+ // column still reads as one command rather than two. Each word is kept whole, because a
+ // break after the hyphen in "power-pages" looks like two separate words to someone
+ // typing the command by hand; only a word wider than the column breaks inside.
+ // URLs are single words too long for a phone, so they may also break after each "/" (a <wbr>
+ // adds no character, so selecting and copying the text still gives the exact command).
+ const lines = text.split('\n').map((line) => {
+ const words = line.split(' ').map((word) => `<span class="code-word">${escapeHtml(word).replace(/\/(?=[^/])/g, '/<wbr>')}</span>`).join(' ');
+ return `<span class="code-line">${words}</span>`;
+ }).join('');
+ return `<div class="code-block"><pre><code>${lines}</code></pre>${copyButton(text, label)}</div>`;
+}
+
+function audienceLabel(plugin) {
+ return AUDIENCE_LABELS[plugin.audience];
+}
+
+function statusBadge(plugin) {
+ return plugin.status ? `<span class="badge">${escapeHtml(STATUS_LABELS[plugin.status])}</span>` : '';
+}
+
+// The product's name must sit next to its icon. When the plugin's own title already is the
+// product name (Power Pages, Power Automate, Dataverse), the title is that label.
+function productLabel(plugin) {
+ const label = PRODUCTS[plugin.product].label;
+ return label === plugin.title ? '' : label;
+}
+
+// One picker drives every install panel in its scope. Radio buttons keep it usable with a
+// keyboard and without JavaScript; styles.css shows the matching panels with :has(), and
+// site.js remembers the choice across pages.
+function assistantPicker(scopeId, legend) {
+ const options = ASSISTANTS.map((assistant, index) => `
+ <label class="picker-option">
+ <input type="radio" name="assistant-${escapeAttr(scopeId)}" value="${assistant.id}"${index === 0 ? ' checked' : ''}>
+ <span>${escapeHtml(assistant.label)}</span>
+ </label>`).join('');
+ return `<fieldset class="assistant-picker" data-assistant-picker>
+ <legend>${escapeHtml(legend)}</legend>
+ <div class="picker-options">${options}
+ </div>
+ </fieldset>`;
+}
+
+function pluginRow(plugin, root) {
+ const page = `${root}plugins/${plugin.name}/`;
+ // Every row has the same visible button labels, so screen readers also hear the plugin name.
+ const forPlugin = `<span class="sr-only"> for ${escapeHtml(plugin.title)}</span>`;
+ const product = productLabel(plugin);
+ return `<li class="plugin-row">
+ <div class="plugin-ident">
+ ${productIcon(root, plugin.product, 44)}
+ <div>
+ <h4><a href="${escapeAttr(page)}">${escapeHtml(plugin.title)}</a></h4>
+ ${product ? `<p class="plugin-product">${escapeHtml(product)}</p>` : ''}
+ </div>
+ </div>
+ <div class="plugin-body">
+ <p>${escapeHtml(plugin.summary)}</p>
+ <p class="sample-prompt"><span class="sr-only">Example: </span>${escapeHtml(plugin.prompts[0])}</p>
+ <p class="plugin-meta"><span>For ${escapeHtml(audienceLabel(plugin).toLowerCase())}</span>${statusBadge(plugin)}</p>
+ </div>
+ <div class="plugin-actions">
+ <a class="button button-primary" data-for="copilot-app" href="${escapeAttr(links.copilotAppInstallUrl(plugin.name))}">Install in GitHub Copilot app${forPlugin}</a>
+ <a class="button button-primary" data-for="copilot-cli" href="${escapeAttr(page)}#install" data-copy="${escapeAttr(links.copilotCliCommand(plugin.name))}" data-label="Copy install command"><span data-button-label>Copy install command</span>${forPlugin}</a>
+ <a class="button button-primary" data-for="claude-code" href="${escapeAttr(links.launcherUrl(root, 'claude-code', plugin.name))}">Install in Claude Code${forPlugin}</a>
+ <a class="text-link" href="${escapeAttr(page)}">Details<span class="sr-only"> about ${escapeHtml(plugin.title)}</span></a>
+ </div>
+ </li>`;
+}
+
+// ── Home ────────────────────────────────────────────────────────
+
+function sessionScenarios(catalog, root) {
+ return catalog.showcase.map((item) => {
+ const plugin = catalog.plugins.find((candidate) => candidate.name === item.plugin);
+ return {
+ prompt: item.prompt,
+ steps: item.steps,
+ waiting: item.waiting || null,
+ title: plugin.title,
+ product: PRODUCTS[plugin.product].label,
+ icon: root + PRODUCTS[plugin.product].icon,
+ href: `${root}plugins/${plugin.name}/`,
+ };
+ });
+}
+
+function sessionStep(text, state) {
+ const badge = state === 'waiting' ? '<span class="step-badge">Your turn</span>' : '';
+ return `<li class="step is-${state}">${icon(state === 'waiting' ? 'waiting' : 'check', 'icon step-icon')}<span class="step-text">${escapeHtml(text)}</span>${badge}</li>`;
+}
+
+// The signature moment. The server renders the first example in its finished state, which is
+// what visitors without JavaScript or with reduced motion see. site.js replays it step by step
+// and lets visitors switch between examples.
+function sessionWindow(scenarios) {
+ const first = scenarios[0];
+ const steps = first.steps.map((text) => sessionStep(text, 'done'));
+ if (first.waiting) steps.push(sessionStep(first.waiting, 'waiting'));
+ const tabs = scenarios.map((scenario, index) => `<button type="button" role="tab" class="scenario-tab" id="scenario-tab-${index}" aria-controls="session-panel" aria-selected="${index === 0}" tabindex="${index === 0 ? 0 : -1}" data-scenario="${index}">${escapeHtml(scenario.title)}</button>`).join('');
+ return `<div class="hero-visual">
+ <div class="scenario-tabs" role="tablist" aria-label="Example requests" data-scenario-tabs hidden>${tabs}</div>
+ <figure class="session" data-session>
+ <div class="session-bar">
+ <span>Example session in your AI assistant</span>
+ </div>
+ <div class="session-body" id="session-panel">
+ <p class="session-who">You</p>
+ <p class="session-prompt"><span data-session-prompt>${escapeHtml(first.prompt)}</span><span class="caret" aria-hidden="true"></span></p>
+ <div class="session-reply" data-session-reply>
+ <p class="session-plugin">
+ <img data-session-icon src="${escapeAttr(first.icon)}" alt="" width="28" height="28">
+ <span><strong data-session-product>${escapeHtml(first.product)}</strong><span class="session-plugin-name" data-session-plugin>${escapeHtml(first.title)} plugin</span></span>
+ </p>
+ <ol class="session-steps" data-session-steps>
+ ${steps.join('\n ')}
+ </ol>
+ </div>
+ </div>
+ <figcaption class="session-caption">An example of the steps a plugin takes. <a data-session-link href="${escapeAttr(first.href)}">See the ${escapeHtml(first.title)} plugin</a></figcaption>
+ </figure>
+ <template id="icon-done">${icon('check', 'icon step-icon')}</template>
+ <template id="icon-waiting">${icon('waiting', 'icon step-icon')}</template>
+ </div>`;
+}
+
+function heroSection(catalog, scenarios) {
+ return `<section class="hero" aria-labelledby="hero-title">
+ <div class="wrap hero-grid">
+ <div class="hero-copy">
+ <h1 id="hero-title">Build on Power Platform by describing what you need</h1>
+ <p class="lede">Free plugins from Microsoft teach GitHub Copilot and Claude Code to create Power Pages sites, Power Apps, and Power Automate flows, and to publish them to your environment.</p>
+ <div class="hero-actions">
+ <a class="button button-primary button-large" href="#install-everything">Install everything</a>
+ <a class="button button-secondary button-large" href="#plugins">Choose a plugin</a>
+ </div>
+ <ul class="proof-list">
+ <li>${icon('badge')}<span>Built by Microsoft</span></li>
+ <li>${icon('code')}<span>Free and open source</span></li>
+ <li>${icon('plug')}<span>${catalog.plugins.length} plugins for GitHub Copilot and Claude Code</span></li>
+ </ul>
+ </div>
+ ${sessionWindow(scenarios)}
+ </div>
+</section>`;
+}
+
+function howSection() {
+ return `<section class="how" id="how-it-works" aria-labelledby="how-title">
+ <div class="wrap">
+ <div class="section-head">
+ <h2 id="how-title">How it works</h2>
+ <p>Three steps, and nothing changes in your environment until you approve it.</p>
+ </div>
+ <ol class="process">
+ <li>
+ <span class="process-node" aria-hidden="true">1</span>
+ <h3>Install the plugins</h3>
+ <p>Add them to your AI assistant once, with one click or one command.</p>
+ </li>
+ <li>
+ <span class="process-node" aria-hidden="true">2</span>
+ <h3>Describe what you want</h3>
+ <p>Open your assistant in a folder and ask in your own words. It asks follow-up questions when it needs to.</p>
+ </li>
+ <li>
+ <span class="process-node" aria-hidden="true">3</span>
+ <h3>Review and approve</h3>
+ <p>Your assistant asks before it runs commands or changes files. Many plugins also show you a plan or confirm the environment before they publish.</p>
+ </li>
+ </ol>
+ </div>
+</section>`;
+}
+
+function pluginsSection(catalog, root) {
+ const jump = catalog.goals.map((goal) => `<li><a href="#goal-${escapeAttr(goal.id)}">${escapeHtml(goal.title)}</a></li>`).join('');
+ const groups = catalog.goals.map((goal) => {
+ const rows = catalog.plugins.filter((plugin) => plugin.goal === goal.id).map((plugin) => pluginRow(plugin, root)).join('\n ');
+ return `<section class="goal-group" id="goal-${escapeAttr(goal.id)}" aria-labelledby="goal-${escapeAttr(goal.id)}-title">
+ <div class="goal-head">
+ <h3 id="goal-${escapeAttr(goal.id)}-title">${escapeHtml(goal.title)}</h3>
+ <p>${escapeHtml(goal.summary)}</p>
+ </div>
+ <ul class="plugin-list">
+ ${rows}
+ </ul>
+ </section>`;
+ }).join('\n ');
+ return `<section class="plugins assistant-scope" id="plugins" aria-labelledby="plugins-title">
+ <div class="wrap">
+ <div class="section-head">
+ <h2 id="plugins-title">Choose a plugin</h2>
+ <p>Pick the assistant you use, then install the plugins for what you want to build. You can add more later.</p>
+ </div>
+ <div class="catalog-tools">
+ ${assistantPicker('catalog', 'Your AI assistant')}
+ <nav class="goal-nav" aria-label="Jump to a goal">
+ <ul>${jump}</ul>
+ </nav>
+ </div>
+ <div class="callout" data-for="copilot-app">
+ <p><strong>First time in the GitHub Copilot app?</strong> Add the Power Platform marketplace before you install a plugin. You only do this once.</p>
+ <a class="button button-secondary button-small" href="${escapeAttr(links.copilotAppMarketplaceUrl())}">Add the marketplace</a>
+ </div>
+ <div class="callout" data-for="copilot-cli">
+ <p>GitHub Copilot CLI can't be opened from a link. Each button copies one line that adds the marketplace and installs the plugin. Paste it into a terminal and press Enter. In the Windows Command Prompt, change <code>;</code> to <code>&amp;</code> first.</p>
+ </div>
+ <div class="callout" data-for="claude-code">
+ <p>Each button opens a terminal with the install command already typed. Press Enter to install. Clicking does nothing yet? Open Claude Code once and send any message, then try again.</p>
+ </div>
+ ${groups}
+ </div>
+</section>`;
+}
+
+function controlSection() {
+ return `<section class="control" aria-labelledby="control-title">
+ <div class="wrap control-grid">
+ <div class="control-intro">
+ <h2 id="control-title">You stay in control</h2>
+ <p>Plugins work with your sign-in and your permissions, on your computer. Here is what keeps you in charge.</p>
+ </div>
+ <ul class="assurances">
+ <li>${icon('shield', 'icon assurance-icon')}<h3>It asks before it acts</h3><p>Your assistant asks before it runs a command or changes a file, and you can say no.</p></li>
+ <li>${icon('sandbox', 'icon assurance-icon')}<h3>Try it somewhere safe</h3><p>A free <a href="${DEV_ENV_URL}">developer environment</a> keeps experiments away from your organization's live apps.</p></li>
+ <li>${icon('code', 'icon assurance-icon')}<h3>Read every line</h3><p>Every plugin is open source under the MIT license, on <a href="${REPO_URL}">GitHub</a>.</p></li>
+ <li>${icon('eye', 'icon assurance-icon')}<h3>Choose what you share</h3><p>Some plugins send usage data to Microsoft, and each one has a command to turn it off. <a href="${TELEMETRY_URL}">See what is collected</a>.</p></li>
+ </ul>
+ </div>
+</section>`;
+}
+
+// Keyboard shortcuts drawn as keycaps joined by "+", e.g. Ctrl + Alt + T. Screen readers read
+// the "+" as "plus", so the shortcut still makes sense without the visual keycaps.
+function keys(...names) {
+ // One unbreakable unit, so a combination never splits across lines ("Ctrl +" / "Alt + T").
+ return `<span class="kbd-combo">${names.map((name) => `<kbd>${escapeHtml(name)}</kbd>`).join('<span class="kbd-plus">+</span>')}</span>`;
+}
+
+// How to open a terminal and paste on each computer, in the words a non-developer would use.
+// Paste is Ctrl + Shift + V in Linux terminals because plain Ctrl + V is a control character there.
+const OS_STEPS = {
+ windows: {
+ label: 'Windows',
+ open: 'Open PowerShell',
+ how: `Press ${keys('Windows')}, type <strong>PowerShell</strong>, and press ${keys('Enter')}.`,
+ paste: `Paste this command with ${keys('Ctrl', 'V')}, then press ${keys('Enter')}.`,
+ },
+ macos: {
+ label: 'macOS',
+ open: 'Open Terminal',
+ how: `Press ${keys('⌘ Command', 'Space')}, type <strong>Terminal</strong>, and press ${keys('Return')}.`,
+ paste: `Paste this command with ${keys('⌘ Command', 'V')}, then press ${keys('Return')}.`,
+ },
+ linux: {
+ label: 'Linux',
+ open: 'Open a terminal',
+ how: `Use your terminal app. On Ubuntu, press ${keys('Ctrl', 'Alt', 'T')}.`,
+ paste: `Paste this command with ${keys('Ctrl', 'Shift', 'V')}, then press ${keys('Enter')}.`,
+ },
+};
+
+// The visitor picks their computer with radio buttons, styled as a segmented control, and
+// styles.css shows the matching steps with :has(), so switching works without JavaScript.
+// site.js preselects the computer the browser reports (detectOs in install-links.js).
+function installEverythingSection() {
+ const options = links.OPERATING_SYSTEMS.map((os, index) => `
+ <label class="picker-option">
+ <input type="radio" name="install-os" value="${os}"${index === 0 ? ' checked' : ''}>
+ <span>${escapeHtml(OS_STEPS[os].label)}</span>
+ </label>`).join('');
+ const panels = links.OPERATING_SYSTEMS.map((os) => `<div class="os-option" data-os="${os}">
+ <ol class="os-steps">
+ <li><strong>${escapeHtml(OS_STEPS[os].open)}.</strong> ${OS_STEPS[os].how}</li>
+ <li>${OS_STEPS[os].paste}
+ ${codeBlock(links.installAllCommand(os), 'Copy command')}
+ </li>
+ </ol>
+ <details class="dataverse-commands">
+ <summary>Also install the Dataverse plugin</summary>
+ <p>Use this command instead:</p>
+ ${codeBlock(links.installAllCommand(os, { dataverse: true }), 'Copy command')}
+ </details>
+ </div>`).join('\n ');
+ return `<section class="install-all os-scope" id="install-everything" aria-labelledby="install-all-title">
+ <div class="wrap install-grid">
+ <div class="install-copy">
+ <h2 id="install-all-title">Install everything at once</h2>
+ <p>One command installs every plugin into GitHub Copilot CLI and Claude Code, whichever you have. It also installs the Power Platform CLI if it is missing, and turns on automatic updates.</p>
+ <p>You need <a href="https://nodejs.org/en/download">Node.js</a> and at least one of <a href="${COPILOT_CLI_URL}">GitHub Copilot CLI</a> or <a href="${CLAUDE_CODE_URL}">Claude Code</a>.</p>
+ <p class="fine-print">The Dataverse plugin is left out by default. Each system has a command that includes it.</p>
+ </div>
+ <div class="terminal">
+ <fieldset class="assistant-picker os-picker" data-os-picker>
+ <legend>Your computer</legend>
+ <div class="picker-options">${options}
+ </div>
+ </fieldset>
+ <p class="os-hint" data-os-hint hidden></p>
+ ${panels}
+ </div>
+ </div>
+</section>`;
+}
+
+// The explainer film answers the first question anyone new asks. The video and poster come from
+// the site-media branch (site/lib/media.js); the captions are in assets/video and the transcript
+// in catalog.json. The video never autoplays and preloads nothing, so the 3 MB file is only
+// downloaded when someone presses play. Captions are on by default. The transcript has the
+// narration plus a description of what is on screen during each part, for anyone who would
+// rather read, cannot see the video, or cannot play it.
+// The film's text is sized for a desktop embed, so on a phone it needs the whole screen:
+// iPhone Safari plays it full screen because there is no playsinline, and on other touch
+// screens site.js asks for full screen when the Play button is pressed.
+function explainerFigure(video) {
+ const transcript = video.transcript.map(({ spoken, shown }) => `<p>${escapeHtml(spoken)}</p>
+ <p class="transcript-visual"><strong>On screen:</strong> ${escapeHtml(shown)}</p>`).join('\n ');
+ return `<figure class="explainer">
+ <figcaption class="explainer-head">
+ <h3 id="explainer-title">What are plugins and skills?</h3>
+ </figcaption>
+ <div class="explainer-player" data-explainer>
+ <video class="explainer-video" controls preload="none" width="1920" height="1080" poster="assets/video/plugins-and-skills-poster.webp" aria-labelledby="explainer-title">
+ <source src="assets/video/plugins-and-skills.mp4" type="video/mp4">
+ <track kind="captions" src="assets/video/plugins-and-skills.vtt" srclang="en" label="English" default>
+ <p>Your browser can't play this video. The transcript below has the narration and describes what is on screen.</p>
+ </video>
+ <button type="button" class="explainer-play" data-explainer-play hidden>
+ <svg class="explainer-play-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M8 5.5v13a1 1 0 0 0 1.5.86l10.6-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z"/></svg>
+ <span class="explainer-play-label">Play<span class="sr-only"> the video: What are plugins and skills?</span></span>
+ </button>
+ </div>
+ <details class="transcript">
+ <summary>Read the transcript</summary>
+ ${transcript}
+ </details>
+ </figure>`;
+}
+
+function faqSection(catalog) {
+ const items = catalog.faq.map((item) => `<details>
+ <summary>${escapeHtml(item.question)}</summary>
+ <p>${escapeHtml(item.answer)}</p>
+ </details>`).join('\n ');
+ return `<section class="faq" id="questions" aria-labelledby="faq-title">
+ <div class="wrap faq-grid">
+ <div>
+ <h2 id="faq-title">Questions</h2>
+ <p>Before you start, you need an AI assistant (the <a href="${COPILOT_APP_URL}">GitHub Copilot app</a>, <a href="${COPILOT_CLI_URL}">GitHub Copilot CLI</a>, or <a href="${CLAUDE_CODE_URL}">Claude Code</a>) and a Power Platform environment you can build in.</p>
+ </div>
+ <div class="faq-answers">
+ ${explainerFigure(catalog.video)}
+ <div class="faq-list">
+ ${items}
+ <p class="fine-print">More answers, a glossary, and developer docs are in the <a href="${README_URL}">README</a>.</p>
+ </div>
+ </div>
+ </div>
+</section>`;
+}
+
+function finalSection() {
+ return `<section class="final-cta" aria-labelledby="final-title">
+ <div class="wrap final-grid">
+ <div>
+ <h2 id="final-title">Install the plugins and ask your first question</h2>
+ <p>One command sets up every plugin. Or start with the one plugin for the goal you care about most.</p>
+ </div>
+ <div class="final-actions">
+ <a class="button button-ink button-large" href="#install-everything">Install everything</a>
+ <a class="button button-ink-outline button-large" href="#plugins">Choose a plugin</a>
+ </div>
+ </div>
+</section>`;
+}
+
+function renderHome(catalog) {
+ const root = '';
+ const scenarios = sessionScenarios(catalog, root);
+ return layout({
+ title: '',
+ description: 'Free plugins from Microsoft that teach GitHub Copilot and Claude Code to build Power Pages sites, Power Apps, and Power Automate flows.',
+ root,
+ body: [
+ heroSection(catalog, scenarios),
+ howSection(),
+ installEverythingSection(),
+ pluginsSection(catalog, root),
+ controlSection(),
+ faqSection(catalog),
+ finalSection(),
+ ].join('\n'),
+ data: { scenarios },
+ });
+}
+
+// ── Plugin page ─────────────────────────────────────────────────
+
+function installPanel(plugin, root) {
+ return `<section class="install-panel assistant-scope" id="install" aria-labelledby="install-title">
+ <h2 id="install-title">Install ${escapeHtml(plugin.title)}</h2>
+ ${assistantPicker('plugin', 'Your AI assistant')}
+ <div class="install-option" data-for="copilot-app">
+ <ol class="install-steps">
+ <li><p>Add the Power Platform marketplace. You only do this once.</p><a class="button button-secondary button-block" href="${escapeAttr(links.copilotAppMarketplaceUrl())}">Add the marketplace</a></li>
+ <li><p>Install the plugin.</p><a class="button button-primary button-block" href="${escapeAttr(links.copilotAppInstallUrl(plugin.name))}">Install in GitHub Copilot app</a></li>
+ </ol>
+ <p class="fine-print">The app asks you to confirm each step.</p>
+ </div>
+ <div class="install-option" data-for="copilot-cli">
+ <p>Paste this into a terminal and press Enter. It adds the marketplace, then installs the plugin.</p>
+ ${codeBlock(links.copilotCliCommand(plugin.name), 'Copy command')}
+ <p class="fine-print">In the Windows Command Prompt, change <code>;</code> to <code>&amp;</code> first. VS Code also picks up plugins you install with GitHub Copilot CLI.</p>
+ </div>
+ <div class="install-option" data-for="claude-code">
+ <p>Opens a terminal with the install command already typed. Press Enter to install.</p>
+ <a class="button button-primary button-block" href="${escapeAttr(links.launcherUrl(root, 'claude-code', plugin.name))}">Install in Claude Code</a>
+ <p class="fine-print">Prefer to type it? Run this in a terminal:</p>
+ ${codeBlock(links.claudeCodeShellCommand(plugin.name), 'Copy command')}
+ <p class="fine-print">The Claude desktop app's Code tab and the Claude Code extension for VS Code use the same plugins.</p>
+ </div>
+ </section>`;
+}
+
+function listSection(id, title, items) {
+ if (!items.length) return '';
+ return `<section aria-labelledby="${id}">
+ <h2 id="${id}">${escapeHtml(title)}</h2>
+ <ul class="plain-list">
+ ${items.map((item) => `<li>${escapeHtml(item)}</li>`).join('\n ')}
+ </ul>
+ </section>`;
+}
+
+// Ends each plugin page with somewhere to go next: plugins for the same goal first, then
+// others, so a visitor who picked the wrong plugin finds the right one without going back.
+function relatedPlugins(plugin, catalog) {
+ const sameGoal = catalog.plugins.filter((other) => other !== plugin && other.goal === plugin.goal);
+ const others = catalog.plugins.filter((other) => other !== plugin && other.goal !== plugin.goal);
+ return [...sameGoal, ...others].slice(0, 3);
+}
+
+function renderPlugin(plugin, catalog) {
+ const root = '../../';
+ const goal = catalog.goals.find((item) => item.id === plugin.goal);
+ const product = PRODUCTS[plugin.product].label;
+ const prompts = plugin.prompts.map((prompt) => `<li><span class="prompt-quote">${escapeHtml(prompt)}</span>${copyButton(prompt, 'Copy')}</li>`).join('\n ');
+ const skills = plugin.skills.map((skill) => `<div><dt><code>/${escapeHtml(skill.name)}</code></dt><dd>${escapeHtml(skill.description)}</dd></div>`).join('\n ');
+ const learn = [
+ { title: plugin.external ? 'Plugin documentation (separate repository)' : 'Plugin documentation on GitHub', url: plugin.docsUrl },
+ ...plugin.learn,
+ ].map((link) => `<li><a href="${escapeAttr(link.url)}">${escapeHtml(link.title)}</a></li>`).join('\n ');
+ const meta = [
+ `<span>For ${escapeHtml(audienceLabel(plugin).toLowerCase())}</span>`,
+ statusBadge(plugin),
+ plugin.version ? `<span>Version ${escapeHtml(plugin.version)}</span>` : '',
+ ].filter(Boolean).join('\n ');
+ const related = relatedPlugins(plugin, catalog).map((other) => `<li>
+ <a class="related-link" href="${root}plugins/${escapeAttr(other.name)}/">
+ ${productIcon(root, other.product, 36)}
+ <span><strong>${escapeHtml(other.title)}</strong>${productLabel(other) ? `<span class="related-product">${escapeHtml(productLabel(other))}</span>` : ''}<span>${escapeHtml(other.summary)}</span></span>
+ </a>
+ </li>`).join('\n ');
+
+ const body = `<div class="plugin-page">
+<div class="wrap plugin-grid">
+ <header class="plugin-head">
+ <nav class="breadcrumb" aria-label="Breadcrumb">
+ <ol>
+ <li><a href="${root}#plugins">All plugins</a></li>
+ <li><a href="${root}#goal-${escapeAttr(goal.id)}">${escapeHtml(goal.title)}</a></li>
+ </ol>
+ </nav>
+ <p class="product-line">${productIcon(root, plugin.product, 40)}<span>${escapeHtml(product)}</span></p>
+ <h1>${escapeHtml(plugin.title)}</h1>
+ <p class="lede">${escapeHtml(plugin.summary)}</p>
+ <p class="plugin-facts">
+ ${meta}
+ </p>
+ </header>
+ ${installPanel(plugin, root)}
+ <div class="plugin-details">
+ <section aria-labelledby="ask-title">
+ <h2 id="ask-title">Things you can ask</h2>
+ <ul class="prompt-list">
+ ${prompts}
+ </ul>
+ </section>
+ ${listSection('needs-title', 'What you need', plugin.requirements)}
+ <section aria-labelledby="skills-title">
+ <h2 id="skills-title">Skills you can run</h2>
+ <p>Your assistant picks the right skill from your request. You can also start one by typing its name.</p>
+ <dl class="skill-list">
+ ${skills}
+ </dl>
+ </section>
+ ${listSection('notes-title', 'Good to know', plugin.notes)}
+ <section aria-labelledby="learn-title">
+ <h2 id="learn-title">Learn more</h2>
+ <ul class="plain-list">
+ ${learn}
+ </ul>
+ </section>
+ </div>
+</div>
+</div>
+<section class="related" aria-labelledby="related-title">
+ <div class="wrap">
+ <h2 id="related-title">More plugins</h2>
+ <ul class="related-list">
+ ${related}
+ </ul>
+ </div>
+</section>`;
+
+ return layout({
+ title: plugin.title,
+ description: plugin.summary,
+ root,
+ body,
+ });
+}
+
+// ── Launcher and 404 ────────────────────────────────────────────
+
+function renderLauncher(catalog) {
+ const root = '../';
+ // The launcher builds links only for plugins in this allowlist and only from the fixed
+ // templates in install-links.js, so a crafted URL cannot pre-fill an arbitrary prompt.
+ const data = {
+ plugins: Object.fromEntries(catalog.plugins.map((plugin) => [plugin.name, plugin.title])),
+ };
+ const body = `<div class="wrap launcher">
+ <section data-launcher-state="ready" hidden aria-labelledby="launcher-title">
+ <h1 id="launcher-title">Opening Claude Code</h1>
+ <p class="lede">A terminal window opens with this command typed in. Press Enter to install <span data-launcher-plugin></span>.</p>
+ <div class="code-block"><pre><code data-launcher-prompt></code></pre></div>
+ <p><a class="button button-primary button-large" data-launcher-open href="#">Open Claude Code</a></p>
+ <p class="fine-print" data-launcher-desktop>Your browser may ask whether to open the link. Choose Open.</p>
+ <p class="callout" data-launcher-touch hidden>Claude Code runs on a computer. Open this page on the computer where you use Claude Code, or send yourself the link.</p>
+ <h2>Nothing happened?</h2>
+ <ol class="plain-list numbered">
+ <li>Make sure <a href="${CLAUDE_CODE_URL}">Claude Code</a> is installed.</li>
+ <li>Open Claude Code once in a terminal and send any message, such as <code>/help</code>. That lets your computer open Claude Code from links. Then try the button again.</li>
+ <li>If Claude Code says it doesn't recognize <code>--marketplace</code>, run <code>claude update</code> and try again.</li>
+ <li>Or skip the link and run this in a terminal:</li>
+ </ol>
+ <div class="code-block"><pre><code data-launcher-shell></code></pre><button type="button" class="copy-button" data-launcher-copy data-label="Copy command" hidden>Copy command</button></div>
+ <p><a href="${root}#plugins">Back to all plugins</a></p>
+ </section>
+ <section data-launcher-state="invalid" hidden aria-labelledby="invalid-title">
+ <h1 id="invalid-title">This install link isn't valid</h1>
+ <p class="lede">The link doesn't name a plugin from the Power Platform Skills marketplace.</p>
+ <p><a class="button button-primary" href="${root}#plugins">Choose a plugin</a></p>
+ </section>
+ <noscript>
+ <h1>Install links need JavaScript</h1>
+ <p>Turn on JavaScript, or follow the install steps on the <a href="${root}#plugins">plugin page</a>.</p>
+ </noscript>
+</div>`;
+ return layout({
+ title: 'Install',
+ description: 'Open Claude Code with a Power Platform Skills plugin ready to install.',
+ root,
+ body,
+ scripts: ['assets/launcher.js'],
+ data,
+ });
+}
+
+// GitHub Pages serves 404.html for a missing path at any depth, so relative links would break.
+// `basePath` is the site's absolute path, such as "/power-platform-skills/", which keeps the
+// page working on forks and local previews that are served from a different path.
+function renderNotFound(basePath) {
+ const root = basePath;
+ const body = `<div class="wrap launcher">
+ <h1>This page doesn't exist</h1>
+ <p class="lede">The link may be old, or the plugin may have a new name.</p>
+ <p><a class="button button-primary" href="${escapeAttr(root)}#plugins">See all plugins</a></p>
+</div>`;
+ return layout({ title: 'Page not found', description: 'Page not found.', root, body });
+}
+
+module.exports = {
+ ASSISTANTS,
+ escapeHtml,
+ jsonForScript,
+ renderHome,
+ renderPlugin,
+ renderLauncher,
+ renderNotFound,
+};
diff --git a/site/media.json b/site/media.json
new file mode 100644
index 000000000..318b0a558
--- /dev/null
+++ b/site/media.json
@@ -0,0 +1,17 @@
+{
+ "branch": "site-media",
+ "files": [
+ {
+ "path": "assets/video/plugins-and-skills.mp4",
+ "source": "video/plugins-and-skills-51f78cf58fab.mp4",
+ "sha256": "51f78cf58fab51b69255f296c6fc3f7577f6eb6dda54d3ee25e7800ae9ecffb3",
+ "bytes": 3187458
+ },
+ {
+ "path": "assets/video/plugins-and-skills-poster.webp",
+ "source": "video/plugins-and-skills-poster-cc5c724f70e7.webp",
+ "sha256": "cc5c724f70e7a6523edca52e0a55f669d020fb79a6b7d0d6bb306f317640487a",
+ "bytes": 28710
+ }
+ ]
+}
diff --git a/site/tests/site.test.js b/site/tests/site.test.js
new file mode 100644
index 000000000..04b3c19fa
--- /dev/null
+++ b/site/tests/site.test.js
@@ -0,0 +1,773 @@
+'use strict';
+
+// Tests for the showcase site: the shared install links, catalog validation, the static build,
+// the browser launcher, and the README links that are built from the same templates.
+
+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 vm = require('node:vm');
+const { spawnSync } = require('node:child_process');
+
+const REPO_ROOT = path.resolve(__dirname, '..', '..');
+const links = require('../lib/install-links.js');
+const { loadCatalog } = require('../lib/catalog.js');
+const render = require('../lib/render.js');
+const { build, parseArgs, MARKER } = require('../build.js');
+const media = require('../lib/media.js');
+const installer = require('../../scripts/install.js');
+
+const MARKETPLACE = JSON.parse(fs.readFileSync(path.join(REPO_ROOT, 'marketplace.json'), 'utf8'));
+const MARKETPLACE_NAMES = MARKETPLACE.plugins.map((plugin) => plugin.name).sort();
+
+// Names that must never reach a prompt, a shell command, or a URL. Mirrors the installer's
+// injection corpus. Prototype keys such as "constructor" are valid names, so the launcher's
+// allowlist test covers them instead.
+const BAD_NAMES = [
+ 'power-pages$(echo REVIEW_ONLY)',
+ 'power-pages`echo REVIEW_ONLY`',
+ 'power-pages" & echo REVIEW_ONLY & rem "',
+ 'power-pages;echo REVIEW_ONLY',
+ 'power-pages|echo REVIEW_ONLY',
+ 'power-pages\n',
+ 'power-pages --scope project',
+ '../power-pages',
+ 'Power-Pages',
+ '__proto__',
+ '',
+ 'a--b',
+ '-power-pages',
+ 'x'.repeat(65),
+ null,
+ 42,
+];
+
+const TEMP_DIRS = [];
+
+function tempDir(prefix) {
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), prefix));
+ TEMP_DIRS.push(dir);
+ return dir;
+}
+
+test.after(() => {
+ for (const dir of TEMP_DIRS) fs.rmSync(dir, { recursive: true, force: true });
+});
+
+function writeJson(file, value) {
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, JSON.stringify(value, null, 2));
+}
+
+// ── Install links ───────────────────────────────────────────────
+
+test('Claude Code links pre-fill the documented one-step install prompt', () => {
+ assert.equal(links.claudeCodePrompt('power-pages'), '/plugin install power-pages --marketplace microsoft/power-platform-skills');
+ assert.equal(links.claudeCodeShellCommand('power-pages'), 'claude plugin install power-pages --marketplace microsoft/power-platform-skills');
+ const deepLink = new URL(links.claudeCodeDeepLink('power-pages'));
+ assert.equal(deepLink.protocol, 'claude-cli:');
+ assert.equal(deepLink.host, 'open');
+ assert.equal(deepLink.searchParams.get('q'), links.claudeCodePrompt('power-pages'));
+ assert.deepEqual([...deepLink.searchParams.keys()], ['q']);
+});
+
+test('Copilot app links wrap a ghapp:// plugin link in the GitHub launcher', () => {
+ const install = new URL(links.copilotAppInstallUrl('power-pages'));
+ assert.equal(install.origin + install.pathname, 'https://github.com/copilot/app/launch');
+ const appLink = install.searchParams.get('open');
+ assert.equal(appLink, 'ghapp://plugins/install?source=power-pages%40power-platform-skills');
+ assert.equal(new URL(appLink).searchParams.get('source'), 'power-pages@power-platform-skills');
+
+ const marketplace = new URL(links.copilotAppMarketplaceUrl()).searchParams.get('open');
+ assert.equal(marketplace, 'ghapp://plugins/marketplace/add?source=microsoft%2Fpower-platform-skills');
+ assert.equal(new URL(marketplace).searchParams.get('source'), 'microsoft/power-platform-skills');
+});
+
+test('Copilot CLI commands add the marketplace, then install from it', () => {
+ assert.deepEqual(links.copilotCliCommands('mobile-app'), [
+ 'copilot plugin marketplace add microsoft/power-platform-skills',
+ 'copilot plugin install mobile-app@power-platform-skills',
+ ]);
+});
+
+test('the copied Copilot CLI command is one line that installs even when the marketplace exists', () => {
+ const command = links.copilotCliCommand('pcf');
+ assert.equal(command, 'copilot plugin marketplace add microsoft/power-platform-skills; copilot plugin install pcf@power-platform-skills');
+ assert.ok(!/[\r\n]/.test(command), 'two pasted lines do not run as one command');
+
+ // Run the line in each POSIX shell available here against a fake copilot whose
+ // "marketplace add" fails the way the real CLI does when the marketplace is registered.
+ const bin = tempDir('pps-fake-copilot-');
+ const log = path.join(bin, 'calls.log');
+ fs.writeFileSync(path.join(bin, 'copilot'), [
+ '#!/bin/sh',
+ `echo "$*" >> "${log}"`,
+ 'if [ "$2" = "marketplace" ]; then echo \'Marketplace "power-platform-skills" already registered\' >&2; exit 1; fi',
+ 'exit 0',
+ '',
+ ].join('\n'), { mode: 0o755 });
+ const shells = ['sh', 'bash', 'zsh'].filter((shell) => spawnSync('which', [shell]).status === 0);
+ if (process.platform === 'win32' || shells.length === 0) return;
+ for (const shell of shells) {
+ fs.rmSync(log, { force: true });
+ const result = spawnSync(shell, ['-c', command], { env: { ...process.env, PATH: `${bin}${path.delimiter}${process.env.PATH}` }, encoding: 'utf8' });
+ assert.equal(result.status, 0, `${shell}: ${result.stderr}`);
+ assert.deepEqual(fs.readFileSync(log, 'utf8').trim().split('\n'), [
+ 'plugin marketplace add microsoft/power-platform-skills',
+ 'plugin install pcf@power-platform-skills',
+ ], shell);
+ }
+});
+
+test('detectOs picks the computer from what each browser reports', () => {
+ const cases = [
+ ['Chrome on Windows', { userAgentData: { platform: 'Windows', mobile: false }, platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/131.0' }, 'windows'],
+ ['Firefox on Windows', { platform: 'Win32', userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Firefox/132.0' }, 'windows'],
+ ['Edge on macOS', { userAgentData: { platform: 'macOS', mobile: false }, platform: 'MacIntel', maxTouchPoints: 0, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Edg/131.0' }, 'macos'],
+ ['Safari on macOS', { platform: 'MacIntel', maxTouchPoints: 0, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Version/18.0 Safari/605.1.15' }, 'macos'],
+ ['Firefox on Linux', { platform: 'Linux x86_64', userAgent: 'Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Firefox/132.0' }, 'linux'],
+ ['Chrome on ChromeOS', { userAgentData: { platform: 'Chrome OS', mobile: false }, platform: 'Linux x86_64', userAgent: 'Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) Chrome/131.0' }, 'linux'],
+ ['Safari on iPad, which reports a Mac', { platform: 'MacIntel', maxTouchPoints: 5, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Version/18.0 Safari/605.1.15' }, null],
+ ['Safari on iPhone', { platform: 'iPhone', maxTouchPoints: 5, userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) Mobile/15E148' }, null],
+ ['Chrome on Android', { userAgentData: { platform: 'Android', mobile: true }, platform: 'Linux armv81', userAgent: 'Mozilla/5.0 (Linux; Android 14; Pixel 8) Chrome/131.0 Mobile' }, null],
+ ['an unknown browser', { platform: '', userAgent: '' }, null],
+ ['no navigator', undefined, null],
+ ];
+ for (const [label, nav, expected] of cases) {
+ assert.equal(links.detectOs(nav), expected, label);
+ }
+});
+
+test('each computer gets the install command that works there', () => {
+ assert.equal(links.installAllCommand('windows'), links.INSTALL_ALL.windows);
+ assert.equal(links.installAllCommand('macos'), links.INSTALL_ALL.unix);
+ assert.equal(links.installAllCommand('linux'), links.INSTALL_ALL.unix);
+ assert.equal(links.installAllCommand('windows', { dataverse: true }), links.INSTALL_ALL_WITH_DATAVERSE.windows);
+ assert.equal(links.installAllCommand('linux', { dataverse: true }), links.INSTALL_ALL_WITH_DATAVERSE.unix);
+ assert.throws(() => links.installAllCommand('android'), /Unknown operating system/);
+});
+
+test('launcher URLs accept only known apps and keep the base the caller passes', () => {
+ assert.equal(links.launcherUrl('../../', 'claude-code', 'pcf'), '../../install/?app=claude-code&plugin=pcf');
+ assert.equal(
+ links.launcherUrl(links.SITE_URL, 'claude-code', 'pcf'),
+ 'https://microsoft.github.io/power-platform-skills/install/?app=claude-code&plugin=pcf',
+ );
+ assert.throws(() => links.launcherUrl('', 'copilot-cli', 'pcf'), /Unsupported launcher app/);
+ assert.throws(() => links.launcherUrl('', 'claude-code"><script>', 'pcf'), /Unsupported launcher app/);
+});
+
+test('every link builder rejects names outside the Open Plugins grammar', () => {
+ const builders = [
+ links.claudeCodePrompt,
+ links.claudeCodeShellCommand,
+ links.claudeCodeDeepLink,
+ links.copilotAppInstallUrl,
+ links.copilotCliCommands,
+ (name) => links.launcherUrl('', 'claude-code', name),
+ ];
+ for (const name of BAD_NAMES) {
+ assert.equal(links.isValidPluginName(name), false, JSON.stringify(name));
+ for (const builder of builders) {
+ assert.throws(() => builder(name), /Invalid plugin name/, `${builder.name || 'launcherUrl'}(${JSON.stringify(name)})`);
+ }
+ }
+});
+
+test('the browser name check agrees with the installer', () => {
+ const names = [...BAD_NAMES, ...MARKETPLACE_NAMES, 'a', 'a.b', 'a-b', 'a..b', 'a.-b', '1', 'x'.repeat(64)];
+ for (const name of names) {
+ assert.equal(links.isValidPluginName(name), installer.isValidPluginName(name), JSON.stringify(name));
+ }
+});
+
+test('the install-everything commands match the installer usage', () => {
+ const source = fs.readFileSync(path.join(REPO_ROOT, 'scripts', 'install.js'), 'utf8');
+ assert.ok(source.includes(links.INSTALL_ALL.unix), 'scripts/install.js usage no longer shows the curl one-liner');
+ assert.ok(source.includes(links.INSTALL_ALL_WITH_DATAVERSE.unix), 'scripts/install.js usage no longer shows the Dataverse one-liner');
+ assert.ok(links.INSTALL_ALL.windows.startsWith(`iwr ${links.INSTALLER_URL} -OutFile install.js;`));
+});
+
+test('the Dataverse flag reaches the installer, not node or del', () => {
+ // Appending the flag to either one-liner breaks it, so the position is pinned here.
+ assert.match(links.INSTALL_ALL_WITH_DATAVERSE.windows, /; node install\.js --include-dataverse; del install\.js$/);
+ assert.match(links.INSTALL_ALL_WITH_DATAVERSE.unix, /\| node - --include-dataverse$/);
+ // `node -` runs the piped script and passes the rest of the arguments to it.
+ const piped = spawnSync(process.execPath, ['-', '--include-dataverse'], {
+ input: 'process.stdout.write(JSON.stringify(process.argv.slice(2)))',
+ encoding: 'utf8',
+ });
+ assert.equal(piped.status, 0, piped.stderr);
+ assert.deepEqual(JSON.parse(piped.stdout), ['--include-dataverse']);
+});
+
+// ── Catalog ─────────────────────────────────────────────────────
+
+test('the real catalog covers exactly the marketplace plugins', () => {
+ const catalog = loadCatalog(REPO_ROOT);
+ assert.deepEqual(catalog.plugins.map((plugin) => plugin.name).sort(), MARKETPLACE_NAMES);
+ for (const plugin of catalog.plugins) {
+ assert.match(plugin.docsUrl, /^https:\/\//, plugin.name);
+ }
+});
+
+// A two-plugin repository: one plugin in the repo and one external, like dataverse.
+function fixtureRepo({ catalog: edit = (value) => value, skills = ['make-thing'] } = {}) {
+ const root = tempDir('pps-site-repo-');
+ writeJson(path.join(root, 'marketplace.json'), {
+ name: 'power-platform-skills',
+ plugins: [
+ { name: 'alpha', source: './plugins/alpha' },
+ { name: 'beta', source: { source: 'github', repo: 'example/beta', path: 'plugin' } },
+ ],
+ });
+ writeJson(path.join(root, 'plugins', 'alpha', '.plugin', 'plugin.json'), { name: 'alpha', version: '1.2.3' });
+ for (const skill of skills) {
+ fs.mkdirSync(path.join(root, 'plugins', 'alpha', 'skills', skill), { recursive: true });
+ fs.writeFileSync(path.join(root, 'plugins', 'alpha', 'skills', skill, 'SKILL.md'), '---\nname: x\n---\n');
+ }
+ const entry = (name, extra) => ({
+ name,
+ title: name.toUpperCase(),
+ goal: 'build',
+ product: 'power-apps',
+ audience: 'makers',
+ status: null,
+ summary: `${name} summary`,
+ prompts: [`Ask ${name}`],
+ requirements: ['Node.js'],
+ skills: [{ name: 'make-thing', description: 'Makes a thing.' }],
+ notes: [],
+ learn: [{ title: 'Docs', url: 'https://learn.microsoft.com/' }],
+ ...extra,
+ });
+ const catalog = {
+ goals: [{ id: 'build', title: 'Build', summary: 'Build things.' }],
+ plugins: [entry('alpha'), entry('beta', { external: 'https://github.com/example/beta' })],
+ faq: [{ question: 'Q?', answer: 'A.' }],
+ showcase: [{ plugin: 'alpha', prompt: 'Ask alpha', steps: ['One', 'Two'], waiting: 'Waits' }],
+ video: { transcript: [{ spoken: 'Said aloud.', shown: 'On screen.' }] },
+ };
+ writeJson(path.join(root, 'site', 'catalog.json'), edit(catalog));
+ return root;
+}
+
+test('a valid fixture catalog loads with versions from the plugin manifest', () => {
+ const catalog = loadCatalog(fixtureRepo());
+ const alpha = catalog.plugins.find((plugin) => plugin.name === 'alpha');
+ const beta = catalog.plugins.find((plugin) => plugin.name === 'beta');
+ assert.equal(alpha.version, '1.2.3');
+ assert.equal(alpha.docsUrl, 'https://github.com/microsoft/power-platform-skills/tree/main/plugins/alpha');
+ assert.equal(beta.version, null);
+ assert.equal(beta.external, true);
+});
+
+test('catalog validation reports every drift from the marketplace', () => {
+ const cases = [
+ ['a marketplace plugin with no entry', (c) => ({ ...c, plugins: c.plugins.filter((p) => p.name !== 'beta') }), /marketplace plugin beta has no entry/],
+ ['an entry not in the marketplace', (c) => ({ ...c, plugins: [...c.plugins, { ...c.plugins[0], name: 'gamma' }] }), /gamma.*not in marketplace\.json/],
+ ['a skill with no SKILL.md', (c) => { c.plugins[0].skills = [{ name: 'missing', description: 'x' }]; return c; }, /skill "missing"/],
+ ['an unknown goal', (c) => { c.plugins[0].goal = 'nope'; return c; }, /unknown goal "nope"/],
+ ['an unknown audience', (c) => { c.plugins[0].audience = 'everyone'; return c; }, /unknown audience/],
+ ['an http learn link', (c) => { c.plugins[0].learn = [{ title: 'x', url: 'http://example.com' }]; return c; }, /https url/],
+ ['an external plugin with no url', (c) => { delete c.plugins[1].external; return c; }, /needs an https external url/],
+ ['an in-repo plugin marked external', (c) => { c.plugins[0].external = 'https://example.com'; return c; }, /must not set external/],
+ ['a goal with no plugins', (c) => { c.goals.push({ id: 'empty', title: 'E', summary: 'E.' }); return c; }, /goal empty has no plugins/],
+ ['too many prompts', (c) => { c.plugins[0].prompts = ['1', '2', '3', '4', '5', '6']; return c; }, /1 to 5 example prompts/],
+ ['an unknown product', (c) => { c.plugins[0].product = 'power-bi'; return c; }, /unknown product "power-bi"/],
+ ['a showcase prompt the plugin does not list', (c) => { c.showcase[0].prompt = 'Something else'; return c; }, /not one of alpha's prompts/],
+ ['a showcase with one step', (c) => { c.showcase[0].steps = ['Only']; return c; }, /2 to 5 steps/],
+ ['no showcase', (c) => { c.showcase = []; return c; }, /1 to 6 example sessions/],
+ ['a video transcript paragraph with no description', (c) => { c.video.transcript[0].shown = ''; return c; }, /video\.transcript needs/],
+ ['no video transcript', (c) => { delete c.video; return c; }, /video\.transcript needs/],
+ ];
+ for (const [label, edit, pattern] of cases) {
+ assert.throws(() => loadCatalog(fixtureRepo({ catalog: edit })), pattern, label);
+ }
+});
+
+// ── Build ───────────────────────────────────────────────────────
+
+function readOut(outDir, relative) {
+ return fs.readFileSync(path.join(outDir, relative), 'utf8');
+}
+
+function pageData(html) {
+ const match = /<script type="application\/json" id="page-data">(.*?)<\/script>/s.exec(html);
+ assert.ok(match, 'page-data block missing');
+ return JSON.parse(match[1]);
+}
+
+test('the build writes a page for every marketplace plugin plus the launcher and 404', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ const { files } = build({ outDir, basePath: '/power-platform-skills/' });
+ for (const name of MARKETPLACE_NAMES) {
+ assert.ok(files.includes(`plugins/${name}/index.html`), name);
+ }
+ for (const file of [
+ 'index.html', 'install/index.html', '404.html', 'assets/styles.css', 'assets/site.js', 'assets/theme.js',
+ 'assets/launcher.js', 'assets/install-links.js', 'assets/brand/power-platform.svg', 'assets/brand/favicon-32.png',
+ 'assets/fonts/schibsted-grotesk-latin.woff2', 'assets/fonts/OFL-schibsted-grotesk.txt',
+ ]) {
+ assert.ok(fs.existsSync(path.join(outDir, file)), file);
+ }
+ // The browser copy of the link builders is the module the build and tests use.
+ assert.equal(readOut(outDir, 'assets/install-links.js'), fs.readFileSync(path.join(REPO_ROOT, 'site', 'lib', 'install-links.js'), 'utf8'));
+});
+
+test('every page loads only same-origin assets under a strict content security policy', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ const { files } = build({ outDir, basePath: '/power-platform-skills/' });
+ for (const file of files.filter((name) => name.endsWith('.html'))) {
+ const html = readOut(outDir, file);
+ assert.match(html, /<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self';/, file);
+ for (const [, attr, value] of html.matchAll(/<(?:script|link|video|source|track)\b[^>]*\b(src|href|poster)="([^"]*)"/g)) {
+ if (attr === 'href' && file === '404.html') {
+ assert.ok(value.startsWith('/power-platform-skills/'), `${file}: ${value}`);
+ } else {
+ assert.doesNotMatch(value, /^(?:[a-z]+:)?\/\//i, `${file} loads ${value} from another origin`);
+ }
+ }
+ assert.doesNotMatch(html, /<script(?![^>]*\bsrc=)(?![^>]*type="application\/json")[^>]*>/, `${file} has an inline script`);
+ }
+});
+
+test('the home page leads with Install everything and shows steps for each computer', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ build({ outDir, basePath: '/power-platform-skills/' });
+ const html = readOut(outDir, 'index.html');
+ const hero = html.slice(html.indexOf('class="hero-actions"'), html.indexOf('class="proof-list"'));
+ assert.match(hero, /button-primary[^>]*href="#install-everything">Install everything</);
+ assert.match(hero, /button-secondary[^>]*href="#plugins">Choose a plugin</);
+ assert.match(html, /nav-cta" href="#install-everything">Install everything</);
+ assert.ok(html.indexOf('id="install-everything"') < html.indexOf('id="plugins"'), 'install section should come before the catalog');
+ for (const os of links.OPERATING_SYSTEMS) {
+ const start = html.indexOf(`data-os="${os}"`);
+ assert.ok(start > -1, os);
+ const panel = html.slice(start, html.indexOf('</details>', start));
+ assert.ok(panel.includes(`data-copy="${links.installAllCommand(os).replace(/&/g, '&amp;')}"`), `${os} command`);
+ assert.ok(panel.includes(`data-copy="${links.installAllCommand(os, { dataverse: true }).replace(/&/g, '&amp;')}"`), `${os} Dataverse command`);
+ }
+});
+
+test('the launcher allowlist is exactly the marketplace', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ build({ outDir, basePath: '/power-platform-skills/' });
+ const data = pageData(readOut(outDir, 'install/index.html'));
+ assert.deepEqual(Object.keys(data.plugins).sort(), MARKETPLACE_NAMES);
+});
+
+test('plugin pages link each assistant to its install path', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ build({ outDir, basePath: '/power-platform-skills/' });
+ const html = readOut(outDir, 'plugins/power-automate/index.html');
+ const decode = (value) => value.replace(/&amp;/g, '&');
+ const hrefs = [...html.matchAll(/href="([^"]*)"/g)].map((match) => decode(match[1]));
+ assert.ok(hrefs.includes(links.launcherUrl('../../', 'claude-code', 'power-automate')));
+ assert.ok(hrefs.includes(links.copilotAppInstallUrl('power-automate')));
+ assert.ok(hrefs.includes(links.copilotAppMarketplaceUrl()));
+ // Copilot CLI has no URL handler, so its install path is a copy button with both commands.
+ assert.ok(html.includes(`data-copy="${links.copilotCliCommand('power-automate')}"`));
+});
+
+test('every product icon on the site sits beside its product name', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ const { files } = build({ outDir, basePath: '/power-platform-skills/' });
+ const { PRODUCTS } = require('../lib/catalog.js');
+ const labelFor = Object.fromEntries(Object.values(PRODUCTS).map((product) => [path.basename(product.icon), product.label]));
+ for (const file of files.filter((name) => name.endsWith('.html'))) {
+ const html = readOut(outDir, file);
+ // An icon's parent element is the unit a reader sees together with it.
+ for (const match of html.matchAll(/<img[^>]*src="[^"]*brand\/([a-z-]+\.svg)"[^>]*>/g)) {
+ const icon = match[1];
+ const label = icon === 'power-platform.svg' ? 'Power Platform' : labelFor[icon];
+ const after = html.slice(match.index, match.index + 600).replace(/<[^>]+>/g, ' ');
+ assert.ok(after.includes(label), `${file}: ${icon} has no "${label}" label beside it`);
+ }
+ }
+});
+
+test('catalog text is escaped in every page', () => {
+ const hostile = '<script>alert(1)</script>"\'&';
+ const root = fixtureRepo({
+ catalog: (c) => {
+ c.plugins[0].summary = hostile;
+ c.plugins[0].prompts = [hostile];
+ c.plugins[0].title = hostile;
+ c.faq[0].answer = hostile;
+ c.showcase[0].prompt = hostile;
+ c.showcase[0].steps = [hostile, hostile];
+ return c;
+ },
+ });
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ const { files } = build({ repoRoot: root, outDir, basePath: '/' });
+ for (const file of files.filter((name) => name.endsWith('.html'))) {
+ const html = readOut(outDir, file);
+ assert.ok(!html.includes('<script>alert(1)'), `${file} contains unescaped catalog text`);
+ }
+ assert.ok(readOut(outDir, 'plugins/alpha/index.html').includes('&lt;script&gt;alert(1)&lt;/script&gt;&quot;&#39;&amp;'));
+ // The title also lands in the launcher's JSON data block, which must not close the element.
+ assert.equal(pageData(readOut(outDir, 'install/index.html')).plugins.alpha, hostile);
+});
+
+test('jsonForScript keeps </script> inside a JSON data block', () => {
+ const json = render.jsonForScript({ text: '</script><script>alert(1)</script>' });
+ assert.ok(!json.includes('</script'));
+ assert.deepEqual(JSON.parse(json), { text: '</script><script>alert(1)</script>' });
+});
+
+test('the build clears only folders it created', () => {
+ const parent = tempDir('pps-site-out-');
+ const unrelated = path.join(parent, 'unrelated');
+ fs.mkdirSync(unrelated);
+ fs.writeFileSync(path.join(unrelated, 'keep.txt'), 'keep');
+ assert.throws(() => build({ outDir: unrelated, basePath: '/' }), /Refusing to clear/);
+ assert.equal(fs.readFileSync(path.join(unrelated, 'keep.txt'), 'utf8'), 'keep');
+
+ const outDir = path.join(parent, 'dist');
+ build({ outDir, basePath: '/' });
+ fs.writeFileSync(path.join(outDir, 'stale.html'), 'old');
+ build({ outDir, basePath: '/' });
+ assert.ok(!fs.existsSync(path.join(outDir, 'stale.html')));
+ assert.ok(fs.existsSync(path.join(outDir, MARKER)));
+});
+
+test('build arguments are strict and the base path is normalized', () => {
+ assert.equal(parseArgs([]).basePath, '/power-platform-skills/');
+ assert.equal(parseArgs(['--base-path', 'docs']).basePath, '/docs/');
+ assert.equal(parseArgs(['--base-path', '/']).basePath, '/');
+ assert.throws(() => parseArgs(['--outdir', 'x']), /Unknown or incomplete argument/);
+ assert.throws(() => parseArgs(['--out']), /Unknown or incomplete argument/);
+});
+
+// ── Launcher page ───────────────────────────────────────────────
+
+// Runs assets/launcher.js against a stub DOM. It records where the page would navigate,
+// so no test ever hands a claude-cli: link to the operating system.
+function runLauncher(search, { touchOnly = false } = {}) {
+ const element = () => ({ hidden: true, textContent: '', href: '#', dataset: {} });
+ const ready = element();
+ const invalid = element();
+ const parts = {
+ '[data-launcher-plugin]': element(),
+ '[data-launcher-prompt]': element(),
+ '[data-launcher-shell]': element(),
+ '[data-launcher-copy]': element(),
+ '[data-launcher-open]': element(),
+ '[data-launcher-touch]': element(),
+ '[data-launcher-desktop]': { ...element(), hidden: false },
+ };
+ ready.querySelector = (selector) => parts[selector];
+ const catalog = loadCatalog(REPO_ROOT);
+ const data = { plugins: Object.fromEntries(catalog.plugins.map((plugin) => [plugin.name, plugin.title])) };
+ const navigations = [];
+ const document = {
+ title: '',
+ getElementById: (id) => (id === 'page-data' ? { textContent: JSON.stringify(data) } : null),
+ querySelector: (selector) => ({
+ '[data-launcher-state="ready"]': ready,
+ '[data-launcher-state="invalid"]': invalid,
+ })[selector],
+ };
+ const window = {
+ PowerPlatformSkillsInstallLinks: links,
+ location: {
+ search,
+ set href(value) {
+ navigations.push(value);
+ },
+ },
+ setTimeout: (fn) => fn(),
+ matchMedia: (query) => ({ matches: touchOnly && query === '(hover: none) and (pointer: coarse)' }),
+ };
+ const source = fs.readFileSync(path.join(REPO_ROOT, 'site', 'assets', 'launcher.js'), 'utf8');
+ vm.runInNewContext(source, { window, document, URLSearchParams });
+ return { ready, invalid, parts, navigations, document };
+}
+
+test('the launcher opens Claude Code for a known plugin', () => {
+ const { ready, invalid, parts, navigations, document } = runLauncher('?app=claude-code&plugin=process-intelligence');
+ assert.equal(ready.hidden, false);
+ assert.equal(invalid.hidden, true);
+ assert.equal(parts['[data-launcher-open]'].href, links.claudeCodeDeepLink('process-intelligence'));
+ assert.equal(parts['[data-launcher-prompt]'].textContent, links.claudeCodePrompt('process-intelligence'));
+ assert.equal(parts['[data-launcher-copy]'].dataset.copy, links.claudeCodeShellCommand('process-intelligence'));
+ assert.equal(parts['[data-launcher-plugin]'].textContent, 'Process Intelligence');
+ assert.deepEqual(navigations, [links.claudeCodeDeepLink('process-intelligence')]);
+ assert.match(document.title, /Install Process Intelligence in Claude Code/);
+});
+
+test('the launcher does not try to open Claude Code on a phone or tablet', () => {
+ const { ready, parts, navigations } = runLauncher('?app=claude-code&plugin=pcf', { touchOnly: true });
+ assert.equal(ready.hidden, false);
+ assert.equal(parts['[data-launcher-open]'].href, links.claudeCodeDeepLink('pcf'));
+ assert.equal(parts['[data-launcher-touch]'].hidden, false);
+ assert.equal(parts['[data-launcher-desktop]'].hidden, true);
+ assert.deepEqual(navigations, []);
+});
+
+test('the launcher refuses anything outside its allowlist and never navigates', () => {
+ const searches = [
+ '',
+ '?app=claude-code',
+ '?plugin=pcf',
+ '?app=copilot-cli&plugin=pcf',
+ '?app=claude-code&plugin=unknown-plugin',
+ '?app=claude-code&plugin=__proto__',
+ '?app=claude-code&plugin=constructor',
+ '?app=claude-code&plugin=pcf&plugin=power-pages',
+ '?app=claude-code&app=claude-code&plugin=pcf',
+ `?app=claude-code&plugin=${encodeURIComponent('pcf --scope project')}`,
+ `?app=claude-code&plugin=${encodeURIComponent('pcf\n/help')}`,
+ ];
+ for (const search of searches) {
+ const { ready, invalid, navigations } = runLauncher(search);
+ assert.equal(invalid.hidden, false, search);
+ assert.equal(ready.hidden, true, search);
+ assert.deepEqual(navigations, [], search);
+ }
+});
+
+// ── Pages deployment ────────────────────────────────────────────
+
+test('every Pages deploy carries the repo stats report', () => {
+ // GitHub Pages serves one artifact, so a deploy without the stats branch's microsoft/ folder
+ // takes https://microsoft.github.io/power-platform-skills/microsoft/... offline.
+ const site = fs.readFileSync(path.join(REPO_ROOT, '.github', 'workflows', 'showcase-site.yml'), 'utf8');
+ const stats = fs.readFileSync(path.join(REPO_ROOT, '.github', 'workflows', 'github-repo-stats.yml'), 'utf8');
+ const statsName = /^name: (.+)$/m.exec(stats)[1].trim();
+ assert.match(site, new RegExp(`workflow_run:\\n\\s+workflows:\\n\\s+- ${statsName}\\n`), 'site must republish after the stats workflow');
+ assert.match(site, /ref: github-repo-stats\n\s+path: repo-stats\n\s+sparse-checkout: microsoft\n/);
+ assert.match(site, /run: cp -R repo-stats\/microsoft site\/dist\/microsoft\n/);
+ assert.ok(site.indexOf('cp -R repo-stats/microsoft') < site.indexOf('upload-pages-artifact'), 'stats must be copied before the upload');
+ // The report's links are built from this prefix, so it must be the site the workflow deploys.
+ assert.match(stats, new RegExp(`ghpagesprefix: ${links.SITE_URL.replace(/\/$/, '').replace(/[.]/g, '\\.')}\\n`));
+ assert.match(stats, /databranch: github-repo-stats\n/);
+});
+
+// ── Explainer video ─────────────────────────────────────────────
+
+// The spoken words of a WebVTT file: a "WEBVTT" header block, then blank-line-separated cues,
+// each a "start --> end" timing line followed by one or more lines of text.
+// https://www.w3.org/TR/webvtt1/#file-structure
+function vttText(vtt) {
+ return vtt.trim().split(/\r?\n\r?\n/).slice(1)
+ .map((cue) => cue.split(/\r?\n/).filter((line) => !line.includes('-->')).join(' '))
+ .join(' ');
+}
+
+function questionsSection(html) {
+ const start = html.indexOf('id="questions"');
+ return html.slice(start, html.indexOf('</section>', start));
+}
+
+test('the explainer video plays only on request, with captions on, from this site', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ build({ outDir, basePath: '/power-platform-skills/' });
+ const faq = questionsSection(readOut(outDir, 'index.html'));
+ const video = /<video\b[^>]*>/.exec(faq);
+ assert.ok(video, 'no video in the Questions section');
+ // Native controls are the no-JavaScript fallback; site.js swaps in the play button.
+ assert.match(video[0], /\bcontrols\b/);
+ // A 3 MB file must not download, or start, until the visitor asks for it.
+ assert.match(video[0], /\bpreload="none"/);
+ assert.doesNotMatch(video[0], /\b(?:autoplay|loop)\b/);
+ assert.match(faq, /<track kind="captions" src="[^"]+" srclang="en" label="English" default>/);
+ assert.match(faq, /<button type="button" class="explainer-play" data-explainer-play hidden>/);
+ const files = [...faq.matchAll(/\b(?:src|poster)="([^"]+)"/g)].map((match) => match[1]);
+ assert.deepEqual(files.sort(), [
+ 'assets/video/plugins-and-skills-poster.webp',
+ 'assets/video/plugins-and-skills.mp4',
+ 'assets/video/plugins-and-skills.vtt',
+ ]);
+ // The captions are committed with the site; the video and poster come from site-media, pinned
+ // in site/media.json, and CI checks them with build --require-media.
+ const pinned = media.loadMediaManifest(path.join(REPO_ROOT, 'site', 'media.json')).files.map((entry) => entry.path);
+ assert.deepEqual(pinned.sort(), ['assets/video/plugins-and-skills-poster.webp', 'assets/video/plugins-and-skills.mp4']);
+ assert.ok(fs.existsSync(path.join(outDir, 'assets/video/plugins-and-skills.vtt')), 'captions are not in the build');
+});
+
+// ── Site media (site-media branch) ──────────────────────────────
+
+function mediaFixture(files) {
+ const dir = tempDir('pps-site-media-');
+ const entries = Object.entries(files).map(([name, text]) => {
+ const data = Buffer.from(text);
+ fs.mkdirSync(path.join(dir, 'video'), { recursive: true });
+ fs.writeFileSync(path.join(dir, 'video', name), data);
+ return { path: `assets/video/${name}`, source: `video/${name}`, sha256: media.sha256(data), bytes: data.length };
+ });
+ return { dir, manifest: { branch: 'site-media', files: entries } };
+}
+
+test('pinned media is copied into the site only when its hash matches', () => {
+ const { dir, manifest } = mediaFixture({ 'a.mp4': 'video bytes', 'b.webp': 'poster bytes' });
+ const outDir = tempDir('pps-site-out-');
+ assert.deepEqual(media.copyMedia({ manifest, mediaDir: dir, outDir }), {
+ written: ['assets/video/a.mp4', 'assets/video/b.webp'], missing: [],
+ });
+ assert.equal(fs.readFileSync(path.join(outDir, 'assets/video/a.mp4'), 'utf8'), 'video bytes');
+
+ fs.rmSync(path.join(dir, 'video', 'b.webp'));
+ assert.deepEqual(media.copyMedia({ manifest, mediaDir: dir, outDir: tempDir('pps-site-out-') }).missing, ['video/b.webp']);
+ assert.deepEqual(media.copyMedia({ manifest, mediaDir: null, outDir: tempDir('pps-site-out-') }).missing, ['video/a.mp4', 'video/b.webp']);
+
+ fs.writeFileSync(path.join(dir, 'video', 'a.mp4'), 'video bytes, re-encoded');
+ assert.throws(() => media.copyMedia({ manifest, mediaDir: dir, outDir: tempDir('pps-site-out-') }), /not the version site\/media\.json pins/);
+});
+
+test('a build that requires media fails without it, and one that does not says what it left out', () => {
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ const empty = tempDir('pps-site-media-');
+ assert.throws(() => build({ outDir, basePath: '/power-platform-skills/', mediaDir: empty, requireMedia: true }), /Run node site\/fetch-media\.js/);
+ const { missingMedia } = build({ outDir, basePath: '/power-platform-skills/', mediaDir: empty });
+ const pinned = media.loadMediaManifest(path.join(REPO_ROOT, 'site', 'media.json')).files.map((entry) => entry.source);
+ assert.deepEqual(missingMedia, pinned);
+ assert.deepEqual(parseArgs(['--media', empty, '--require-media']).requireMedia, true);
+});
+
+test('the media manifest only accepts files under assets/ with safe paths and a hash', () => {
+ const good = { path: 'assets/video/a.mp4', source: 'video/a-0123456789ab.mp4', sha256: 'a'.repeat(64), bytes: 1 };
+ const write = (value) => {
+ const file = path.join(tempDir('pps-site-manifest-'), 'media.json');
+ fs.writeFileSync(file, JSON.stringify(value));
+ return file;
+ };
+ assert.doesNotThrow(() => media.loadMediaManifest(write({ branch: 'site-media', files: [good] })));
+ for (const [label, value] of [
+ ['wrong branch', { branch: 'main', files: [good] }],
+ ['no files', { branch: 'site-media', files: [] }],
+ ['outside assets', { branch: 'site-media', files: [{ ...good, path: 'index.html' }] }],
+ ['climbs out', { branch: 'site-media', files: [{ ...good, path: 'assets/../../x' }] }],
+ ['absolute source', { branch: 'site-media', files: [{ ...good, source: '/etc/passwd' }] }],
+ ['source climbs out', { branch: 'site-media', files: [{ ...good, source: '../x' }] }],
+ ['bad hash', { branch: 'site-media', files: [{ ...good, sha256: 'xyz' }] }],
+ ['no size', { branch: 'site-media', files: [{ ...good, bytes: 0 }] }],
+ ['duplicate', { branch: 'site-media', files: [good, good] }],
+ ]) {
+ assert.throws(() => media.loadMediaManifest(write(value)), Error, label);
+ }
+});
+
+function git(args, cwd) {
+ // Fixture repositories ignore the developer's global hooks and signing settings.
+ return spawnSync('git', ['-c', 'commit.gpgsign=false', '-c', 'core.hooksPath=', ...args], { cwd, encoding: 'utf8' });
+}
+
+test('fetch-media takes exactly the pinned files from the site-media branch', (t) => {
+ if (git(['--version']).status !== 0) {
+ t.skip('git is not installed');
+ return;
+ }
+ const { dir: content, manifest } = mediaFixture({ 'a.mp4': 'video bytes', 'b.webp': 'poster bytes' });
+ const upstream = tempDir('pps-site-upstream-');
+ assert.equal(git(['init', '--quiet', '--initial-branch', 'site-media'], upstream).status, 0);
+ fs.cpSync(content, upstream, { recursive: true });
+ fs.writeFileSync(path.join(upstream, 'video', 'unpinned.mp4'), 'an older render');
+ assert.equal(git(['add', '.'], upstream).status, 0);
+ const commit = git(['-c', 'user.name=Site test', '-c', '[email protected]', 'commit', '--quiet', '--no-verify', '-m', 'media'], upstream);
+ assert.equal(commit.status, 0, commit.stderr);
+
+ const clone = tempDir('pps-site-clone-');
+ assert.equal(git(['init', '--quiet'], clone).status, 0);
+ const mediaDir = path.join(clone, 'site', 'media');
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir, from: upstream, cwd: clone }).fetched, ['video/a.mp4', 'video/b.webp']);
+ assert.equal(fs.readFileSync(path.join(mediaDir, 'video', 'b.webp'), 'utf8'), 'poster bytes');
+ assert.ok(!fs.existsSync(path.join(mediaDir, 'video', 'unpinned.mp4')), 'only pinned files are fetched');
+ // Nothing to do the second time.
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir, from: upstream, cwd: clone }).fetched, []);
+ // The fetch never touches the contributor's clone: a --depth fetch there would mark the whole
+ // clone shallow, and FETCH_HEAD or a branch would show that it ran.
+ for (const name of ['shallow', 'FETCH_HEAD']) {
+ assert.ok(!fs.existsSync(path.join(clone, '.git', name)), `the fetch wrote .git/${name} in the clone`);
+ }
+ assert.equal(git(['branch', '--list'], clone).stdout.trim(), '');
+
+ // A remote name of the clone, and a subfolder of the upstream repository, both work as --from.
+ assert.equal(git(['remote', 'add', 'media-source', upstream], clone).status, 0);
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: 'media-source', cwd: clone }).fetched.length, 2);
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: 'video', cwd: upstream }).fetched.length, 2);
+ // A relative folder is relative to where the command was run (pathBase), not to cwd, while a
+ // remote name still resolves in cwd's repository.
+ const relative = path.relative(path.dirname(upstream), upstream);
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: relative, cwd: clone, pathBase: path.dirname(upstream) }).fetched.length, 2);
+ assert.throws(() => media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: relative, cwd: clone }), /is not a URL, a Git remote, or a folder/);
+ assert.deepEqual(media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: 'media-source', cwd: clone, pathBase: os.tmpdir() }).fetched.length, 2);
+
+ const unknown = { branch: 'site-media', files: [{ ...manifest.files[0], source: 'video/missing.mp4' }] };
+ assert.throws(() => media.fetchMedia({ manifest: unknown, mediaDir: tempDir('pps-site-media-'), from: upstream, cwd: clone }), /has no video\/missing\.mp4/);
+ const tampered = { branch: 'site-media', files: [{ ...manifest.files[0], sha256: 'b'.repeat(64) }] };
+ assert.throws(() => media.fetchMedia({ manifest: tampered, mediaDir: tempDir('pps-site-media-'), from: upstream, cwd: clone }), /not the version/);
+ assert.throws(() => media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: tempDir('pps-site-empty-'), cwd: clone }), /is not a URL, a Git remote, or a folder in a Git repository/);
+ const noBranch = tempDir('pps-site-nobranch-');
+ assert.equal(git(['init', '--quiet', '--initial-branch', 'main'], noBranch).status, 0);
+ assert.throws(() => media.fetchMedia({ manifest, mediaDir: tempDir('pps-site-media-'), from: noBranch, cwd: clone }), /site-media branch is not on/);
+});
+
+test('no audio, video, or large file is committed under site/', (t) => {
+ // Every marketplace install clones main, so the site's media lives on the site-media branch.
+ const listed = spawnSync('git', ['ls-files', '-z', '--', 'site'], { cwd: REPO_ROOT, encoding: 'utf8' });
+ if (listed.status !== 0) {
+ t.skip('not a Git checkout');
+ return;
+ }
+ const LIMIT = 256 * 1024;
+ for (const file of listed.stdout.split('\0').filter(Boolean)) {
+ assert.doesNotMatch(file, /\.(?:mp4|m4v|mov|webm|mkv|avi|wav|mp3|m4a|ogg|flac)$/i, `${file}: put media on the site-media branch (see site/lib/media.js)`);
+ const full = path.join(REPO_ROOT, file);
+ if (fs.existsSync(full)) {
+ assert.ok(fs.statSync(full).size <= LIMIT, `${file} is over ${LIMIT / 1024} KB: put it on the site-media branch (see site/lib/media.js)`);
+ }
+ }
+});
+
+test('the transcript says the same words as the captions', () => {
+ const { video } = loadCatalog(REPO_ROOT);
+ const spokenText = video.transcript.map((paragraph) => paragraph.spoken).join(' ');
+ const vtt = fs.readFileSync(path.join(REPO_ROOT, 'site', 'assets', 'video', 'plugins-and-skills.vtt'), 'utf8');
+ assert.equal(vttText(vtt), spokenText, 'video.transcript in site/catalog.json and the captions disagree');
+
+ const outDir = path.join(tempDir('pps-site-out-'), 'dist');
+ build({ outDir, basePath: '/power-platform-skills/' });
+ const faq = questionsSection(readOut(outDir, 'index.html'));
+ const transcript = /<details class="transcript">([\s\S]*?)<\/details>/.exec(faq);
+ assert.ok(transcript, 'no transcript');
+ const spoken = [...transcript[1].matchAll(/<p>(.*?)<\/p>/g)].map((match) => match[1]);
+ const shown = [...transcript[1].matchAll(/<p class="transcript-visual"><strong>On screen:<\/strong> (.*?)<\/p>/g)];
+ assert.equal(spoken.length, video.transcript.length);
+ assert.equal(shown.length, video.transcript.length, 'every part of the narration needs its on-screen description');
+ assert.equal(spoken.join(' '), render.escapeHtml(spokenText));
+});
+
+test('every skill the explainer video shows is a real Power Pages skill', () => {
+ // The transcript describes the skills the video shows, such as "/create-site, Start a new site".
+ // A Power Pages skill that is renamed or removed makes the video wrong, so this fails until the
+ // video is replaced.
+ const { video } = loadCatalog(REPO_ROOT);
+ const text = video.transcript.map((paragraph) => `${paragraph.spoken} ${paragraph.shown}`).join(' ');
+ const names = new Set([...text.matchAll(/(?<![\w.])\/([a-z][a-z0-9-]+)/g)].map((match) => match[1]));
+ assert.ok(names.size >= 5, `found only ${[...names].join(', ')}`);
+ for (const name of names) {
+ assert.ok(fs.existsSync(path.join(REPO_ROOT, 'plugins', 'power-pages', 'skills', name, 'SKILL.md')), `the video shows /${name}, which Power Pages no longer has`);
+ }
+});
+
+// ── README ──────────────────────────────────────────────────────
+
+test('the README install links come from the same templates as the site', () => {
+ const readme = fs.readFileSync(path.join(REPO_ROOT, 'README.md'), 'utf8');
+ assert.ok(readme.includes(links.SITE_URL), 'README does not link to the site');
+ assert.ok(readme.includes(links.INSTALL_ALL.windows), 'README Windows install command drifted');
+ assert.ok(readme.includes(links.INSTALL_ALL.unix), 'README macOS/Linux install command drifted');
+ assert.ok(readme.includes(links.INSTALL_ALL_WITH_DATAVERSE.windows), 'README Windows Dataverse command drifted');
+ assert.ok(readme.includes(links.INSTALL_ALL_WITH_DATAVERSE.unix), 'README macOS/Linux Dataverse command drifted');
+ assert.ok(readme.includes(`](${links.copilotAppMarketplaceUrl()})`), 'README Copilot app marketplace link drifted');
+ for (const name of MARKETPLACE_NAMES) {
+ assert.ok(readme.includes(`](${links.launcherUrl(links.SITE_URL, 'claude-code', name)})`), `README Claude Code link for ${name}`);
+ assert.ok(readme.includes(`](${links.copilotAppInstallUrl(name)})`), `README Copilot app link for ${name}`);
+ assert.ok(readme.includes(`/plugin install ${name}@power-platform-skills`), `README manual install for ${name}`);
+ }
+});