What problem does it solve?
Deploying a Power Apps Component Framework (PCF) control to a Power Platform environment involves multiple error-prone steps: verifying toolchain prerequisites, choosing a valid publisher prefix, managing version bumps to bust PCF caching, and confirming the correct target environment. This Skill automates that deployment workflow with confirmation gates that prevent wrong-environment deploys and stale-cache pushes.
Core Features & Use Cases
- Prerequisite verification: Checks Node.js 20+, npm, .NET SDK, pac CLI, and an active pac auth profile before any deployment action, with guided fixes for failures.
- Three confirmation gates: Prompts for publisher prefix (2-8 chars, validated), version bump strategy (patch/minor/major/none), and explicit target environment confirmation showing the full env URL and signed-in identity.
- Build and push execution: Discovers the PCF project via ControlManifest.Input.xml, runs npm build when needed, and executes pac pcf push with the chosen prefix.
- Deployment history tracking: Records each deployment (timestamp, environment URL, version, prefix) in .extension-state.md for audit and prefix reuse.
- Use Case: An engineer who scaffolded a dispatcher PCF for a .ppmplugin control wants to ship it to a test environment. The skill verifies auth, confirms the env is wrap-player-test-env rather than a bug-bash env, bumps the patch version, rebuilds, and pushes.
Quick Start
Ask the assistant to run /publish-pcf-companion from a repository containing a PRD.md and a scaffolded pcf directory to deploy the dispatcher PCF to your active Power Platform environment.