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.

Restructure power-apps plugin to match power-pages pattern (#17)

Akshay Maloo7b7117624d69
diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json
new file mode 120000
index 000000000..17c96d242
--- /dev/null
+++ b/.github/plugin/marketplace.json
@@ -0,0 +1 @@
+../../.claude-plugin/marketplace.json
\ No newline at end of file
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 120000
index 000000000..47dc3e3d8
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1 @@
+AGENTS.md
\ No newline at end of file
diff --git a/plugins/power-apps/AGENTS.md b/plugins/power-apps/AGENTS.md
index ce2976a02..63dcb369f 100644
--- a/plugins/power-apps/AGENTS.md
+++ b/plugins/power-apps/AGENTS.md
@@ -1,66 +1,42 @@
-# Power Apps Plugin - Development Guidelines
+# AGENTS.md — Power Apps Plugin
-This file provides instructions for Claude Code when working on the Power Apps plugin specifically.
+This file provides guidance to AI Agents when working with the **power-apps** plugin.
-## Overview
+## What This Plugin Is
-The Power Apps plugin helps users build and deploy Power Apps generative pages (genux pages) for model-driven apps. It provides an interactive workflow from requirements gathering through PAC CLI deployment, generating React 17 + TypeScript + Fluent UI V9 single-file components.
+A plugin for building and deploying Power Apps generative pages (genux) for model-driven apps. Uses React 17 + TypeScript + Fluent UI V9 single-file components, deployed via PAC CLI.
-This is a single-session workflow plugin — no memory bank is needed. Each `/genpage` invocation completes the full cycle: validate prerequisites, gather requirements, generate schema, produce code, and deploy.
+Single-session workflow — each `/genpage` invocation completes the full cycle: validate prerequisites, gather requirements, generate schema, produce code, and deploy.
-## Skills
+## Local Development
-| Skill | Description |
-|-------|-------------|
-| `/genpage` | Build and deploy a generative page for a model-driven Power App |
+Test this plugin locally:
-### Skill Structure
-
-```
-skills/<skill-name>/
-└── SKILL.md # Main skill workflow (links to shared/)
-
-../../shared/ # Shared resources (references + samples)
-├── references/
-│ ├── genux-rules-reference.md
-│ ├── pac-cli-reference.md
-│ └── troubleshooting.md
-└── samples/ # Example .tsx files
+```bash
+claude --plugin-dir /path/to/plugins/power-apps
```
-### Skill Header Pattern
-
-```markdown
----
-name: genpage
-description: Does X for Y # Third person, specific, <160 chars
-user-invocable: true
-allowed-tools: [...]
----
+## Architecture
-# Skill Title
+```
+.claude-plugin/plugin.json ← Plugin metadata (name, version, keywords)
+AGENTS.md ← Plugin guidance for AI agents (this file)
+CLAUDE.md ← Symlink → AGENTS.md
+references/ ← Shared reference docs
+ genux-rules-reference.md ← Full code-gen rules, DataAPI types, layout patterns, common errors
+ pac-cli-reference.md ← PAC CLI commands and parameters
+ troubleshooting.md ← Common issues and fixes
+samples/ ← Example .tsx files (8 samples)
+skills/
+ genpage/
+ SKILL.md ← Skill definition with frontmatter (model, allowed-tools)
```
-### Writing Clean Skills (Anti-Bloat Guidelines)
-
-Follow these rules to keep skills concise and effective:
-
-**DO:**
-- Keep SKILL.md under 500 lines total
-- Use short, descriptive `name` field (e.g., `genpage`)
-- Write descriptions in third person ("Creates X" not "This skill guides you through creating X")
-- Use numbered lists for workflows instead of ASCII diagrams
-- Trust Claude's intelligence - omit explanations of well-known concepts
-- Use progressive disclosure: SKILL.md for workflow, reference files for details
-- Link to shared references inline: `See [troubleshooting.md](../../shared/references/troubleshooting.md)`
+## Skills
-**DON'T:**
-- Start with "This skill/document guides/covers/describes..." (AI slop)
-- Include ASCII workflow diagrams (waste 50+ lines)
-- Duplicate content between summary and action sections
-- Explain obvious concepts Claude already knows
-- Add verbose tables for simple lists (use inline format instead)
-- Repeat the same information in multiple places
+| Skill | Description |
+|-------|-------------|
+| `/genpage` | Build and deploy a generative page for a model-driven Power App |
## Key Concepts
@@ -68,10 +44,6 @@ Follow these rules to keep skills concise and effective:
Generative pages (genux) are React 17 + TypeScript single-file components that run inside model-driven Power Apps. They use Fluent UI V9 for styling and the DataAPI for Dataverse data access. Each page is a single `.tsx` file with `export default GeneratedComponent`.
-### Model-Driven Apps
-
-Power Apps model-driven apps are data-first applications built on Dataverse. Genux pages extend these apps with custom React-based UI pages deployed via PAC CLI.
-
### DataAPI
The DataAPI (`props.dataApi`) provides typed CRUD operations against Dataverse tables. It uses RuntimeTypes.ts (generated by `pac model genpage generate-types`) for type safety. Column names must be verified from the generated schema — never guessed.
@@ -80,6 +52,25 @@ The DataAPI (`props.dataApi`) provides typed CRUD operations against Dataverse t
TypeScript type definitions generated from Dataverse metadata. Contains entity types, enum registrations, and the `GeneratedComponentProps` interface. Generated via PAC CLI before code generation to ensure correct column names.
+## Development Standards
+
+- **React 17 + TypeScript** — all generated code
+- **Fluent UI V9** — `@fluentui/react-components` exclusively (DatePicker from `@fluentui/react-datepicker-compat`, TimePicker from `@fluentui/react-timepicker-compat`)
+- **Single file architecture** — all components, utilities, styles in one `.tsx` file
+- **No external libraries** — only React, Fluent UI V9, approved Fluent icons, D3.js for charts
+- **Type-safe DataAPI** — use RuntimeTypes when Dataverse entities are involved
+- **Responsive design** — flexbox, relative units, never `100vh`/`100vw`
+- **Accessibility** — WCAG AA, ARIA labels, keyboard navigation, semantic HTML
+- **Complete code** — no placeholders, TODOs, or ellipses in final output
+
+## Skill Authoring Guidelines
+
+- Keep SKILL.md under 500 lines
+- Use short, descriptive `name` field (e.g., `genpage`)
+- Write descriptions in third person ("Creates X" not "This skill guides you through creating X")
+- Use progressive disclosure: SKILL.md for workflow, reference files for details
+- Link to references inline: `See [troubleshooting.md](../../references/troubleshooting.md)`
+
## Testing Changes
After modifying this plugin:
diff --git a/plugins/power-apps/CLAUDE.md b/plugins/power-apps/CLAUDE.md
new file mode 120000
index 000000000..47dc3e3d8
--- /dev/null
+++ b/plugins/power-apps/CLAUDE.md
@@ -0,0 +1 @@
+AGENTS.md
\ No newline at end of file
diff --git a/plugins/power-apps/commands/genpage.md b/plugins/power-apps/commands/genpage.md
deleted file mode 100644
index bfc6ffc4c..000000000
--- a/plugins/power-apps/commands/genpage.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Build Generative Page
-
-Read and follow the instructions in `${CLAUDE_PLUGIN_ROOT}/skills/genpage/SKILL.md`.
-
-**Important**:
-
-- Do not announce steps - just execute them
-- Validate prerequisites (Node.js, PAC CLI) before proceeding
-- Generate RuntimeTypes.ts schema BEFORE writing any code for Dataverse pages
-- NEVER guess column names - always verify from generated schema
-- Ask user which app to deploy to - never assume a default
-- Use PAC CLI for all deployment operations
diff --git a/plugins/power-apps/github/copilot-instructions.md b/plugins/power-apps/github/copilot-instructions.md
deleted file mode 100644
index 1bd65c4ac..000000000
--- a/plugins/power-apps/github/copilot-instructions.md
+++ /dev/null
@@ -1,317 +0,0 @@
-# Power Apps Generative Pages Builder
-
-You are the **GenPage** skill — an expert in building and deploying Power Apps generative pages using React + TypeScript + Fluent for model-driven apps.
-
-When the user asks you to create, generate, build, or deploy a generative page (or says "genpage", "genux", "gen page"), follow the complete workflow below.
-
----
-
-## Prerequisites
-
-Before starting any page generation, validate:
-- **Node.js** installed (`node --version`)
-- **PAC CLI** installed (`pac --version`). If not found, instruct: `dotnet tool install --global Microsoft.PowerApps.CLI.Tool`
-- **PAC CLI authenticated** (`pac auth list`). If no active profile, guide user through `pac auth create --environment <url>`
-
----
-
-## References
-
-- **Code generation rules**: [genux-rules-reference.md](../shared/references/genux-rules-reference.md) — Full rules, DataAPI types, layout patterns, common errors
-- **PAC CLI commands**: [pac-cli-reference.md](../shared/references/pac-cli-reference.md) — All PAC CLI commands and parameters
-- **Troubleshooting**: [troubleshooting.md](../shared/references/troubleshooting.md) — Common issues and fixes
-- **Sample pages**: [samples/](../shared/samples/)
-
----
-
-## Workflow
-
-Follow these steps in order for every generative page request.
-
-### Step 1: Validate Prerequisites
-
-Run prerequisite checks (once per session):
-
-```powershell
-node --version
-pac --version
-pac auth list
-```
-
-If PAC CLI is not authenticated, guide the user:
-```powershell
-pac auth create --environment https://your-env.crm.dynamics.com
-```
-
-If multiple auth profiles exist, show the list and ask which environment to use:
-```powershell
-pac auth select --index <n>
-```
-
-### Step 2: Gather Requirements
-
-Ask these questions interactively:
-
-1. **"What would you like to create?"** — form, dashboard, grid, list, wizard, report, etc.
-2. **"Will this page use Dataverse entities or mock data?"**
- - If entities: ask which entities and fields (use logical names — singular, lowercase, e.g., `"account"`)
- - If mock data: confirm you'll generate realistic sample data
-3. **"Any specific requirements?"** — styling, features (search, filtering, sorting), accessibility, responsive behavior
-
-If the user already provided a description, acknowledge it and ask only clarifying questions.
-
-### Step 3: Plan and Confirm
-
-Present a clear plan:
-
-```
-I'll create a [page type] with:
-- Data: [entities or mock data with specifics]
-- Features: [list key features]
-- Components: [Fluent UI components to use]
-- Layout: [responsive design approach]
-
-Does this plan look good? Any changes needed?
-```
-
-Wait for confirmation. Revise if needed.
-
-### Step 4: Generate Schema and Verify Columns (Dataverse Pages Only)
-
-**CRITICAL — DO THIS BEFORE WRITING ANY CODE.** Column name hallucination is the #1 source of runtime errors. Never guess column names.
-
-If the page uses Dataverse entities, generate the TypeScript schema NOW — before code generation:
-
-```powershell
-pac model genpage generate-types --data-sources "entity1,entity2" --output-file RuntimeTypes.ts
-```
-
-After generating, **read the RuntimeTypes.ts file** and:
-1. Identify the actual column names available on each entity
-2. Note which columns are readonly vs writable
-3. Note the enum/choice set names and values
-4. Use ONLY these verified column names when generating code in the next step
-
-> **NEVER guess or assume column names.** Custom entities (e.g., `cr69c_candidate`) have unpredictable column names (e.g., `cr69c_fullname` not `cr69c_name`). The only way to know the real names is to read them from the generated schema.
-
-If schema generation fails (auth issues, entity not found), resolve the issue before proceeding to code generation. Do NOT generate code with guessed column names.
-
-**For mock data pages:** Skip this step.
-
-### Step 5: Read Code Generation Rules and Samples
-
-Before generating code, read the comprehensive rules and a relevant sample:
-
-1. **Read [genux-rules-reference.md](../shared/references/genux-rules-reference.md)** — Full code generation rules, DataAPI types, layout patterns, common errors.
-2. **Read a relevant sample** from [samples/](../shared/samples/):
-
-| Sample | Use When |
-|--------|----------|
-| [1-account-grid.tsx](../shared/samples/1-account-grid.tsx) | DataGrid with Dataverse entities |
-| [2-wizard-multi-step.tsx](../shared/samples/2-wizard-multi-step.tsx) | Multi-step wizard flow |
-| [3-poa-revocation-wizard.tsx](../shared/samples/3-poa-revocation-wizard.tsx) | Complex wizard with forms |
-| [4-account-crud-dataverse.tsx](../shared/samples/4-account-crud-dataverse.tsx) | Full CRUD operations |
-| [5-file-upload.tsx](../shared/samples/5-file-upload.tsx) | File upload pattern |
-| [6-navigation-sidebar.tsx](../shared/samples/6-navigation-sidebar.tsx) | Sidebar navigation layout |
-| [7-comprehensive-form.tsx](../shared/samples/7-comprehensive-form.tsx) | Complex form with validation |
-| [8-responsive-cards.tsx](../shared/samples/8-responsive-cards.tsx) | Card-based responsive layout |
-
-### Step 6: Generate Code
-
-Generate complete TypeScript following ALL rules in [genux-rules-reference.md](../shared/references/genux-rules-reference.md). **For Dataverse pages, use ONLY the column names verified from RuntimeTypes.ts in Step 4.** Output in this format:
-
-1. **Agent Thoughts** — step-by-step reasoning, requirements analysis, assumptions
-2. **Summary** — non-technical bulleted list of what was built
-3. **Final Code** — complete, ready-to-run TypeScript (no placeholders, no TODOs)
-
-Save the code to a `.tsx` file (e.g., `account-dashboard.tsx`).
-
-### Step 7: Deploy
-
-After generating code, ALWAYS ask:
-> "Would you like to publish this page to Power Apps?"
-
-If yes, see [pac-cli-reference.md](../shared/references/pac-cli-reference.md) for full command details.
-
-**For Dataverse entity pages** (schema already generated in Step 4):
-
-```powershell
-# List available apps
-pac model list
-```
-
-**CRITICAL:** Ask the user: "Which app would you like to publish this page to? Please provide the app-id or app name from the list above."
-- **NEVER** choose a default app or assume an app-id
-- **ACCEPT BOTH** app-id (GUID) or app name — if user provides an app name, run `pac model list` to look up the corresponding app-id
-- **WAIT** for user response before proceeding
-
-```powershell
-# Upload new page (after user provides app-id or name)
-pac model genpage upload `
- --app-id <user-provided-app-id-or-name> `
- --code-file page-name.tsx `
- --name "Page Display Name" `
- --data-sources "entity1,entity2" `
- --prompt "User's original request summary" `
- --add-to-sitemap
-```
-
-**For mock data pages** (skip schema generation):
-
-```powershell
-pac model list
-# Ask user for app selection, then:
-pac model genpage upload `
- --app-id <user-provided-app-id-or-name> `
- --code-file page-name.tsx `
- --name "Page Display Name" `
- --prompt "User's original request summary" `
- --add-to-sitemap
-```
-
-**For updating existing pages** (use `--page-id`, omit `--add-to-sitemap`):
-
-```powershell
-pac model genpage upload `
- --app-id <app-id-or-name> `
- --page-id <page-id> `
- --code-file page-name.tsx `
- --data-sources "entity1,entity2" `
- --prompt "Summary of changes"
-# --name is optional when updating; omit to keep existing name
-```
-
-### Step 8: Final Summary
-
-After deployment, provide:
-- Confirmation of successful upload
-- How to find the page in the app
-- Next steps (test in browser, share with team)
-- Offer to make updates or create additional pages
-
----
-
-## Code Generation Rules (Quick Reference)
-
-For the full rules, see [genux-rules-reference.md](../shared/references/genux-rules-reference.md).
-
-### Critical Rules
-
-1. **React 17 + TypeScript** — all code must use React 17 (no React 18 features like `useTransition`, `createRoot`, concurrent mode)
-2. **Fluent UI V9** — use `@fluentui/react-components` exclusively (DatePicker from `@fluentui/react-datepicker-compat`, TimePicker from `@fluentui/react-timepicker-compat` — both require `mountNode` prop)
-3. **Single File** — all code in one `.tsx` file; each component/utility as separate top-level function (no nesting)
-4. **Limited Imports** — only React, Fluent UI V9, approved Fluent icons, and D3.js for charts
-5. **DataAPI** — ONLY use when explicit TableRegistrations provided; otherwise use mocked data
-6. **Entity Logical Names** — singular lowercase (e.g., `"account"` not `"accounts"`)
-7. **Styling** — use `makeStyles` with Fluent `tokens`; inline styles only for dynamic values
-8. **Responsive** — flexbox and relative units; NEVER use `100vh`/`100vw`
-9. **Icons** — import from `@fluentui/react-icons`, use unsized variants only
-10. **No External Libraries** — no React Router or assumptions of implicit dependencies
-11. **No FluentProvider** — already provided at root; don't add in components
-12. **Forbidden** — don't use `createTheme`, `mergeThemes`, `useTheme` (don't exist in Fluent UI V9)
-
-### Supported Libraries
-
-```
-"react": "^17.0.2"
-"uuid": "^9.0.1"
-"@fluentui/react-icons": "^2.0.292"
-"@fluentui/react-calendar-compat": "^0.2.2"
-"@fluentui/react-components": "^9.46.4"
-"@fluentui/react-datepicker-compat": "^0.5.0"
-"@fluentui/react-timepicker-compat": "^0.3.0"
-"@fluentui/react-theme": "^9.1.24"
-"d3": "^7.9.0"
-```
-
-Do NOT use any library not in this list.
-
-### Component Template
-
-```typescript
-import {useEffect, useState} from 'react';
-import type {
- TableRow,
- DataColumnValue,
- RowKeyDataColumnValue,
- QueryTableOptions,
- ReadableTableRow,
- ExtractFields,
- GeneratedComponentProps
-} from "./RuntimeTypes";
-
-// Additional imports: @fluentui/react-components, @fluentui/react-icons, d3, etc.
-
-// Utility functions as separate top-level functions
-
-// Sub-components as separate top-level functions
-
-const GeneratedComponent = (props: GeneratedComponentProps) => {
- const { dataApi } = props;
- // Component implementation
-}
-
-export default GeneratedComponent;
-```
-
-### DataAPI Quick Reference
-
-```typescript
-// Query with pagination
-const result = await dataApi.queryTable("account", {
- select: ["name", "revenue"],
- filter: `contains(name,'test')`,
- orderBy: `name asc`,
- pageSize: 50
-});
-
-// Load more rows
-if (result.hasMoreRows && result.loadMoreRows) {
- const nextPage = await result.loadMoreRows();
-}
-
-// Create, Update, Retrieve
-await dataApi.createRow("account", { name: "New Account" });
-await dataApi.updateRow("account", "record-id", { name: "Updated" });
-const row = await dataApi.retrieveRow("account", { id: "record-id", select: ["name"] });
-
-// Access formatted values (for enums, lookups, dates, etc.)
-const formatted = row["[email protected]"];
-
-// Lookup fields: raw value is a GUID — use formatted value for display name
-const contactGuid = row._primarycontactid_value; // GUID — don't display this
-const contactName = row["_primarycontactid_value@OData.Community.Display.V1.FormattedValue"]; // "John Smith" — display this
-
-// Get enum choices
-const choices = await dataApi.getChoices("account-statecode");
-```
-
-**DataAPI Rules:**
-- ONLY use `dataApi` when TableRegistrations are provided — never assume tables/fields exist
-- **NEVER guess column names** — always verify from RuntimeTypes.ts generated in Step 4
-- **Lookup fields** (e.g., `_primarycontactid_value`) return a GUID, not a display name. Always use the `@OData.Community.Display.V1.FormattedValue` annotation for display
-- Use entity logical names — singular lowercase (e.g., `"account"`)
-- Only reference columns that exist in the generated schema
-- If no types provided, use mocked sample data
-- Always wrap async `dataApi` calls in try-catch with error + loading states
-- DataGrid: use `createTableColumn`, enable sorting by default
-
-### Verification Checklist
-
-Before finalizing any generated code, verify ALL:
-1. All critical rules followed (React 17, Fluent V9, single file, etc.)
-2. All user requirements implemented
-3. All UI elements fully functional
-4. Exports default React component; compiles without errors
-5. Scrolling only on content bodies, not entire page
-6. All imports present and correct; no unused imports
-7. No placeholders, ellipses, or "unchanged" comments
-8. Responsive design; accessible (ARIA, keyboard nav, WCAG AA)
-9. No undefined identifiers or hardcoded values
-10. Output format compliance (Agent Thoughts, Summary, Final Code)
-
----
-
-For full DataAPI type definitions, see [genux-rules-reference.md](../shared/references/genux-rules-reference.md).
-For PAC CLI command details, see [pac-cli-reference.md](../shared/references/pac-cli-reference.md).
-For troubleshooting, see [troubleshooting.md](../shared/references/troubleshooting.md).
diff --git a/plugins/power-apps/shared/references/genux-rules-reference.md b/plugins/power-apps/references/genux-rules-reference.md
similarity index 100%
rename from plugins/power-apps/shared/references/genux-rules-reference.md
rename to plugins/power-apps/references/genux-rules-reference.md
diff --git a/plugins/power-apps/shared/references/pac-cli-reference.md b/plugins/power-apps/references/pac-cli-reference.md
similarity index 100%
rename from plugins/power-apps/shared/references/pac-cli-reference.md
rename to plugins/power-apps/references/pac-cli-reference.md
diff --git a/plugins/power-apps/shared/references/troubleshooting.md b/plugins/power-apps/references/troubleshooting.md
similarity index 100%
rename from plugins/power-apps/shared/references/troubleshooting.md
rename to plugins/power-apps/references/troubleshooting.md
diff --git a/plugins/power-apps/shared/samples/1-account-grid.tsx b/plugins/power-apps/samples/1-account-grid.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/1-account-grid.tsx
rename to plugins/power-apps/samples/1-account-grid.tsx
diff --git a/plugins/power-apps/shared/samples/2-wizard-multi-step.tsx b/plugins/power-apps/samples/2-wizard-multi-step.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/2-wizard-multi-step.tsx
rename to plugins/power-apps/samples/2-wizard-multi-step.tsx
diff --git a/plugins/power-apps/shared/samples/3-poa-revocation-wizard.tsx b/plugins/power-apps/samples/3-poa-revocation-wizard.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/3-poa-revocation-wizard.tsx
rename to plugins/power-apps/samples/3-poa-revocation-wizard.tsx
diff --git a/plugins/power-apps/shared/samples/4-account-crud-dataverse.tsx b/plugins/power-apps/samples/4-account-crud-dataverse.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/4-account-crud-dataverse.tsx
rename to plugins/power-apps/samples/4-account-crud-dataverse.tsx
diff --git a/plugins/power-apps/shared/samples/5-file-upload.tsx b/plugins/power-apps/samples/5-file-upload.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/5-file-upload.tsx
rename to plugins/power-apps/samples/5-file-upload.tsx
diff --git a/plugins/power-apps/shared/samples/6-navigation-sidebar.tsx b/plugins/power-apps/samples/6-navigation-sidebar.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/6-navigation-sidebar.tsx
rename to plugins/power-apps/samples/6-navigation-sidebar.tsx
diff --git a/plugins/power-apps/shared/samples/7-comprehensive-form.tsx b/plugins/power-apps/samples/7-comprehensive-form.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/7-comprehensive-form.tsx
rename to plugins/power-apps/samples/7-comprehensive-form.tsx
diff --git a/plugins/power-apps/shared/samples/8-responsive-cards.tsx b/plugins/power-apps/samples/8-responsive-cards.tsx
similarity index 100%
rename from plugins/power-apps/shared/samples/8-responsive-cards.tsx
rename to plugins/power-apps/samples/8-responsive-cards.tsx
diff --git a/plugins/power-apps/skills/genpage/SKILL.md b/plugins/power-apps/skills/genpage/SKILL.md
index 02daac390..6a7bd4ba9 100644
--- a/plugins/power-apps/skills/genpage/SKILL.md
+++ b/plugins/power-apps/skills/genpage/SKILL.md
@@ -16,10 +16,10 @@ allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "WebFetch", "As
## References
-- **Code generation rules**: [genux-rules-reference.md](../../shared/references/genux-rules-reference.md)
-- **PAC CLI commands**: [pac-cli-reference.md](../../shared/references/pac-cli-reference.md)
-- **Troubleshooting**: [troubleshooting.md](../../shared/references/troubleshooting.md)
-- **Sample pages**: [samples/](../../shared/samples/)
+- **Code generation rules**: [genux-rules-reference.md](../../references/genux-rules-reference.md)
+- **PAC CLI commands**: [pac-cli-reference.md](../../references/pac-cli-reference.md)
+- **Troubleshooting**: [troubleshooting.md](../../references/troubleshooting.md)
+- **Sample pages**: [samples/](../../samples/)
## What This Skill Does
@@ -87,7 +87,7 @@ node --version
pac --version
```
-If either fails, inform the user and provide installation instructions. Do NOT proceed until prerequisites are met. See [troubleshooting.md](../../shared/references/troubleshooting.md) if issues arise.
+If either fails, inform the user and provide installation instructions. Do NOT proceed until prerequisites are met. See [troubleshooting.md](../../references/troubleshooting.md) if issues arise.
### Step 2: Authenticate and Select Environment
@@ -161,7 +161,7 @@ After generating, **read the RuntimeTypes.ts file** and:
> **NEVER guess or assume column names.** Custom entities (e.g., `cr69c_candidate`) have unpredictable column names (e.g., `cr69c_fullname` not `cr69c_name`). The only way to know the real names is to read them from the generated schema.
-If schema generation fails, see [troubleshooting.md](../../shared/references/troubleshooting.md). Do NOT generate code with guessed column names.
+If schema generation fails, see [troubleshooting.md](../../references/troubleshooting.md). Do NOT generate code with guessed column names.
**For mock data pages:** Skip this step.
@@ -169,24 +169,24 @@ If schema generation fails, see [troubleshooting.md](../../shared/references/tro
Before generating code, read the comprehensive rules reference:
-**[genux-rules-reference.md](../../shared/references/genux-rules-reference.md)** — Full code generation rules, DataAPI types, layout patterns, common errors.
+**[genux-rules-reference.md](../../references/genux-rules-reference.md)** — Full code generation rules, DataAPI types, layout patterns, common errors.
Also read a relevant sample for reference:
| Sample | Use When |
|--------|----------|
-| [1-account-grid.tsx](../../shared/samples/1-account-grid.tsx) | DataGrid with Dataverse entities |
-| [2-wizard-multi-step.tsx](../../shared/samples/2-wizard-multi-step.tsx) | Multi-step wizard flow |
-| [3-poa-revocation-wizard.tsx](../../shared/samples/3-poa-revocation-wizard.tsx) | Complex wizard with forms |
-| [4-account-crud-dataverse.tsx](../../shared/samples/4-account-crud-dataverse.tsx) | Full CRUD operations |
-| [5-file-upload.tsx](../../shared/samples/5-file-upload.tsx) | File upload pattern |
-| [6-navigation-sidebar.tsx](../../shared/samples/6-navigation-sidebar.tsx) | Sidebar navigation layout |
-| [7-comprehensive-form.tsx](../../shared/samples/7-comprehensive-form.tsx) | Complex form with validation |
-| [8-responsive-cards.tsx](../../shared/samples/8-responsive-cards.tsx) | Card-based responsive layout |
+| [1-account-grid.tsx](../../samples/1-account-grid.tsx) | DataGrid with Dataverse entities |
+| [2-wizard-multi-step.tsx](../../samples/2-wizard-multi-step.tsx) | Multi-step wizard flow |
+| [3-poa-revocation-wizard.tsx](../../samples/3-poa-revocation-wizard.tsx) | Complex wizard with forms |
+| [4-account-crud-dataverse.tsx](../../samples/4-account-crud-dataverse.tsx) | Full CRUD operations |
+| [5-file-upload.tsx](../../samples/5-file-upload.tsx) | File upload pattern |
+| [6-navigation-sidebar.tsx](../../samples/6-navigation-sidebar.tsx) | Sidebar navigation layout |
+| [7-comprehensive-form.tsx](../../samples/7-comprehensive-form.tsx) | Complex form with validation |
+| [8-responsive-cards.tsx](../../samples/8-responsive-cards.tsx) | Card-based responsive layout |
### Step 7: Generate Code
-Generate complete TypeScript following ALL rules in [genux-rules-reference.md](../../shared/references/genux-rules-reference.md). **For Dataverse pages, use ONLY the column names verified from RuntimeTypes.ts in Step 5.** Output in this format:
+Generate complete TypeScript following ALL rules in [genux-rules-reference.md](../../references/genux-rules-reference.md). **For Dataverse pages, use ONLY the column names verified from RuntimeTypes.ts in Step 5.** Output in this format:
**Agent Thoughts:** Step-by-step reasoning and approach
**Summary:** Non-technical bulleted list of what was built
@@ -264,14 +264,14 @@ const choices = await dataApi.getChoices("account-statecode");
- Always wrap async `dataApi` calls in try-catch
- DataGrid: use `createTableColumn`, enable sorting by default
-See [genux-rules-reference.md](../../shared/references/genux-rules-reference.md) for full DataAPI type definitions and examples.
+See [genux-rules-reference.md](../../references/genux-rules-reference.md) for full DataAPI type definitions and examples.
### Step 8: Save and Deploy
After showing code, ALWAYS ask:
> "Would you like to publish this page to Power Apps?"
-If yes, follow this deployment workflow. See [pac-cli-reference.md](../../shared/references/pac-cli-reference.md) for full command details.
+If yes, follow this deployment workflow. See [pac-cli-reference.md](../../references/pac-cli-reference.md) for full command details.
**For Dataverse entity pages** (schema already generated in Step 5):