How promitdutta/power-platform-skills-qwen works
Purpose and Loading
This is a Qwen Code CLI extension that packages guided Power Platform development workflows rather than a deployable application. Qwen discovers the extension through qwen-extension.json; startup context is in QWEN.md. User-facing entry points are skill invocations mapped to skills/**/SKILL.md, with specialist agents available under agents/.
Skill Catalog as the Primary Interface
Skills are isolated, declarative workflow units organized by Power Platform workload:
• Power Pages lifecycle and site capabilities: skills/power-pages/create-site/SKILL.md, skills/power-pages/deploy-site/SKILL.md, skills/power-pages/integrate-webapi/SKILL.md.
• Power Apps code-app creation, deployment, and connectors: skills/code-apps/create-code-app/SKILL.md, skills/code-apps/deploy/SKILL.md, skills/code-apps/add-datasource/SKILL.md.
• Canvas generation/editing via MCP: skills/canvas-apps/generate-canvas-app/SKILL.md, skills/canvas-apps/edit-canvas-app/SKILL.md.
• Model-driven generative pages: skills/model-apps/genpage/SKILL.md.
Power Pages Delivery Pipeline
The principal Power Pages flow is: scaffold a chosen SPA/static framework template, configure site resources, deploy with PAC CLI, then enable and validate runtime capabilities. Template boundaries are explicit in skills/power-pages/create-site/assets/react/, skills/power-pages/create-site/assets/angular/, and skills/power-pages/create-site/assets/astro/ (Vue is also supported). Each generated site owns its application code and powerpages.config.json; this repository supplies templates and orchestration guidance.
Dataverse and Security Boundary
Power Pages skills model Dataverse as the persistence/API boundary. Data-model setup creates tables, fields, and relationships; Web API integration generates site-facing CRUD patterns; authorization configures authentication, web roles, and table permissions. Relevant entry points are skills/power-pages/setup-datamodel/SKILL.md, skills/power-pages/setup-auth/SKILL.md, and skills/power-pages/audit-permissions/SKILL.md. Shared OData, manifest, permissions, and service-pattern contracts live in references/odata-common.md, references/datamodel-manifest-schema.md, and references/webapi-service-patterns.md.
Agents and Planning Delegation
Agent definitions provide focused planning/review roles invoked by workflows or Qwen orchestration, especially where implementation requires architectural decisions. Power Pages agents cover data models, table permissions, Web API integration, and Web API settings: agents/power-pages/data-model-architect.md, agents/power-pages/table-permissions-architect.md, agents/power-pages/webapi-integration.md. Canvas planning/building is separated into agents/canvas-apps/canvas-app-planner.md and agents/canvas-apps/canvas-screen-builder.md; code-app architecture uses agents/code-apps/code-app-architect.md.
Scripted Operations and Validation
Node.js scripts form the executable support layer for Dataverse calls, provisioning operations, validation, and rendered reports. Shared access/configuration/validation behavior is centralized in scripts/dataverse-request.js, scripts/lib/powerpages-config.js, and scripts/lib/powerpages-schema-validator.js. Operational commands include site settings and permission creation (scripts/create-site-setting.js, scripts/create-table-permission.js) and report rendering (scripts/render-audit-report.js). Skill-local scripts validate capability-specific outputs before or after remote operations.
Runtimes and External Services
Execution requires Node.js 22+ and PAC CLI; Power Pages operations additionally use Azure CLI. PAC CLI authenticates to Microsoft Entra ID and targets a selected Power Platform environment. Remote boundaries include Power Pages, Dataverse/OData Web API, Power Platform connectors (SharePoint, Teams, Azure DevOps, Office 365, OneDrive, Excel, Copilot Studio), and Playwright-based browser testing. Canvas workflows additionally require .NET 10 and the Canvas Authoring MCP server.
Main entry points: create-code-app/SKILL.md App workflow skills · deploy-site/SKILL.md Deploy site · data-model-architect.md Specialist agents · integrate-webapi/SKILL.md Web API integration
Components 20
Extension Loading
- Extension manifest · Registers the Qwen Code extension.
qwen-extension.json - Startup context
QWEN.md
Workflow Skills
- Skill catalog · Primary user-facing workflow interface.
- App workflow skills · Code apps, canvas apps, and model-driven generative pages.
skills/code-apps/create-code-app/SKILL.md
Power Pages Delivery
- Create site
skills/power-pages/create-site/SKILL.md - Deploy site
skills/power-pages/deploy-site/SKILL.md - Web API integration
skills/power-pages/integrate-webapi/SKILL.md - Data model & security · Models tables, authentication, roles, and permissions.
skills/power-pages/setup-datamodel/SKILL.md - Site templates · React, Angular, Astro, and Vue starting points.
- Generated Power Pages site · Contains application code and powerpages.config.json.
Automation & Review
- Specialist agents · Delegated architecture, permissions, API, and canvas decisions.
agents/power-pages/data-model-architect.md - Dataverse contracts · OData, data-model manifest, permissions, and service patterns.
references/odata-common.md - Script support layer · Shared Dataverse requests, configuration, and schema validation.
scripts/dataverse-request.js - Provisioning & reports · Creates settings/permissions and renders audit reports.
scripts/create-site-setting.js
Platform Runtimes
- Qwen Code CLI
- PAC, Azure CLI & Node.js · PAC authenticates with Entra ID and targets an environment.
- Power Pages & Dataverse · Site runtime and OData persistence/API boundary.
- Power Platform connectors · Includes Microsoft 365, Azure DevOps, and Copilot Studio connectors.
- Canvas MCP runtime · Requires .NET 10; supports canvas generation and editing.
- Browser testing
Connections 23
- Extension manifest → Qwen Code CLI: discovered by
- Qwen Code CLI → Startup context: loads
- Qwen Code CLI → Skill catalog: invokes
- Skill catalog → Create site: includes
- Skill catalog → App workflow skills: includes
- Create site → Site templates: selects
- Site templates → Generated Power Pages site: scaffolds
- Generated Power Pages site → Deploy site: deployment input
- Deploy site → PAC, Azure CLI & Node.js: executes through
- PAC, Azure CLI & Node.js → Power Pages & Dataverse: authenticates and deploys to
- Data model & security → Power Pages & Dataverse: configures tables and access
- Web API integration → Power Pages & Dataverse: uses OData CRUD API
- Data model & security → Dataverse contracts: follows
- Web API integration → Dataverse contracts: follows
- Skill catalog → Specialist agents: delegates planning/review to
- Specialist agents → Data model & security: advises
- Specialist agents → Web API integration: advises
- Script support layer → Power Pages & Dataverse: calls Dataverse
- Provisioning & reports → Script support layer: uses shared validation/access
- Provisioning & reports → Power Pages & Dataverse: provisions and audits
- App workflow skills → Power Platform connectors: configures
- App workflow skills → Canvas MCP runtime: uses for canvas workflows
- Deploy site → Browser testing: validates site runtime