migrate-to-dataverse
Skill70 starsChanged 2 days agoMITView on GitHub
Read 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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- plugins/powercat-admin-digest/AGENTS.mdAGENTS.md
- plugins/powercat-adoption/AGENTS.mdAGENTS.md
- plugins/powercat-architecture-advisor/AGENTS.mdAGENTS.md
- plugins/powercat-canvas-apps/AGENTS.mdAGENTS.md
- plugins/powercat-code-apps/AGENTS.mdAGENTS.md
- plugins/powercat-dataverse/AGENTS.mdAGENTS.md
- plugins/powercat-governance/AGENTS.mdAGENTS.md
- plugins/powercat-overflow/AGENTS.mdAGENTS.md
- plugins/powercat-overpage/AGENTS.mdAGENTS.md
- plugins/powercat-pcf/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- plugins/powercat-admin-digest/CLAUDE.mdCLAUDE.md
- plugins/powercat-adoption/CLAUDE.mdCLAUDE.md
- plugins/powercat-architecture-advisor/CLAUDE.mdCLAUDE.md
- plugins/powercat-canvas-apps/CLAUDE.mdCLAUDE.md
- plugins/powercat-code-apps/CLAUDE.mdCLAUDE.md
- plugins/powercat-dataverse/CLAUDE.mdCLAUDE.md
- plugins/powercat-governance/CLAUDE.mdCLAUDE.md
- plugins/powercat-overflow/CLAUDE.mdCLAUDE.md
- plugins/powercat-overpage/CLAUDE.mdCLAUDE.md
- loop-my-promptSkill
- powercat-pp-architecture-advisorSkill
- analyze-canvas-performanceSkill
- powercat-codeappscompactSkill
- code-apps-design-guideSkill
- dev-environment-deprecation-reportSkill
- powercat-overflowSkill
- powercat-overpageSkill
- create-pcfSkill
- eval-generator-code-appSkill
- eval-generator-gen-pagesSkill
- powercat-skills-routerSkill
- powercat-accessmigrationSkill
- Airtable to Power Platform MigrationSkill
- infopath-to-canvasSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Read the YAML files of the current Canvas App and replace all Power FX data source calls with Dataverse equivalents for the following …
- Distinctive: line 17
Before making any changes, you MUST read and internalize the technical reference document:
- Distinctive: line 21
Read this file before planning any edits.
- Very specific: line 25
Before reading or editing any YAML files, call the sync_canvas MCP tool to ensure a local copy of the canvas app YAML is present and up to …
- Very specific: line 27
Only proceed after sync_canvas completes successfully.
- Very specific: line 33
Call list_data_sources to enumerate all data sources connected to the current authoring session.
- Distinctive: line 35
After the call completes, share a discovery summary with the user:
- Very specific: line 47
Read every .pa.yaml file produced by sync_canvas.
- Distinctive: line 64
Prefer an exact name match (case-insensitive).
- Distinctive: line 75
If adjustments are requested, update the mapping plan accordingly and re-present.
- Distinctive: line 82
Keep all UI properties, layout, and non-data formulas unchanged.
- Very specific: line 83
Follow the formula conventions in ${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md (use = prefix, wrap multi-line formulas correctly, …
- Very specific: line 92
Call compile_canvas after updating all files.
- Distinctive: line 101
When all files pass validation, present a final summary:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate Canvas App Data Sources to Dataverse
Read the YAML files of the current Canvas App and replace all Power FX data source calls with Dataverse equivalents for the following requirements:
$ARGUMENTS
CRITICAL: Review Guidance First
Before making any changes, you MUST read and internalize the technical reference document:
${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md— Technical best practices, control selection, validation workflow, formulas, layout strategies
Read this file before planning any edits.
CRITICAL: Sync the Canvas App First
Before reading or editing any YAML files, call the sync_canvas MCP tool to ensure a local copy of the canvas app YAML is present and up to date. This pulls the current app state from the coauthoring session into local .pa.yaml files.
Only proceed after sync_canvas completes successfully.
Migration Workflow
1. Discover Available Data Sources
Call list_data_sources to enumerate all data sources connected to the current authoring session. This is the authoritative list of Dataverse tables (and other connectors) available for mapping.
After the call completes, share a discovery summary with the user:
Discovery complete. Available data sources ([N] total):
Name Type Key Columns [Table Name] Dataverse / SharePoint / … [column names]
For each Dataverse table identified, call get_data_source_schema to retrieve the full column list and Power Fx types. This information is required to map source columns to destination columns accurately.
2. Read the YAML Files
Read every .pa.yaml file produced by sync_canvas. For each file:
- Identify every Power Fx formula that references a non-Dataverse data source (e.g.
SharePoint.GetItems,Filter('MyList', …),Patch('MyList', …),LookUp,Collect,ClearCollect, etc.). - Note the source table/list name, the columns referenced, and the operation type (
Filter,Patch,LookUp,Collect, etc.).
3. Build a Column Mapping Plan
Using the schemas retrieved in step 1, produce a mapping table for every data source call found:
Proposed Mapping Plan
Source Expression Source Column Dataverse Table Dataverse Column Notes Filter('Orders List', Status = "Open")Status cr123_orderscr123_statusType match: Text … … … … …
Rules for column selection:
- Prefer an exact name match (case-insensitive).
- Fall back to a semantic name match (e.g.
Title→cr123_name). - Flag any column with no clear match as
⚠ needs manual review. - Respect Power Fx type compatibility — do not map a
Textcolumn to aChoicescolumn without an explicit conversion formula.
Present the plan to the user and ask for approval before making any changes:
Does this mapping plan look correct?
- Approve and apply changes
- I'd like to adjust the mapping first
If adjustments are requested, update the mapping plan accordingly and re-present.
4. Apply the Replacements
Once the plan is approved, update every affected .pa.yaml file:
- Replace each source data-call expression with the equivalent Dataverse Power Fx expression using the approved column mapping.
- Keep all UI properties, layout, and non-data formulas unchanged.
- Follow the formula conventions in
${CLAUDE_PLUGIN_ROOT}/references/TechnicalGuide.md(use=prefix, wrap multi-line formulas correctly, etc.). - Preserve
OnVisibleinitialization patterns — replace collection sources but keep the collection/variable structure if it exists.
Announce progress for each file:
Updating [filename].pa.yaml ([N] of [Total])…
5. Validate
Call compile_canvas after updating all files. Fix any compilation errors before finishing. Report the result:
- On success: > Compilation successful — all replacements are valid.
- On failure: > [N] error(s) found — fixing before finishing. [brief description of each error]
Repeat validate → fix until all files compile clean.
6. Complete
When all files pass validation, present a final summary:
Migration complete.
File Expressions Replaced Status [filename].pa.yaml [N] Compiled Source replaced: [original data source names] Target: [Dataverse table names used] Columns requiring manual review: [list any ⚠ flagged columns, or "none"]
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

