[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699H158C8S67AKFKVEYM2QB":3,"skill-same:01M699H158C8S67AKFKVEYM2QB":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":17,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":62},"01M699H158C8S67AKFKVEYM2QB","debug-agent","流水线与客户问题诊断","Diagnose a pipeline failure or customer issue end-to-end. Accepts a log path, error text, ADO work item ID, or GitHub issue URL.","端到端诊断流水线失败或客户问题。可接受日志路径、错误文本、ADO 工作项 ID 或 GitHub issue URL。","microsoft\u002Fpowerplatform-build-tools","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M699GTRTXQ8RXT9GYEEEFQRZ",315,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug-agent\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33],"debug agent","github","customer","2026-11-10 10:12:30",false,"---\nname: debug-agent\ndescription: Diagnose a pipeline failure or customer issue end-to-end. Accepts a log path, error text, ADO work item ID, or GitHub issue URL.\nuser-invocable: true\nargument-hint: \"\u003Clog-file-path | error-text | ado-id | github-issue-url>\"\n---\n\n# Debug Agent\n\nDiagnose a pipeline failure or customer issue end-to-end.\nAccepts a log file path, pasted error text, ADO work item ID, or GitHub issue URL.\nDetermines ownership, resolves if PPBT-owned, or produces a precise triage package for the right team.\n\nInvoke as: `\u002Fdebug-agent \u003Clog-file-path | error-text | issue-url | ado-id>`\n\n**Works autonomously through all steps. One exception: pauses to request pipeline logs if they are referenced in an ICM\u002Fwork item but not yet provided — log evidence is required before classifying the failure layer.**\n\n---\n\n## Step 0 — Ingest the input\n\nDetermine input type:\n\n- **File path** (`.txt`, `.log`, or similar): read it with the `Read` tool\n- **ADO work item** (`dev.azure.com\u002F...` URL or bare integer): `az boards work-item show --id \u003Cid> 2>&1`\n- **GitHub issue** (`github.com\u002F...\u002Fissues\u002F\u003Cn>`): `gh issue view \u003Cn> --comments 2>&1`\n- **Pasted text**: use as-is\n\nExtract and print:\n```text\nInput summary:\n- Type: \u003Cfile | ado | github | text>\n- Task\u002Ftool identified: \u003Cname from log header, or \"unknown\">\n- Error snippet: \u003Cfirst clear error line, or \"none found\">\n- Timestamp range: \u003Cstart → end>\n- Deployment result: \u003CSUCCESS | FAILED | unknown>\n```\n\n### Step 0b — Check for missing logs\n\nIf input is an ICM or ADO work item AND any of the following are true:\n- Custom field `LogsAttached` = `\"Yes\"`\n- Description mentions \"logs attached\" or \"see attachment\"\n- Issue cannot be diagnosed from text alone (no error snippet, no pac CLI output visible)\n\nAND no log file path or log content was provided by the user:\n\n→ **STOP. Prompt the user:**\n```\nPipeline logs are attached to this ICM\u002Fwork item but aren't accessible via API.\nPlease download the logs from the portal and provide the folder path.\nExample: C:\\Users\\\u003Cyou>\\Downloads\\\n\nOnce you share the path, I'll read the logs and continue the analysis from Step 1.\n```\n\n**Do not proceed to Step 1 until log content is available. Do NOT classify the failure layer, assign ownership, or draw conclusions based solely on the ICM title or description — log evidence is mandatory.**\nIf the user confirms no logs exist or they are unavailable, continue with `Confidence: low` noted throughout.\n\n---\n\n## Step 1 — Verify PPBT is involved\n\n### ADO (Azure DevOps) — PPBT task identifiers\n\nEvery PPBT v2 task follows the pattern: `microsoft-IsvExpTools.PowerPlatform-BuildTools.\u003Ctask-id>.\u003CTaskClass>@2`\n\n| Display Name | Task ID (in YAML\u002Flog) | Task Class |\n|---|---|---|\n| Power Platform Tool Installer | `tool-installer` | `PowerPlatformToolInstaller@2` |\n| Power Platform WhoAmI | `whoami` | `PowerPlatformWhoAmi@2` |\n| Power Platform Checker | `checker` | `PowerPlatformChecker@2` |\n| Power Platform Import Solution | `import-solution` | `PowerPlatformImportSolution@2` |\n| Power Platform Export Solution | `export-solution` | `PowerPlatformExportSolution@2` |\n| Power Platform Unpack Solution | `unpack-solution` | `PowerPlatformUnpackSolution@2` |\n| Power Platform Pack Solution | `pack-solution` | `PowerPlatformPackSolution@2` |\n| Power Platform Delete Solution | `delete-solution` | `PowerPlatformDeleteSolution@2` |\n| Power Platform Add Solution Component | `add-solution-component` | `PowerPlatformAddSolutionComponent@2` |\n| Power Platform Apply Solution Upgrade | `apply-solution-upgrade` | `PowerPlatformApplySolutionUpgrade@2` |\n| Power Platform Publish Customizations | `publish-customizations` | `PowerPlatformPublishCustomizations@2` |\n| Power Platform Set Solution Version | `set-solution-version` | `PowerPlatformSetSolutionVersion@2` |\n| Power Platform Set Connection Variables | `set-connection-variables` | `PowerPlatformSetConnectionVariables@2` |\n| Power Platform Deploy Package | `deploy-package` | `PowerPlatformDeployPackage@2` |\n| Power Platform Create Environment | `create-environment` | `PowerPlatformCreateEnvironment@2` |\n| Power Platform Delete Environment | `delete-environment` | `PowerPlatformDeleteEnvironment@2` |\n| Power Platform Assign User | `assign-user` | `PowerPlatformAssignUser@2` |\n| Power Platform Reset Environment | `reset-environment` | `PowerPlatformResetEnvironment@2` |\n| Power Platform Backup Environment | `backup-environment` | `PowerPlatformBackupEnvironment@2` |\n| Power Platform Copy Environment | `copy-environment` | `PowerPlatformCopyEnvironment@2` |\n| Power Platform Restore Environment | `restore-environment` | `PowerPlatformRestoreEnvironment@2` |\n| Export Dataverse Data | `export-data` | `PowerPlatformExportData@2` |\n| Import Dataverse Data | `import-data` | `PowerPlatformImportData@2` |\n| Power Platform Download PAPortal | `download-paportal` | `PowerPlatformDownloadPaportal@2` |\n| Power Platform Upload PAPortal | `upload-paportal` | `PowerPlatformUploadPaportal@2` |\n\n**PPBT signals** (any one is sufficient):\n- Task class matches any entry in the table above\n- Author is `Microsoft` (not `Wael Hamze` or other community authors)\n- Log contains `POWERPLATFORMTOOLS_PACCLIPATH` or `PP_TOOLS_AUTOMATION_AGENT`\n- pac CLI invoked: lines containing `pac solution`, `pac auth`, `pac env`, `pac admin`, `pac package`\n- `BuildTools.EnvironmentUrl` pipeline variable present\n\n### GitHub Actions — PPBT action identifiers\n\nAll PPBT GitHub Actions use: `microsoft\u002Fpowerplatform-actions\u002F\u003Caction-name>@v1`\n\n| Action | `uses:` value |\n|---|---|\n| Install Power Platform Tools | `microsoft\u002Fpowerplatform-actions\u002Factions-install@v1` |\n| WhoAmI | `microsoft\u002Fpowerplatform-actions\u002FwhoAmI@v1` |\n| Import Solution | `microsoft\u002Fpowerplatform-actions\u002Fimport-solution@v1` |\n| Export Solution | `microsoft\u002Fpowerplatform-actions\u002Fexport-solution@v1` |\n| Unpack Solution | `microsoft\u002Fpowerplatform-actions\u002Funpack-solution@v1` |\n| Pack Solution | `microsoft\u002Fpowerplatform-actions\u002Fpack-solution@v1` |\n| Publish Customizations | `microsoft\u002Fpowerplatform-actions\u002Fpublish-solution@v1` |\n| Clone Solution | `microsoft\u002Fpowerplatform-actions\u002Fclone-solution@v1` |\n| Check Solution | `microsoft\u002Fpowerplatform-actions\u002Fcheck-solution@v1` |\n| Upgrade Solution | `microsoft\u002Fpowerplatform-actions\u002Fupgrade-solution@v1` |\n| Deploy Package | `microsoft\u002Fpowerplatform-actions\u002Fdeploy-package@v1` |\n| Upload PAPortal | `microsoft\u002Fpowerplatform-actions\u002Fupload-paportal@v1` |\n| Catalog Install | `microsoft\u002Fpowerplatform-actions\u002Finstall@v1` |\n| Catalog Submit | `microsoft\u002Fpowerplatform-actions\u002Fsubmit@v1` |\n| Catalog Status | `microsoft\u002Fpowerplatform-actions\u002Fstatus@v1` |\n\n**Not-PPBT signals — deflect immediately:**\n- Author: `Wael Hamze` → CRM Build Tools (community)\n- `Microsoft.Xrm.Tooling.*` PowerShell → old XRM Tooling\n- `PackageDeployer` PowerShell task (v12.x) → Wael Hamze legacy tooling\n- Task version `@v1` **and** no `microsoft\u002Fpowerplatform-actions` prefix → unrelated action\n\nIf **not PPBT**: skip to Step 5 (non-PPBT triage) immediately.\n\n---\n\n## Step 2 — Identify the failing task and classify the layer\n\n### 2a — Map the failing task to its inputs\n\nUse the tables below to check whether required inputs are present in the log or YAML.\n\n#### Helper tasks\n\n**Tool Installer** (`tool-installer`) — must be FIRST task in every pipeline\u002Fworkflow\n- No required inputs beyond defaults\n- Critical: if missing → all other tasks fail with \"pac.exe not found\" or `POWERPLATFORMTOOLS_PACCLIPATH not set`\n- Optional: `AddToolsToPath: true` (adds pac to PATH for script tasks)\n\n**WhoAmI** (`whoami` \u002F `whoAmI`)\n- Required: `authenticationType` + one of `PowerPlatformEnvironment` or `PowerPlatformSPN`\n- GitHub: `environment-url` + auth credentials (`user-name`\u002F`password-secret` OR `app-id`\u002F`client-secret`\u002F`tenant-id`)\n- Use: connectivity check early in pipeline — failure here = auth or network issue, not solution issue\n\n#### Quality check\n\n**Checker** (`checker` \u002F `check-solution`)\n- Required: `PowerPlatformSPN` (SPN only — username\u002Fpassword NOT supported for checker)\n- Required: `RuleSet` GUID\n- Optional: `UseDefaultPACheckerEndpoint` (default true) — if false, must set `CustomPACheckerEndpoint`\n- Output: SARIF file as pipeline artifact (`ArtifactDestinationName`)\n- Common issue: checker fails for username\u002Fpassword connections — SPN required\n\n#### Solution tasks\n\n**Import Solution** (`import-solution`)\n- Required: service connection + `SolutionInputFile`\n- Key options: `AsyncOperation: true` (recommended for large solutions — avoids 4-min timeout), `HoldingSolution` (for upgrade pattern), `UseDeploymentSettingsFile` (for connection references + env vars)\n- Common issue: sync import times out on large solutions → set `AsyncOperation: true`, `MaxAsyncWaitTime: 60`\n- Common issue: connection references not set → use `DeploymentSettingsFile`\n\n**Export Solution** (`export-solution`)\n- Required: service connection + `SolutionName` + `SolutionOutputFile`\n- Note: use solution *Name* not *Display Name*\n- `Managed: true` exports as managed\n\n**Apply Solution Upgrade** (`apply-solution-upgrade`)\n- Required: service connection + `SolutionName`\n- Use after Import with `HoldingSolution: true`\n\n**Pack \u002F Unpack Solution** — local operations, no service connection needed\n- `SolutionType`: Managed | Unmanaged | Both\n\n**Set Solution Version** (`set-solution-version`)\n- Required: service connection + `SolutionName` + `SolutionVersionNumber`\n- Tip: use `$(Build.BuildId)` as version number\n\n**Set Connection Variables** (`set-connection-variables`)\n- Sets pipeline variables: `BuildTools.TenantId`, `BuildTools.ApplicationId`, `BuildTools.ClientSecret`, `BuildTools.DataverseConnectionString`\n- Username\u002Fpassword auth also requires `ApplicationId` and `RedirectUri`\n\n**Deploy Package** (`deploy-package`)\n- Required: service connection + `PackageFile` (.dll)\n- GitHub Actions: Windows runner only (`runs-on: windows-latest`)\n\n#### Environment management tasks\n\n**Create Environment** (`create-environment`)\n- Required: `DisplayName`, `LocationName`, `EnvironmentSku`, `CurrencyName`, `LanguageName`, `DomainName`\n- Side effect: sets `BuildTools.EnvironmentUrl` pipeline variable — subsequent tasks use this automatically\n- Note: `BuildTools.EnvironmentUrl` overrides any service connection URL for downstream tasks\n\n**Copy Environment** (`copy-environment`)\n- Required: `TargetEnvironmentUrl`\n- `CopyType`: FullCopy (data + metadata) or MinimalCopy (metadata only)\n\n**Restore Environment** (`restore-environment`)\n- `RestoreLatestBackup: true` OR provide `RestoreTimeStamp` in `mm\u002Fdd\u002Fyyyy hh:mm` format\n\n**Export\u002FImport Dataverse Data**\n- Schema file created via Configuration Migration tool\n- Import accepts zip file or folder with `data-schema.xml` + `data.xml`\n\n#### Power Pages tasks\n- `download-paportal` \u002F `upload-paportal`: requires `WebsiteId` GUID, optional `ModelVersion` (1=standard, 2=enhanced data model)\n\n### 2b — When is it a PPBT bug (this repo)?\n\nPPBT owns exactly the boundary between the ADO\u002FGitHub pipeline and cli-wrapper.\nA bug is PPBT's if the **wrong value reaches cli-wrapper** or **no value reaches cli-wrapper** when the user configured the pipeline correctly.\n\n**PPBT owns it — fix in this repo — when:**\n\n| Symptom | Root cause | File to fix |\n|---------|-----------|------------|\n| Task input exists in task.json but is silently ignored \u002F not passed to pac | `index.ts` doesn't read it via `parameterMap` | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n| Task input works on Windows but breaks on Linux (path, binary location) | `CliLocator.ts` platform logic | `src\u002Fhost\u002FCliLocator.ts` |\n| Wrong cloud instance sent to pac for a valid service connection | `resolveCloudInstance()` missing a cloud mapping | `src\u002Fparams\u002Fauth\u002FgetCredentials.ts` |\n| `BuildTools.EnvironmentUrl` not set after `create-environment` runs | `index.ts` not calling `tl.setVariable` | `src\u002Ftasks\u002Fcreate-environment\u002Findex.ts` |\n| Service connection field (e.g. `tenantId`) extracted as null\u002Fundefined | `getCredentials.ts` reading wrong endpoint field | `src\u002Fparams\u002Fauth\u002FgetCredentials.ts` |\n| Environment URL fallback chain skips a valid source | `getEnvironmentUrl.ts` fallback order wrong | `src\u002Fparams\u002Fauth\u002FgetEnvironmentUrl.ts` |\n| Tasks appear in wrong pipeline stage \u002F wrong task GUIDs | GUID substitution bug in pack step | `gulp\u002Fpack.mjs`, `extension\u002Ftask-metadata.json` |\n| Tool installer fails to download pac or set `POWERPLATFORMTOOLS_PACCLIPATH` | Installer task logic | `src\u002Ftasks\u002Ftool-installer\u002Findex.ts` |\n| New task input added to `task.json` but not wired through to pac | `index.ts` `parameterMap` not updated | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n| Task breaks after cli-wrapper version bump (interface mismatch) | `BuildToolsHost` or `BuildToolsRunnerParams` out of sync | `src\u002Fhost\u002FBuildToolsHost.ts`, `src\u002Fhost\u002FBuildToolsRunnerParams.ts` |\n| Error message from task is unhelpful \u002F missing context | Better error surfacing needed | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n\n**PPBT does NOT own it — do not fix in this repo — when:**\n\n| Symptom | Actual owner |\n|---------|-------------|\n| User forgot to add tool-installer to pipeline | User\u002Fpipeline config — document the fix, no code change |\n| User passed solution display name instead of unique name | User error |\n| cli-wrapper assembles wrong pac args (but PPBT passed the right values to it) | cli-wrapper repo |\n| pac CLI crashes or returns a wrong result | pac CLI \u002F admin-tools |\n| Dataverse operation fails (solution import engine, HTTP 5xx) | CDS \u002F Solution Framework |\n| Auth fails because service connection credentials are wrong\u002Fexpired | User \u002F service connection admin |\n| MFA required on username\u002Fpassword connection | User — must switch to SPN |\n\n**The test:** ask \"If the user configured the pipeline exactly right, would this still fail?\" If yes → PPBT bug. If no → user error or downstream team.\n\n### 2c — Classify the failure layer\n\n```\nAzure DevOps \u002F GitHub Actions pipeline\n  → [L1] user\u002Fpipeline config error (task ordering, missing inputs, wrong auth type)\n  → [L2] PPBT code bug  (src\u002Ftasks\u002F\u003Cname>\u002Findex.ts, getCredentials.ts, CliLocator.ts, etc.)\n  → [L3] cli-wrapper bug  (@microsoft\u002Fpowerplatform-cli-wrapper\u002Fdist\u002Factions\u002F)\n  → [L4] pac CLI binary  (pac.exe \u002F pac)\n       └─ [L4-admin]  pac env\u002Fadmin commands → admin-tools team\n       └─ [L4-pac]    pac CLI crash \u002F .NET exception → pac CLI team\n       └─ [L4→L5]     pac correctly relays Dataverse error → CDS team\n  → [L5] Power Platform API  (Dataverse \u002F crm.dynamics.com)\n```\n\n| Symptom | Layer | Owner |\n|---------|-------|-------|\n| `pac.exe not found` \u002F `POWERPLATFORMTOOLS_PACCLIPATH not set` | L1 | User — tool-installer step missing |\n| `BuildTools.EnvironmentUrl` targets wrong env | L1 | User — task ordering side effect |\n| Required input missing because user left it blank | L1 | User — pipeline config |\n| Checker fails with username\u002Fpassword | L1 | User — SPN required for checker |\n| Import times out (~4 min) on large solution | L1 | User — set `AsyncOperation: true` |\n| Input exists in task.json but is ignored \u002F not passed to pac | L2 | **PPBT bug** — `index.ts` parameterMap |\n| `resolveCloudInstance()` returns wrong cloud for valid endpoint | L2 | **PPBT bug** — `getCredentials.ts` |\n| Service connection field extracted as null despite being set | L2 | **PPBT bug** — `getCredentials.ts` |\n| `BuildTools.EnvironmentUrl` not set after create-environment | L2 | **PPBT bug** — `index.ts` missing `setVariable` |\n| Task breaks on Linux but works on Windows | L2 | **PPBT bug** — `CliLocator.ts` |\n| Wrong task GUIDs \u002F tasks conflict in marketplace | L2 | **PPBT bug** — `pack.mjs` \u002F `task-metadata.json` |\n| `auth create failed` after correct args passed | L3 | cli-wrapper auth bug |\n| `Cannot resolve AAD authority` \u002F wrong AAD endpoint | L3 | cli-wrapper `resolveCloudInstance()` |\n| `WhoAmI` fails on non-English agent | L3 | cli-wrapper (known ADO #4846644) |\n| pac CLI crashes \u002F .NET exception inside pac | L4-pac | pac CLI team |\n| `pac env create\u002Fdelete\u002Fbackup\u002Frestore\u002Fcopy` fails | L4-admin | admin-tools team |\n| `pac admin *` command fails | L4-admin | admin-tools team |\n| `pac auth create` crashes after correct args | L4-pac | pac CLI team |\n| `pac solution import\u002Fexport\u002Fpublish` + Dataverse HTTP error | L4→L5 | CDS \u002F Solution Framework |\n| `pac solution check` \u002F checker API error | L4→L5 | Power Apps Checker team |\n| `pac package deploy` + Dataverse-side error | L4→L5 | CDS \u002F Solution Framework |\n| HTTP 4xx\u002F5xx from `crm.dynamics.com` | L5 | CDS \u002F Solution Framework |\n| Solution component errors \u002F missing dependencies | L5 | CDS \u002F Solution Framework |\n| PVA component import failure | L5 | pac CLI team (known IcM 604312672) |\n\n### 2d — pac command → owning team (the critical split)\n\nWhen pac CLI exits non-zero, the owning team depends on **which pac command ran** AND **where the error originates**:\n\n```\npac command                    → Error origin               → Owner\n─────────────────────────────────────────────────────────────────────────────\npac auth create\u002Fclear          → pac crashes \u002F token error  → pac CLI (admin-tools)\npac auth create\u002Fclear          → wrong args from wrapper    → cli-wrapper (L3)\n\npac env create\u002Fdelete\u002F         → any pac-side failure       → admin-tools\n  backup\u002Frestore\u002Fcopy\u002Freset\n\npac admin *                    → any failure                → admin-tools\n\npac solution import            → pac crashes \u002F bad args     → pac CLI (admin-tools)\npac solution import            → Dataverse API error        → CDS \u002F Solution Framework\npac solution import            → PVA component error        → pac CLI (IcM 604312672)\n\npac solution export            → pac crashes \u002F bad args     → pac CLI (admin-tools)\npac solution export            → Dataverse API error        → CDS \u002F Solution Framework\n\npac solution publish           → Dataverse API error        → CDS \u002F Solution Framework\n\npac solution check             → checker service error      → Power Apps Checker team\n\npac package deploy             → pac crashes               → pac CLI (admin-tools)\npac package deploy             → Dataverse-side error       → CDS \u002F Solution Framework\n```\n\n**How to tell pac crash vs Dataverse error:**\n- **pac crash \u002F pac team**: `System.Exception`, `NullReferenceException`, `Unhandled exception`, pac process exits with code 1 and no HTTP status in the message, `InnerException` in .NET stack trace\n- **Dataverse error \u002F CDS team**: HTTP status code in error (`400`, `403`, `404`, `500`), `OrganizationServiceFault`, `ErrorCode:`, `Microsoft.Crm.*` in the message, `ImportJobId`, solution operation GUID, `The import of solution` messages\n- **Auth error \u002F admin-tools or cli-wrapper**: Azure AD \u002F MSAL errors, `AADSTS*` error codes, `interaction_required`, token acquisition errors\n\nPrint:\n```text\nFailing task: \u003Ctask name>\npac command: \u003Cexact pac subcommand, e.g. \"pac solution import\">\nLayer: \u003CL1 | L2 | L3 | L4-pac | L4-admin | L4→L5>\nOwner: \u003CPPBT | cli-wrapper | pac-CLI\u002Fadmin-tools | CDS\u002Fsolution-framework | pipeline-config>\nError origin signal: \u003Cpac crash | Dataverse HTTP error | auth\u002FAAD error | pipeline config>\nConfidence: \u003Chigh | medium | low>\nReasoning: \u003Cone sentence>\n```\n\n### 2d — pac CLI telemetry (L4-pac and L4→L5 only)\n\n**Run this step if and only if the layer is L4-pac or L4→L5.**\n\npac CLI sends telemetry to PPUX Analytics via OneCollector. If the error output contains a Session ID like:\n\n```\nSorry, the app encountered a non recoverable error and will need to terminate.\nSession Id: 57f79894-80fb-4f44-8c94-8f800fc13e63,\nException Type: System.ServiceModel.CommunicationException\n```\n\nExtract the Session ID and run the following Kusto query in [PPUX Analytics](https:\u002F\u002Faka.ms\u002Fppux-analytics) to pull all telemetry events for that session:\n\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n```\n\n**Additional useful queries:**\n\nGet the exact commands executed in the session:\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n| where data_eventModifier == \"Complete\"\n| extend eventInfo = parse_json(data_eventInfo)\n| project eventInfo.command, timestamp\n```\n\nGet all errors in the session:\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n| where data_eventModifier == \"Failed\" or data_severity >= 3\n| project timestamp, data_eventName, data_eventInfo\n```\n\n**If no Session ID is present in the log:** note it and proceed — telemetry lookup not possible without it.\n\nPrint telemetry findings before continuing to Step 3.\n\n---\n\n## Step 3 — Search for known issues (run all in parallel)\n\nExtract 2–3 keywords from the error.\n\n### 3a — GitHub issues\n```bash\ngh search issues --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state open --limit 10 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\ngh search issues --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state closed --limit 5 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\n```\n\n### 3b — Merged PRs\n```bash\ngh search prs --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state merged --limit 5 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\n```\n\n### 3c — ADO work items\n```bash\naz boards query --wiql \"\n  SELECT [System.Id], [System.Title], [System.State], [System.ChangedDate]\n  FROM WorkItems\n  WHERE [System.AreaPath] UNDER 'OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\PPBT Extensions'\n    AND [System.Title] CONTAINS '\u003Ckeyword1>'\n  ORDER BY [System.ChangedDate] DESC\n\" --output json 2>&1\n```\n\n### 3d — Local knowledge base\nRead `memory\u002Fado-knowledge.md` and check `MEMORY.md` known customer issues section.\n\n### Research summary (print before acting)\n```text\nKnown issue match: \u003Cissue\u002FPR\u002FADO ID + title, or \"none\">\nAccepted risk: \u003Cyes — \u003Creason>, or \"no\">\nFix already shipped: \u003Cyes — in PR #\u003Cn> \u002F pac version \u003Cv>, or \"no\">\nRecommended action: \u003Cresolve | triage | deflect | update-pac | pipeline-fix>\n```\n\nIf a confirmed fix already exists in a merged PR or shipped pac CLI version, report it and stop here.\n\n---\n\n## Step 4 — Resolve (L1 pipeline config or L2 build-tools code)\n\n### L1 — Pipeline configuration fix (no code change)\n\nProduce a precise fix instruction:\n\n```text\nPipeline fix required:\n- Issue: \u003Cwhat's wrong>\n- Fix: \u003Cexact YAML or UI step>\n- Reference: \u003Ctask name + parameter from Step 2 tables>\n```\n\nCommon L1 fixes:\n- Missing tool-installer → add `PowerPlatformToolInstaller@2` as first step\n- Import timeout → add `AsyncOperation: true` and `MaxAsyncWaitTime: 60`\n- Wrong environment targeted → check `BuildTools.EnvironmentUrl` side effect from create-environment\n- Checker with username\u002Fpassword → switch service connection to SPN\n- Connection references missing → add `UseDeploymentSettingsFile: true` + provide `DeploymentSettingsFile`\n- GitHub Actions: timeout installing pac CLI → add `actions-install@v1` before other actions\n\n### L2 — Build-tools code fix (this repo)\n\n1. Read the relevant `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` and `task.json`\n2. Make the minimal fix\n3. `npm run build 2>&1` — must pass\n4. `npm test 2>&1` — must pass (functional test failures are expected locally — not a blocker)\n5. `git commit -m \"fix: \u003Cdescription> (#\u003Cwork-item-id-if-known>)\"`\n6. Hand off to `\u002Fcreate-pr`\n\n---\n\n## Step 5 — Triage package (L3–L5 and non-PPBT)\n\n### Routing table\n\n| Layer \u002F Signal | Route to | Contact \u002F Repo |\n|---|---|---|\n| L3 — cli-wrapper arg assembly or auth arg bug | **cli-wrapper repo** | GH issue on `microsoft\u002Fpowerplatform-cli-wrapper` |\n| L4-pac — pac CLI crash, .NET exception in pac | **pac CLI \u002F admin-tools** | ADO: `OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\Deployment Hub\\Admin` |\n| L4-admin — `pac env *` or `pac admin *` failure | **admin-tools** | ADO: `OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\Deployment Hub\\Admin` |\n| L4→L5 — `pac solution import\u002Fexport\u002Fpublish` + Dataverse HTTP error | **CDS \u002F Solution Framework** | ADO: `OneCRM\\CDS` (use pac team as router if area unclear) |\n| L4→L5 — `pac solution check` \u002F checker API | **Power Apps Checker service** | Route via PAC team or CDS |\n| L5 — PVA component import failure | **pac CLI team** (known IcM 604312672) | ADO: `Deployment Hub\\Admin` |\n| L5 — pure Dataverse API error, no pac involvement | **CDS \u002F Solution Framework** | ADO: `OneCRM\\CDS` |\n| Non-PPBT (Wael Hamze, XRM Tooling) | **Deflect** | Community tool — not Microsoft PPBT |\n| ADO Server 2020 on-prem | **Deflect** | Not supported — cloud or Server 2022+ only |\n\n### Triage package\n\n**This is mandatory output for ALL L3–L5 and non-PPBT cases. You MUST produce this block — do not skip it, summarize it, or replace it with prose.**\n\nFor **non-PPBT deflects** (Wael Hamze, XRM Tooling, ADO Server 2020), fill in:\n- `Route to: Deflect to CSS \u002F community tool owner`\n- `ADO area path: N\u002FA`\n- `PPBT is not the root cause because:` — cite the exact log signal that proves it (author, task class, tool name, absence of PPBT signals)\n\n```text\n═══════════════════════════════════════════════════════\nTRIAGE PACKAGE\n═══════════════════════════════════════════════════════\nRoute to:        \u003Cteam name | \"Deflect — community tool\">\nADO area path:   \u003Cpath, or N\u002FA>\nGitHub repo:     \u003Crepo, or N\u002FA>\n\nIssue summary:\n  \u003C2–3 sentence plain-English description of what failed and where>\n\nReproduction evidence:\n  Platform:      \u003CADO | GitHub Actions>\n  Task\u002FAction:   \u003Cname + version>\n  pac CLI ver:   \u003Cversion from log, or unknown>\n  Auth type:     \u003CSPN | Username\u002FPassword | Workload Identity Federation>\n  Environment:   \u003Ccloud \u002F region if visible>\n  Error line:    \u003Cexact log line that proves the failure>\n  Timestamp:     \u003CISO timestamp>\n\nPPBT is not the root cause because:\n  \u003Cone sentence — e.g. \"pac CLI exited with code 1 after a Dataverse HTTP 500 on the import endpoint\">\n\nSuggested next steps for the receiving team:\n  1. \u003Caction>\n  2. \u003Caction>\n\nRelated known issues:\n  \u003CADO ID \u002F GH issue \u002F IcM, or \"none found\">\n\nLog file \u002F evidence:\n  \u003Cfile path, or \"pasted text — see conversation\">\n═══════════════════════════════════════════════════════\n```\n\n---\n\n## Step 6 — Outcome summary\n\nAlways end with a plain-English paragraph covering:\n- What failed and where in the call chain\n- Whether PPBT owns it\n- What was done (fix applied \u002F triage package \u002F deflected)\n- Any follow-up needed from the user\n\n---\n\n## Quick-reference: authentication types\n\n| ADO `authenticationType` | GitHub secrets | pac CLI args | MFA support |\n|---|---|---|---|\n| `PowerPlatformSPN` (recommended) | `app-id` + `client-secret` + `tenant-id` | `--applicationId --clientSecret --tenant` | Yes |\n| `PowerPlatformEnvironment` (user\u002Fpass) | `user-name` + `password-secret` | `--username --password` | No |\n| Workload Identity Federation | ADO service connection only | `--azureDevOpsFederated` | Yes |\n| Managed Identity | ADO service connection only | `--managedIdentity` | Yes |\n\n## Quick-reference: task ordering rules\n\n```\ntool-installer \u002F actions-install     ← MUST run first (sets POWERPLATFORMTOOLS_PACCLIPATH)\n      │\n      ├── whoAmI                     ← optional connectivity check\n      │\n      ├── create-environment         → sets BuildTools.EnvironmentUrl (auto-used by downstream tasks)\n      │         │\n      │         ├── import-solution  ← use AsyncOperation:true for large solutions\n      │         ├── apply-solution-upgrade  ← only after import with HoldingSolution:true\n      │         ├── export-solution\n      │         ├── pack-solution \u002F unpack-solution  (local, no connection needed)\n      │         ├── publish-customizations\n      │         ├── set-solution-version\n      │         ├── checker          ← SPN only, no username\u002Fpassword\n      │         └── deploy-package   ← Windows runner only (GitHub Actions)\n      │\n      ├── backup-environment → restore-environment\n      ├── copy-environment\n      └── delete-environment\n```\n\n## Quick-reference: common error → fix mapping\n\n| Error message \u002F symptom | Likely cause | Fix |\n|---|---|---|\n| `pac.exe not found` \u002F `POWERPLATFORMTOOLS_PACCLIPATH not set` | tool-installer not run first | Add `PowerPlatformToolInstaller@2` as first pipeline step |\n| Task times out at 4 minutes (import) | Sync import of large solution | Add `AsyncOperation: true` |\n| `auth create failed` | Wrong credentials or cloud instance | Check service connection; verify `cloudInstance` via `resolveCloudInstance()` |\n| `Cannot resolve AAD authority` | Wrong cloud \u002F blocked AAD endpoint | Check `cloudInstance`, check network\u002Fproxy on agent |\n| `WhoAmI failed` on non-English agent | cli-wrapper locale bug (ADO #4846644) | Set `LANG=en_US.UTF-8` on agent; workaround only |\n| Connection references not configured | `DeploymentSettingsFile` not provided | Set `UseDeploymentSettingsFile: true` and provide settings file |\n| Checker fails with username\u002Fpassword | Checker only supports SPN | Switch service connection to SPN |\n| `deploy-package` fails on Linux | Windows-only task | Use `runs-on: windows-latest` (GitHub Actions) |\n| PVA component import fails | pac CLI issue (IcM 604312672) | Update pac CLI version in `nuget.json`; escalate to pac team if persists |\n| `BuildTools.EnvironmentUrl` wrong env | Create-environment side effect overriding | Explicitly set `Environment` input on subsequent tasks to override |\n| Timeout installing pac (GitHub Actions) | pac CLI install race condition | Add `actions-install@v1` before other actions |\n| Old v1 tasks used with v2 tasks | Cannot mix task versions | Upgrade all tasks to `@v2` |\n","# Debug Agent\n\nDiagnose a pipeline failure or customer issue end-to-end.\nAccepts a log file path, pasted error text, ADO work item ID, or GitHub issue URL.\nDetermines ownership, resolves if PPBT-owned, or produces a precise triage package for the right team.\n\nInvoke as: `\u002Fdebug-agent \u003Clog-file-path | error-text | issue-url | ado-id>`\n\n**Works autonomously through all steps. One exception: pauses to request pipeline logs if they are referenced in an ICM\u002Fwork item but not yet provided — log evidence is required before classifying the failure layer.**\n\n---\n\n## Step 0 — Ingest the input\n\nDetermine input type:\n\n- **File path** (`.txt`, `.log`, or similar): read it with the `Read` tool\n- **ADO work item** (`dev.azure.com\u002F...` URL or bare integer): `az boards work-item show --id \u003Cid> 2>&1`\n- **GitHub issue** (`github.com\u002F...\u002Fissues\u002F\u003Cn>`): `gh issue view \u003Cn> --comments 2>&1`\n- **Pasted text**: use as-is\n\nExtract and print:\n```text\nInput summary:\n- Type: \u003Cfile | ado | github | text>\n- Task\u002Ftool identified: \u003Cname from log header, or \"unknown\">\n- Error snippet: \u003Cfirst clear error line, or \"none found\">\n- Timestamp range: \u003Cstart → end>\n- Deployment result: \u003CSUCCESS | FAILED | unknown>\n```\n\n### Step 0b — Check for missing logs\n\nIf input is an ICM or ADO work item AND any of the following are true:\n- Custom field `LogsAttached` = `\"Yes\"`\n- Description mentions \"logs attached\" or \"see attachment\"\n- Issue cannot be diagnosed from text alone (no error snippet, no pac CLI output visible)\n\nAND no log file path or log content was provided by the user:\n\n→ **STOP. Prompt the user:**\n```\nPipeline logs are attached to this ICM\u002Fwork item but aren't accessible via API.\nPlease download the logs from the portal and provide the folder path.\nExample: C:\\Users\\\u003Cyou>\\Downloads\\\n\nOnce you share the path, I'll read the logs and continue the analysis from Step 1.\n```\n\n**Do not proceed to Step 1 until log content is available. Do NOT classify the failure layer, assign ownership, or draw conclusions based solely on the ICM title or description — log evidence is mandatory.**\nIf the user confirms no logs exist or they are unavailable, continue with `Confidence: low` noted throughout.\n\n---\n\n## Step 1 — Verify PPBT is involved\n\n### ADO (Azure DevOps) — PPBT task identifiers\n\nEvery PPBT v2 task follows the pattern: `microsoft-IsvExpTools.PowerPlatform-BuildTools.\u003Ctask-id>.\u003CTaskClass>@2`\n\n| Display Name | Task ID (in YAML\u002Flog) | Task Class |\n|---|---|---|\n| Power Platform Tool Installer | `tool-installer` | `PowerPlatformToolInstaller@2` |\n| Power Platform WhoAmI | `whoami` | `PowerPlatformWhoAmi@2` |\n| Power Platform Checker | `checker` | `PowerPlatformChecker@2` |\n| Power Platform Import Solution | `import-solution` | `PowerPlatformImportSolution@2` |\n| Power Platform Export Solution | `export-solution` | `PowerPlatformExportSolution@2` |\n| Power Platform Unpack Solution | `unpack-solution` | `PowerPlatformUnpackSolution@2` |\n| Power Platform Pack Solution | `pack-solution` | `PowerPlatformPackSolution@2` |\n| Power Platform Delete Solution | `delete-solution` | `PowerPlatformDeleteSolution@2` |\n| Power Platform Add Solution Component | `add-solution-component` | `PowerPlatformAddSolutionComponent@2` |\n| Power Platform Apply Solution Upgrade | `apply-solution-upgrade` | `PowerPlatformApplySolutionUpgrade@2` |\n| Power Platform Publish Customizations | `publish-customizations` | `PowerPlatformPublishCustomizations@2` |\n| Power Platform Set Solution Version | `set-solution-version` | `PowerPlatformSetSolutionVersion@2` |\n| Power Platform Set Connection Variables | `set-connection-variables` | `PowerPlatformSetConnectionVariables@2` |\n| Power Platform Deploy Package | `deploy-package` | `PowerPlatformDeployPackage@2` |\n| Power Platform Create Environment | `create-environment` | `PowerPlatformCreateEnvironment@2` |\n| Power Platform Delete Environment | `delete-environment` | `PowerPlatformDeleteEnvironment@2` |\n| Power Platform Assign User | `assign-user` | `PowerPlatformAssignUser@2` |\n| Power Platform Reset Environment | `reset-environment` | `PowerPlatformResetEnvironment@2` |\n| Power Platform Backup Environment | `backup-environment` | `PowerPlatformBackupEnvironment@2` |\n| Power Platform Copy Environment | `copy-environment` | `PowerPlatformCopyEnvironment@2` |\n| Power Platform Restore Environment | `restore-environment` | `PowerPlatformRestoreEnvironment@2` |\n| Export Dataverse Data | `export-data` | `PowerPlatformExportData@2` |\n| Import Dataverse Data | `import-data` | `PowerPlatformImportData@2` |\n| Power Platform Download PAPortal | `download-paportal` | `PowerPlatformDownloadPaportal@2` |\n| Power Platform Upload PAPortal | `upload-paportal` | `PowerPlatformUploadPaportal@2` |\n\n**PPBT signals** (any one is sufficient):\n- Task class matches any entry in the table above\n- Author is `Microsoft` (not `Wael Hamze` or other community authors)\n- Log contains `POWERPLATFORMTOOLS_PACCLIPATH` or `PP_TOOLS_AUTOMATION_AGENT`\n- pac CLI invoked: lines containing `pac solution`, `pac auth`, `pac env`, `pac admin`, `pac package`\n- `BuildTools.EnvironmentUrl` pipeline variable present\n\n### GitHub Actions — PPBT action identifiers\n\nAll PPBT GitHub Actions use: `microsoft\u002Fpowerplatform-actions\u002F\u003Caction-name>@v1`\n\n| Action | `uses:` value |\n|---|---|\n| Install Power Platform Tools | `microsoft\u002Fpowerplatform-actions\u002Factions-install@v1` |\n| WhoAmI | `microsoft\u002Fpowerplatform-actions\u002FwhoAmI@v1` |\n| Import Solution | `microsoft\u002Fpowerplatform-actions\u002Fimport-solution@v1` |\n| Export Solution | `microsoft\u002Fpowerplatform-actions\u002Fexport-solution@v1` |\n| Unpack Solution | `microsoft\u002Fpowerplatform-actions\u002Funpack-solution@v1` |\n| Pack Solution | `microsoft\u002Fpowerplatform-actions\u002Fpack-solution@v1` |\n| Publish Customizations | `microsoft\u002Fpowerplatform-actions\u002Fpublish-solution@v1` |\n| Clone Solution | `microsoft\u002Fpowerplatform-actions\u002Fclone-solution@v1` |\n| Check Solution | `microsoft\u002Fpowerplatform-actions\u002Fcheck-solution@v1` |\n| Upgrade Solution | `microsoft\u002Fpowerplatform-actions\u002Fupgrade-solution@v1` |\n| Deploy Package | `microsoft\u002Fpowerplatform-actions\u002Fdeploy-package@v1` |\n| Upload PAPortal | `microsoft\u002Fpowerplatform-actions\u002Fupload-paportal@v1` |\n| Catalog Install | `microsoft\u002Fpowerplatform-actions\u002Finstall@v1` |\n| Catalog Submit | `microsoft\u002Fpowerplatform-actions\u002Fsubmit@v1` |\n| Catalog Status | `microsoft\u002Fpowerplatform-actions\u002Fstatus@v1` |\n\n**Not-PPBT signals — deflect immediately:**\n- Author: `Wael Hamze` → CRM Build Tools (community)\n- `Microsoft.Xrm.Tooling.*` PowerShell → old XRM Tooling\n- `PackageDeployer` PowerShell task (v12.x) → Wael Hamze legacy tooling\n- Task version `@v1` **and** no `microsoft\u002Fpowerplatform-actions` prefix → unrelated action\n\nIf **not PPBT**: skip to Step 5 (non-PPBT triage) immediately.\n\n---\n\n## Step 2 — Identify the failing task and classify the layer\n\n### 2a — Map the failing task to its inputs\n\nUse the tables below to check whether required inputs are present in the log or YAML.\n\n#### Helper tasks\n\n**Tool Installer** (`tool-installer`) — must be FIRST task in every pipeline\u002Fworkflow\n- No required inputs beyond defaults\n- Critical: if missing → all other tasks fail with \"pac.exe not found\" or `POWERPLATFORMTOOLS_PACCLIPATH not set`\n- Optional: `AddToolsToPath: true` (adds pac to PATH for script tasks)\n\n**WhoAmI** (`whoami` \u002F `whoAmI`)\n- Required: `authenticationType` + one of `PowerPlatformEnvironment` or `PowerPlatformSPN`\n- GitHub: `environment-url` + auth credentials (`user-name`\u002F`password-secret` OR `app-id`\u002F`client-secret`\u002F`tenant-id`)\n- Use: connectivity check early in pipeline — failure here = auth or network issue, not solution issue\n\n#### Quality check\n\n**Checker** (`checker` \u002F `check-solution`)\n- Required: `PowerPlatformSPN` (SPN only — username\u002Fpassword NOT supported for checker)\n- Required: `RuleSet` GUID\n- Optional: `UseDefaultPACheckerEndpoint` (default true) — if false, must set `CustomPACheckerEndpoint`\n- Output: SARIF file as pipeline artifact (`ArtifactDestinationName`)\n- Common issue: checker fails for username\u002Fpassword connections — SPN required\n\n#### Solution tasks\n\n**Import Solution** (`import-solution`)\n- Required: service connection + `SolutionInputFile`\n- Key options: `AsyncOperation: true` (recommended for large solutions — avoids 4-min timeout), `HoldingSolution` (for upgrade pattern), `UseDeploymentSettingsFile` (for connection references + env vars)\n- Common issue: sync import times out on large solutions → set `AsyncOperation: true`, `MaxAsyncWaitTime: 60`\n- Common issue: connection references not set → use `DeploymentSettingsFile`\n\n**Export Solution** (`export-solution`)\n- Required: service connection + `SolutionName` + `SolutionOutputFile`\n- Note: use solution *Name* not *Display Name*\n- `Managed: true` exports as managed\n\n**Apply Solution Upgrade** (`apply-solution-upgrade`)\n- Required: service connection + `SolutionName`\n- Use after Import with `HoldingSolution: true`\n\n**Pack \u002F Unpack Solution** — local operations, no service connection needed\n- `SolutionType`: Managed | Unmanaged | Both\n\n**Set Solution Version** (`set-solution-version`)\n- Required: service connection + `SolutionName` + `SolutionVersionNumber`\n- Tip: use `$(Build.BuildId)` as version number\n\n**Set Connection Variables** (`set-connection-variables`)\n- Sets pipeline variables: `BuildTools.TenantId`, `BuildTools.ApplicationId`, `BuildTools.ClientSecret`, `BuildTools.DataverseConnectionString`\n- Username\u002Fpassword auth also requires `ApplicationId` and `RedirectUri`\n\n**Deploy Package** (`deploy-package`)\n- Required: service connection + `PackageFile` (.dll)\n- GitHub Actions: Windows runner only (`runs-on: windows-latest`)\n\n#### Environment management tasks\n\n**Create Environment** (`create-environment`)\n- Required: `DisplayName`, `LocationName`, `EnvironmentSku`, `CurrencyName`, `LanguageName`, `DomainName`\n- Side effect: sets `BuildTools.EnvironmentUrl` pipeline variable — subsequent tasks use this automatically\n- Note: `BuildTools.EnvironmentUrl` overrides any service connection URL for downstream tasks\n\n**Copy Environment** (`copy-environment`)\n- Required: `TargetEnvironmentUrl`\n- `CopyType`: FullCopy (data + metadata) or MinimalCopy (metadata only)\n\n**Restore Environment** (`restore-environment`)\n- `RestoreLatestBackup: true` OR provide `RestoreTimeStamp` in `mm\u002Fdd\u002Fyyyy hh:mm` format\n\n**Export\u002FImport Dataverse Data**\n- Schema file created via Configuration Migration tool\n- Import accepts zip file or folder with `data-schema.xml` + `data.xml`\n\n#### Power Pages tasks\n- `download-paportal` \u002F `upload-paportal`: requires `WebsiteId` GUID, optional `ModelVersion` (1=standard, 2=enhanced data model)\n\n### 2b — When is it a PPBT bug (this repo)?\n\nPPBT owns exactly the boundary between the ADO\u002FGitHub pipeline and cli-wrapper.\nA bug is PPBT's if the **wrong value reaches cli-wrapper** or **no value reaches cli-wrapper** when the user configured the pipeline correctly.\n\n**PPBT owns it — fix in this repo — when:**\n\n| Symptom | Root cause | File to fix |\n|---------|-----------|------------|\n| Task input exists in task.json but is silently ignored \u002F not passed to pac | `index.ts` doesn't read it via `parameterMap` | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n| Task input works on Windows but breaks on Linux (path, binary location) | `CliLocator.ts` platform logic | `src\u002Fhost\u002FCliLocator.ts` |\n| Wrong cloud instance sent to pac for a valid service connection | `resolveCloudInstance()` missing a cloud mapping | `src\u002Fparams\u002Fauth\u002FgetCredentials.ts` |\n| `BuildTools.EnvironmentUrl` not set after `create-environment` runs | `index.ts` not calling `tl.setVariable` | `src\u002Ftasks\u002Fcreate-environment\u002Findex.ts` |\n| Service connection field (e.g. `tenantId`) extracted as null\u002Fundefined | `getCredentials.ts` reading wrong endpoint field | `src\u002Fparams\u002Fauth\u002FgetCredentials.ts` |\n| Environment URL fallback chain skips a valid source | `getEnvironmentUrl.ts` fallback order wrong | `src\u002Fparams\u002Fauth\u002FgetEnvironmentUrl.ts` |\n| Tasks appear in wrong pipeline stage \u002F wrong task GUIDs | GUID substitution bug in pack step | `gulp\u002Fpack.mjs`, `extension\u002Ftask-metadata.json` |\n| Tool installer fails to download pac or set `POWERPLATFORMTOOLS_PACCLIPATH` | Installer task logic | `src\u002Ftasks\u002Ftool-installer\u002Findex.ts` |\n| New task input added to `task.json` but not wired through to pac | `index.ts` `parameterMap` not updated | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n| Task breaks after cli-wrapper version bump (interface mismatch) | `BuildToolsHost` or `BuildToolsRunnerParams` out of sync | `src\u002Fhost\u002FBuildToolsHost.ts`, `src\u002Fhost\u002FBuildToolsRunnerParams.ts` |\n| Error message from task is unhelpful \u002F missing context | Better error surfacing needed | `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` |\n\n**PPBT does NOT own it — do not fix in this repo — when:**\n\n| Symptom | Actual owner |\n|---------|-------------|\n| User forgot to add tool-installer to pipeline | User\u002Fpipeline config — document the fix, no code change |\n| User passed solution display name instead of unique name | User error |\n| cli-wrapper assembles wrong pac args (but PPBT passed the right values to it) | cli-wrapper repo |\n| pac CLI crashes or returns a wrong result | pac CLI \u002F admin-tools |\n| Dataverse operation fails (solution import engine, HTTP 5xx) | CDS \u002F Solution Framework |\n| Auth fails because service connection credentials are wrong\u002Fexpired | User \u002F service connection admin |\n| MFA required on username\u002Fpassword connection | User — must switch to SPN |\n\n**The test:** ask \"If the user configured the pipeline exactly right, would this still fail?\" If yes → PPBT bug. If no → user error or downstream team.\n\n### 2c — Classify the failure layer\n\n```\nAzure DevOps \u002F GitHub Actions pipeline\n  → [L1] user\u002Fpipeline config error (task ordering, missing inputs, wrong auth type)\n  → [L2] PPBT code bug  (src\u002Ftasks\u002F\u003Cname>\u002Findex.ts, getCredentials.ts, CliLocator.ts, etc.)\n  → [L3] cli-wrapper bug  (@microsoft\u002Fpowerplatform-cli-wrapper\u002Fdist\u002Factions\u002F)\n  → [L4] pac CLI binary  (pac.exe \u002F pac)\n       └─ [L4-admin]  pac env\u002Fadmin commands → admin-tools team\n       └─ [L4-pac]    pac CLI crash \u002F .NET exception → pac CLI team\n       └─ [L4→L5]     pac correctly relays Dataverse error → CDS team\n  → [L5] Power Platform API  (Dataverse \u002F crm.dynamics.com)\n```\n\n| Symptom | Layer | Owner |\n|---------|-------|-------|\n| `pac.exe not found` \u002F `POWERPLATFORMTOOLS_PACCLIPATH not set` | L1 | User — tool-installer step missing |\n| `BuildTools.EnvironmentUrl` targets wrong env | L1 | User — task ordering side effect |\n| Required input missing because user left it blank | L1 | User — pipeline config |\n| Checker fails with username\u002Fpassword | L1 | User — SPN required for checker |\n| Import times out (~4 min) on large solution | L1 | User — set `AsyncOperation: true` |\n| Input exists in task.json but is ignored \u002F not passed to pac | L2 | **PPBT bug** — `index.ts` parameterMap |\n| `resolveCloudInstance()` returns wrong cloud for valid endpoint | L2 | **PPBT bug** — `getCredentials.ts` |\n| Service connection field extracted as null despite being set | L2 | **PPBT bug** — `getCredentials.ts` |\n| `BuildTools.EnvironmentUrl` not set after create-environment | L2 | **PPBT bug** — `index.ts` missing `setVariable` |\n| Task breaks on Linux but works on Windows | L2 | **PPBT bug** — `CliLocator.ts` |\n| Wrong task GUIDs \u002F tasks conflict in marketplace | L2 | **PPBT bug** — `pack.mjs` \u002F `task-metadata.json` |\n| `auth create failed` after correct args passed | L3 | cli-wrapper auth bug |\n| `Cannot resolve AAD authority` \u002F wrong AAD endpoint | L3 | cli-wrapper `resolveCloudInstance()` |\n| `WhoAmI` fails on non-English agent | L3 | cli-wrapper (known ADO #4846644) |\n| pac CLI crashes \u002F .NET exception inside pac | L4-pac | pac CLI team |\n| `pac env create\u002Fdelete\u002Fbackup\u002Frestore\u002Fcopy` fails | L4-admin | admin-tools team |\n| `pac admin *` command fails | L4-admin | admin-tools team |\n| `pac auth create` crashes after correct args | L4-pac | pac CLI team |\n| `pac solution import\u002Fexport\u002Fpublish` + Dataverse HTTP error | L4→L5 | CDS \u002F Solution Framework |\n| `pac solution check` \u002F checker API error | L4→L5 | Power Apps Checker team |\n| `pac package deploy` + Dataverse-side error | L4→L5 | CDS \u002F Solution Framework |\n| HTTP 4xx\u002F5xx from `crm.dynamics.com` | L5 | CDS \u002F Solution Framework |\n| Solution component errors \u002F missing dependencies | L5 | CDS \u002F Solution Framework |\n| PVA component import failure | L5 | pac CLI team (known IcM 604312672) |\n\n### 2d — pac command → owning team (the critical split)\n\nWhen pac CLI exits non-zero, the owning team depends on **which pac command ran** AND **where the error originates**:\n\n```\npac command                    → Error origin               → Owner\n─────────────────────────────────────────────────────────────────────────────\npac auth create\u002Fclear          → pac crashes \u002F token error  → pac CLI (admin-tools)\npac auth create\u002Fclear          → wrong args from wrapper    → cli-wrapper (L3)\n\npac env create\u002Fdelete\u002F         → any pac-side failure       → admin-tools\n  backup\u002Frestore\u002Fcopy\u002Freset\n\npac admin *                    → any failure                → admin-tools\n\npac solution import            → pac crashes \u002F bad args     → pac CLI (admin-tools)\npac solution import            → Dataverse API error        → CDS \u002F Solution Framework\npac solution import            → PVA component error        → pac CLI (IcM 604312672)\n\npac solution export            → pac crashes \u002F bad args     → pac CLI (admin-tools)\npac solution export            → Dataverse API error        → CDS \u002F Solution Framework\n\npac solution publish           → Dataverse API error        → CDS \u002F Solution Framework\n\npac solution check             → checker service error      → Power Apps Checker team\n\npac package deploy             → pac crashes               → pac CLI (admin-tools)\npac package deploy             → Dataverse-side error       → CDS \u002F Solution Framework\n```\n\n**How to tell pac crash vs Dataverse error:**\n- **pac crash \u002F pac team**: `System.Exception`, `NullReferenceException`, `Unhandled exception`, pac process exits with code 1 and no HTTP status in the message, `InnerException` in .NET stack trace\n- **Dataverse error \u002F CDS team**: HTTP status code in error (`400`, `403`, `404`, `500`), `OrganizationServiceFault`, `ErrorCode:`, `Microsoft.Crm.*` in the message, `ImportJobId`, solution operation GUID, `The import of solution` messages\n- **Auth error \u002F admin-tools or cli-wrapper**: Azure AD \u002F MSAL errors, `AADSTS*` error codes, `interaction_required`, token acquisition errors\n\nPrint:\n```text\nFailing task: \u003Ctask name>\npac command: \u003Cexact pac subcommand, e.g. \"pac solution import\">\nLayer: \u003CL1 | L2 | L3 | L4-pac | L4-admin | L4→L5>\nOwner: \u003CPPBT | cli-wrapper | pac-CLI\u002Fadmin-tools | CDS\u002Fsolution-framework | pipeline-config>\nError origin signal: \u003Cpac crash | Dataverse HTTP error | auth\u002FAAD error | pipeline config>\nConfidence: \u003Chigh | medium | low>\nReasoning: \u003Cone sentence>\n```\n\n### 2d — pac CLI telemetry (L4-pac and L4→L5 only)\n\n**Run this step if and only if the layer is L4-pac or L4→L5.**\n\npac CLI sends telemetry to PPUX Analytics via OneCollector. If the error output contains a Session ID like:\n\n```\nSorry, the app encountered a non recoverable error and will need to terminate.\nSession Id: 57f79894-80fb-4f44-8c94-8f800fc13e63,\nException Type: System.ServiceModel.CommunicationException\n```\n\nExtract the Session ID and run the following Kusto query in [PPUX Analytics](https:\u002F\u002Faka.ms\u002Fppux-analytics) to pull all telemetry events for that session:\n\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n```\n\n**Additional useful queries:**\n\nGet the exact commands executed in the session:\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n| where data_eventModifier == \"Complete\"\n| extend eventInfo = parse_json(data_eventInfo)\n| project eventInfo.command, timestamp\n```\n\nGet all errors in the session:\n```kusto\nEventAll\n| where data_appName == \"ppdevtools-pac\"\n| where data_clientSessionId == \"\u003Csession-id-from-error>\"\n| where data_eventModifier == \"Failed\" or data_severity >= 3\n| project timestamp, data_eventName, data_eventInfo\n```\n\n**If no Session ID is present in the log:** note it and proceed — telemetry lookup not possible without it.\n\nPrint telemetry findings before continuing to Step 3.\n\n---\n\n## Step 3 — Search for known issues (run all in parallel)\n\nExtract 2–3 keywords from the error.\n\n### 3a — GitHub issues\n```bash\ngh search issues --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state open --limit 10 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\ngh search issues --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state closed --limit 5 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\n```\n\n### 3b — Merged PRs\n```bash\ngh search prs --repo microsoft\u002Fpowerplatform-build-tools \\\n  --state merged --limit 5 \"\u003Ckeyword1> \u003Ckeyword2>\" 2>&1\n```\n\n### 3c — ADO work items\n```bash\naz boards query --wiql \"\n  SELECT [System.Id], [System.Title], [System.State], [System.ChangedDate]\n  FROM WorkItems\n  WHERE [System.AreaPath] UNDER 'OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\PPBT Extensions'\n    AND [System.Title] CONTAINS '\u003Ckeyword1>'\n  ORDER BY [System.ChangedDate] DESC\n\" --output json 2>&1\n```\n\n### 3d — Local knowledge base\nRead `memory\u002Fado-knowledge.md` and check `MEMORY.md` known customer issues section.\n\n### Research summary (print before acting)\n```text\nKnown issue match: \u003Cissue\u002FPR\u002FADO ID + title, or \"none\">\nAccepted risk: \u003Cyes — \u003Creason>, or \"no\">\nFix already shipped: \u003Cyes — in PR #\u003Cn> \u002F pac version \u003Cv>, or \"no\">\nRecommended action: \u003Cresolve | triage | deflect | update-pac | pipeline-fix>\n```\n\nIf a confirmed fix already exists in a merged PR or shipped pac CLI version, report it and stop here.\n\n---\n\n## Step 4 — Resolve (L1 pipeline config or L2 build-tools code)\n\n### L1 — Pipeline configuration fix (no code change)\n\nProduce a precise fix instruction:\n\n```text\nPipeline fix required:\n- Issue: \u003Cwhat's wrong>\n- Fix: \u003Cexact YAML or UI step>\n- Reference: \u003Ctask name + parameter from Step 2 tables>\n```\n\nCommon L1 fixes:\n- Missing tool-installer → add `PowerPlatformToolInstaller@2` as first step\n- Import timeout → add `AsyncOperation: true` and `MaxAsyncWaitTime: 60`\n- Wrong environment targeted → check `BuildTools.EnvironmentUrl` side effect from create-environment\n- Checker with username\u002Fpassword → switch service connection to SPN\n- Connection references missing → add `UseDeploymentSettingsFile: true` + provide `DeploymentSettingsFile`\n- GitHub Actions: timeout installing pac CLI → add `actions-install@v1` before other actions\n\n### L2 — Build-tools code fix (this repo)\n\n1. Read the relevant `src\u002Ftasks\u002F\u003Cname>\u002Findex.ts` and `task.json`\n2. Make the minimal fix\n3. `npm run build 2>&1` — must pass\n4. `npm test 2>&1` — must pass (functional test failures are expected locally — not a blocker)\n5. `git commit -m \"fix: \u003Cdescription> (#\u003Cwork-item-id-if-known>)\"`\n6. Hand off to `\u002Fcreate-pr`\n\n---\n\n## Step 5 — Triage package (L3–L5 and non-PPBT)\n\n### Routing table\n\n| Layer \u002F Signal | Route to | Contact \u002F Repo |\n|---|---|---|\n| L3 — cli-wrapper arg assembly or auth arg bug | **cli-wrapper repo** | GH issue on `microsoft\u002Fpowerplatform-cli-wrapper` |\n| L4-pac — pac CLI crash, .NET exception in pac | **pac CLI \u002F admin-tools** | ADO: `OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\Deployment Hub\\Admin` |\n| L4-admin — `pac env *` or `pac admin *` failure | **admin-tools** | ADO: `OneCRM\\Client\\UnifiedClient\\AppLifeCycle\\Deployment Hub\\Admin` |\n| L4→L5 — `pac solution import\u002Fexport\u002Fpublish` + Dataverse HTTP error | **CDS \u002F Solution Framework** | ADO: `OneCRM\\CDS` (use pac team as router if area unclear) |\n| L4→L5 — `pac solution check` \u002F checker API | **Power Apps Checker service** | Route via PAC team or CDS |\n| L5 — PVA component import failure | **pac CLI team** (known IcM 604312672) | ADO: `Deployment Hub\\Admin` |\n| L5 — pure Dataverse API error, no pac involvement | **CDS \u002F Solution Framework** | ADO: `OneCRM\\CDS` |\n| Non-PPBT (Wael Hamze, XRM Tooling) | **Deflect** | Community tool — not Microsoft PPBT |\n| ADO Server 2020 on-prem | **Deflect** | Not supported — cloud or Server 2022+ only |\n\n### Triage package\n\n**This is mandatory output for ALL L3–L5 and non-PPBT cases. You MUST produce this block — do not skip it, summarize it, or replace it with prose.**\n\nFor **non-PPBT deflects** (Wael Hamze, XRM Tooling, ADO Server 2020), fill in:\n- `Route to: Deflect to CSS \u002F community tool owner`\n- `ADO area path: N\u002FA`\n- `PPBT is not the root cause because:` — cite the exact log signal that proves it (author, task class, tool name, absence of PPBT signals)\n\n```text\n═══════════════════════════════════════════════════════\nTRIAGE PACKAGE\n═══════════════════════════════════════════════════════\nRoute to:        \u003Cteam name | \"Deflect — community tool\">\nADO area path:   \u003Cpath, or N\u002FA>\nGitHub repo:     \u003Crepo, or N\u002FA>\n\nIssue summary:\n  \u003C2–3 sentence plain-English description of what failed and where>\n\nReproduction evidence:\n  Platform:      \u003CADO | GitHub Actions>\n  Task\u002FAction:   \u003Cname + version>\n  pac CLI ver:   \u003Cversion from log, or unknown>\n  Auth type:     \u003CSPN | Username\u002FPassword | Workload Identity Federation>\n  Environment:   \u003Ccloud \u002F region if visible>\n  Error line:    \u003Cexact log line that proves the failure>\n  Timestamp:     \u003CISO timestamp>\n\nPPBT is not the root cause because:\n  \u003Cone sentence — e.g. \"pac CLI exited with code 1 after a Dataverse HTTP 500 on the import endpoint\">\n\nSuggested next steps for the receiving team:\n  1. \u003Caction>\n  2. \u003Caction>\n\nRelated known issues:\n  \u003CADO ID \u002F GH issue \u002F IcM, or \"none found\">\n\nLog file \u002F evidence:\n  \u003Cfile path, or \"pasted text — see conversation\">\n═══════════════════════════════════════════════════════\n```\n\n---\n\n## Step 6 — Outcome summary\n\nAlways end with a plain-English paragraph covering:\n- What failed and where in the call chain\n- Whether PPBT owns it\n- What was done (fix applied \u002F triage package \u002F deflected)\n- Any follow-up needed from the user\n\n---\n\n## Quick-reference: authentication types\n\n| ADO `authenticationType` | GitHub secrets | pac CLI args | MFA support |\n|---|---|---|---|\n| `PowerPlatformSPN` (recommended) | `app-id` + `client-secret` + `tenant-id` | `--applicationId --clientSecret --tenant` | Yes |\n| `PowerPlatformEnvironment` (user\u002Fpass) | `user-name` + `password-secret` | `--username --password` | No |\n| Workload Identity Federation | ADO service connection only | `--azureDevOpsFederated` | Yes |\n| Managed Identity | ADO service connection only | `--managedIdentity` | Yes |\n\n## Quick-reference: task ordering rules\n\n```\ntool-installer \u002F actions-install     ← MUST run first (sets POWERPLATFORMTOOLS_PACCLIPATH)\n      │\n      ├── whoAmI                     ← optional connectivity check\n      │\n      ├── create-environment         → sets BuildTools.EnvironmentUrl (auto-used by downstream tasks)\n      │         │\n      │         ├── import-solution  ← use AsyncOperation:true for large solutions\n      │         ├── apply-solution-upgrade  ← only after import with HoldingSolution:true\n      │         ├── export-solution\n      │         ├── pack-solution \u002F unpack-solution  (local, no connection needed)\n      │         ├── publish-customizations\n      │         ├── set-solution-version\n      │         ├── checker          ← SPN only, no username\u002Fpassword\n      │         └── deploy-package   ← Windows runner only (GitHub Actions)\n      │\n      ├── backup-environment → restore-environment\n      ├── copy-environment\n      └── delete-environment\n```\n\n## Quick-reference: common error → fix mapping\n\n| Error message \u002F symptom | Likely cause | Fix |\n|---|---|---|\n| `pac.exe not found` \u002F `POWERPLATFORMTOOLS_PACCLIPATH not set` | tool-installer not run first | Add `PowerPlatformToolInstaller@2` as first pipeline step |\n| Task times out at 4 minutes (import) | Sync import of large solution | Add `AsyncOperation: true` |\n| `auth create failed` | Wrong credentials or cloud instance | Check service connection; verify `cloudInstance` via `resolveCloudInstance()` |\n| `Cannot resolve AAD authority` | Wrong cloud \u002F blocked AAD endpoint | Check `cloudInstance`, check network\u002Fproxy on agent |\n| `WhoAmI failed` on non-English agent | cli-wrapper locale bug (ADO #4846644) | Set `LANG=en_US.UTF-8` on agent; workaround only |\n| Connection references not configured | `DeploymentSettingsFile` not provided | Set `UseDeploymentSettingsFile: true` and provide settings file |\n| Checker fails with username\u002Fpassword | Checker only supports SPN | Switch service connection to SPN |\n| `deploy-package` fails on Linux | Windows-only task | Use `runs-on: windows-latest` (GitHub Actions) |\n| PVA component import fails | pac CLI issue (IcM 604312672) | Update pac CLI version in `nuget.json`; escalate to pac team if persists |\n| `BuildTools.EnvironmentUrl` wrong env | Create-environment side effect overriding | Explicitly set `Environment` input on subsequent tasks to override |\n| Timeout installing pac (GitHub Actions) | pac CLI install race condition | Add `actions-install@v1` before other actions |\n| Old v1 tasks used with v2 tasks | Cannot mix task versions | Upgrade all tasks to `@v2` |\n",{"name":5,"description":7,"argument-hint":39,"user-invocable":40},"\u003Clog-file-path | error-text | ado-id | github-issue-url>",true,"main","335e4c47bb46d46bdb2c3cc7b9ef4b35149bfee8",".claude\u002Fskills\u002Fdebug-agent",70,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-11 01:04:03",{"source":9,"skillName":5,"commands":51,"prompt":61,"zipAvailable":40},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002Fpowerplatform-build-tools --skill debug-agent",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002Fpowerplatform-build-tools --skill debug-agent",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002Fpowerplatform-build-tools --skill debug-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdebug-agent\u002FSKILL.md",[],[64,81,111,122,137,154],{"skillNo":65,"name":66,"nameZh":67,"description":68,"descriptionZh":69,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":70,"categories":71,"keywords":78,"publishedAt":34},"01M699HC0XQPN9JNCFX65H20QV","workitem","工作项修复实现","Read an ADO or GitHub work item, research similar past PRs, implement the fix, and leave the branch ready for \u002Fcreate-pr.","读取 ADO 或 GitHub 工作项，研究类似的过往 PR，实现修复，并让分支保持就绪状态以便执行 \u002Fcreate-pr。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fworkitem\u002FSKILL.md",[72,75],{"categoryNo":73,"categoryName":74,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":76,"categoryName":77,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[66,79,80,32],"implement","research",{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":95,"publishedAt":34},"01M699HA924RDYQAQ6RYS949RA","security-alerts","安全告警修复","Fetch all open security alerts from S360\u002FADO, Dependabot, and npm audit, apply all fixes, verify, commit, and create a PR.","从 S360\u002FADO、Dependabot 和 npm audit 获取所有未关闭的安全告警，应用所有修复，进行验证、提交并创建 PR。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsecurity-alerts\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":93,"categoryName":94,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110],"alerts","security alerts","security","fixes","true","ado","create","fetch","open","verify","dependabot","audit","npm","pr","commit",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":121,"publishedAt":34},"01M699H8NXZ81BYW640J7XTVAX","review","PR 自动评审","Autonomous PR review — reads diff, cross-references knowledge base, posts inline comments, and leaves an overall verdict.","自主进行 PR 评审 —— 读取 diff、交叉引用知识库、发布行内评论，并给出总体评审结论。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview\u002FSKILL.md",[119,120],{"categoryNo":73,"categoryName":74,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":76,"categoryName":77,"taxonomyType":28,"taxonomyTypeDesc":29},[113],{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":134,"publishedAt":34},"01M699H7127EAD1YEMYT21RFH0","pac-cli-update","PAC CLI 版本升级","Bump PAC CLI binary version and\u002For cli-wrapper npm package. Always produces two PRs — main and release\u002Fstable.","升级 PAC CLI 二进制版本和\u002F或 cli-wrapper npm 包。始终生成两个 PR —— main 和 release\u002Fstable。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpac-cli-update\u002FSKILL.md",[130,131],{"categoryNo":73,"categoryName":74,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":132,"categoryName":133,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[135,136],"pac cli update","cli",{"skillNo":138,"name":139,"nameZh":140,"description":141,"descriptionZh":142,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":143,"categories":144,"keywords":151,"publishedAt":34},"01M699H53DPJH4HW3EJW6TA9T9","knowledge-sync","知识日志同步","Sync ADO work items and ICM incidents to the persistent knowledge log. Invoked automatically by \u002Freview, \u002Fworkitem, and \u002Fpac-cli-update when knowledge is stale.","将 ADO 工作项和 ICM 事件同步到持久化知识日志。当知识过时时，由 \u002Freview、\u002Fworkitem 和 \u002Fpac-cli-update 自动调用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fknowledge-sync\u002FSKILL.md",[145,148],{"categoryNo":146,"categoryName":147,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":149,"categoryName":150,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",[152,153,136,113],"knowledge sync","sync",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":164,"publishedAt":34},"01M699H39A9ZWNT3CR7APMA2DR","fix-dependencies","npm 依赖漏洞修复","Fix all vulnerabilities on the current branch using npm audit. Local branch only — no ADO\u002FGitHub queries.","使用 npm audit 修复当前分支上的所有漏洞。仅限本地分支——不查询 ADO\u002FGitHub。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fpowerplatform-build-tools\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ffix-dependencies\u002FSKILL.md",[162,163],{"categoryNo":73,"categoryName":74,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":90,"categoryName":91,"taxonomyType":28,"taxonomyTypeDesc":29},[165,32,166],"fix dependencies","vulnerabilities"]