Skill v1.0.0
currentTrusted Publisher100/100version: "1.0.0"
Airtable to Microsoft App Modernization Skill
This 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.
The skill owns the full flow:
- Connect to Airtable through a local prompt.
- Export schema and data.
- Analyze Airtable tables, fields, relationships, choices, AI fields, identity fields, and records.
- Ask whether the user wants Dataverse tables, SharePoint Lists, both, or plan-only.
- Produce and review the selected target migration plan.
- For Dataverse: connect through Dataverse MCP, resolve solution/prefix, create schema, validate, and import data.
- For SharePoint: connect through Graph/SharePoint MCP or PnP PowerShell interactive auth, resolve site, create lists/columns, validate, and import data.
- Ask whether the user wants a Code App, Canvas App, both, or plan-only.
- Generate the selected app experience from the migrated Microsoft data platform target.
Critical rules
- Never ask the user to paste Airtable tokens, Dataverse tokens, passwords, or secrets into chat.
- Airtable token input must happen through a local terminal prompt using
Read-Host -AsSecureString. - Never print token length, prefix, suffix, masked token metadata, or token-derived values.
- Dataverse sign-in must happen through Dataverse MCP interactive auth, not by pasting tokens.
- SharePoint sign-in must happen through Graph/SharePoint MCP interactive auth, PnP PowerShell
Connect-PnPOnline -Interactive, or another approved local auth tool, not by pasting tokens. - Do not create Dataverse or SharePoint objects until the user approves the reviewed target plan.
- Do not import data until target schema/list creation is verified.
- Do not populate
systemuserlookups or change recordOwneruntil identity mapping is separately approved. - Never create Dataverse
systemuserrows. - All Dataverse metadata creation must happen inside the selected solution.
- If the target solution already exists, derive the prefix from the solution publisher. Do not infer prefix from the solution name.
- If the target solution does not exist, ask whether to create it and which publisher/prefix to use.
- For SharePoint targets, ask for/resolve the target site URL and create/reuse lists only after explicit approval.
- SharePoint Person/Group columns can be used for user fields, but preserve source name/email text so unresolved users do not block migration.
- UX and automation conversion are optional post-migration phases. Treat them as reviewable scaffolds/drafts, not guaranteed pixel-perfect or behavior-complete clones.
- Reuse the established Dataverse or SharePoint target context for app data sources and Flow/Power Automate environment selection when available.
- In addition to machine-readable JSON artifacts, generate user-friendly DOCX plans/reports when document-generation tooling is available.
Expected agent capabilities
The agent should have:
- shell access
- filesystem access
- internet access for Airtable API calls
- Dataverse MCP tools or a Dataverse MCP server configured in the agent environment
- Microsoft Graph/SharePoint MCP tools, an equivalent SharePoint-capable MCP server, or PnP PowerShell when SharePoint Lists are selected
If Dataverse MCP is unavailable, stop at the Dataverse MCP preflight and tell the user what is missing. Do not improvise another auth path unless the user explicitly asks. If SharePoint/Graph MCP is unavailable and SharePoint Lists are selected, offer PnP PowerShell interactive as the supported fallback. If neither SharePoint MCP nor PnP PowerShell is available, stop and tell the user what is missing.
Phase 0: Start
When invoked, say:
We will start in assessment mode. I will export Airtable locally, analyze the schema/data, ask whether you want Dataverse tables, SharePoint Lists, both, or plan-only, then connect to the selected Microsoft target through MCP. I will not create target objects or import data until you approve the target environment/site, schema/list plan, and object list.
Then create a fresh run by default.
Fresh-run rule
Every invocation starts a new timestamped run folder unless the user explicitly says they want to resume a prior run.
Default behavior:
airtable-migration-work/runs/<yyyyMMdd-HHmmss>/README.mdscripts/exports/analysis/runbooks/reports/flows/apps/code-app/canvas-app/logs/validation/temp/
Rules:
- The timestamped run folder is the single container for the migration. All artifacts for that migration must land under that folder.
- Do not silently reuse prior exports, plans, approvals, Dataverse creation results, or import reports.
- Do not say a prior migration is already done unless the user explicitly selected resume.
- Treat prior runs as historical reference only.
- A fresh run must create a new export, new assessment, new schema plan, and new approval gates.
- Do not write generated apps, flow drafts, runbooks, reports, logs, screenshots, or temporary files outside the active run folder unless the user explicitly asks for a different output path.
- If existing Dataverse objects are detected during creation, handle them with idempotency/schema-drift checks, not by assuming the prior skill run completed correctly.
Ask only if a prior run is detected:
Prior migration runs were found. Start fresh or resume one?
Recommended/default answer: Start fresh.
Phase 1: Generate Airtable export scripts
Create or use the current fresh run folder:
airtable-migration-work/runs/<timestamp>/README.mdscripts/exports/analysis/runbooks/reports/flows/apps/code-app/canvas-app/logs/validation/temp/
Set an internal ACTIVE_RUN_FOLDER variable/path and use it for every output in the run.
Generate:
<ACTIVE_RUN_FOLDER>/scripts/start-airtable-export.ps1<ACTIVE_RUN_FOLDER>/scripts/export-airtable.ps1
scripts/start-airtable-export.ps1
$ErrorActionPreference = "Stop"$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path$exporterPath = Join-Path $scriptDir "export-airtable.ps1"if (-not (Test-Path $exporterPath)) {throw "Could not find exporter script at $exporterPath"}$secureToken = Read-Host "Enter Airtable token" -AsSecureString$env:AIRTABLE_BASE_ID = Read-Host "Enter Airtable base ID"$tokenPtr = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureToken)try {$env:AIRTABLE_TOKEN = [Runtime.InteropServices.Marshal]::PtrToStringBSTR($tokenPtr)}finally {[Runtime.InteropServices.Marshal]::ZeroFreeBSTR($tokenPtr)}if ([string]::IsNullOrWhiteSpace($env:AIRTABLE_TOKEN)) { throw "Airtable token is required." }if ([string]::IsNullOrWhiteSpace($env:AIRTABLE_BASE_ID)) { throw "Airtable base ID is required." }Write-Host ""Write-Host "Airtable token captured securely."Write-Host "Base ID: $env:AIRTABLE_BASE_ID"Write-Host ""& $exporterPath
scripts/export-airtable.ps1
$ErrorActionPreference = "Stop"if ([string]::IsNullOrWhiteSpace($env:AIRTABLE_TOKEN)) { throw "AIRTABLE_TOKEN is not set. Run start-airtable-export.ps1 first in this same PowerShell window." }if ([string]::IsNullOrWhiteSpace($env:AIRTABLE_BASE_ID)) { throw "AIRTABLE_BASE_ID is not set. Run start-airtable-export.ps1 first in this same PowerShell window." }$baseId = $env:AIRTABLE_BASE_ID$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"$exportRoot = Join-Path (Get-Location) "..\exports\airtable-export-$baseId-$timestamp"$exportRoot = [System.IO.Path]::GetFullPath($exportRoot)$schemaDir = Join-Path $exportRoot "schema"$dataDir = Join-Path $exportRoot "data"$attachmentsDir = Join-Path $exportRoot "attachments"$interfacesDir = Join-Path $exportRoot "interfaces"$automationsDir = Join-Path $exportRoot "automations"$permissionsDir = Join-Path $exportRoot "permissions"$identityDir = Join-Path $exportRoot "identity"$analysisDir = Join-Path $exportRoot "analysis"New-Item -ItemType Directory -Force -Path $schemaDir, $dataDir, $attachmentsDir, $interfacesDir, $automationsDir, $permissionsDir, $identityDir, $analysisDir | Out-NullNew-Item -ItemType Directory -Force -Path (Join-Path $interfacesDir "screenshots") | Out-Null$headers = @{ Authorization = "Bearer $env:AIRTABLE_TOKEN" }function ConvertTo-SafeFileName {param([string]$Name)$invalid = [System.IO.Path]::GetInvalidFileNameChars()$safe = $Nameforeach ($char in $invalid) { $safe = $safe.Replace($char, "_") }return $safe}function Invoke-AirtableGet {param([string]$Uri)return Invoke-RestMethod -Method Get -Uri $Uri -Headers $headers}function Write-JsonArray {param([System.Collections.IEnumerable]$Items, [string]$Path)$array = @($Items)if ($array.Count -eq 0) {"[]" | Set-Content -Encoding UTF8 $Pathreturn}$array | ConvertTo-Json -Depth 100 | Set-Content -Encoding UTF8 $Path}try {Write-Host "Exporting Airtable base metadata..."$metadataUri = "https://api.airtable.com/v0/meta/bases/$baseId/tables"$metadata = Invoke-AirtableGet -Uri $metadataUri$metadata | ConvertTo-Json -Depth 100 | Set-Content -Encoding UTF8 (Join-Path $schemaDir "base.json")Write-JsonArray -Items @($metadata.tables) -Path (Join-Path $schemaDir "tables.json")$views = foreach ($table in @($metadata.tables)) {foreach ($view in @($table.views)) {[pscustomobject]@{tableId = $table.idtableName = $table.nameviewId = $view.idviewName = $view.nametype = $view.type}}}Write-JsonArray -Items @($views) -Path (Join-Path $schemaDir "views.json")$attachmentManifest = New-Object System.Collections.Generic.List[object]$tableSummaries = New-Object System.Collections.Generic.List[object]foreach ($table in @($metadata.tables)) {$safeTableName = ConvertTo-SafeFileName -Name $table.name$records = New-Object System.Collections.Generic.List[object]$offset = $nullWrite-Host "Exporting records from table: $($table.name)"do {$recordsUri = "https://api.airtable.com/v0/$baseId/$($table.id)?pageSize=100"if (-not [string]::IsNullOrWhiteSpace($offset)) {$recordsUri = "$recordsUri&offset=$([System.Uri]::EscapeDataString($offset))"}$page = Invoke-AirtableGet -Uri $recordsUriforeach ($record in @($page.records)) {$records.Add($record)foreach ($field in @($table.fields)) {if ($field.type -eq "multipleAttachments" -and $record.fields.PSObject.Properties.Name -contains $field.name) {foreach ($attachment in @($record.fields.($field.name))) {$attachmentManifest.Add([pscustomobject]@{tableId = $table.idtableName = $table.namefieldId = $field.idfieldName = $field.namerecordId = $record.idattachmentId = $attachment.idfileName = $attachment.filenametype = $attachment.typesize = $attachment.sizeurl = $attachment.url})}}}}$offset = $page.offset} while (-not [string]::IsNullOrWhiteSpace($offset))$recordFile = Join-Path $dataDir "$($table.id)-$safeTableName.records.json"Write-JsonArray -Items $records.ToArray() -Path $recordFile$tableSummaries.Add([pscustomobject]@{id = $table.idname = $table.namefieldCount = @($table.fields).CountviewCount = @($table.views).CountrecordCount = $records.CountrecordFile = Split-Path -Leaf $recordFile})}Write-JsonArray -Items $attachmentManifest.ToArray() -Path (Join-Path $attachmentsDir "manifest.json")$summaryTables = $tableSummaries.ToArray()$summary = [pscustomobject]@{exportedAt = (Get-Date).ToString("o")baseId = $baseIdtableCount = @($metadata.tables).Counttables = $summaryTablesattachmentCount = $attachmentManifest.Countnotes = @("Airtable Interface Designer pages are not included in the Airtable API export.","Add screenshots or recordings under interfaces\\screenshots before Code App UX reconstruction.","Add automation screenshots, scripts, and notes under automations when available.","Add identity mapping input under identity\\identity-mapping-input.csv if AAD object IDs or UPN mappings are available.","Airtable AI fields are migratable as multiline text; prompt regeneration is a post-migration enhancement.")}$summary | ConvertTo-Json -Depth 100 | Set-Content -Encoding UTF8 (Join-Path $analysisDir "source-summary.json")$identityReadme = @"Optional identity mapping input:Create identity-mapping-input.csv here if you have Entra/AAD identifiers.Recommended columns:source_table,source_record_id,source_name,source_email,source_upn,azureactivedirectoryobjectidMatch priority:1. azureactivedirectoryobjectid2. customer-provided object ID mapping3. UPN/domainname4. internalemailaddress5. display name only for manual review"@$identityReadme | Set-Content -Encoding UTF8 (Join-Path $identityDir "README.txt")$manifest = [pscustomobject]@{packageType = "airtable-codeapp-migration-export"version = "1.0"exportedAt = (Get-Date).ToString("o")baseId = $baseIdfolders = @{schema = "schema"data = "data"attachments = "attachments"interfaces = "interfaces"automations = "automations"permissions = "permissions"identity = "identity"analysis = "analysis"}}$manifest | ConvertTo-Json -Depth 100 | Set-Content -Encoding UTF8 (Join-Path $exportRoot "manifest.json")Write-Host ""Write-Host "Airtable export complete."Write-Host "Export folder: $exportRoot"}finally {Remove-Item Env:\AIRTABLE_TOKEN -ErrorAction SilentlyContinueWrite-Host "AIRTABLE_TOKEN has been cleared from this PowerShell session."}
Tell the user to run:
cd "<working-folder>\scripts"Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass.\start-airtable-export.ps1
Phase 2: Analyze export
Find the newest exports/airtable-export-* folder.
Read:
manifest.jsonanalysis/source-summary.jsonschema/tables.jsonschema/views.jsondata/*.records.jsonattachments/manifest.jsonidentity/identity-mapping-input.csv, if present
Create:
analysis/migration-assessment.jsonanalysis/ai-field-mapping.jsonidentity/identity-mapping-proposal.jsonanalysis/target-platform-recommendation.jsonanalysis/target-details.jsonanalysis/dataverse-schema-plan.jsonanalysis/dataverse-creation-runbook.jsonanalysis/dataverse-target-context.json, if Dataverse is selectedanalysis/sharepoint-list-plan.json, if SharePoint is selected or recommendedanalysis/sharepoint-import-plan.json, if SharePoint is selected or recommendedanalysis/sharepoint-target-context.json, if SharePoint is selectedreports/Data-Migration-Plan.docx, if DOCX tooling is available
Phase 3: Target platform choice
After Airtable export analysis, ask:
Where do you want to migrate the Airtable data?
Offer choices:
- Dataverse tables.
- SharePoint Lists.
- Both.
- Plan only.
Before the user chooses, generate and show analysis/target-platform-recommendation.json.
Recommendation guidance:
Recommend Dataverse when:- relationships are important- row-level security, ownership, teams, or roles matter- data volume or lifecycle complexity is high- app logic needs robust APIs/plugins/solutions- Code App or enterprise Canvas App is likelyRecommend SharePoint Lists when:- data is simple/list-like- relationships are shallow- the customer wants lightweight lists/forms quickly- SharePoint site/list ownership is preferred- Canvas App or simple Power Automate over lists is enoughRecommend Both when:- Dataverse is the system of record- SharePoint Lists are needed for lightweight team collaboration or read-only operational viewsRecommend Plan only when:- target auth/tooling is unavailable- relationship/security complexity needs review- the user is still deciding between targets
Do not create either target until the user approves the selected target plan.
Phase 4: Target details intake
Run this immediately after the user selects Dataverse, SharePoint Lists, Both, or Plan only. This is a logical first step before target-specific planning because the environment/site/solution/list container affects naming, prefix, permissions, available connectors, and whether artifacts can be created.
If Dataverse is selected
Ask for:
- Target Dataverse environment URL.
- Whether to use an existing solution or create a new solution.
- Existing/new solution display name.
- Existing/new solution unique name, if known.
- Publisher name/prefix only if a new solution must be created or multiple publishers are available.
- Whether optional
systemuserlookup columns should be created now but left unpopulated. - Whether record
Ownershould remain unchanged/default. Default: yes.
Then, through Dataverse MCP preflight, validate:
- signed-in user
- target environment URL
- metadata read permission
- solution exists or can be created
- publisher and customization prefix
- create permission, if creation is requested
Do not derive the prefix from the solution name. If the solution exists, derive prefix from the solution publisher. If creating a new solution, derive prefix from the selected publisher.
Write/update:
analysis/target-details.jsonanalysis/dataverse-target-context.json
If SharePoint Lists are selected
Ask for:
- Target SharePoint site URL.
- SharePoint execution path:
- SharePoint/Graph MCP
- PnP PowerShell interactive
- Plan only
- Whether to create new lists or reuse existing lists.
- Preferred list naming convention or list name prefix/suffix.
- Whether each Airtable table should become a separate list. Default: yes.
- Whether simple linked-record fields should become SharePoint lookup columns. Default: yes.
- How to handle many-to-many relationships:
- junction list
- multi-lookup
- text fallback
- recommend Dataverse instead
- Whether person-like fields should create SharePoint Person/Group columns. Default: yes, with source text/email preserved.
- Whether unresolved users should leave Person/Group blank and keep source text/email. Default: yes.
- Attachment strategy:
- list attachments
- document library
- metadata only
Then, through the selected SharePoint execution path, validate:
- signed-in user
- target site exists
- list read permission
- list creation/update permission
- user resolution capability for Person/Group fields
- lookup column feasibility
Write/update:
analysis/target-details.jsonanalysis/sharepoint-target-context.json
If Both is selected
Collect and validate both Dataverse and SharePoint details. Ask which target is the system of record:
1. Dataverse is system of record; SharePoint is collaboration/read-only/operational view.2. SharePoint is system of record; Dataverse is optional advanced app target.3. Both are independent outputs from Airtable.
Default recommendation: Dataverse as system of record, SharePoint as collaboration/read-only/operational view.
If Plan only is selected
Ask for intended target details if known, but do not require auth. Mark unknown details as assumptions in the plan.
Phase 5: AI field mapping
For Airtable aiText fields or fields marked (AI):
- Create Dataverse column as multiline text.
- Migrate current generated value when present.
- Mark as
aiDerived: true. - Classify as
migratable_with_gap. - Extract prompt text and referenced field names.
- Do not block migration if values are null, empty, or stale.
- Recommend manual recreation as Copilot prompt, Power Automate AI step, plugin/action, or app-side AI command only if ongoing generation is needed.
Phase 6: Identity mapping
Use a custom person table plus optional systemuser lookup:
Team Member / Employee custom tableMapped Dataverse User -> systemuser, optionalWork item / ticket tableAssigned Team Member -> custom person tableAssigned System User -> systemuser, optionalOwner -> unchanged unless row-level security is approved
Match priority:
azureactivedirectoryobjectid- customer-provided object ID mapping file
- UPN /
domainname internalemailaddress- display name only for manual review
Classify each source person:
active_matchdisabled_matchmultiple_matchno_matchmissing_identifiermanual_review
Do not populate optional Dataverse systemuser lookups or SharePoint Person/Group fields until the user approves identity mapping.
Phase 7: SharePoint Lists planning branch
Run this if the user selected SharePoint Lists or Both.
Generate:
analysis/sharepoint-list-plan.jsonanalysis/sharepoint-import-plan.jsonreports/SharePoint-Migration-Plan.docx, if DOCX tooling is available
Default Airtable to SharePoint mapping:
Airtable table -> SharePoint listsingleLineText -> Single line of textmultilineText -> Multiple lines of textnumber -> Numberdate/dateTime -> Date and timecheckbox -> Yes/NosingleSelect -> ChoicemultipleSelects -> Choice with multiple selectionsmultipleRecordLinks, single preferred -> Lookup columnmultipleRecordLinks, many-to-many -> multi-lookup, junction list, or text fallback after reviewmultipleAttachments -> list attachments or document library strategyemail -> Single line of text or Person column candidatecollaborator/person-like field -> Person/Group column when resolvable, text fallback otherwiseaiText or (AI) -> Multiple lines of text, AI-derived with regeneration gapformula/count/rollup -> stored value or calculated column if simple
Relationship rules:
- Use SharePoint lookup columns for simple one-to-many lookups.
- Do not create both sides of a reverse relationship unless explicitly needed.
- For many-to-many relationships, ask whether to:
- create a junction list,
- use a multi-lookup column,
- store source linked record names/IDs as text,
- or recommend Dataverse instead.
- If SharePoint lookup limits or delegation concerns are likely, flag them in the plan.
SharePoint user/people picker handling:
- Use SharePoint Person/Group columns for person-like fields when users can be resolved.
- Preserve source person data in text columns such as
Source Name,Source Email, andAirtable Record ID. - Resolve users in this priority:
- Entra/AAD object ID, if available.
- UPN/email.
- SharePoint site user lookup.
- Display name only as manual review, never automatic.
- Classify each source person:
active_matchexternal_or_guestmultiple_matchno_matchmissing_identifiermanual_review- If a user cannot be resolved, leave the Person/Group field blank, keep the text/email fields, and report the gap.
SharePoint suitability warnings:
- SharePoint Lists are not a full Dataverse replacement for complex relational apps.
- If the Airtable app has many linked tables, row-level security needs, complex business rules, or high-scale app requirements, recommend Dataverse.
Phase 8: SharePoint auth preflight
Run this if the user selected SharePoint Lists or Both.
Before auth, ask which execution path to use if it was not already captured:
1. SharePoint/Graph MCP2. PnP PowerShell interactive3. Plan only
Use SharePoint/Graph MCP when the agent environment has it configured. Use PnP PowerShell interactive when MCP setup is not available or the user prefers local/customer-run scripting.
SharePoint/Graph MCP path
Steps:
- Detect SharePoint/Graph MCP availability.
- If unavailable, offer PnP PowerShell interactive as fallback.
- Trigger or guide Microsoft Graph/SharePoint interactive sign-in.
- Instruct the user to sign in to the target tenant account.
- Use the SharePoint site URL collected in Target details intake; if missing, ask before proceeding.
- Run read-only validation:
- current user
- target site exists
- list read permission
- list creation permission if creating new lists
- user resolution capability for Person/Group fields
- Display:
- signed-in user
- site URL
- site title/id when available
- permission summary
Do not create lists during preflight.
PnP PowerShell interactive path
Use this when SharePoint/Graph MCP is unavailable or the user selects PnP PowerShell.
Preflight behavior:
- Check whether
PnP.PowerShellis installed. - If missing, ask for approval to install it for the current user:
Install-Module PnP.PowerShell -Scope CurrentUser
- Connect interactively:
Connect-PnPOnline -Url "<siteUrl>" -Interactive
- Validate the connection with read-only calls:
Get-PnPWebGet-PnPList
- Validate list creation permission with a non-destructive permission check where possible. Do not create test lists unless the user approves.
- Validate user resolution capability for Person/Group fields with:
Ensure-PnPUser -LoginName "<userPrincipalNameOrEmail>"
Use this only for sample/approved users during preflight.
Do not create lists during preflight.
Phase 9: SharePoint list creation and validation
Run only after explicit user approval.
Use the selected SharePoint execution path:
- SharePoint/Graph MCP, if selected and available.
- PnP PowerShell, if selected.
Creation order:
- Create/reuse SharePoint lists for independent tables.
- Create/reuse text, number, date, choice, multi-choice, multiline text, and source ID columns.
- Create lookup columns after target lists exist.
- Create Person/Group columns where approved.
- Validate list schemas.
Creation must be idempotent:
- If list/column exists and matches, reuse it.
- If list/column exists and conflicts, stop and report schema drift.
- Do not silently overwrite incompatible list schema.
PnP PowerShell implementation guidance:
Connect-PnPOnline -Url "<siteUrl>" -InteractiveNew-PnPList -Title "<ListTitle>" -Template GenericListAdd-PnPField -List "<ListTitle>" -DisplayName "<ColumnName>" -InternalName "<InternalName>" -Type TextAdd-PnPField -List "<ListTitle>" -DisplayName "<ColumnName>" -InternalName "<InternalName>" -Type NoteAdd-PnPField -List "<ListTitle>" -DisplayName "<ColumnName>" -InternalName "<InternalName>" -Type NumberAdd-PnPField -List "<ListTitle>" -DisplayName "<ColumnName>" -InternalName "<InternalName>" -Type DateTime
Use field XML for more complex column types when required:
- Choice
- MultiChoice
- Lookup
- LookupMulti
- User
- UserMulti
For Person/Group fields, use SharePoint user fields and resolve people with Ensure-PnPUser.
For lookup fields, create target lists first, then create lookup columns after the lookup target exists.
Write:
analysis/sharepoint-list-validation.json
Phase 10: SharePoint data import
Run only after list schema validation and explicit user approval.
Use the selected SharePoint execution path:
- SharePoint/Graph MCP, if selected and available.
- PnP PowerShell, if selected.
Import rules:
- Import lists in dependency order.
- Store Airtable record ID on every item.
- Build Airtable record ID to SharePoint item ID maps.
- Resolve lookup columns from those maps.
- Resolve Person/Group fields only when approved and resolvable.
- Leave unresolved Person/Group fields blank and preserve source text/email.
- Migrate AI fields as multiline text.
- Do not enable flows or automations during data import.
PnP PowerShell implementation guidance:
Add-PnPListItem -List "<ListTitle>" -Values @{"Title" = "<value>""AirtableRecordId" = "<rec...>"}
For lookup fields:
- Import target lists first.
- Query created items and build Airtable record ID to SharePoint item ID maps.
- Write lookup columns with SharePoint item IDs.
For Person/Group fields:
- Resolve each approved user with
Ensure-PnPUser. - Write the Person/Group field using the resolved SharePoint user identity/id format supported by the installed PnP version.
- If resolution fails, leave Person/Group blank and preserve source name/email text fields.
For large imports:
- Batch logically by list.
- Add retry/backoff for throttling.
- Write progress logs under
logs/. - Do not ask for approval per item; ask once per import phase unless the runtime forces per-write prompts.
Write:
analysis/sharepoint-data-import-report.json
Validate:
- source vs SharePoint item counts
- lookup resolution counts
- Person/Group resolution counts
- skipped/unresolved users
- choice value mapping
- AI value preservation
Phase 11: Review Dataverse plan with user
Run this if the user selected Dataverse or Both.
Before Dataverse MCP sign-in, show the plan:
- target solution display name, if known
- tables to create
- choices to create
- relationships to create
- AI fields and migration gaps
- identity mapping approach
- Owner handling
- import load order
- known gaps
Ask for approval to proceed to Dataverse MCP auth preflight.
Phase 12: Dataverse MCP auth preflight
Run this if the user selected Dataverse or Both.
The skill must handle Dataverse MCP connection before creation.
Steps:
- Detect Dataverse MCP availability.
- If unavailable, stop and tell the user Dataverse MCP must be configured in this agent environment.
- Trigger Dataverse MCP interactive sign-in.
- Instruct user to sign in to the target tenant account.
- Use the Dataverse environment URL collected in Target details intake; if missing, ask before proceeding.
- Run read-only validation:
- WhoAmI/current user
- org/environment URL
- metadata read check
- solutions query
- Display:
- signed-in user
- org URL
- tenant/environment context if available
- Use the solution name collected in Target details intake; if missing, ask before proceeding.
Do not create anything during preflight.
Phase 13: Solution resolution and prefix derivation
Run this if the user selected Dataverse or Both.
All Dataverse objects must be created inside a solution.
Given a solution name from the user:
- Query solutions by unique name and display/friendly name.
- If exactly one solution matches:
- use it
- expand publisher
- read
publisherid.customizationprefix - update schema plan with resolved unique name and prefix
- If multiple solutions match:
- ask the user to choose one
- If no solution matches:
- ask whether to create a new solution
- ask/select publisher
- derive prefix from publisher, not solution name
For Web API metadata creation, include:
MSCRM.SolutionUniqueName: <solution unique name>
Read-only lookup shape:
GET /api/data/v9.2/solutions?$select=uniquename,friendlyname,version&$expand=publisherid($select=customizationprefix,friendlyname)
Filter locally or use supported OData filters for exact unique/display name matching.
Phase 14: Final approval before Dataverse creation
Run this if the user selected Dataverse or Both.
Show:
- environment URL
- signed-in user
- solution unique name and display name
- publisher and prefix
- tables/columns/choices/relationships to create
- whether existing objects will be reused
- schema drift warnings
- data import will not run yet
Ask:
Approve Dataverse schema creation in this environment and solution?
Proceed only on explicit approval.
Phase 15: Create Dataverse schema
Run this if the user selected Dataverse or Both.
Creation order:
- Create or reuse solution, if approved.
- Create/reuse global choices.
- Create/reuse tables.
- Create/reuse columns.
- Create/reuse relationships.
- Create/reuse alternate keys on Airtable Record ID.
- Publish customizations.
- Read back metadata and verify.
Default table pattern:
Ticket CategoryTeam MemberSupport Ticket
Default choice pattern:
Status -> ChoicePriority -> ChoiceSubcategory -> ChoiceRole -> ChoiceDepartment -> ChoiceSkills -> Multi-select Choice
Default AI field pattern:
<AI field> -> Multiline Text, aiDerived metadata in plan/report
Default identity pattern:
Team Member.Email -> email columnTeam Member.Mapped Dataverse User -> optional systemuser lookupSupport Ticket.Assigned Team Member -> Team Member lookupSupport Ticket.Assigned System User -> optional systemuser lookupOwner -> unchanged
Creation must be idempotent:
- If an object exists and matches, reuse it.
- If it exists and conflicts, stop and report schema drift.
- Do not silently overwrite incompatible metadata.
Phase 16: Validate Dataverse schema
Run this if the user selected Dataverse or Both.
After creation, verify:
- solution exists
- publisher prefix matches plan
- all choices exist with expected values
- all tables exist
- all columns exist
- all relationships exist
- Airtable Record ID columns exist
- alternate keys exist or are queued/created
- AI fields are multiline text
- Skills is multi-select choice
- Owner was not changed
- optional
systemuserlookups exist but are empty
Write:
analysis/dataverse-schema-validation.json
Phase 17: Approval before Dataverse import
Run this if the user selected Dataverse or Both.
Show schema validation summary.
Ask:
Approve data import from Airtable export into Dataverse?
Proceed only on explicit approval.
Phase 18: Import Dataverse data
Run this if the user selected Dataverse or Both.
Load order:
- Ticket Category
- Team Member
- Support Ticket
Rules:
- Store Airtable record ID on every row.
- Build Airtable record ID to Dataverse GUID maps after each table load.
- Resolve linked-record fields using those maps.
- Migrate AI values from:
- raw text value, when present
valueproperty, when Airtable returns{ state, value, isStale }- Null/stale AI values do not block import.
- Keep Owner unchanged.
- Leave optional
systemuserlookups empty unless identity mapping is approved.
Write:
analysis/dataverse-data-import-report.json
Validate:
- record counts
- lookup resolution
- skipped/null fields
- AI value preservation
- choice value mapping
- Owner unchanged
Phase 19: Post-migration app target and automation branches
After the selected data target schema/list creation and data import validation, ask:
What app experience do you want to generate from the migrated Dataverse model?
Offer choices:
- Plan only.
- Generate Code App.
- Generate Canvas App.
- Generate both Code App and Canvas App.
Then ask separately:
Do you want to migrate Airtable automations into draft Power Automate flows?
Do not start app or automation generation automatically. App generation and automation migration are optional, approval-gated phases.
Phase 20: App modernization planning branch
Run this for Code App, Canvas App, both, or plan-only. This is shared UX/app planning before target-specific generation.
UX evidence intake
Ask the user for:
- screenshots of each Airtable Interface page
- optional screen recording or walkthrough
- page names and navigation order
- user roles/personas
- important forms, grids, dashboards, filters, tabs, and buttons
- expected behavior for each important button/action
- role-specific visibility or permissions, if any
Optional evidence:
- Airtable page source HTML
- authenticated
readForPagesresponse JSON, if the user can capture it safely - automation screenshots that explain button/action behavior
Never treat page source alone as a complete UI export. Page source can provide app/page/table IDs and clues, but it is not enough for full UX reconstruction.
UX planning
Generate:
analysis/app-modernization-plan.jsonanalysis/code-app-plan.jsonanalysis/canvas-app-plan.jsonanalysis/interface-reconstruction-plan.jsonreports/UX-Reconstruction-Plan.docx, if DOCX tooling is available
If no Airtable Interface screenshots are available, generate schema-derived app plans:
- Dashboard
- Ticket list
- Ticket detail/edit
- Team Members
- Categories
- AI insight panels
If screenshots or workflow notes exist, reconstruct UX from them.
Map Airtable UX patterns as:
Grid view -> table/list pageForm view -> create/edit formGallery -> card galleryKanban -> boardCalendar -> calendar componentDashboard/interface summary -> KPI cards and chartsFiltered view -> saved filter/tabButton -> command/action placeholder until behavior is confirmed
App target selection rules
Use the selected Microsoft data platform foundation for all app targets. Dataverse is preferred for richer app generation; SharePoint Lists are supported for list-centric Canvas Apps and lightweight app experiences.
Recommend Code App when:
- the customer needs custom React/TypeScript UX
- advanced components are needed
- complex layouts or custom interactions are expected
- developer-owned source code is preferred
- the app should feel like a bespoke web app
Recommend Canvas App when:
- the customer wants low-code maker ownership
- standard forms/galleries/screens are sufficient
- fast iteration inside Power Platform is preferred
- Dataverse-native forms and Power Fx are a good fit
- business users will maintain the app
Recommend Both when:
- Code App is useful for advanced/end-user UX
- Canvas App is useful for admin/back-office/operations
- the customer wants both pro-code and low-code entry points over the same Dataverse model
Recommend Plan only when:
- app tooling is unavailable
- the user wants to review UX first
- screenshots/workflows are insufficient for generation
Phase 21: Code App generation branch
Run this only if the user selected Code App or Both.
If Code App generation tools are available in the current agent environment:
- Reuse the selected target context established during migration.
- Add the migrated Dataverse tables or SharePoint Lists as data sources, depending on the selected target.
- Generate first-pass React/TypeScript Code App structure from
analysis/code-app-plan.json. - Wire list/detail/create/edit screens to the selected data target.
- Add dashboard/KPI components where clear from schema or screenshots.
- Add AI-derived fields as read-only/display panels unless the user asks for regeneration actions.
- Leave button/action behavior as TODOs unless explicitly described by automation evidence or workflow notes.
If Code App tooling is unavailable, produce a complete app generation plan and stop.
Generate or update:
analysis/code-app-plan.jsonreports/Code-App-Plan.docx, if DOCX tooling is availableapps/code-app/, if Code App generation tooling is available
Phase 22: Canvas App generation branch
Run this only if the user selected Canvas App or Both.
If Canvas App/Power Apps generation tooling is available in the current agent environment:
- Reuse the selected target context established during migration.
- Add the migrated Dataverse tables or SharePoint Lists as data sources.
- Generate a first-pass Canvas App plan from
analysis/canvas-app-plan.json. - Create screens for list/detail/create/edit flows.
- Use galleries, forms, cards, filters, and command buttons where appropriate.
- Generate Power Fx formulas for navigation, filtering, submit, patch/update, and validation where behavior is known.
- Add dashboard/KPI screens where clear from schema or screenshots.
- Add AI-derived fields as read-only/display controls unless the user asks for regeneration actions.
- Leave unknown button/action behavior as TODOs unless explicitly described by automation evidence or workflow notes.
If Canvas App tooling is unavailable, produce a complete Canvas App generation plan and stop.
Generate or update:
analysis/canvas-app-plan.jsonreports/Canvas-App-Plan.docx, if DOCX tooling is availableapps/canvas-app/, if Canvas App generation tooling is available
Canvas App plan should include:
- app name
- Dataverse data sources
- screen list
- controls per screen
- galleries/forms/cards
- navigation formulas
- filter/search formulas
- submit/update formulas
- Power Automate integration hooks
- known behavior gaps
- maker follow-up checklist
Phase 23: UX caveat to show the user
Always state:
The generated app is a first-pass scaffold based on Dataverse schema and provided screenshots. End-to-end screen behavior, role-specific behavior, button logic, validations, conditional visibility, and automation-driven behavior require additional workflow prompts and validation.
Phase 24: Automation draft migration branch
Run this only if the user asks to migrate Airtable automations.
Automation evidence intake
Ask for:
- screenshots of each Airtable automation
- trigger type
- target table/view
- trigger conditions
- action list and order
- email/Teams/message templates
- update-record field mappings
- scripts used in custom script actions
- webhook URLs or integration names, without secrets
- whether each automation should be enabled immediately or left disabled for review
Preferred evidence:
automations/screenshots/automation-notes.mdscripts/
Automation analysis
Generate:
analysis/automation-conversion-plan.jsonflows/<flow-name>.draft.jsonreports/Automation-Migration-Plan.docx, if DOCX tooling is available
Classify each automation:
high_confidenceneeds_user_confirmationrequires_manual_rebuildblocked_missing_details
Map Airtable automation patterns as:
Record created trigger -> Power Automate Dataverse row added triggerRecord updated trigger -> Power Automate Dataverse row modified triggerRecord matches conditions -> Dataverse trigger plus condition blockScheduled trigger -> recurrence triggerSend email -> Outlook connector or Dataverse/email pattern, depending customer preferenceSend Teams message -> Teams connectorUpdate record -> Dataverse update rowCreate record -> Dataverse add rowFind records -> Dataverse list rows with filterCustom script -> Power Automate expression, Azure Function, plugin/action, or manual rebuildWebhook/integration -> HTTP action/custom connector, with secrets supplied outside chat
Flow MCP / Power Automate creation
If Flow MCP or Power Automate MCP is available:
- Reuse the selected target context established during migration.
- Validate Flow MCP sign-in and target environment.
- Create flows as draft/disabled when possible.
- Use the migrated Dataverse tables or SharePoint Lists and resolved schema/list names.
- Do not enable flows until the user reviews connections, triggers, conditions, and actions.
- Do not store secrets in generated files.
If Flow MCP is unavailable:
- Generate
analysis/automation-conversion-plan.json. - Generate draft flow definitions or implementation instructions.
- Stop and tell the user Flow MCP/Power Automate tooling is needed for actual flow creation.
Automation caveat to show the user
Always state:
Automation drafts are generated from screenshots/notes and available metadata. Screenshots may omit hidden conditions, dynamic expressions, connection references, retries, permissions, and secrets. Flows must be reviewed before enabling.
Phase 25: DOCX reporting branch
Run this after each major planning phase if DOCX generation tooling is available. If no DOCX tooling is available, keep JSON/Markdown outputs and state that DOCX generation was skipped.
Create a reports/ folder and generate readable Word documents for business and technical review:
reports/Data-Migration-Plan.docxSharePoint-Migration-Plan.docxUX-Reconstruction-Plan.docxApp-Modernization-Plan.docxCode-App-Plan.docxCanvas-App-Plan.docxAutomation-Migration-Plan.docxEnd-to-End-Migration-Summary.docx
Data-Migration-Plan.docx
Include:
- executive summary
- source Airtable inventory
- target platform selection: Dataverse, SharePoint Lists, Both, or Plan only
- collected target details and validation status
- target Dataverse solution/environment, if Dataverse is selected
- target SharePoint site/lists, if SharePoint is selected
- table mapping
- column mapping
- choice mapping
- relationship mapping
- Airtable AI field handling
- identity strategy: Dataverse
systemuserand/or SharePoint Person/Group fields - Owner handling for Dataverse and permission/list ownership handling for SharePoint
- migration load order
- validation plan
- approval gates
- risks and open questions
SharePoint-Migration-Plan.docx
Include when SharePoint Lists are selected:
- target SharePoint site
- list mapping
- column mapping
- choice/multi-choice mapping
- lookup column strategy
- many-to-many handling recommendation
- Person/Group field mapping
- source person text/email preservation
- unresolved user handling
- attachment strategy
- import load order
- validation plan
- SharePoint limitations and suitability warnings
UX-Reconstruction-Plan.docx
Include:
- UX evidence received
- screenshots inventory
- inferred page/navigation model
- Code App pages/routes
- data sources
- component plan
- dashboard/KPI plan
- buttons/actions inventory
- known behavior gaps
- assumptions
- user validation checklist
State clearly:
This is a first-pass UX scaffold plan. End-to-end behavior, conditional visibility, validation logic, role-specific flows, and button behavior require further prompting and user validation.
App-Modernization-Plan.docx
Include:
- target app options: Code App, Canvas App, Both, Plan only
- recommendation matrix
- selected target
- shared Dataverse foundation
- UX evidence received
- target-specific plan summaries
- tooling prerequisites
- implementation sequence
- approval gates
- behavior gaps
Code-App-Plan.docx
Include when Code App is selected:
- React/TypeScript app structure
- routes/pages
- Dataverse data sources/client layer
- components
- forms/list/detail screens
- dashboard/KPI components
- AI insight display panels
- command/action TODOs
- deployment assumptions
Canvas-App-Plan.docx
Include when Canvas App is selected:
- Canvas App screens
- Dataverse data sources
- galleries/forms/cards
- Power Fx formulas
- navigation model
- filter/search behavior
- submit/update behavior
- Power Automate hooks
- maker follow-up checklist
Automation-Migration-Plan.docx
Include:
- automation evidence received
- automation inventory
- trigger/action mapping
- target Power Automate/Flow design
- Dataverse tables referenced
- connector requirements
- draft flow status
- secrets/connection references that must be supplied by the user
- confidence classification
- enablement/review checklist
State clearly:
Automation drafts are not production-ready until triggers, connections, dynamic expressions, permissions, retries, and error handling are reviewed.
End-to-End-Migration-Summary.docx
Generate at the end of the run. Include:
- what was exported
- target platform selected
- what was created/reused in Dataverse, if selected
- what was created/reused in SharePoint, if selected
- what data was imported
- validation results
- UX scaffold status
- selected app target
- Code App status, if requested
- Canvas App status, if requested
- automation draft status
- unresolved gaps
- recommended next steps
The DOCX files are reader-friendly companions to the JSON artifacts. JSON remains the authoritative machine-readable input for subsequent phases.
Completion
At completion, report:
- export folder
- assessment files
- report files
- Dataverse environment
- SharePoint site, if selected
- solution
- prefix
- Dataverse tables created/reused, if selected
- SharePoint lists created/reused, if selected
- data imported/skipped
- identity mapping status
- AI fields migrated with regeneration gap
- UX scaffold status, if requested
- app target selected
- Code App generated/planned, if requested
- Canvas App generated/planned, if requested
- automation draft/flow status, if requested
- remaining behavior gaps and required user validation