Diagnose deployment failures, surface upload errors, and suggest or apply fixes.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "diagnose-deployment" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/diagnose-deployment/SKILL.md 2. Save it as ~/.claude/skills/diagnose-deployment/SKILL.md 3. Reload skills and tell me it's ready
Please diagnose this deployment failure, summarize PAC CLI upload errors and Dataverse async operation errors, and identify the most likely cause.
A summary of errors, matched known failure patterns, and prioritized troubleshooting recommendations.
Here are my deployment upload logs. Analyze the errors, match them against the known failure catalog, and tell me the next steps to fix them.
Key log errors, corresponding issue types, likely causes, and concrete remediation steps.
If these deployment errors are auto-fixable, apply the fixes directly; otherwise, list what I need to handle manually.
A report of applied fixes, unresolved items with reasons, and a follow-up action checklist.
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Surfaces and pattern-matches deployment errors against a known failure catalog. For each identified error with an available auto-fix, asks explicit user permission before applying any changes. Never auto-applies fixes without confirmation.
powerpages.config.jsonCreate all tasks upfront at the start of this phase.
Tasks to create:
Steps:
powerpages.config.json in cwd and parent directoriespac --version (report version or "not installed")pac env who (report environment URL or "not authenticated")az account show (report subscription or "not logged in")Auth failures are non-blocking — report them as findings, continue collecting other artifacts.
Reference:
${CLAUDE_PLUGIN_ROOT}/references/alm-docs-grounding.md
Cap this step at ~30 seconds. If MCP search / fetch errors out, log a one-line note and continue — this skill must remain runnable offline.
microsoft_docs_search with the query: Power Pages deployment errors solution import troubleshooting.https://learn.microsoft.com/en-us/power-platform/alm/solution-concepts-alm (and at most one sister page on troubleshooting or known import errors) in parallel via microsoft_docs_fetch.${CLAUDE_PLUGIN_ROOT}/references/deployment-error-catalog.md and flag any new error patterns not yet captured in the catalog.Gather all available context:
powerpages.config.json — extract siteName, websiteRecordId, compiledPath.powerpages-site/ folder exists.powerpages-site/*-manifest.yml — list all found, note their environment hostnames.solution-manifest.json exists (for solution-related diagnostics)docs/alm/last-import.json exists (for recent import failures){compiledPath}/ exists and is non-emptyReport: "Found project: {siteName}. Artifacts collected."
Re-run pac pages upload-code-site in capture mode to get fresh error output:
pac pages upload-code-site --rootPath "." 2>&1
Note: This intentionally triggers the upload to capture any errors. If the upload succeeds cleanly, that is also a valid diagnostic result ("no errors found").
Capture stdout+stderr as a single string. Pass to scripts/parse-deployment-errors.js:
echo "{escaped-output}" | node "${CLAUDE_PLUGIN_ROOT}/scripts/parse-deployment-errors.js"
Parse the JSON findings array. If the upload succeeded with no errors, note this and skip to Phase 5 with an empty findings list.
Only run if .solution-manifest.json exists.
…
Integrate Power Automate cloud flows into Power Pages with generated metadata and code.
Set up Power Platform Pipelines for automated Power Pages deployments.
Review and fix Power Pages security headers, CSP, CORS, cookies, and embedding settings.
Run an end-to-end Power Pages security review with a consolidated HTML report.
Test deployed Power Pages sites with browsing, crawling, and API verification.
Create and execute a reviewable ALM plan for Power Pages deployments.
Push error logs, inspect code, and generate diagnostic reports automatically.
Build and deploy an existing Power Pages code site to a target environment.
Import Dataverse solution zips into target environments with staged validation.
Probe live APIs and explain failures with root causes and confidence.
Connect AI to Microsoft Dataverse for everyday record CRUD operations.
Identify common bugs, version conflicts, and state machine failures faster.