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
[
{
"id": "manifest",
"command": "node 'D:/repo/plugins/model-apps/scripts/generate-page-manifest.js' 'D:/work/customer-opportunities' 'customer-opportunities'",
"exitCode": 0,
"result": {
"workingDir": "D:\\work\\customer-opportunities",
"slug": "customer-opportunities",
"features": [],
"files": {
"package.json": {
"wrote": true
},
"genpage.d.ts": {
"wrote": true
}
}
}
},
{
"id": "interaction-mode",
"command": "node 'D:/repo/plugins/model-apps/scripts/resolve-interaction-mode.js'",
"exitCode": 0,
"result": {
"ok": true,
"interactive": true,
"reason": "default (attended)"
}
},
{
"id": "node-version",
"command": "node --version",
"exitCode": 0,
"result": "v20.20.2"
},
{
"id": "pac-help",
"command": "pac help",
"exitCode": 0,
"result": "Microsoft PowerPlatform CLI Version: 2.11.0"
},
{
"id": "auth-list",
"command": "pac auth list",
"exitCode": 0,
"result": "Index Active Kind Name Friendly Name User Cloud Type Environment Environment Url\n[1] * UNIVERSAL Contoso [email protected] Public User Contoso https://contoso.crm.dynamics.com/"
},
{
"id": "list-languages",
"by": "genpage-planner",
"command": "node 'D:/repo/plugins/model-apps/scripts/list-languages.js' --env 'https://contoso.crm.dynamics.com'",
"exitCode": 0,
"result": {
"ok": true,
"baseLanguage": {
"lcid": 1033,
"code": "en-US",
"name": "English (United States)",
"rtl": false
},
"languages": [
{
"lcid": 1033,
"code": "en-US",
"name": "English (United States)",
"rtl": false
}
],
"unmapped": [],
"summary": [
"1033 en-US — RTL: No"
]
}
},
{
"id": "list-tables",
"by": "genpage-planner",
"command": "node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --search 'opportunity' --exact",
"exitCode": 0,
"result": {
"ok": true,
"search": [
"opportunity"
],
"exact": true,
"count": 1,
"tables": [
{
"logicalName": "opportunity",
"displayName": "Opportunity",
"schemaName": "Opportunity",
"isCustom": false
}
],
"missing": []
}
},
{
"id": "lookup-metadata",
"by": "genpage-planner",
"command": "node 'D:/repo/plugins/model-apps/scripts/get-lookup-metadata.js' --env 'https://contoso.crm.dynamics.com' --tables 'opportunity'",
"exitCode": 0,
"artifact": "lookup-metadata.json",
"result": {
"ok": true,
"tables": [
{
"logicalName": "opportunity",
"primaryIdAttribute": "opportunityid",
"primaryNameAttribute": "name",
"lookups": [
{
"column": "customerid",
"readProperty": "_customerid_value",
"attributeType": "Customer",
"targets": [
"account",
"contact"
],
"paths": [
{
"target": "account",
"navigationProperty": "customerid_account",
"referencedKey": "accountid",
"relationship": "opportunity_customer_accounts"
},
{
"target": "contact",
"navigationProperty": "customerid_contact",
"referencedKey": "contactid",
"relationship": "opportunity_customer_contacts"
}
],
"sharedPaths": []
},
{
"column": "ownerid",
"readProperty": "_ownerid_value",
"attributeType": "Owner",
"targets": [
"systemuser",
"team"
],
"paths": [],
"sharedPaths": [
{
"referencedEntity": "owner",
"navigationProperty": "ownerid",
"referencedKey": "ownerid",
"relationship": "owner_opportunitys"
}
]
},
{
"column": "parentaccountid",
"readProperty": "_parentaccountid_value",
"attributeType": "Lookup",
"targets": [
"account"
],
"paths": [
{
"target": "account",
"navigationProperty": "parentaccountid",
"referencedKey": "accountid",
"relationship": "opportunity_parent_account"
}
],
"sharedPaths": []
},
{
"column": "parentcontactid",
"readProperty": "_parentcontactid_value",
"attributeType": "Lookup",
"targets": [
"contact"
],
"paths": [
{
"target": "contact",
"navigationProperty": "parentcontactid",
"referencedKey": "contactid",
"relationship": "opportunity_parent_contact"
}
],
"sharedPaths": []
}
]
}
]
}
},
{
"id": "list-apps",
"by": "genpage-planner",
"command": "node 'D:/repo/plugins/model-apps/scripts/apps.js' list --env 'https://contoso.crm.dynamics.com'",
"exitCode": 0,
"result": {
"ok": true,
"count": 2,
"apps": [
{
"id": "11111111-2222-3333-4444-555555555555",
"name": "Sales Hub",
"uniqueName": "SalesHub",
"description": "",
"published": true,
"unpublishedChanges": false
},
{
"id": "44444444-5555-6666-7777-888888888888",
"name": "Customer Service Hub",
"uniqueName": "CustomerServiceHub",
"description": "",
"published": true,
"unpublishedChanges": false
}
]
}
},
{
"id": "planner-discovery",
"command": "Task genpage-planner (discovery: create, No connector bindings., No custom API bindings.)",
"result": {
"action": "needs_input",
"why": "The possible account relationships select different opportunities.",
"questions": [
{
"id": "opportunities-account-scope",
"question": "Which opportunities should this account show?",
"options": [
{
"label": "Parent account",
"description": "Filter parentaccountid; metadata targets account."
},
{
"label": "Direct customer",
"description": "Filter customerid for account customers; metadata targets account and contact."
},
{
"label": "Customer plus contacts",
"description": "Include direct account customers and contact customers linked through the verified contact relationship."
}
],
"multiSelect": false
},
{
"id": "app",
"question": "Which app should the page be added to?",
"options": [
{
"label": "Sales Hub (11111111-2222-3333-4444-555555555555)"
},
{
"label": "Customer Service Hub (44444444-5555-6666-7777-888888888888)"
},
{
"label": "Create a new app"
}
],
"multiSelect": false
}
],
"reserved": [
"A1"
],
"lookupMetadata": "D:/work/customer-opportunities/lookup-metadata.json",
"discovered": {
"languages": [
"English (1033)"
],
"existingEntities": [
"opportunity"
],
"entitiesToCreate": []
}
}
},
{
"id": "planner-answers",
"command": "Task genpage-planner (answers: opportunities-account-scope → Direct customer; app → Sales Hub; lookup-metadata.json)",
"result": {
"action": "plan",
"pages": [
{
"page": "Customer Opportunities",
"file": "customer-lookup.tsx",
"entities": [
"opportunity"
]
}
],
"assumptions": [
"A1",
"A2",
"A3",
"A4"
],
"entityCreationRequired": false,
"app": {
"name": "Sales Hub",
"appId": "11111111-2222-3333-4444-555555555555"
}
}
},
{
"id": "plan-prepare",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' prepare --plan 'D:/work/customer-opportunities/genpage-plan.md'",
"exitCode": 0,
"result": {
"ok": true,
"action": "prepare",
"planPath": "D:\\work\\customer-opportunities\\genpage-plan.md",
"quarantinedPath": null
}
},
{
"id": "save-approved",
"command": "Write .approved-genpage-plan.md",
"artifact": "approved-plan.md"
},
{
"id": "planner-write",
"command": "Task genpage-planner (approved: write genpage-plan.md)",
"result": {
"action": "written",
"plan": "D:/work/customer-opportunities/genpage-plan.md"
}
},
{
"id": "plan-verify",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/customer-opportunities/genpage-plan.md' --approved '@D:/work/customer-opportunities/.approved-genpage-plan.md' --require-assumptions",
"exitCode": 0,
"result": {
"ok": true,
"action": "verify",
"planPath": "D:\\work\\customer-opportunities\\genpage-plan.md",
"kind": "create",
"targets": [
"customer-lookup.tsx"
],
"writtenHash": "96ba32971bfd7409cf3580b00d1018755f47f85466b19643f3fe8dcf3382cd35",
"semanticsHash": "7c0546b925ec9a8d70a0aa883197403116b8214a708a795ba33e6a84fabb1c97"
}
},
{
"id": "generate-types",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage.js' types --env 'https://contoso.crm.dynamics.com' --data-sources 'opportunity' --output-file 'D:/work/customer-opportunities/RuntimeTypes.ts'",
"exitCode": 0,
"result": {
"ok": true,
"outputFile": "D:/work/customer-opportunities/RuntimeTypes.ts",
"dataSources": [
"opportunity"
],
"detail": "none",
"bytes": 21504
}
},
{
"id": "gate-telemetry",
"command": "node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-telemetry",
"exitCode": 1,
"result": "disabled"
},
{
"id": "page-files",
"command": "node 'D:/repo/plugins/model-apps/scripts/check-page-files.js' --plan 'D:/work/customer-opportunities/genpage-plan.md'",
"exitCode": 0,
"result": {
"ok": true,
"workingDir": "D:\\work\\customer-opportunities",
"files": [
"customer-lookup.tsx"
],
"problems": []
}
},
{
"id": "plan-verify-5a",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/customer-opportunities/genpage-plan.md' --approved '@D:/work/customer-opportunities/.approved-genpage-plan.md' --require-assumptions --require-observed-lookups --lookup-metadata 'D:/work/customer-opportunities/lookup-metadata.json'",
"exitCode": 0,
"result": {
"ok": true,
"action": "verify",
"planPath": "D:\\work\\customer-opportunities\\genpage-plan.md",
"kind": "create",
"targets": [
"customer-lookup.tsx"
],
"writtenHash": "96ba32971bfd7409cf3580b00d1018755f47f85466b19643f3fe8dcf3382cd35",
"semanticsHash": "7c0546b925ec9a8d70a0aa883197403116b8214a708a795ba33e6a84fabb1c97"
}
},
{
"id": "stamp",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --stamp --file 'D:/work/customer-opportunities/customer-lookup.tsx'",
"exitCode": 0,
"result": {
"ok": true,
"action": "stamp",
"filePath": "D:\\work\\customer-opportunities\\customer-lookup.tsx",
"existed": false
}
},
{
"id": "write-page",
"command": "Write customer-lookup.tsx",
"artifact": "customer-lookup.tsx"
},
{
"id": "icon-grep",
"command": "Grep from \"@fluentui/react-icons\" customer-lookup.tsx; Grep ^OpenRegular$ references/verified-icons.txt",
"result": "OpenRegular: verified"
},
{
"id": "border-grep",
"command": "Grep ['\"]?borderWidth['\"]?\\s*: customer-lookup.tsx",
"result": "no matches"
},
{
"id": "gate",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --file 'D:/work/customer-opportunities/customer-lookup.tsx'",
"artifact": "customer-lookup.tsx",
"exitCode": 0,
"result": {
"ok": true,
"filePath": "D:\\work\\customer-opportunities\\customer-lookup.tsx",
"problems": []
}
},
{
"id": "write-upload-text",
"command": "Write prompt.txt, agent-message.txt, page-name.txt",
"artifacts": [
"prompt.txt",
"agent-message.txt",
"page-name.txt"
]
},
{
"id": "create",
"command": "node 'D:/repo/plugins/model-apps/scripts/genpage-upload.js' --env 'https://contoso.crm.dynamics.com' --app-id '11111111-2222-3333-4444-555555555555' --code-file 'customer-lookup.tsx' --name-file 'page-name.txt' --data-sources 'opportunity' --prompt-file 'prompt.txt' --model 'claude-sonnet-4-6' --agent-message-file 'agent-message.txt' --add-to-sitemap",
"exitCode": 0,
"result": {
"ok": true,
"pageId": "cccccccc-dddd-eeee-ffff-000000000026",
"appId": "11111111-2222-3333-4444-555555555555",
"updated": false
}
}
]