A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
small improvements to the genpage skill (#41)
Akshay Maloo59e55a66a415
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex a42cb1028..cd23c0e5c 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -18,6 +18,20 @@"microsoft power platform","microsoft"]+ },+ {+ "name": "model-apps",+ "source": "./plugins/model-apps",+ "description": "Build and deploy generative pages for Power Apps model-driven apps",+ "category": "development",+ "tags": [+ "power platform",+ "power apps",+ "model-driven apps",+ "generative pages",+ "genux",+ "microsoft"+ ]}]}diff --git a/.claude/settings.json b/.claude/settings.jsonindex 1e6226776..79519ead0 100644--- a/.claude/settings.json+++ b/.claude/settings.json@@ -2,8 +2,6 @@"permissions": {"allow": ["Bash(pac *)",- "Bash(pac model *)",- "Bash(pac auth *)","Bash(node *)","Bash(dotnet *)","Bash(cd:*)",diff --git a/.claude/settings.local.json b/.claude/settings.local.jsondeleted file mode 100644index d90b01993..000000000--- a/.claude/settings.local.json+++ /dev/null@@ -1,8 +0,0 @@-{- "permissions": {- "allow": [- "Bash(cd:*)",- "Bash(echo:*)"- ]- }-}diff --git a/.gitignore b/.gitignoreindex 4195fe995..6768d62fd 100644--- a/.gitignore+++ b/.gitignore@@ -38,6 +38,9 @@ ENV/*.swp*.swo+# Local settings+.claude/settings.local.json+# OS.DS_StoreThumbs.dbdiff --git a/README.md b/README.mdindex 65ef77fd5..f47b8b72b 100644--- a/README.md+++ b/README.md@@ -49,15 +49,13 @@ If you prefer to install manually, run these commands inside a Claude Code or Gi## Available Plugins-### Power Pages (`plugins/power-pages`)+### [Power Pages](plugins/power-pages/README.md) (`plugins/power-pages`)Create and deploy Power Pages sites using modern development approaches.**Currently supported**: Code Sites (SPAs) with React, Angular, Vue, or Astro-### Power Apps (`plugins/model-apps`) — *Coming Soon*--> **Note**: This plugin is under active development and not yet available in the marketplace.+### [Model Apps](plugins/model-apps/README.md) (`plugins/model-apps`)Build and deploy Power Apps generative pages for model-driven apps.@@ -166,7 +164,7 @@ power-platform-skills/- [Power Pages Code Sites](https://learn.microsoft.com/en-us/power-pages/configure/create-code-sites)- [Power Pages REST API](https://learn.microsoft.com/en-us/rest/api/power-platform/powerpages/websites)-- [PAC CLI Reference](https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/pages)+- [PAC CLI Reference](https://learn.microsoft.com/en-us/power-platform/developer/cli/reference)## Contributingdiff --git a/plugins/model-apps/README.md b/plugins/model-apps/README.mdnew file mode 100644index 000000000..187310f7e--- /dev/null+++ b/plugins/model-apps/README.md@@ -0,0 +1,94 @@+# Model Apps Plugin++Build and deploy generative pages (genux) for Power Apps model-driven apps. This plugin provides a complete workflow — from validating prerequisites and gathering requirements, through generating React + TypeScript + Fluent code, to deploying via PAC CLI and verifying in the browser.++## Installation++### From the marketplace++```bash+/plugin marketplace add microsoft/power-platform-skills+/plugin install model-apps@power-platform-skills+```++### From a local clone++```bash+claude --plugin-dir /path/to/power-platform-skills/plugins/model-apps+```++## Prerequisites++| Prerequisite | Required for | Install |+|---|---|---|+| [Node.js](https://nodejs.org/) (LTS) | All skills | `winget install OpenJS.NodeJS.LTS` |+| [PAC CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction) >= 2.3.1 | Schema generation, deployment | `dotnet tool install -g Microsoft.PowerApps.CLI.Tool` |++## Skills++The plugin provides a single skill that covers the full lifecycle of a generative page.++### `/genpage`++Creates, updates, and deploys generative pages for model-driven Power Apps. Handles the complete workflow in a single session:++1. **Validate prerequisites** — checks Node.js and PAC CLI version+2. **Authenticate** — verifies PAC CLI auth and environment selection+3. **Gather requirements** — asks about page type, data source, and specific features+4. **Generate schema** — runs `pac model genpage generate-types` for Dataverse entity pages+5. **Generate code** — produces a complete single-file `.tsx` component+6. **Deploy** — uploads via `pac model genpage upload` to the selected app+7. **Verify** — optionally opens the page in Playwright for interactive testing++**Usage:** Invoke directly with `/genpage`, or use any of the keywords below to trigger the skill automatically:++- `Build a data grid page for my model-driven app`+- `Build a sortable contact dashboard with charts for my Power App`+- `I need a genux page to display account records with sorting and filtering`+- `Generate a CRUD page for managing custom entities in Power Apps`+- `Add a new page to my model-driven app that shows opportunity records as cards`++## Running Without Interruption++The plugin invokes multiple tools during a session. To reduce approval prompts:++**Option 1 — Permission mode (recommended)**++```jsonc+// .claude/settings.json+{+ "defaultMode": "acceptEdits",+ "permissions": {+ "allow": [+ "Bash(pac *)",+ "Bash(node *)",+ "Bash(powershell *)"+ ]+ }+}+```++**Option 2 — Auto-accept all**++```bash+claude --dangerously-skip-permissions+```++## Technology Stack++- **React 17 + TypeScript** — all generated page code+- **Fluent UI V9** — `@fluentui/react-components` for styling and components+- **Single file architecture** — each page is one `.tsx` file with `export default GeneratedComponent`+- **DataAPI** — typed CRUD operations against Dataverse tables via `props.dataApi`+- **PAC CLI** — schema generation (`generate-types`) and deployment (`upload`)+- **Playwright** — optional browser verification after deployment++## Documentation++- [Power Apps Model-Driven Apps](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/model-driven-app-overview)+- [Generative Pages Overview](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/generative-pages)+- [PAC CLI Reference](https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/model)++## License++[MIT](../../LICENSE)diff --git a/plugins/model-apps/references/troubleshooting.md b/plugins/model-apps/references/troubleshooting.mdindex f250d24a5..9742be1f2 100644--- a/plugins/model-apps/references/troubleshooting.md+++ b/plugins/model-apps/references/troubleshooting.md@@ -4,6 +4,15 @@ Common issues when building and deploying generative pages.---+## User Wants to Create a New Model-Driven App++This plugin creates **pages within existing** model-driven apps — it cannot create a new app. If the user asks to create a new model-driven app:++- Direct them to [Power Apps maker portal](https://make.powerapps.com) to create the app: **New App → Start with Design → Blank page with Navigation**+- Once the app exists, they can use `/genpage` to add pages to it++---+## PAC CLI Not Found or Outdated- Install: `dotnet tool install --global Microsoft.PowerApps.CLI.Tool`diff --git a/plugins/model-apps/skills/genpage/SKILL.md b/plugins/model-apps/skills/genpage/SKILL.mdindex 0b3e16761..ed9334f39 100644--- a/plugins/model-apps/skills/genpage/SKILL.md+++ b/plugins/model-apps/skills/genpage/SKILL.md@@ -40,10 +40,13 @@ Follow these steps in order for every `/genpage` invocation.### Step 1: Validate Prerequisites-Run these checks (first invocation per session only):+Run these checks (first invocation per session only). Run each command separately — do not chain with `&&`:```powershellnode --version+```++```powershellpac help```