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
Workflow Log — Eval 8: Account metrics dashboard in a new app
Synthetic trace: constructed to show what a compliant attended /genpage create run of this prompt
records under the current SKILL.md when the environment has no model-driven apps. It is not a
captured agent session. Every command below has an associated result, in order, in
tool-results.json.
Phase 0 — Working directory
node 'D:/repo/plugins/model-apps/scripts/check-version.js'→ no output (plugin is current)mkdir -p 'account-metrics-dashboard'(kebab-case derived from "account metrics dashboard")- Working directory: D:/work/account-metrics-dashboard (every later command runs from this directory)
Phase 0.5 — Local-dev manifest
node 'D:/repo/plugins/model-apps/scripts/generate-page-manifest.js' 'D:/work/account-metrics-dashboard' 'account-metrics-dashboard' --features charts- Exit 0; wrote package.json (adds d3 and @types/d3 for the charts feature) and genpage.d.ts
Phase 1 — Plan
Interaction mode
node 'D:/repo/plugins/model-apps/scripts/resolve-interaction-mode.js'→ {"ok":true,"interactive":true,"reason":"default (attended)"} — attended run, questions go through AskUserQuestion
Prereq checks (run separately, not chained)
node --version→ v20.20.2pac help→ Microsoft PowerPlatform CLI Version: 2.11.0 (> 2.10.0 verified)
Auth check
pac auth list→ one profile, active (*): [email protected]- Active environment: https://contoso.crm.dynamics.com (reported to user: "Working with environment: Contoso Dev")
Requirements (orchestrator asks; genpage-planner runs discovery headless)
- AskUserQuestion: Create new page(s) or edit an existing one? → Create new page(s)
node 'D:/repo/plugins/model-apps/scripts/list-languages.js' --env 'https://contoso.crm.dynamics.com'→ 1033 English en-US, RTL: No (English only, no localization)- AskUserQuestion: Will the page use Dataverse entities or mock data? → Dataverse entity: account
- AskUserQuestion: Any specific requirements? → Account metrics dashboard
- Connector discovery not needed: Dataverse only, no connector source; the contract stays
No connector bindings. - Custom API discovery not needed: plain Dataverse reads; the contract stays
No custom API bindings.
Entity detection
node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --search 'account' --exact→ 1 table:account(exact logical-name match, nothing inmissing):accountexists- Plan records no entity creation required
Dominant prefix detection
node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --type custom→ 6 custom tables; after excluding system prefixes (adx, msdyn): cnt_milestone, cnt_project, cnt_timesheet, new_importbatch- Dominant prefix:
cnt(3 of 4 custom tables, 75%, at least 3 tables) → detectedPrefix = cnt
App detection
node 'D:/repo/plugins/model-apps/scripts/apps.js' list --env 'https://contoso.crm.dynamics.com'→{"ok":true,"count":0,"apps":[]}: no model-driven apps (0 apps returned)- AskUserQuestion: No model-driven apps found. Would you like to create a new one, or cancel? → Create a new app
- AskUserQuestion: What should the new model-driven app be called? → Account Metrics
- Decision recorded for the plan: create new app "Account Metrics" (nothing is created in Phase 3; the app is made in Phase 6, from the first page)
Solution selection
- A new app will be created, so the build needs metadata work → solution selection question asked
node 'D:/repo/plugins/model-apps/scripts/dataverse-request.js' 'https://contoso.crm.dynamics.com' GET 'solutions?$select=uniquename,friendlyname&$expand=publisherid($select=customizationprefix)&$filter=ismanaged eq false and uniquename ne ''Default'' and uniquename ne ''Active'' and isvisible eq true&$top=10'- Solutions query (GET /solutions, unmanaged and visible only) → status 200, 1 custom solution: ContosoCore ("Contoso Core", publisher prefix cnt)
- Options ordered with the dominant prefix first: (1) Continue in 'Contoso Core' (prefix: cnt) — matches your existing custom tables [RECOMMENDED]; (2) Create a new solution under Default Publisher (prefix: new); (3) Use Default Solution (prefix: new) ⚠ different prefix from existing work
- AskUserQuestion: Your environment has 3 custom tables using prefix cnt. Which solution should the new app go in? → Continue in 'Contoso Core' (prefix: cnt)
- Recorded in plan ## Environment:
Solution: ContosoCore,Publisher Prefix: cnt(matches the dominant prefix, so no mismatch warning)
Plan approval
- EnterPlanMode called with the plan: one page "Account Metrics Dashboard" (account-metrics.tsx) on
account, new app "Account Metrics" in solution ContosoCore, KPI cards + D3 industry and monthly charts + top-accounts grid - ExitPlanMode → approved
node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' prepare --plan 'D:/work/account-metrics-dashboard/genpage-plan.md'→ {"ok":true,"action":"prepare","quarantinedPath":null}- Approved plan body saved to D:/work/account-metrics-dashboard/.approved-genpage-plan.md
- genpage-planner re-invoked with the approval outcome; it wrote genpage-plan.md (conforms to references/plan-schema.md;
App: create new: Account Metrics) node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/account-metrics-dashboard/genpage-plan.md' --approved '@D:/work/account-metrics-dashboard/.approved-genpage-plan.md'→ ok:true, targets [account-metrics.tsx], writtenHash 687cee2e0829863a72ee0126e5c61ba3cf49d1ea1726fe77d8f1293918ca4c15
Phase 2 — Entity creation
- SKIPPED (account exists —
## Entity Creation Requiredis the no-entity sentinel) - check-auth.js not run (no entity work); genpage-entity-builder not invoked
Phase 3 — App creation
- Plan decision: create new app "Account Metrics";
Solution: ContosoCoreread from ## Environment, to be passed verbatim as the unique name - Nothing is created in this phase: the platform refuses an app whose navigation is empty, so
apps.js createneeds the first page's id. The app is made in Phase 6, right after the first page is deployed
Phase 4 — RuntimeTypes
node 'D:/repo/plugins/model-apps/scripts/genpage.js' types --env 'https://contoso.crm.dynamics.com' --data-sources 'account' --output-file 'D:/work/account-metrics-dashboard/RuntimeTypes.ts'→ {"ok":true,"outputFile":"D:/work/account-metrics-dashboard/RuntimeTypes.ts","dataSources":["account"],"detail":"none","bytes":18432}- Read RuntimeTypes.ts: verified account columns accountid, name, industrycode (choice), revenue, numberofemployees, address1_city, createdon, statecode
Phase 4.5 — Connector bindings
- SKIPPED: plan says
No connector bindings.; no connectors.json → Connectors: none
Phase 4.6 — Custom API bindings
node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-api→ disabled (exit 1)- Plan body is exactly
No custom API bindings.→ continue with no actions.json
Phase 4.7 — Page telemetry
node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-telemetry→ disabled (exit 1) → Telemetry: disabled
Phase 5a — Plan validation
node 'D:/repo/plugins/model-apps/scripts/check-page-files.js' --plan 'D:/work/account-metrics-dashboard/genpage-plan.md'→ {"ok":true,"files":["account-metrics.tsx"],"problems":[]}
Phase 5b — Single-page fast path
- Plan has 1 page → fast path taken: inlined build, no Task subagent dispatched for genpage-page-builder
- Data mode: dataverse; Connectors: none; Telemetry: disabled
- Read ${PLUGIN_ROOT}/references/rules.md
- Read samples: plugins/model-apps/samples/8-dashboard-with-charts.tsx and plugins/model-apps/samples/9-list-with-caching.tsx
- Read ${PLUGIN_ROOT}/references/data-caching.md (Needs caching: true)
- Read genpage-plan.md and RuntimeTypes.ts
node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --stamp --file 'D:/work/account-metrics-dashboard/account-metrics.tsx'→ {"ok":true,"action":"stamp","existed":false}- Wrote account-metrics.tsx: one queryTable('account') read behind a window cache + in-flight de-dupe with readiness-only deps, try/catch around the load, industry label from the FormattedValue annotation, D3 charts with a window animation guard, sized and sortable DataGrid, Xrm.Navigation.navigateTo to open an account
- Icon check: Grep
from "@fluentui/react-icons"in account-metrics.tsx, then one Grep per name in ${PLUGIN_ROOT}/references/verified-icons.txt: ArrowClockwiseRegular, BuildingRegular, CalendarRegular, MoneyRegular, PeopleTeamRegular — all present - Grep
['"]?borderWidth['"]?\s*:in account-metrics.tsx → no matches node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --file 'D:/work/account-metrics-dashboard/account-metrics.tsx'→ {"ok":true,"problems":[]} (exit 0)
Phase 6 — Deploy
- No connectors.json and no actions.json → the plan's bindings are empty, so the upload carries no
--connectors/--actions - Cleared any earlier prompt.txt / agent-message.txt / page-name.txt (none existed, none was a link)
- Wrote prompt.txt (full
## User Requirements), agent-message.txt and page-name.txt ("Account Metrics Dashboard") with the file-writing tool
A new app: the first page, then the app, then the rest
- The first page, with no app
- Command:
node 'D:/repo/plugins/model-apps/scripts/genpage-upload.js' --env 'https://contoso.crm.dynamics.com' --code-file 'account-metrics.tsx' --name-file 'page-name.txt' --data-sources 'account' --prompt-file 'prompt.txt' --model 'claude-sonnet-4.5' --agent-message-file 'agent-message.txt' - No
--app-idand no--add-to-sitemap: the app does not exist yet - Prompt scope: full page description from plan's
## User Requirements(create) - Result: page-id = 66666666-7777-4888-8999-aaaaaaaaaaaa, status = success ({"ok":true,"updated":false})
- Command:
- The app, from that page
- Command:
node 'D:/repo/plugins/model-apps/scripts/apps.js' create --env 'https://contoso.crm.dynamics.com' --name 'Account Metrics' --solution 'ContosoCore' --page-id '66666666-7777-4888-8999-aaaaaaaaaaaa' --publish Solution: ContosoCorefrom ## Environment, passed verbatim as the unique name;--publishso the app is not left in draft- Result: app-id = 44444444-5555-4666-8777-888888888888, published true, in solution ContosoCore (app and sitemap), navigation Main / Pages / "Account Metrics Dashboard"; the create pinned the default public view of the page's table (dataSources ["account"], one pinnedViews id)
- Stored appId 44444444-5555-4666-8777-888888888888 for the rest of the run
- Command:
- The remaining pages: none (a single-page plan), so no upload follows the app's create: the first page's tables are already pinned by it
Phase 6.5 / 6.7
- Phase 6.5 not applicable (single page, no PAGEREF_ tokens)
- Phase 6.7 not applicable (plan has no
## Solution Packagingsection)
Phase 7 — Browser verification
- AskUserQuestion: Would you like to verify the page(s) in the browser using Playwright? → Skip verification
Phase 8 — Summary
| Page | File | Entities | Status |
|---|---|---|---|
| Account Metrics Dashboard | account-metrics.tsx | account | Deployed |
- App: Account Metrics (44444444-5555-4666-8777-888888888888) — created in this run in solution ContosoCore
- Entities created: none
- Browser verification: skipped