@uipath/skills 1.206.0 → 1.206.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/CODEOWNERS +34 -7
  5. package/README.md +2 -2
  6. package/package.json +2 -2
  7. package/skills/uipath-genome/SKILL.md +35 -88
  8. package/skills/uipath-genome/references/build-guide.md +61 -0
  9. package/skills/uipath-genome/references/completion-report-guide.md +93 -0
  10. package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
  11. package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
  12. package/skills/uipath-genome/references/execution-guide.md +45 -166
  13. package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
  14. package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
  15. package/skills/uipath-genome/references/live-application-guide.md +23 -9
  16. package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
  17. package/skills/uipath-genome/references/open-items-guide.md +3 -3
  18. package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
  19. package/skills/uipath-genome/references/refactor-guide.md +38 -39
  20. package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
  21. package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
  22. package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
  23. package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
  24. package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
  25. package/skills/uipath-genome/references/source-migration-guide.md +48 -19
  26. package/skills/uipath-genome/references/test-execution-guide.md +8 -7
  27. package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
  28. package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
  29. package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
  30. package/skills/uipath-maestro-case/SKILL.md +7 -7
  31. package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
  32. package/skills/uipath-maestro-case/references/planning.md +5 -5
  33. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
  34. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
  35. package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
  36. package/skills/uipath-planner/SKILL.md +80 -199
  37. package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
  38. package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
  39. package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
  40. package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
  41. package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
  42. package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
  43. package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
  44. package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
  45. package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
  46. package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
  47. package/skills/uipath-planner/references/author/author-guide.md +119 -0
  48. package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
  49. package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
  50. package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
  51. package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
  52. package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
  53. package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
  54. package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
  55. package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
  56. package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
  57. package/skills/uipath-planner/references/design/design-guide.md +296 -0
  58. package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
  59. package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
  60. package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
  61. package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
  62. package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
  63. package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
  64. package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
  65. package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
  66. package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
  67. package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
  68. package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
  69. package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
  70. package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
  71. package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
  72. package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
  73. package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
  74. package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
  75. package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
  76. package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
  77. package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
  78. package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
  79. package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
  80. package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
  81. package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
  82. package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
  83. package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
  84. package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
  85. package/skills/uipath-test/SKILL.md +3 -3
  86. package/version-manifest.json +1 -1
  87. package/skills/uipath-genome/CLAUDE.md +0 -85
  88. package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
  89. package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
  90. package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
  91. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
  92. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
  93. package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
  94. package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
  95. package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
  96. package/skills/uipath-genome/references/authoring-guide.md +0 -98
  97. package/skills/uipath-genome/references/editing-guide.md +0 -57
  98. package/skills/uipath-genome/references/extraction-guide.md +0 -166
  99. package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
  100. package/skills/uipath-genome/references/parts-guide.md +0 -22
  101. package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
  102. package/skills/uipath-genome/scripts/check-genome.py +0 -670
  103. package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
  104. package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
  105. package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
  106. package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
  107. package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
  108. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
  109. package/skills/uipath-planner/references/product-selection-guide.md +0 -673
  110. package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
  111. package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
  112. package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
  113. package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
  114. package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
  115. /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
@@ -1,123 +0,0 @@
1
- # Case SDD — conformance checklist
2
-
3
- The gate for `case-sdd-template.md`'s § Validation footer. The Case Design Lane runs this against the
4
- written `sdd.md` BEFORE the `Status: ready` flip, in every mode — normally inside the one subagent
5
- § Template conformance gate allows ([case-design-lane-guide.md](case-design-lane-guide.md)).
6
-
7
- This file is NOT part of the design reading set. Authoring reads the template for the render contract;
8
- only the gate reads the item list. Keeping the two apart keeps 37 items of checker detail out of the
9
- turn that is writing the document.
10
-
11
- Answer every item PASS or FAIL with one verbatim quote from the file — the line that violates (FAIL) or
12
- the line that satisfies (PASS). Judge structure by the ROLE and POSITION of a block (which heading level,
13
- which table, which column), not by prose wording. The enforcement detail behind each item is the
14
- template's cell rules, which are COMPLETE for the render contract; design semantics stay
15
- [case-design-layers-guide.md](case-design-layers-guide.md)'s.
16
-
17
- CONFORMANCE CHECKLIST — 37 items in 10 families. Items 30–33 apply only when finalizing a draft. Each item
18
- names only what to LOOK AT; the enforcement detail behind it is the cell rules above, and for the render
19
- contract those cells are COMPLETE — there is no third location, and nothing outside this template states a
20
- shape rule they do not. (Design semantics — which response, which gate, which default — stay
21
- case-design-layers-guide.md's; the cells own the shape.)
22
-
23
- Skeleton
24
- 1. The first non-empty line is `# SDD — <Case Name>`.
25
- 2. Present, in this order: `## Document History`; `## Planner Handoff` with the `<!-- planner-handoff:v1 -->`
26
- marker; `## Table of Contents`; `## Section 1: Case Definition` holding `### Case Metadata`,
27
- `### Case Triggers`, `### Case Exit Conditions`, `### Case Variables`; `## Section 2: Stages & Tasks`;
28
- `## Section 3: Personas & App Views` holding `### Personas` and `### Process App Views`;
29
- `## Section 4: Integrations`.
30
- 3. No summary-only top-level heading: `## Source`, `## Case Objective`, `## Actors And Systems`,
31
- `## Case Trigger`, `## Stages`, `## Business Rules`, `## Task Plan`, `## Resource Resolution`,
32
- `## Acceptance Scenarios`.
33
- 4. The Case Variables header is literally
34
- `| Name | Category | Type | sourceTriggers | sourceFields | Default | Description |`.
35
- 5. Every `### Stage <N>:` / `### Secondary Stage:` block carries `**Type:** Stage`, `**Design Rationale:**`,
36
- `#### Stage Entry Conditions`, `#### Stage Exit Conditions`, `#### Tasks`; a secondary stage carries an
37
- explicit `**Interrupting:** Yes` or `No`, and `Yes` whenever one of its exit rows is `return-to-origin`.
38
- 6. Every row of a stage's Tasks table has its own `##### Task <N>.<M>:` block (`S<K>.<M>` in a secondary
39
- stage; never the letter prefixes `R.1` / `W.1` / `CC.1` / `ESC.1`) carrying `**Type:**`,
40
- `**Activation Mode:**`, `**Design Rationale:**`, an `**Entry Condition:**` table, `**Task envelope**`,
41
- and the detail block its type requires — action: `**HITL Implementation:**`; wait-for-connector:
42
- `**Connector:**` / `**Trigger / Event:**`; execute-connector-activity / external-agent / external-workflow:
43
- `**Connector:**` / `**Operation:**`; wait-for-timer: `**Timer:**` / `**Duration:**`; case-management:
44
- `**Child Case:**`; http-request: `**Method:**` / `**URL:**`; document-extraction: `**IXP Deployment:**` / `**Model Name:**`; process / agent / rpa / api-workflow / function / business-rule / flow-process: `**Resolved Resource:**`.
45
- 7. No literal `\n` escape inside block content; `<UNRESOLVED>` is never backtick-wrapped; none of the
46
- skill-internal terms (groupOperator, savedFilterTrees, io-binding, auto-mint, originalVar,
47
- inputOutputs[]) appears anywhere in the body.
48
- Closed enums + gate-slot pairing
49
- 8. Every task `**Type:**` is one of the sixteen literals in case-design-layers-guide.md § Task types. If a `Type:` appears in that section's never-author block, fix it as the block directs for its group: write the plan type it gives, or leave the task to Studio Web.
50
- 9. In every table with a `Marks Stage Complete` / `Marks Case Complete` column, the WHEN rule is legal for
51
- that row's Yes/No per § Lifecycle gates; Stage Entry Conditions rows use only Stage-entry rules and task
52
- Entry Condition rows only Task-entry rules.
53
- 10. Exit Type pairs with Marks Stage Complete — Yes: exit-only / return-to-origin / wait-for-user;
54
- No: exit-only / wait-for-user. `return-to-origin` never appears in Case Exit Conditions.
55
- Names
56
- 11. No stage label and no task display name contains `:`.
57
- 12. Stage labels are unique case-wide; task display names are unique case-wide, across every stage.
58
- SLA references + selectors
59
- 13. Every `sla-status-change(...)` has 2 or 3 quoted args; arg 1 is the literal `root` or a declared stage
60
- display name; arg 2 is an SLA Title that target declares (the `SLA Title` row of Case Metadata for
61
- root; `**SLA Title:**` under the stage's `#### Stage SLA`); every SLA Response Map row has its
62
- `sla-status-change` row and vice versa.
63
- 14. Every `selected-stage-completed("X")` / `selected-stage-exited("X")` names a declared stage; every
64
- `selected-tasks-completed("T")` names a declared, non-`adhoc` task in the SAME stage.
65
- 15. No stage's entry row references its own stage.
66
- Data closure
67
- 16. Every `=vars.X` is a row in Case Variables.
68
- 17. Every consumed variable whose Category is not `In` is produced somewhere: an Outputs row `-> X`, an
69
- assignment `X = ...`, a Default, or a sourceTriggers entry.
70
- 18. Every `Out` variable has a Default or a producing Outputs row.
71
- 19. Every Buttons `Maps To` target is a declared variable, `taskOutcome`, or an identifier read somewhere
72
- outside the Buttons tables.
73
- Recipients, entry tables
74
- 20. Every `**Recipient:**` is `—`, `<UNRESOLVED>`, an `=` expression, or carries a typed prefix
75
- (`Role:` / `User:` / `UserGroup:` / `Email:` / `Expression:`).
76
- 21. Every task `**Entry Condition:**` table, every `#### Stage Entry Conditions` table and every
77
- `#### Stage Exit Conditions` table has at least one body row.
78
- Structure
79
- 22. Some stage's entry table carries a `case-entered` row.
80
- 23. Case Triggers has at least one row.
81
- 24. Case Exit Conditions has at least one row with Marks Case Complete `Yes`, and no two rows identical in
82
- (WHEN, IF, THEN, Marks).
83
- 25. A `wait-for-user` exit exists if and only if a `user-selected-stage` entry exists.
84
- 26. `required-stages-completed` used → some stage declares `**Required for Case Completion:** Yes`;
85
- `required-tasks-completed` on a stage → some task envelope in that stage has Required `Yes`.
86
- Precedence & liveness
87
- 27. No stage entry row equals a Case Exit row in (rule, selector, IF) — case exit evaluates first, so the
88
- stage would be unreachable.
89
- 28. Within a stage, no unguarded exit row (Marks `No`, empty IF) shares its WHEN with a guarded completion
90
- row (Marks `Yes`, IF set) — the exit always wins and the stage never completes.
91
- 29. The Case-Level SLA and every stage SLA expressed in minutes lie within 15–1000, and no stage SLA
92
- exceeds the case-level SLA.
93
- Draft parity (finalizing a draft only)
94
- 30. The ordered stage and task inventory equals the draft's — names verbatim, only letter prefixes renumbered.
95
- 31. Every `=js:` expression in the draft appears verbatim in the final, inside the same owning block.
96
- 32. Every comparator + amount policy in the draft (`>`, `<`, `≥`, `≤`, or the draft language's words for
97
- over / under / at least / more than / less than, next to an amount) is encoded in an executable cell
98
- (owner / recipient / WHEN / IF / Inputs) of the owning task or stage, on the same side of the
99
- comparison — prose in Design Rationale or Description does not count.
100
- 33. The draft file still exists beside the final, unrenamed.
101
- Modelling completeness
102
- 34. Every task's `Persona` cell names exactly ONE role — never an either/or (`Underwriter or Credit
103
- Analyst`, `Recruiter / Hiring Manager`). An either/or persona is a routing rule the source stated and
104
- the design never modelled: no guard picks between the roles at run time. Repair by naming the owning
105
- role, and where the split was genuinely conditional, author the condition as a guarded row on the
106
- deciding variable rather than as prose in the persona cell. `system` and `—` are single roles.
107
- 35. No `user-selected-stage` entry sits on a lane that a decision, event, or SLA routes to.
108
- `user-selected-stage` is picker exposure — a person choosing the next stage by hand — never
109
- deterministic routing, so when the source says entry is automatic the picker row IS the defect:
110
- repair it per § Section 2 Authoring rules, stage-picker bullet, decision-routed branch (all four
111
- edits). Source silent on who launches the lane ⟹ keep what is authored.
112
- 36. The Personas table header is literally `| Persona | Scope | Stages | Permissions | Description | Notes |`,
113
- and every row is machine-readable: Scope is `Case` or `Stages`; Stages names exact Section 2 stage
114
- display names (`—` for `Case`); Permissions holds only the permission keys the template lists, and a
115
- `Stages` row only View, Assign, ManageSLA, RunAdhocTasks; every task's `Persona` cell (rule 34) names a
116
- row of this table or `system`. `View, Act, Reassign` is prose, not permissions — `uip maestro case sdd
117
- convert` reports each such cell as a `case-role` Unresolved item and `validate --sdd` fails it. A
118
- condition on the persona goes in Notes and in a guarded cell (rule 32), never in Permissions or Stages.
119
- 37. Every `api-event("<Name>")` WHEN cell quotes a Name declared verbatim in `### Business Events`
120
- (a Section 1 `###` sibling of Case Variables, header `| Name | Description | Payload |`), and every
121
- declared event is quoted by ≥1 cell. `api-event` stands only in Stage Entry, Stage Exit, Task Entry
122
- and Case Exit tables — never in Case Triggers, and never in a task's Entry Conditions that also hold
123
- `runs-sequentially`. A Payload cell is a JSON Schema object in one code span, or `—`.
@@ -1,196 +0,0 @@
1
- # Non-PDD Lane Guide
2
-
3
- When the planner is invoked without an SDD (the entry guard found no `## Planner Handoff` marker, or the user picked "Other context" at the entry guard prompt), it runs Lane B — detect context, elicit preferences, write a plan, hand off to specialists. This guide covers Lane B end-to-end.
4
-
5
- > Lane B is for non-trivial UiPath requests without a PDD: multi-project orchestration, or requests still ambiguous after detection. Single-project requests exit at Step 2 — the specialist is loaded directly, no plan is written.
6
-
7
- Steps run in this order — **detection before elicitation** — so every skip-rule input exists before the question batch is built.
8
-
9
- ## Step 1 — Detect before asking (no prompts)
10
-
11
- All sub-steps are non-interactive. Run them first; their outputs drive the Step 2 exit and the Step 3 skip rules.
12
-
13
- 1. **Provided context document** — if the entry guard classified a document as "Other context", read it now. Any question its content answers counts as resolved; its content feeds the plan.
14
-
15
- 2. **Filesystem detection** — use `Glob` / `Read` / `Grep` (cross-platform) in current directory, then in the parent, NEVER shell-specific pipelines (`ls` globs, `grep` over pipes, `/dev/null` fail on native PowerShell):
16
- - `Glob`: `project.json`, `*.xaml`, `*.cs`, `*.flow`, `flow_files/*.flow`, `*.bpmn`, `caseplan.case`, `caseplan.json`, `case.stage.json`, `default.stage.json`, `agent.json`, `pyproject.toml`, `uipath.json`, `package.json`, `.uipath/*`, `app.config.json`, `*.uipx`, `element.json`, `*.py`.
17
- - `project.json` found → `Read` it and check `targetFramework` and dependencies structurally (no regex-over-cat).
18
- - `pyproject.toml` found → `Read` it and disambiguate: an agent-framework dependency (`langgraph`, `llamaindex`, `openai-agents`) or a sibling `agent.json` → **Agents**; a sibling `uipath.json` with a `functions` map (or `entry-points.json` from `uip function init`) → **Functions**; a bare `uipath` dependency with neither → inspect further or ask (a `.venv/` directory is NOT required and proves nothing).
19
- - Root-level `*.json` with none of the above → `Grep` for `"document.dsl"` (API Workflow project).
20
-
21
- | Filesystem signal | Plan skill |
22
- |---|---|
23
- | `.xaml` and/or `.cs` files + `project.json` | `uipath-rpa` |
24
- | `*.flow` (usually under `flow_files/`) | `uipath-maestro-flow` |
25
- | `*.bpmn` (no case plan file) | `uipath-maestro-bpmn` |
26
- | `caseplan.case` / `caseplan.json` / `case.stage.json` / `default.stage.json` | `uipath-maestro-case` |
27
- | `agent.json` | `uipath-agents` (low-code) |
28
- | `pyproject.toml` + agent-framework dependency (langgraph / llamaindex / openai-agents) | `uipath-agents` (coded) |
29
- | `pyproject.toml` + `uipath.json` with a `functions` map | `uipath-functions` |
30
- | `package.json` + `uipath.json` with a `functions` map | `uipath-functions` |
31
- | JSON containing `document.dsl` | `uipath-api-workflow` |
32
- | `*.dmn` + `project.uiproj` with `"ProjectType": "BusinessRules"` | `uipath-rules` |
33
- | `.uipath/` or `app.config.json` | `uipath-coded-apps` |
34
- | `element.json` (+ `element-metadata.json`) | `uipath-connector-builder` |
35
- | `*.uipx` | `uipath-solution` (deploy/lifecycle ops) |
36
- | `project.json` only (no `.cs`/`.xaml`) | `uipath-rpa` |
37
-
38
- Multiple signals → the request likely spans projects; classify with the multi-skill patterns below.
39
-
40
- No signals → greenfield request (the normal planning-phase case); project type comes from sub-step 4 inference.
41
-
42
- 3. **Multi-skill classification** — check the request against the named patterns in [multi-skill-patterns-guide.md](multi-skill-patterns-guide.md) ("build"+"deploy", "build"+"verify", one product depending on another). Record the matched pattern, if any.
43
-
44
- 4. **Product/project-type inference — need-driven, not keyword.** When no filesystem signal or explicit naming decides it, type the request with the [Product Selection Guide → Level 1](product-selection-guide.md#level-1--primary-scope-selection) need bullets, not surface keywords:
45
- - Explicit naming still wins ("xaml workflow", "coded workflow", ".cs file", "low-code") → record `Project type: XAML` or `Project type: C# coded`.
46
- - "AI"/"agent" wording does NOT force an Agent — apply the **determinism gate**: rule-expressible decisions → RPA/API; genuine judgment → Agent.
47
- - "flow"/"process"/"orchestrate" resolves via the [Maestro disambiguation](product-selection-guide.md#maestro-disambiguation--bpmn-vs-flow-vs-case) (Flow vs BPMN vs Case) — never assume Flow from the word alone.
48
- - Headless system-to-system → API Workflow; document extraction → IXP; user-facing screen → Coded Apps; reusable component → RPA Library; regression pack → Test Automation; tenant/resource ops only → `uipath-platform`.
49
- - Default when nothing contradicts it → **RPA workflow (XAML)** — the most common case for UI / Excel / email / file work.
50
-
51
- 5. **Delivery-model resolution** — explicit signals ("Automation Suite", "on-prem", "self-hosted", "air-gapped") → record `Delivery model: <value>`. Otherwise run the best-effort `uip login status` preflight and map the host per [sdd-generation-guide.md → Step 0](sdd-generation-guide.md#step-0-determine-execution-mode--delivery-model). Still unresolved AND any candidate product is delivery-gated (anything beyond core RPA + Orchestrator: Maestro, Agents, Coded Apps, API Workflows, Solutions `.uipx`) → add the delivery-model question to the Step 3 batch. If the user answers "not sure" (or cannot be asked), record `Delivery model: unspecified — assumed cloud [ASSUMPTION]` in the plan header plus which products the assumption gates — never omit the field when a gated product is in play. Apply the [Constraint Gate](product-selection-guide.md#constraint-gate) against [platform-availability-guide.md](platform-availability-guide.md) before recommending any product.
52
-
53
- ## Step 2 — Single-skill exit (stop Lane B)
54
-
55
- If Step 1 resolves the request to **one project owned end-to-end by one specialist** — even when it bundles inline HITL / script / connector nodes or its own solution wrapper (author sub-steps, per the Skip paragraph in SKILL.md) — **stop Lane B**:
56
-
57
- 1. Do NOT write a plan file. Do NOT emit `TaskCreate` calls. Do NOT ask the Step 3 batch.
58
- 2. Say which specialist owns it and why ("Single-project `.flow` build — loading `uipath-maestro-flow` directly").
59
- 3. Hand off the Step 1 context (detected paths, delivery model, any resolved answers) so the specialist does not re-discover it.
60
-
61
- Lane B continues past this step ONLY for multi-project requests (a matched multi-skill pattern, multiple filesystem signals, or separate buildable projects) or requests still genuinely ambiguous after Step 1 inference and the Q3 fallback.
62
-
63
- ## Step 3 — Upfront elicitation (batched)
64
-
65
- Bundle every unresolved question from the table below into **one** `AskUserQuestion` call. Do not ask one at a time; do not split across turns. If a question is already resolved (user's request, context doc, Step 1 detection), omit it from the batch. If **all** are resolved, do not call `AskUserQuestion` at all and record the inferred values in the plan header with a one-line note in Decisions & Trade-offs.
66
-
67
- Question phrasing follows the rules in [pdd-driven-lane-guide.md → Step 5](pdd-driven-lane-guide.md#step-5--ui-element-targeting-only-when-9-contains-ui-applications): no internal jargon, no domain or app names in question text.
68
-
69
- ### Skip-rules table (apply before building the batch)
70
-
71
- All inputs below are known by the end of Step 1/2 — no skip rule depends on a later step.
72
-
73
- | Question | Skip when | Default if skipped |
74
- |---|---|---|
75
- | Q1 Generation approach | Request is simple and well-defined; the user is modifying an existing automation. | `simultaneous` |
76
- | Q2 Execution autonomy | The user already stated it ("autonomous", "check with me"). Never inferred from Q1 — planning approach and execution autonomy are separate decisions. | `autonomous` |
77
- | Q3 Project type fallback | Step 1 resolved the type (explicit naming, need-driven inference, or filesystem). | `RPA workflow (XAML)` |
78
- | Delivery model | Resolved at Step 1.5 (explicit, preflight); or no delivery-gated product is a candidate. | `unspecified — assumed cloud [ASSUMPTION]` + affected products note |
79
-
80
- ### Question 1 — Generation approach
81
-
82
- > How would you like me to work?
83
- >
84
- > 1. **Explore first, then plan** — analyze the project and requirements, run non-mutating discovery, then present a plan for approval before any project changes *(recommended for non-trivial requests)*
85
- > 2. **Explore, plan, and execute simultaneously** — emit the plan as text and the main agent starts executing right away
86
-
87
- **If "explore first, then plan":**
88
- - You may run non-mutating discovery: `uip rpa analyze`, `uip rpa get-errors`, reading `project.json`.
89
- - Do NOT run commands that mutate the project (create files, register targets, install packages) — those belong to execution.
90
- - After Steps 4–5, call `EnterPlanMode` with the plan. User approves → `ExitPlanMode`.
91
-
92
- **If "explore, plan, and execute simultaneously":**
93
- - Emit the plan as text in Step 5. The main agent loads the first specialist skill immediately and follows that skill's own workflow.
94
- - Do NOT call `EnterPlanMode`.
95
-
96
- ### Question 2 — Execution autonomy
97
-
98
- Asked in the same batch as Q1 — choosing explore-first does NOT imply autonomous execution afterwards; they are independent decisions.
99
-
100
- > Once execution starts, how should I handle ambiguity or scope concerns?
101
- >
102
- > 1. **Autonomous to completion** *(recommended)* — follow the plan end-to-end without stopping for confirmation. Specialist skills handle their own pause points (auth failure, UI capture limits, etc.).
103
- > 2. **Interactive** — pause and confirm on structural decisions, scope concerns, or side-effect actions during execution.
104
-
105
- Record the answer in the plan header as `Execution autonomy: autonomous | interactive`. Task prompts carry the plan path (Step 5), so specialists can recover this and other decisions at runtime — in autonomous mode they do NOT re-ask decisions the plan already makes.
106
-
107
- ### Question 3 — Project type fallback (only when Step 1 could not infer)
108
-
109
- > Q3 — What kind of project should I scaffold?
110
- >
111
- > 1. **RPA workflow** — UI automation, Excel / email / file work *(recommended default)*
112
- > 2. **AI Agent** — genuine judgment/reasoning over ambiguous input, LLM tool use
113
- > 3. **Orchestration** — coordinate multiple automations (Maestro Flow / BPMN / Case — disambiguated by the need)
114
- > 4. **Headless / other** — API Workflow, custom web app, document extraction (IXP), reusable Library, Test Automation — say which
115
-
116
- (The question UI always offers free-text "Other" — a specific answer there overrides the options.) If the user picks **RPA workflow**, record `Project type: XAML` and move on. **Never follow up with "XAML or C#?"** — that authoring-mode decision belongs to `uipath-rpa`, not the planner. Coded mode is set only when the user independently says "coded workflow" or ".cs file"; never as a follow-up, and never surface C# coded as a top-level recommendation for routine UI automation.
117
-
118
- ### Authoring surface — never a planner concern
119
-
120
- Studio, Studio Web, VS Code — presentation layers over the same artifacts. The planner never asks about, derives, records, or conditions on them; each specialist owns its own surface. User words mentioning a surface travel as ordinary requirement prose in the task prompt, like any other stated preference. Invariant: in explore-first mode, nothing syncs to the tenant before plan approval. The only environment input the planner models is the **delivery model** (Automation Cloud / cloud variant / Automation Suite / standalone).
121
-
122
- ### Packaging (derived — no standing question)
123
-
124
- For every plan with a generation skill, record `Packaging: standalone | solution` in the plan header per [Product Selection Guide → layer 4](product-selection-guide.md#how-selection-works--four-layers): single project → `standalone` (default); multi-project / cross-product / team standardization → `solution` (`.uipx` via `uipath-solution`). This is the deploy-skill decision — `uipath-solution` for `solution`, `uipath-platform` for `standalone` non-solution publishes. Ask only if the user's own words conflict with the derivation.
125
-
126
- ### Default — Expression language
127
-
128
- Always use **VB.NET** for XAML workflows. Note this in the plan. Do not ask.
129
-
130
- ## Step 4 — UI element targeting (only when the plan includes UI automation)
131
-
132
- If the plan loads `uipath-rpa` for a workflow that clicks, types into, or reads elements in a desktop or browser app, ask the three UI questions in **one batched** `AskUserQuestion` call (see [pdd-driven-lane-guide.md → Step 5](pdd-driven-lane-guide.md#step-5--ui-element-targeting-only-when-9-contains-ui-applications) for the exact wording — same questions, same skip rules apply). Skip any question already resolved from the user's request.
133
-
134
- Skip the entire batch for non-UI plans (pure data processing, API calls, agent-only, flow-only).
135
-
136
- Record the answers in the plan header AND summarize them in the relevant task's Skill prompt. The task prompt also carries the plan path (Step 5), so a resumed or separately-executed task can recover the full decision set from the file.
137
-
138
- ## Step 5 — Write the plan
139
-
140
- Compose `<feature>.md` per the schema in [plan-and-tasks-format.md → Non-PDD lane](plan-and-tasks-format.md#non-pdd-lane-featuremd). Plan body holds the task list with the same task row schema as Lane A.
141
-
142
- **Every task's Skill prompt embeds the plan path** — the exact relative or absolute path of the file written below (mirroring Lane A's embedded SDD path). `TaskCreate` copies prompts verbatim; a bare "this plan" leaves a resumed task with no way to find its values.
143
-
144
- ### Self-review before saving
145
-
146
- 1. **Coverage** — every requirement appears in at least one task.
147
- 2. **Placeholder scan** — no "TBD", "TODO", "as needed", "if appropriate", "similar to".
148
- 3. **Skill order** — correct specialist per task; skills load in the right order (e.g., RPA before platform deploy; testing before deploy).
149
- 4. **Validation gaps** — every generation task ends with a `Validate:` compile / build / lint check.
150
- 5. **Testing task present** — a dedicated `Testing (MANDATORY)` task exists for every generation skill in the plan. Routes to the specialist's testing references — does not describe the procedure.
151
- 6. **Plan path present** — every Skill prompt names the plan file path (not "this plan").
152
- 7. **No internal-flow leakage** — the plan does not duplicate steps from any specialist's own references.
153
- 8. **Anti-hallucination rule** appended to every Skill prompt.
154
-
155
- Fix issues before saving.
156
-
157
- ### Save location
158
-
159
- Save as `YYYY-MM-DD-<feature-name>.md`:
160
-
161
- - **Project directory exists** (`project.json`, `flow_files/`, `.uipath/`, or `pyproject.toml`) → save to `docs/plans/` within the project. Create the directory if needed.
162
- - **No project directory** → save to `./plans/` (relative to the current working directory). Create the directory if needed.
163
-
164
- ### Resume handling
165
-
166
- If a plan file already exists at the target path, ask the user via `AskUserQuestion`:
167
-
168
- > A plan file already exists at `<path>`. How should I proceed?
169
- >
170
- > 1. **Continue with the current plan** *(recommended)* — pick up where you left off; checkbox state preserved
171
- > 2. **Regenerate from the current request** — discard the current plan and rebuild
172
-
173
- Option 1: read existing plan → recreate live `TaskCreate` calls with status preserved → done.
174
- Option 2: parse the request fresh, run identity-matching against the old file (preserve completed work), write the new plan, emit live tasks. Same regenerate algorithm as Lane A — see [plan-and-tasks-format.md → Regenerate logic](plan-and-tasks-format.md#regenerate-logic-pdd-driven-lane-only).
175
-
176
- ## Step 6 — Present the plan
177
-
178
- - **Explore first, then plan:** call `EnterPlanMode` with the plan content. User approves → `ExitPlanMode` → emit live `TaskCreate` calls.
179
- - **Explore, plan, and execute simultaneously:** emit the plan as text. Then immediately emit live `TaskCreate` calls. Main agent starts executing.
180
-
181
- ## Lane B budget
182
-
183
- Step 3 is **always one batched call** (Q1 + Q2 + optional Q3/delivery in a single `AskUserQuestion` — at most 4 question objects per call, comfortably within the cap); Step 4 is one batched call when the plan has UI automation; resume adds one. The realistic floor is 0 calls and the realistic ceiling is 3.
184
-
185
- | Scenario | `AskUserQuestion` calls |
186
- |---|---|
187
- | Single-skill exit at Step 2 | **0** (no plan, no batch — specialist loaded directly) |
188
- | Simple multi-skill, simultaneous, all signals clear, no UI | **0** (Step 3 fully resolved from context, no UI batch) |
189
- | Non-trivial, no UI automation | **1** (Step 3 batched) |
190
- | Non-trivial, with UI automation | **2** (Step 3 batched + Step 4 UI batch) |
191
- | Vague request, with UI automation | **2** (Step 3 batched — Q3 is part of the same batch — + Step 4 UI batch) |
192
- | Resume scenario | **+1** (continue/regenerate) |
193
- | Realistic maximum | **3** |
194
- | Hard cap (per-phase prompt budget, Critical Rules) | **5** |
195
-
196
- The 5-call hard cap is defined in the planner's Critical Rules. If batching collapses the elicitation correctly, you should never approach it.
@@ -1,210 +0,0 @@
1
- # PDD-driven Lane Guide
2
-
3
- When the planner detects a Solution Design Document (SDD) at entry, it runs Lane A — read the SDD, derive tasks, hand off to specialists. This guide covers Lane A end-to-end.
4
-
5
- > Lane A is reached from the entry guard when the input file contains the marker heading `## Planner Handoff` or the `<!-- planner-handoff:v1 -->` marker (the load-bearing detection contract written by Phase D, or present in a hand-written SDD — either signal alone is sufficient). See SKILL.md for the entry guard logic.
6
-
7
- ## Step 1 — Read the SDD's Planner Handoff header
8
-
9
- The header appears near the top of every SDD — immediately after `## Document History` in per-project SDDs, or as section 2 (right after Solution Overview) in a solution-overview SDD.
10
-
11
- **Status gate — check before everything else.** `Status: draft` marks an unfinished Phase D run: sections or the completeness check are missing, or an architecture-blocking SME item is open. Do NOT derive tasks from it. Tell the user the SDD is an unfinished draft and offer: **resume Phase D** (finish the remaining sections, resolve blocking SME items, run the superset check, flip Status to ready) or **regenerate from the PDD**. A missing Status field (hand-written or legacy SDD) → treat as `ready` for backward compatibility and note it in the Step 8 summary. Only `ready` (explicit or legacy-implied) proceeds.
12
-
13
- **Open SME items travel as assumptions.** A `ready` SDD may carry `## Action Required — SME Review Items` with default-carried rows — that is a normal enterprise SDD, not a defect. Do not refuse it and do not spawn tasks for the items. When deriving tasks (Step 6), append one line to each task whose SDD section is named by an item: `Assumption pending SME confirmation: <ITEM> — proceeding with default <DEFAULT>`. List the open items in the closing summary so production sign-off stays visible. A `Blocking = yes` row in a `ready` SDD contradicts its Status — treat the SDD as `draft` (gate above).
14
-
15
- Read these fields:
16
-
17
- | Field | What the planner does with it |
18
- |---|---|
19
- | **Status** | `draft` → refuse task derivation (gate above). `ready` → proceed. |
20
- | **Solution root SDD / Solution ID / Project SDD role** | Solution scope only. `child` → resolve the root and run the Step 3 root algorithm; `root` → this file's Project Inventory + SDD Index are canonical. `Solution ID` must match across root and children. |
21
- | **Execution autonomy** | `interactive` → enter plan mode for task review before execution. `autonomous` → emit live tasks directly. |
22
- | **Delivery model** | `cloud` / `automation-suite <version>` / `standalone` / `unspecified`. Propagated as a platform-constraint line into every specialist task prompt (Step 6). |
23
- | **SDD scope** | `single-product` → one SDD file owns one task list. `solution` → one solution-overview SDD plus one per-project SDD; tasks span all projects. |
24
- | **Project list section** | Tells the planner where to find the unified project list (e.g., `§10` for RPA, `§3 + §7` for Flow, `Project Inventory` for solution overview). |
25
- | **Tasks file** | Where to write `<process>-tasks.md`. Phase D proposes a path; Lane A respects it. |
26
- | **Build handoff** | Case SDDs carry this prose row INSTEAD of `Tasks file` — the case build writes `caseplan.json` directly and has no tasks file. Informational only; Lane A parses it for provenance and never resolves it to a path. |
27
- | **Generated by** | `uipath-planner`. Used in the summary output to tell the user the SDD's provenance. |
28
- | **Generation date** | `YYYY-MM-DD`. Shown to the user in the summary. |
29
-
30
- **Missing or malformed fields:** default `Execution autonomy` to `interactive` (safer), default `Delivery model` to `unspecified` (no constraint propagated — pre-existing SDDs lack the field), default `SDD scope` to `single-product`, infer `Project list section` from the template type, default `Tasks file` to `<sdd-basename-without-sdd>-tasks.md` (EXCEPT when the header carries `Build handoff` — that is a Case SDD, where `Tasks file` is absent by design: default it silently and do NOT report it as a defaulted field). **Track each defaulted field** in a session-local list — Step 8 surfaces them in the user-facing summary so the human reviewer can correct the SDD before tasks are emitted. Do not silently swallow the defaults.
31
-
32
- **Autonomy override on resume:** if the user's resume message explicitly requests review or interactive handling, honour the message over the header's `Execution autonomy` value (do not re-ask).
33
-
34
- ## Step 2 — Check for an existing tasks.md
35
-
36
- If the file at `Tasks file` already exists (resume scenario), ask the user via `AskUserQuestion`:
37
-
38
- > A task list already exists at `<tasks-file>`. How should I proceed?
39
- >
40
- > 1. **Continue with the current task list** *(recommended)* — pick up where you left off; checkbox state preserved
41
- > 2. **Regenerate from the SDD** — discard the current task list and rebuild from the SDD; checkbox state lost (or preserved per identity matching, see [plan-and-tasks-format.md → Regenerate logic](plan-and-tasks-format.md#regenerate-logic-pdd-driven-lane-only))
42
-
43
- - **Choice 1:** read the existing tasks.md → recreate live `TaskCreate` calls with status preserved → no SDD re-parsing needed → done.
44
- - **Choice 2:** parse the SDD fresh, run identity-matching against the old file (preserve completed work), write the new tasks.md, emit live tasks. See [plan-and-tasks-format.md](plan-and-tasks-format.md) for the regenerate algorithm and archive-footer format.
45
-
46
- If the file does not exist (first run), proceed to Step 3.
47
-
48
- ## Step 3 — Parse the SDD project list
49
-
50
- **Solution scope → run the root algorithm.** When the handoff says `SDD scope: solution`, never derive tasks from a single file — a child alone yields a partial task list; the root alone lacks implementation detail. Deterministic algorithm:
51
-
52
- 1. **Resolve the Solution root.** `Project SDD role: child` → open the `Solution root SDD` path (fallbacks: `*-solution-sdd.md` beside the file, else ask the user). `Project SDD role: root` (or the file IS the overview) → it is the root.
53
- 2. **Read the root's Project Inventory and Per-Project SDD Index** — the canonical project list.
54
- 3. **Verify every indexed child**: the file exists, carries the same `Solution ID`, and is `Status: ready`. Any child missing, ID-mismatched, or still `draft` → STOP and ask via `AskUserQuestion`: finish/regenerate the child first *(recommended)*, or derive a partial task list with the exclusions named explicitly in the plan header.
55
- 4. **Read every child SDD's detailed architecture** (its `Project list section` — nodes, workflows, tools, pages, schemas, integrated components). The overview alone is never enough to derive implementation-level tasks.
56
- 5. **Merge shared resources and cross-project dependencies** from the root's Shared Assets & Queues and Cross-Project Data Flow sections — each shared queue/asset/connection is created ONCE (one task, at solution level), and dependency edges follow build-before-consume ordering.
57
- 6. **Write exactly ONE canonical tasks file** — the root's `Tasks file` value. Never write a per-project tasks file in solution scope; the end-to-end testing and packaging tasks come last, after every component's build + testing tasks.
58
-
59
- For single-product scope: read the section named in the `Project list section` header field. The project list is the canonical source for tasks — every project becomes a subset of tasks routed to the appropriate specialist.
60
-
61
- Common section locations per template:
62
-
63
- | Template | Project list location |
64
- |---|---|
65
- | RPA single project | §11 Project Structure (workflow inventory) |
66
- | RPA Master Project | §10 Master Project Architecture (sub-project list) + §11 Workflow Inventory per sub-project |
67
- | Flow | §3 Nodes Inventory + §7 Integrated Components |
68
- | BPMN | §4 Activities Inventory + §9 Integrated Components |
69
- | Case | §2: Stages & Tasks + §4: Integrations |
70
- | Agent | §9 Project Structure + §3 Tools |
71
- | Coded App | §10 Project Structure + §9 Integrated Components |
72
- | API Workflow | §10 Project Structure + §5 Connectors |
73
- | Solution overview | Project Inventory section + Cross-Project Data Flow section |
74
-
75
- For Case Management, the case itself is the project. Read Section 2 for the stage/task implementation surface and Section 4 for external component dependencies; do not expect a legacy `Project Structure`, `Tasks Grid`, or `Task Type Registry` table.
76
-
77
- Extract per project:
78
-
79
- - Project name (used for the `Identity` tuple)
80
- - Product (RPA / Flow / BPMN / Case / Agent / Coded App / API Workflow / IXP / Function)
81
- - Sub-type (for RPA: Process / Library / Test Automation)
82
- - Role (Dispatcher / Performer / Reporting / Library / Test / etc.)
83
- - Framework (Sequence / REFramework, for RPA)
84
- - Input / Output queues (for Master Project sub-projects)
85
- - Workflows / nodes / tools / pages / steps within the project
86
-
87
- ## Step 4 — Pick the multi-skill pattern
88
-
89
- Based on the project list, pick the matching pattern from [multi-skill-patterns-guide.md](multi-skill-patterns-guide.md):
90
-
91
- | SDD shape | Pattern |
92
- |---|---|
93
- | Single RPA project, no deploy hint in §16 | Pattern 1 (simplified — drop deploy steps) |
94
- | Single RPA project, §16 specifies Orchestrator deploy | Pattern 1 |
95
- | RPA Master Project | Pattern 1 per sub-project, integrated via shared queues; cross-project deploy via `uipath-solution` (single `.uipx`) |
96
- | Flow with §7 Integrated Components that reference unbuilt resources | Pattern 2 |
97
- | Flow whose §7 integrated components are pre-existing | Pattern 3 |
98
- | BPMN with §9 Integrated Components that reference unbuilt resources | Pattern 2 (substitute `uipath-maestro-bpmn` for `uipath-maestro-flow`) |
99
- | BPMN whose §9 integrated components are pre-existing | Pattern 3 (substitute `uipath-maestro-bpmn`) |
100
- | Case Management with §4 integrations that reference unbuilt resources | Build external components first, then `uipath-maestro-case`; inline `action`, connector, timer, and child-case task details stay with the Case specialist |
101
- | Case Management whose §4 integrations are pre-existing or unresolved portable intent | `uipath-maestro-case` build task first; unresolved IDs/folders travel as review items for the Case specialist's registry discovery |
102
- | Any SDD with a filled "IXP / Document Understanding Models" table | Add an IXP model build + validation task via `uipath-ixp` per model, ordered before its consumer's build tasks |
103
- | Any SDD whose decision tables a deployed rule evaluates (BPMN `businessRuleTask`, Case `business-rule` task) | Add a rule build + validation task per decision table via `uipath-rules`, ordered before its consumer's build tasks |
104
- | Any SDD with a filled "Coded Functions" table | Add a Function build + validation task per function via `uipath-functions`, ordered before its consumer's build tasks |
105
- | Agent with RPA tools in §3 Tools | Pattern 5 |
106
- | Coded App | Coded App build + `uipath-solution` deploy + testing (when wrapped in `.uipx`); otherwise `uipath-coded-apps` self-deploys |
107
- | API Workflow | API Workflow build + `uipath-solution` publish + testing |
108
- | Solution scope | Compose patterns per project, sequenced by cross-product integration order (dependencies before dependents) |
109
-
110
- > **Deploy routing is constraint-gated.** Before emitting any deploy task, check the handoff header's `Delivery model` against [platform-availability-guide.md](platform-availability-guide.md). When Solutions (`.uipx`) is blocked for that model — standalone, Automation Suite older than 2.2510, or a user exclusion — replace every `uipath-solution` deploy/publish step in the table above with per-package Orchestrator publish routed to `uipath-platform`. An SDD whose §18 the Constraint Gate rewrote already says this; apply the same rule when entering Lane A with a hand-written SDD whose §18 does not.
111
-
112
- ## Step 5 — UI element targeting (only when §9 contains UI applications)
113
-
114
- If the SDD's §9 Application Inventory contains web / desktop / Citrix applications AND the plan loads `uipath-rpa` for a workflow that interacts with them, ask the UI batch as a single `AskUserQuestion` call (3 questions, batched):
115
-
116
- > *Question 1 — App type:* What kind of application are we automating?
117
- > 1. Web / browser app
118
- > 2. Desktop app
119
- > 3. Citrix / remote session
120
- >
121
- > *Question 2 — Targeting approach:* How should I handle the UI elements?
122
- > 1. **I build it, you review it** *(recommended)*
123
- > 2. **You indicate each element** in Studio's Selector editor
124
- >
125
- > *Question 3 — App state:* Is the app open on your machine?
126
- > 1. **Yes, it's open and ready**
127
- > 2. **No, I'll open it first** — tell me when ready
128
- > 3. **Skip discovery for now** — scaffold with placeholder selectors
129
-
130
- Question phrasing rules (govern every user-facing question in any lane):
131
-
132
- 1. **No internal jargon** (snapshot, hand-wire, AutomationId, selector candidate, autonomous capture, target configuration) — plain developer language only.
133
- 2. **No domain or app names in question text** ("What kind of application", not "What kind of HR application") — domain lives in the plan header.
134
- 3. **Never invent a third option for Q2** — the two canonical targeting options above are the contract.
135
-
136
- Skip individual questions per the rules:
137
-
138
- - **Skip Q1** if §9 names the app kind explicitly (web / desktop / Citrix in the Interface column).
139
- - **Skip Q2** only if the user explicitly asked for one targeting approach.
140
- - **Skip Q3** if the user already stated the app is running, not yet open, or asked to skip discovery.
141
-
142
- Skip the entire batch if the plan does not include UI automation (pure data-processing, API-only, agent-only, flow-only).
143
-
144
- **Resumed session:** Q1 resolves from §9 Application Inventory; Q2 (targeting approach) and Q3 (app state) are session-bound and have no SDD field — re-ask them when the current conversation lacks their answers.
145
-
146
- Record the answers in the tasks.md header for traceability and for the implementation specialists to consume.
147
-
148
- ## Step 6 — Derive tasks
149
-
150
- Walk the project list. For each project, emit task rows per the matched pattern. Use the schema in [plan-and-tasks-format.md](plan-and-tasks-format.md). Key rules:
151
-
152
- 1. **One task per discrete deliverable.** A workflow file → one task. An Orchestrator queue → one task. An asset → one task.
153
- 2. **Identity tuple is stable.** `<skill>:<project>:<subject>`. Use kebab-case or PascalCase consistent with the SDD's naming.
154
- 3. **Skill prompt references SDD sections explicitly.** "Implement `Process/CalculateTotal.xaml` per §11 row #3 of `<sdd-path>`. Use exact data field names from §5."
155
- 4. **Anti-hallucination rule appended verbatim** to every Skill prompt.
156
- 5. **Blocked-by edges** capture the dependency order — leaf resources before consumers, build before testing, testing before deploy.
157
- 6. **Mandatory testing task per generation skill.** Inserted between generation tasks and any deploy task.
158
- 7. **Propagate the delivery model.** When `Delivery model` is `automation-suite` or `standalone`, append one constraint line to every Skill prompt: "Deployment target: <value> — do not introduce products or features unavailable there." Skip the line for `cloud` / `unspecified`.
159
-
160
- ## Step 7 — Write tasks.md
161
-
162
- Compose the file using the schema in [plan-and-tasks-format.md](plan-and-tasks-format.md). Header lists Source SDD, SDD scope, Execution autonomy, Generation date. Body is the task list. If regenerating, append the Archive footer for removed tasks.
163
-
164
- ## Step 8 — Plan-mode review (interactive autonomy only)
165
-
166
- If `Execution autonomy: interactive`, call `EnterPlanMode` with the full tasks.md content. Wait for user approval.
167
-
168
- - Approval criteria: any response without specific change requests. "Looks good", "ok", "proceed", "yes", or a topic change all count as approval.
169
- - If the user requests specific changes, incorporate them and re-present (max 3 revisions; after that, proceed with the latest).
170
- - On approval → `ExitPlanMode` → Step 9.
171
-
172
- If `Execution autonomy: autonomous`, skip plan mode. Output a summary instead:
173
-
174
- ```
175
- Generated <tasks-file>: <N> tasks.
176
- Skills involved: uipath-rpa, uipath-platform, …
177
- Starting execution autonomously.
178
- ```
179
-
180
- **If Step 1 defaulted any handoff fields**, append a "Defaulted handoff fields" line to the summary listing each field and the value used:
181
-
182
- ```
183
- Defaulted handoff fields: Execution autonomy → interactive, Tasks file → <inferred-name>.
184
- Review the SDD's `## Planner Handoff` table and re-run if any of these are wrong.
185
- ```
186
-
187
- In `Execution autonomy: interactive` mode, prepend the same "Defaulted handoff fields" block (when applicable) to the `EnterPlanMode` payload so the reviewer sees it at approval time.
188
-
189
- ## Step 9 — Emit live tasks
190
-
191
- Emit `TaskCreate` calls one per task row, respecting the row order. After all tasks are created, emit `TaskUpdate` calls with `addBlockedBy` to set up dependencies.
192
-
193
- Apply Rule G-8: if any TaskCreate or TaskUpdate fails, log a single warning, continue without live tasks, and do not retry. The tasks.md file is the authoritative deliverable.
194
-
195
- ## Step 10 — Hand off
196
-
197
- The planner's job is done. The main agent reads the live tasks (via TaskList) and walks them in dependency order, loading the appropriate specialist for each. As tasks complete, the planner — invoked again by the main agent on TaskUpdate events, or whenever it next runs in this project — refreshes the corresponding checkbox in tasks.md (`[ ]` → `[~]` → `[x]`) so that future sessions see current state.
198
-
199
- > Implementation note: the planner does not directly observe TaskUpdate events. The "refresh tasks.md from live tasks" responsibility lives in the main agent's session loop, not in this skill. This skill writes the file once and trusts the agent to keep it in sync. On next entry to Lane A, the planner re-reads the file and proceeds.
200
-
201
- ## Lane A budget
202
-
203
- | Scenario | `AskUserQuestion` calls |
204
- |---|---|
205
- | First run, no UI apps in §9 | **0** (plan-mode review uses EnterPlanMode, not AskUserQuestion) |
206
- | First run, UI apps in §9 | **1** (Step 5 UI batch, only when at least one of Q1/Q2/Q3 is unresolved) |
207
- | Resume run (existing tasks.md) | **1** (continue / regenerate) — plus 0-1 for UI batch if unresolved |
208
- | Maximum | **2** under any realistic scenario |
209
-
210
- This stays well within the 5-call budget defined in the planner's Critical Rules.