/powercat-migration-factory:infopath-to-canvasfrom powercat-migration-factory
Migrates Microsoft InfoPath .xsn forms to Power Apps Canvas apps across six phases: extract, inventory, verify, handoff, optional environment variables, and export migration log.
Ships in powercat-migration-factory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Migrate the InfoPath form described below:
$ARGUMENTS
A .xsn is a CAB archive containing manifest.xsf (rules, views, data connections),
schema*.xsd (data schema), template.xml (defaults), and XSL views. This skill runs six
phases: extract → inventory → verify → hand off to /canvas-app → configure environment
variables (optional) → export migration log. Pause for user approval after the inventory and
again after verification.
v2.0 changes: the downstream
generate-canvas-appskill this migration used to hand off to has been folded into the unified/canvas-appskill (which now auto-detects create vs. edit) in thecanvas-apps@power-platform-skillsplugin. This skill's Phase 0 prerequisite check and Phase 4 handoff have been updated to match. A new Phase 3 — Verify step has also been added: XSLT-view extraction alone is not reliable enough to generate from directly.v2.1 changes: added Phase 5 — Environment Variables, so a migrated app's data-source connections move with it across dev/test/prod instead of being hardcoded to whatever environment it was built against, and Phase 6 — Export Migration Log, which writes a dated record of everything this skill did for a given
.xsnso the run is auditable and repeatable later.v2.2 changes: two refinements based on running this at factory scale. Phase 5 — Environment Variables is now optional, gated on whether the migration is actually going to move across environments (ALM dev/test/prod) — a POC or single-environment migration can skip it and bind data sources directly. Phase 3 — Verify no longer requires screenshots to proceed; they're the preferred, highest-confidence check when available, but the skill now falls back to a documented lower-confidence pass over the XSLT-derived inventory and flags exactly which fields/sections/rules weren't screenshot-confirmed, so a batch of migrations isn't blocked waiting on screenshots for every form.
Before extracting anything, confirm the environment is ready:
canvas-apps@power-platform-skills for the
actual app generation. If mcp__canvas-authoring__* tools aren't available, tell the user to run:
/plugin marketplace add microsoft/power-platform-skills
/plugin install canvas-apps@power-platform-skills
/plugin marketplace add microsoft/power-cat-skills
/plugin install powercat-canvas-apps@power-cat-skills
/configure-canvas-mcp
(or describe the flow: open the target app in Power Apps Studio, enable Settings → Updates →
Coauthoring, copy the Studio URL, keep the tab open) before Phase 1 finishes, so the
SharePoint-list diff in Phase 1 has something to diff against. If they only want to mock data
for now, this can wait until they're ready to build for real.From $ARGUMENTS, resolve a .xsn path. If the user gave a folder, Glob for *.xsn inside; ask if there are multiple or none.
If a sibling xsn_extracted/ already contains manifest.xsf, reuse it. Otherwise extract to <source_dir>/xsn_extracted/:
& "$env:SystemRoot\System32\expand.exe" "<form>.xsn" -F:* "<xsn_extracted>" via PowerShellcabextract -d <xsn_extracted> <form>.xsnVerify manifest.xsf and schema1.xsd exist; abort if not.
Spawn a general-purpose Agent to write infopath-inventory.md covering:
schema1.xsd + template.xml dfs:dataFields: decoded name, type
(Text, Date, Number, Choice, multi-Choice, Person, NoteEnhanced/rich-text, Lookup, …),
constraints (maxLength, pattern, enumeration, minOccurs/nillable), default.
Decode URL-encoded names: _x0020_=space, _x0028_=(, _x0029_=), _x002d_=-,
_x0023_=#, _x0026_=&.manifest.xsf: schema-required fields, xsf:errorCondition (field +
XPath translated to plain English + message), xsf:ruleSet/xsf:domEventHandler (trigger,
condition, action), xsf:submit destination.schema*.xsd schema: source name + columns used.After the agent returns, surface counts (fields / rules / connections / sections / stages) and continue to Phase 3 — don't ask the mock-vs-real or aesthetic questions yet; those come after verification, once the inventory is known to be accurate.
XSLT-derived views are frequently wrong in specific, non-obvious ways — a section heading
gets misread as a field, a field is missed entirely because it's conditionally rendered, or a
label doesn't match the underlying field name (e.g. a "Trade Volume" label over an
ExpectedVolume field). Do not treat the Phase 2 inventory as final.
infopath-inventory.md and note what changed (e.g. "Team" was a section header, not a
field; found an undocumented field the XSLT extraction missed; two similarly-named approval
roles are actually distinct fields). Mark the inventory screenshot-verified.infopath-inventory.md listing every field, section, and
rule where confidence is low (ambiguous labels, deeply nested conditional visibility,
anything the XSLT structure made a judgment call on).canvas-app-prompt.md (Phase 4) and the
migration log (Phase 6), so it's visible to whoever reviews or accepts the generated app,
and so the form can be prioritized for a screenshot pass later if one becomes available.App.OnStart (default), or wire to real SharePoint?Wait for answers.
If the user wants to wire to real SharePoint, and they haven't already connected a coauthoring session (Phase 0), do it now — Canvas can't bind to a connection that doesn't exist in the app. Tell them the steps (Power Apps Studio → Data → Add data → SharePoint → pick site/list) and that this skill can verify the schema once it's done.
When they confirm, call mcp__canvas-authoring__connect if no session is active yet, then
mcp__canvas-authoring__list_data_sources to see what's connected, then
mcp__canvas-authoring__get_data_source_schema for each list. Diff against the verified
inventory: every InfoPath field should map to a SharePoint column of compatible type. Report
any missing columns, type mismatches (e.g. InfoPath Date vs. SP Text), or
extra-required columns the form doesn't populate. Pause and let the user reconcile
(rename columns, add missing ones, or trim the inventory) before Phase 4.
/canvas-app#phase-4--hand-off-to-canvas-app
Write canvas-app-prompt.md containing:
/canvas-app
skill's discovery/design agents map this to Power Fx).xsf rules.DisplayMode.Disabled on Save buttons) — an intentional
upgrade from InfoPath's flag-but-don't-block behavior; flag this as a deliberate change.Then invoke /canvas-app via the Skill tool, passing canvas-app-prompt.md as the
generation requirements (/canvas-app auto-detects create-vs-edit from the current app state,
runs its own discovery phase against list_controls / list_apis / list_data_sources,
produces an app plan for approval, then fans out canvas-screen-editor builder agents per
screen in parallel and validates the result with compile_canvas). If /canvas-app isn't
available, instruct the user to install canvas-apps@power-platform-skills (see Phase 0) and
then run /canvas-app against canvas-app-prompt.md directly.
#phase-5--environment-variables-optional
This phase is optional and only runs if the user indicated in Phase 3 that this migration will move across environments (dev/test/prod ALM) rather than staying a one-off or single-environment build.
If the migration is a POC / single-environment build: skip this phase. Bind the app's data sources directly (real connection or mocked collections, per the Phase 3 answer) and say plainly in the migration log (Phase 6) that environment variables were skipped and why, so it's an explicit, visible decision rather than a silent gap — not a blocker to revisit unless the app later needs to be promoted across environments.
If the migration is expected to move across environments, proceed as follows. Once the
app is wired to real data sources (or is about to be — this is easiest to set up right after
/canvas-app creates the data-source connections), do not leave the SharePoint site URL,
list name/GUID, environment ID, or any other connection detail hardcoded into the .pa.yaml.
Hardcoded values tie the generated app to whichever environment it happened to be built
against and break the moment it's promoted from dev to test to prod.
envvar_ClientBespokeProcess_SiteUrl,
envvar_ClientBespokeProcess_ListName.App.OnStart (or
wherever the data source is bound) instead of a literal string — e.g.
SharePointSiteUrl: Environment.EnvironmentVariable("envvar_ClientBespokeProcess_SiteUrl")
— rather than the raw URL.canvas-app-prompt.md (or a companion environment-variables.md) so
they can be set as part of solution deployment rather than rediscovered later.#phase-6--export-migration-log
Every time this skill is run against a particular .xsn, write (or update, on a re-run)
<form-name>-migration-log.md alongside the extracted form, dated at the top. Capture:
.xsn path/name and extraction date.infopath-inventory.md, so future re-runs, audits, or a later screenshot pass don't have to
rediscover which areas are still unconfirmed./canvas-app handoff: app name/location, whether compile_canvas
passed cleanly or needed fixes, and any deliberate behavior changes from InfoPath (e.g. the
block-on-submit validation change).This log is the artifact to hand to a customer or reviewer as evidence of what changed and why — write it in plain language, not as a raw dump of the phase outputs.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/powercat-accessmigrationMigrate a Microsoft Access database (.mdb/.accdb) into Microsoft Dataverse with an optional model-driven app. USE WHEN the user wants to modernize an Access database, reverse-engineer Access tables into Dataverse, or run the PowerCAT Access Migration workflow./Airtable-to-Power-Platform-MigrationAirtable to Microsoft App Modernization SkillThis skill migrates an Airtable app into a Microsoft data platform target and then lets the user choose the target app experience: Code App, Canvas App, both, or plan-only. It supports Dataverse tables and SharePoint Lists as data targets. It is designed for Claude/GitHub Copilot-style agents with shell, filesystem, Dataverse MCP, Microsoft Graph/SharePoint MCP or PnP PowerShell, and optional app-generation tooling access./migrate-to-dataverseRead the YAML files of an existing Canvas App and replace Power FX data source calls with equivalent Dataverse table calls. USE WHEN the user wants to migrate, replace, or update data source references in pa.yaml files to point to Dataverse tables.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./"
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job