--- name: uipath-activity-migrator description: "UiPath Activity Migrator — migrate Windows-Legacy RPA projects (`targetFramework: Legacy`, classic `ui:` activities) to the Windows framework and rewrite UiPath's own classic activities into their modern UiPath counterparts with `uip rpa project migrate`/`UiPath.Upgrade.exe`. Windows only. Third-party or custom packages are not rewritten, only version-moved. Acquires the tool, resolves the target UIAutomation line, runs analyze then upgrade into a sibling folder, verifies with `uip rpa build`, triages the SARIF. Classic UI Automation→modern UIA, Outlook classic→Microsoft 365, GSuite classic→modern, Microsoft.Activities.Extensions→Invoke Code. Also the post-migration fix for migrated projects whose expression-selector targets fail or silently report not-found. Authoring or editing Legacy `.xaml`→uipath-rpa. Migration-readiness review without running the tool→uipath-review. Post-migration failures with neither marker nor annotation→uipath-troubleshoot. Maestro `instance migrate`→the Maestro skills." when_to_use: "User says 'migrate activities', 'migrate UiPath activities', 'classic UiPath activities to modern', 'migrate this project', 'upgrade from Windows-Legacy', 'convert classic to modern activities', 'modernize this workflow', 'run the Activity Migrator', 'UiPath.Upgrade.exe', 'legacy to Windows', 'activity migration report', 'post migration fix', 'check always returns false after migration', 'could not find the UI element after migration'. NOT for `uip solution deploy upgrade`." --- # UiPath Activity Migrator Drive the Activity Migrator end to end: acquire, analyze, upgrade, verify, report. The tool moves a Windows-Legacy project to the Windows framework and rewrites UiPath's classic activities into their modern equivalents; third-party and custom packages are only moved to a Windows-compatible version by restore. It runs without Studio, on Windows only: through `uip rpa project migrate` (Helm), else as the public archive's `UiPath.Upgrade.exe`, which needs the .NET Desktop Runtime its build targets. > **Read referenced files in full.** This SKILL.md is a router. Before running `analyze`, open and read the whole package guide for every classic package the project uses (see [Package Routing](#package-routing)). Package guides add flags, config files, triage rules, and post-migration steps that the core workflow does not know. `` below is the folder that contains this SKILL.md. `` is the absolute path of the folder holding `project.json`. `` is the migrated copy, a sibling folder, `_Upgraded` by default, always as an absolute path: `uip rpa` rejects relative ones. ## When to Use This Skill - User wants to **migrate**, **upgrade**, **convert**, or **modernize** a Windows-Legacy project or its classic UiPath activities - User wants classic UiPath **UI Automation** activities rewritten as their modern counterparts - User wants to **run the Activity Migrator** or mentions `UiPath.Upgrade.exe` - User wants a **migration dry run** or **migration report** produced by the tool (`analyze`) - User wants classic **Outlook** mail, classic **GSuite**, or **Microsoft.Activities.Extensions** activities migrated - User wants a **post-migration fix** for an already-migrated project: expression-selector targets that fail at runtime or silently report not-found, or `[PostMigration Action Required]` annotations. The skill owns the failure while the failing target or an enclosing construct carries one of three signals: the `.ToStringWithDelimiter()` marker, a `[PostMigration Action Required]` line, or a `by uipath-activity-migrator` line (Rule 12); otherwise uipath-troubleshoot does Do not use for: authoring or editing Legacy workflows (uipath-rpa, Legacy mode), a readiness review that does not run the tool (uipath-review), a migrated project's failure whose construct carries none of the three signals (uipath-troubleshoot), `uip solution deploy upgrade`, or Maestro `instance migrate`. ## Critical Rules 1. **Windows only.** Check the OS before anything else. On macOS or Linux, stop and tell the user to run the migration from a Windows machine that holds the project. 2. **Never run the tool in console mode.** Always pass `--output-format sarif` and redirect stdout to a file. Console mode prints no machine-readable result, and the archive's build opens the HTML report in the browser. Pass `--open-report`, which opens it, only when the user asks to see the report. Diagnostic runs too: read the SARIF, the `.err` file and the `project-.log` under `/.upgrade`, never a console or `-v` rerun. 3. **Never trust the exit code.** The tool exits 0 whether the migration succeeded, partially succeeded, or failed. Status comes only from the SARIF results, classified per [sarif-triage-guide.md](references/sarif-triage-guide.md). 4. **Analyze before upgrade, every time.** Run `analyze`, triage it, and only then run `upgrade`. When the analyze triage shows no stop condition, proceed to `upgrade` without asking, unless the user asked only for an analysis, a report or a plan: then stop after the triage, present the findings with the proposed treatment of each needs-attention item, and run `upgrade` only on the user's go. Any request whose deliverable is information rather than a migrated project counts as that: analysis, report, plan, dry run, "can this be migrated", "what would change"; when the wording leaves it open, ask one yes/no before `upgrade`. Rule 13 governs a treatment the user chooses there. One exception: a Step 4 rerun that the build guide or a package guide prescribes with an added flag reuses the Step 3 analyze; it counts as one build-fix iteration (Rule 10), and the skill deletes the `` it created in this session without asking. 5. **Never write into the source project.** `upgrade` writes to a fresh sibling folder. Never point `--output-path` at ``, never copy the output back over the source, never delete the source, and never edit a file in it, `project.json` included. This holds for every source project the task touches, including a library's source project. Two folders inside the source are the only exception: `.upgrade/`, which holds the tool's reports and the logs, summaries and config files this skill's steps write there, and `.local/`, the tool's restore cache. 6. **Never pass secrets through the agent.** Do not type `--orchestrator-pat` or `--orchestrator-application-secret` values yourself. When a tenant feed is required, rely on the `uip login` session or the local Studio or Robot connection; if neither serves it, hand the user the complete command with `` values to run themselves. 7. **Resolve the target UIAutomation package line explicitly.** When the project uses `UiPath.UIAutomation.Activities`, resolve the latest stable patch of a release line per [Step 2](#step-2--resolve-the-target-package-line) and pass it as `--uia-package-version=`. Extension options bind only in the `--name=value` form; the space-separated form parses without error and is silently ignored. Accept the tool default only when the feed is unreachable, and say so in the report. The target version is settled before the migration runs; the skill never edits package versions on the output afterwards to reach it. 8. **Verify with the modern CLI.** Migration is not done until `uip rpa build` passes on ``, or the remaining errors are reported as needs-attention items after the bounded fix loop in [build-verification-guide.md](references/build-verification-guide.md). Every `uip rpa` command this skill runs unsets `UIPATH_STUDIO_PID` in its shell's syntax: bash, the Bash tool on Windows included, prefixes `env -u UIPATH_STUDIO_PID`; PowerShell puts `$env:UIPATH_STUDIO_PID = $null;` before `uip` in the same command, since a separate tool call is a new process. Neither form works in the other shell, and an empty string does not unset it. A subagent brief passes this rule on with the commands, so the subagent writes its own shell's form; never drop it. [runtime-verification-guide.md](references/runtime-verification-guide.md) says why. 9. **Libraries first.** When analyze reports `RESTORE-CUSTOM-LIBRARY-MIGRATION-REQUIRED`, stop. Tell the user to migrate and publish that library to the feed before migrating this project. The tool cannot order dependencies. 10. **Bounded loops.** At most 3 build-fix iterations in Step 5. Then report what remains. 11. **Never run the migrated project unasked.** The runtime check of Step 6 runs only after the user answers yes to its one question. An earlier explicit request to run the migrated project, given in the same task, counts as that yes, and the question is then not asked. Every fix and every rerun after it happens only through the runtime guide's fix and rerun loop, each behind one yes/no; outside that loop the check only observes. It runs in the headless Studio, never in the Studio the user has open (Rule 8). 12. **Mark every edit.** Every construct the skill edits or adds outside the tool, in the post-migration fix guide, the build loop, the runtime loop, a plan treatment or an edit delegated to the RPA authoring skill, carries the annotation line `Remediated by uipath-activity-migrator on : ` in its `sap2010:Annotation.AnnotationText` attribute, never in an XML comment, which Studio drops on save. It replaces the matching `[PostMigration Action Required]` line when there is one and is added as a new annotation otherwise; when the edit removes a construct, the construct that takes its place carries the line. Write it as part of the edit itself, so an undone fix loses it with the backup restore and a standing fix keeps it whatever happens next. One exception: a construct whose only edit is the fix guide's rewrite of an annotation line to `Verified healthy by uipath-activity-migrator` carries that line as its mark and gets no Remediated line. A later failure at a construct carrying either line is this skill's to diagnose. 13. **Plan-mode treatments.** When the user asked for a plan (Rule 4), the treatment their go names is the edit, even when it differs from the one proposed, and the go is its yes: it goes through the runtime guide's fix and rerun loop as a `requested` fix, edit 1, applied before the first run when the go names everything it needs ([Step 5a](#step-5a--apply-a-plan-chosen-treatment-before-the-run)) and right after the run that supplies a missing name otherwise. A proposal leaves open any name only a run can reveal, such as the exception an activity actually throws ("retype the Catch to the exception the run reports"); it never guesses one, and a treatment no run informs is reported as a needs-attention item. The plan names the remaining steps as this file names them, upgrade, build, the opt-in runtime check with `uip rpa run`, and never calls any of them a debug run or a debug session. 14. **Sources.** A name or fact a proposal or an edit needs beyond the two projects' files, the run log and this skill's guides comes from two places only: the packages the latest analyze or upgrade run resolved, read as documentation and file names under `%USERPROFILE%\.nuget\packages\\\` for `` and the versions in that run's `.local/AllDependencies.json` (`/.local/` after analyze, `/.local/` after upgrade); and the one page a `[PostMigration Action Required]` annotation on the construct links, that page alone and nothing it links to. Never another cached version, never the web beyond that page, never the contents of a binary, never a program written to read assembly metadata. Validate and build confirm every name an edit introduces, so a candidate is enough to propose. This holds from the first proposal, a plan treatment included. 15. **Never download the tool unasked.** It guards only the archive fallback: `uip` downloads nothing. The acquisition script fetches `UiPath.Upgrade.exe` only on `--install` (or `--force`), and the skill passes that flag only after the user chose the download in Step 0's install question, asked once per task when the script reports `missing`. An earlier explicit request in the same task to download or install the tool counts as that choice, and so does the user's go to a re-download after a `verify-failed` result; the question is then not asked. Never pass the flag on your own to get past a `missing`, `offline-missing` or `verify-failed` result, and never set `UIPATH_ACTIVITY_MIGRATOR_OFFLINE`, `UIPATH_ACTIVITY_MIGRATOR_URL` or `UIPATH_ACTIVITY_MIGRATOR_DIR` beyond the value the user named: those variables carry a decision of the user or their administrator. ## Workflow **Fix-only entry.** When the user asks to fix or scan a project that was already migrated, or reports a UI failure in one, none of the steps below apply. First settle ownership: grep the project's XAML for the three signals, `ToStringWithDelimiter`, `PostMigration Action Required` and `by uipath-activity-migrator`. When the failing construct and its ancestors carry none, or for a project-wide request no file carries any, hand the failure to uipath-troubleshoot together with that result: do not build, do not run. Otherwise run [uia-post-migration-fix-guide.md](references/uia-post-migration-fix-guide.md) with that project as ``, then build it with the build and fix loop in [build-verification-guide.md](references/build-verification-guide.md), offer the runtime check per [runtime-verification-guide.md](references/runtime-verification-guide.md) with `` as its ``, and report once, at the end, in the shape given by the fix guide's Output section. Do not resolve a package version, do not run package-guide hooks, and do not use the Step 6 template: nothing was analyzed or upgraded. ### Step 0 — Preflight and acquire the tool Run the acquisition script with `node`: the command works in bash and PowerShell and runs no script file, so execution policies and script gates do not apply. It first asks `uip rpa project migrate version`, Helm's migrator: no download, no runtime check. Else it falls back to the archive's `UiPath.Upgrade.exe`: without a flag it locates a cached copy and verifies it starts; it never downloads (Rule 15). Its last stdout line is one JSON object. Allow at least 10 minutes: the first `uip` call after a CLI update copies Helm. Every other shell command here assumes Git Bash, the Bash tool's shell on Windows; only Rule 8's variable has a PowerShell form. ```bash node "/scripts/ensure-migrator.mjs" ``` When the user named the tool's folder, set `UIPATH_ACTIVITY_MIGRATOR_DIR` to it on this command, from the first run on. | `status` | Action | |---|---| | `ok`, the user named the tool's folder, `source` other than `env` | The variable was missing: rerun with it on the command and apply this table again. | | `ok`, `source: uip` | `` is `env -u UIPATH_STUDIO_PID uip rpa project migrate` (Rule 8; PowerShell: `$env:UIPATH_STUDIO_PID = $null; uip rpa project migrate`, same command). Record `version`. Continue. | | `ok`, any other `source` | The archive: `` is the `command` field in double quotes. Record `version`. On `update: true`, say once that a newer build exists and that rerunning with `--install` installs it; do not ask or install, continue. | | `missing` | Neither `uip` (see `uipMessage`) nor an archive copy has the tool. Ask the install question in [acquisition-guide.md § Install question](references/acquisition-guide.md#install-question), once, and act on the answer as that section says. | | `error`, `code: not-windows` | From `uip` or the script. Rule 1. Stop. | | `error`, `code: runtime-missing` | Archive only. Relay the script's message; it names the fix. Stop. | | `error`, `code: offline-missing` | The machine is configured never to download. Relay the message and the manual steps from [acquisition-guide.md § Manual placement](references/acquisition-guide.md#manual-placement); do not offer a download. Stop. | | `error`, `code: download-failed` | Relay the script's message, which names each downloader's error, and give the manual steps from [acquisition-guide.md § Manual placement](references/acquisition-guide.md#manual-placement). Stop. | | `error` with an `env` field | Archive only. Prefix that assignment, unaltered, to this script's command and every later `` command (PowerShell: `$env: = '';` in the same command), then rerun the script. | | any other `error` | Show `message`. Stop. | Relay a `uipMessage` with any error: fixing `uip` ([§ Helm through uip](references/acquisition-guide.md#helm-through-uip)) makes the archive unnecessary. Then read the flag list of this build once and keep it for Steps 3 and 4. ```bash analyze --help ``` Only the flags it lists exist: pass a guide-named flag only when listed; its absence is not a finding, a note or a report item. A flag the help lists but no guide names may be used only when its help text directly addresses a problem this run has shown (a specific SARIF result or build error); pass it as `--name=value` and say so in the report. Never one that changes what migrates or which extensions run; those are passed only on the user's request. Behavior the help does not state (option binding, exit code, output streams, folders) is in [tool-behavior-guide.md](references/tool-behavior-guide.md). Tell the user in one line the tool version and where it runs: `uip` (Helm), or the exe path with any `uipMessage`. ### Step 1 — Discover the project 1. Resolve ``: the folder containing `project.json`. If several exist under the working directory, ask which one, unless the user named it. Several projects, named by the user or surveyed with bulk, run Steps 2 to 5 one project at a time, libraries first, and end in one Step 6 report in its several-projects shape. For "migrate everything in this repo", see [tool-behavior-guide.md § bulk](references/tool-behavior-guide.md#bulk). 2. Read `project.json` and record: `targetFramework`, `expressionLanguage`, `dependencies`. `Legacy` (or absent) is the primary case. `Windows` projects still qualify when they hold classic activities; tell the user the framework step will be a no-op. 3. Match `dependencies` against the [Package Routing](#package-routing) table. Read every matching package guide in full now. 4. Pick ``: the user's choice, else `_Upgraded`. If it already exists, ask whether to delete it or use a different name. Never reuse it silently: the tool merges into an existing folder. 5. If the project is under git, run `git status --short` in it and mention uncommitted changes in the report. Do not commit or stash. The tool's `.upgrade/` and `.local/` folders will show as untracked afterwards; say so. ### Step 2 — Resolve the target package line Only when `UiPath.UIAutomation.Activities` is a dependency. Rationale and details: [packages/uia-guide.md § Resolve the target line](references/packages/uia-guide.md#resolve-the-target-line). 1. If the user named a line or version ("migrate to 26.10", "use 25.10.40"), resolve that and skip the question. A version below the minimum in [uia-guide.md § Version gates](references/packages/uia-guide.md#version-gates) cannot be used: say so, name the minimum, and ask for another; the tool enforces the same minimum in Step 3. 2. Otherwise resolve the candidate lines from the official UiPath NuGet feed. The script needs no project and no login. Do not use `uip rpa packages versions` here: the headless Studio host it starts refuses to open Legacy projects. ```bash node "/scripts/resolve-package-lines.mjs" --package UiPath.UIAutomation.Activities --min 25.10.21 ``` Output: the two most recent LTS lines (`.10`) with their highest stable patch; the newest is `recommended`. 3. Ask once with `AskUserQuestion`: newest line first, labeled `(Recommended)`, each option showing `.x → `. Say once that a package version runs only on Studio and robots at or above the minimum its release notes list, so the older line is the safe pick when the fleet is behind. The project's `studioVersion` field is not a signal: it records the Studio that last saved the Legacy project. If the user defers the choice, take the recommended line. 4. If the script prints `error` (feed unreachable), pass no version and let the tool pin its built-in default: do not ask. Step 3 sets `` from the version the tool reports, and the report line carries the suffix "(tool default, feed unreachable)". Record the chosen version as ``. ### Step 3 — Analyze Assemble `` from every package guide read in Step 1 (Hook 1 sections). Then: ```bash mkdir -p "/.upgrade" analyze --project-path "" --uia-package-version= --output-format sarif > "/.upgrade/analyze-latest.sarif" 2> "/.upgrade/analyze-latest.err" node "/scripts/summarize-sarif.mjs" "/.upgrade/analyze-latest.sarif" --out "/.upgrade/analyze-latest.md" ``` Omit `--uia-package-version` when the project has no UIAutomation dependency or when Step 2 fell back to the tool default; never pass the flag with an empty value. The summarizer prints a short summary (status, counts, blockers, a `Reason:` line for a `failed` without blockers or an `unknown`, step failures, what needs attention grouped by reason and by file) and writes the full per-item report to the `--out` file. Show the user the short summary as is. Read the `UiPath.UIAutomation.Activities` entry on the summarizer's `Packages:` line. Its `to` value, the version after `→` or the one marked `(unchanged)`, is what `/project.json` will hold. Decide by what the entry says, first matching row wins: | `Packages:` entry | Meaning | Action | |---|---|---| | `to` equals `` | The flag bound | Continue | | Step 2 fell back, no flag was passed | Tool default | Set `` to the `to` value now; the report line carries "(tool default, feed unreachable)" | | `(requested , raised to the tool minimum )` | The tool refused the version and used its minimum | Tell the user `` cannot be used and `` is the lowest possible; ask whether to migrate to `` or abort. On yes, `` is `` from here on; the analyze results already describe that version, so no rerun is needed. Never compensate by editing package versions on the output afterwards | | ` (unchanged)` with `` above `` | The project already holds a newer version; the tool keeps it | Set `` to `` and say so in the report | | `to` differs from `` and nothing above applies | The flag did not bind, almost always the space-separated form (`--uia-package-version 25.10.39`), which the tool accepts and ignores | Fix the command to the `=` form and rerun analyze | Then apply the stop conditions: | Analyze outcome | Action | |---|---| | No stop condition | Continue to Step 4 without asking. When the user asked only for an analysis, a report or a plan (Rule 4), stop here instead: present the summary with the proposed treatment of each needs-attention item, and continue to Step 4 only on the user's go. A treatment the user chose there that edits the output follows Rule 13. | | `RESTORE-MISSING-PACKAGE` / `RESTORE-INCOMPATIBLE-PACKAGE` | Stop. Explain which package, offer the Orchestrator-feed command with placeholders (Rule 6) or `--ignore-missing-dependencies` with its consequences. Rerun analyze after the user acts. | | `RESTORE-CUSTOM-LIBRARY-MIGRATION-REQUIRED` | Rule 9. Stop. | | Package guide stop condition | Follow the guide. | | Summarizer exits 2 (`cannot parse`, `no .sarif files`, `failure reported by uip`) | The tool wrote no log: it died or rejected the command line. On `failure reported by uip`, the migrator never ran: rerun Step 0. Otherwise read `/.upgrade/analyze-latest.err` and the exit code, fix the cause, rerun analyze. A crash is not yours to fix: stop and report it with the `.err` content. | | `status: failed` or `status: unknown` for any other reason | Stop. Show the blockers or the `Reason:` line and the `.upgrade` log path. Never continue to Step 4. | ### Step 4 — Upgrade Same flags as the analyze run, plus the output path: ```bash upgrade --project-path "" --output-path "" --uia-package-version= --output-format sarif > "/.upgrade/upgrade-latest.sarif" 2> "/.upgrade/upgrade-latest.err" node "/scripts/summarize-sarif.mjs" "/.upgrade/upgrade-latest.sarif" --out "/.upgrade/upgrade-latest.md" ``` Confirm `/project.json` exists and its `targetFramework` is `Windows`. On `failure reported by uip`, rerun Step 0. If it cannot parse the log or the status is `failed` or `unknown`, report and stop: `` may be partially written, so delete or rename it before any rerun (Step 1 item 4). Do not retry with different flags unless a package guide says so. ### Step 5 — Verify Follow [build-verification-guide.md](references/build-verification-guide.md). In short, with `` absolute (never `.`): ```bash env -u UIPATH_STUDIO_PID uip rpa build "" --output json ``` Build passes: continue. Build fails: validate the offending files, fix per the guide's rules, rebuild, at most 3 iterations (Rule 10). Package guides list build errors that call for a rerun of Step 4 with an extra flag rather than a hand fix. If `uip` is unavailable, skip verification and say so prominently in the report. ### Step 5a — Apply a plan-chosen treatment before the run Only when the plan's go named a treatment the output can carry before any run (Rule 13); a treatment that needs a name the run reveals waits for Step 6's run and enters the loop there. Before touching the file: 1. Open [runtime-verification-guide.md § Fix and rerun loop](references/runtime-verification-guide.md#fix-and-rerun-loop): the treatment is its row (a), edit 1, source `requested`. 2. Back the file up to `/.upgrade/runtime-fixes/1/` as that loop's step 3 says. 3. An edit that adds or replaces an activity or changes control flow is authoring: it goes to the RPA authoring skill's subagent with the brief the loop's Limits sub-step defines, and comes back checked as that sub-step says. Any other edit is made directly. 4. Validate and build with the loop's step 3 commands. Nothing runs here; the run is Step 6's. ### Step 6 — Post-migration and report 1. Run every matching package guide's Hook 3 section (annotations, delegated fix skills, manual follow-ups). 2. A treatment the plan's go named that needed nothing from the run was applied in Step 5a. Offer the runtime check when the conditions in [runtime-verification-guide.md](references/runtime-verification-guide.md) hold: one yes/no question, default no, no time limit proposed. On yes, run it as the guide says, attribute a failure with its table, offer the guide's fix and rerun loop for a migration-related failure, and fill the Runtime check block below. 3. Report once, at the end: after the runtime check's question was answered and any run and its fix loop ended. Report only what the reader must act on or decide, under these rules: 1. Success is one line with counts. Detail exists only for what needs attention, grouped, never one line per activity, and only under Needs attention: no other block restates an item, Next steps included. 2. `` is the summarizer's left-classic count. Activities the tool left classic are not defects: they compile and run as classic, so they are only the `` count and entries in the full list. Never name one anywhere in the report: not under Needs attention, not in Next steps, not in a sentence after the last block. 3. `` is built in this order: 1. Start from the summarizer's needs-attention items. 2. Remove each item whose report key matches a finding the fix guide reported as `fixed` or `healthy`. The report key is the file plus the DisplayName the tool reported, which for a generated card is the wrapped child, never the card. One item per finding, never per annotation line rewritten. A finding that matches no item removes nothing; a fixed one still appears under Fixes applied, a healthy one appears nowhere. 3. Add every item a package guide's Hook 3 left open and every build error the Step 5 loop left unfixed. 4. Add every defect introduced by the skill's own edit that is still open. `` is never below zero. The by-reason and by-file lines are derived from the remaining items only. 4. `` is the summarizer's, copied as printed. One promotion exists: `partial` becomes `success` only when `` = 0 and `` = 0 after rule 3, both at once. When `` > 0 the status stays `partial` whatever `` is: an activity left classic is not a defect, but it is not migrated either, and `success` would claim it is. `failed` and `unknown` are never promoted. 5. Report only what the tool reported or the build showed: no speculation about how migrated activities will behave at runtime, no description of the migration mechanics, no table of what changed. Name a specific replacement activity only when the tool's message names one. Do not list constructions that were checked and left alone, and do not restate that edited files validated; the build result covers it. 6. The report is these blocks and nothing else: no lead-in line, no sentence between blocks, no closing paragraph, whatever it explains. Shape: ```markdown ## Migration result: activities migrated, left classic, need attention, build . Output: . UIAutomation → . <- append " (tool default, feed unreachable)" after the version when Step 2 fell back Full list: /.upgrade/upgrade-latest.md · Tool report: /.upgrade/-.html <- only when L + M > 0; left-classic activities still run as classic and are listed there ### Needs attention () <- only when M > 0 - By reason: ×, × - By file: (), (), … more files : — > ### Fixes applied () <- only when the post-migration fix or the runtime loop edited the output - : — <- one line per construct changed, no sub-bullets; constructs one confirmation covered share the fix number; loop fixes end with (fix , fix guide | annotation | hypothesis | requested) - annotations rewritten to Verified healthy (no structural change) <- one line, only when k > 0 ### Runtime check <- only when the user said yes | Passed on run after | Failed at : — : , after , undone | Stopped at | Not started: > <- this line only; no workflow output - : . <- only when failed ### Next steps <- these lines only; when the runtime check did not run, one line saying so and why (declined, build failed, `uip` missing, routing, library); never a Needs attention item restated - Open with Studio 2024.10 or later and run the main workflow once in Debug. <- drop the Debug clause when the runtime check passed - ``` Several projects in one task: one report, the block above repeated per project in the order migrated, with the project folder name on the heading, `## Migration result: : `. Status line, Full list, Needs attention, Fixes applied and Runtime check stay per project. One `### Next steps` closes the report, its Studio line naming every ``, and a package line appears once however many projects it applies to. ## Package Routing The `project.json` dependency is the only routing key. Do not pre-scan XAML for classic activities: no pattern is exhaustive, and `analyze` reports every one. Every guide has three hook sections the workflow calls: **Hook 1** (flags and config before analyze), **Hook 2** (triage rules for that extension's SARIF results), **Hook 3** (post-migration steps). Adding a package to this skill means adding one guide with those three sections and one row here. | Dependency in `project.json` | Extension name (`--help`) | Guide | |---|---|---| | `UiPath.UIAutomation.Activities` | `UiAutomationActivities` | [packages/uia-guide.md](references/packages/uia-guide.md) | | `UiPath.Mail.Activities` | `MailActivities` | [packages/mail-guide.md](references/packages/mail-guide.md) | | `UiPath.GSuite.Activities` | `GSuiteActivities` | [packages/gsuite-guide.md](references/packages/gsuite-guide.md) | | `Microsoft.Activities.Extensions`, `Microsoft.Activities` | `MicrosoftActivitiesExtension` | [packages/microsoft-activities-guide.md](references/packages/microsoft-activities-guide.md) | The framework flip, package restore, reference fixing, and type checking are core steps and run for every project with no routing. ## Reference Navigation | File | Read when | |---|---| | [acquisition-guide.md](references/acquisition-guide.md) | Step 0 reports `missing` or fails, the machine is offline, behind a proxy or managed by an administrator, or the user asks where the tool lives or how to update it | | [tool-behavior-guide.md](references/tool-behavior-guide.md) | Behavior `--help` cannot tell you: option binding, exit code, output streams, the `.upgrade` and output folders, restore version selection, the Orchestrator hand-off template, `bulk` | | [sarif-triage-guide.md](references/sarif-triage-guide.md) | Every analyze and upgrade run: status mapping, core rule IDs, summarizer usage | | [build-verification-guide.md](references/build-verification-guide.md) | Step 5: build and validate loop, expected warnings, fix policy | | [runtime-verification-guide.md](references/runtime-verification-guide.md) | Step 6: the opt-in run of the migrated project, its verdict and attribution rules, the starting-state baseline, and the fix and rerun loop | | [uia-post-migration-fix-guide.md](references/uia-post-migration-fix-guide.md) | The migrated output carries `.ToStringWithDelimiter()` markers (UIA Hook 3), or the user asks for a post-migration fix on an already-migrated project | | [packages/uia-guide.md](references/packages/uia-guide.md) | Project depends on `UiPath.UIAutomation.Activities` | | [packages/mail-guide.md](references/packages/mail-guide.md) | Project depends on `UiPath.Mail.Activities` | | [packages/gsuite-guide.md](references/packages/gsuite-guide.md) | Project depends on classic `UiPath.GSuite.Activities` | | [packages/microsoft-activities-guide.md](references/packages/microsoft-activities-guide.md) | Project depends on `Microsoft.Activities.Extensions` or `Microsoft.Activities` | | `scripts/ensure-migrator.mjs` | Step 0 | | `scripts/summarize-sarif.mjs` | Steps 3 and 4. Node script, no dependencies | | `scripts/resolve-package-lines.mjs` | Step 2 and package guides. Lists release lines of a package from the official feed; no project or login needed | ## Anti-patterns - Downloading or updating `UiPath.Upgrade.exe` without the user's choice in the install question (Rule 15) - Running `` without `--output-format sarif`, or reading its exit code as a verdict - Running `upgrade` without an `analyze` triage first, or pointing `--output-path` at the source project - Pasting a PAT or client secret into a command line - Hand-converting classic activities in XAML instead of letting the tool do it, or "finishing" activities the tool left classic by rewriting them blind - Reworking or "improving" a selector that carries the `.ToStringWithDelimiter()` marker instead of running the post-migration fix procedure; the defect is structural and the rewrite destroys the variable binding - Accepting the tool's default UIAutomation version when the feed was reachable - Passing an extension option space-separated (`--uia-package-version 25.10.39`); only `--uia-package-version=25.10.39` binds - Raising the UIAutomation package on the migrated output with `uip rpa packages install` to reach the requested line instead of fixing the flag or asking the user - Resolving package versions with `uip rpa packages versions` against a Legacy project; the headless Studio host cannot open it - Pre-scanning the XAML for classic activities (`grep` on `