create-pcf
Create a virtual PCF control for model-driven apps
Produce a working TypeScript PCF project, not just a design or code excerpt. Always scaffold each new control with pac pcf init --framework react, use the host's React and Fluent UI v9 platform libraries, and author control logic/components/tests in .ts/.tsx, never plain JavaScript. Never modify auto-generated files. Use context.webAPI for Dataverse operations and solution packaging for releases and cross-environment promotion. Do not deploy without explicit approval.
Read the quality checklist when defining acceptance criteria and again when selecting validation cases.
Load these original, official-documentation-based references as needed:
- Component patterns when selecting widgets and designing field/dataset interactions.
- Manifest reference before changing bindings, resources, types, or feature declarations.
- Virtual control lifecycle before implementing data flow, host reconciliation, async work, or cleanup.
The references distinguish platform facts from this plugin's design policies. Follow their official source links to resolve current API/schema details; do not copy or reconstruct third-party skills or examples.
1. Discover the project and agree on the behavior
Inspect repository instructions, existing PCF projects, manifests, generated types, dependencies, shared helpers, localization resources, and tests before editing. Preserve unrelated changes. Extend an existing virtual control where possible; do not replace a standard control by changing only its manifest.
Ask only for missing decisions: