@uipath/skills 1.207.0-preview.1992 → 1.207.0-preview.1996
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/skills",
|
|
3
|
-
"version": "1.207.0-preview.
|
|
3
|
+
"version": "1.207.0-preview.1996",
|
|
4
4
|
"description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "UiPath"
|
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
# Genome Format Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Content rules for every genome, however produced — `author`, `extract` and `edit` write genomes; `uipath-genome` builds them. Templates (`component-genome-template.md`, `process-genome-template.md`) live in `assets/templates/`.
|
|
4
4
|
|
|
5
5
|
## Writing Rules
|
|
6
6
|
|
|
7
7
|
`author`, `extract` and `edit` obey these on every write, beside the Critical Rules in SKILL.md. Each rule names its subject and the section that states it in full; the section's wording is the rule.
|
|
8
8
|
|
|
9
|
-
1. Choose level before writing
|
|
10
|
-
2. Infer complexity
|
|
11
|
-
3.
|
|
12
|
-
4. Configuration Questions
|
|
13
|
-
5.
|
|
14
|
-
6.
|
|
15
|
-
7. The preamble and blueprint blockquote name `uipath-genome` as
|
|
16
|
-
8. Acceptance criteria are specific and testable
|
|
17
|
-
9.
|
|
18
|
-
10. Write immediately,
|
|
19
|
-
11. Composite source actions are genome
|
|
20
|
-
12.
|
|
21
|
-
13.
|
|
9
|
+
1. **Choose the genome level before writing**: one buildable project is a component genome, two or more a process genome with one component genome per project — § Two Levels.
|
|
10
|
+
2. **Infer complexity, never ask for it** — § Complexity.
|
|
11
|
+
3. **Replication-grade detail in behavioural wording**, with no activity names, variable names, file paths or code syntax in the body (a case component's build input excepted — § Interface) — § Workflow and § Provenance.
|
|
12
|
+
4. **Configuration Questions carry only the values left open** — § Configuration Questions.
|
|
13
|
+
5. **Every section present, always**, with a stub line where one does not apply — § Stub Lines.
|
|
14
|
+
6. **One skill per Build With row, from the mapping guide only**; operate-only skills belong under Platform Dependencies — [skill-mapping-guide.md](skill-mapping-guide.md).
|
|
15
|
+
7. **The preamble and the blueprint blockquote name `uipath-genome` as the skill that builds the genome, and the comment names `uipath-planner` as the skill that changes it**, and Build With (or Components) precedes Workflow (or Process Map) — § Two Levels rule 5.
|
|
16
|
+
8. **Acceptance criteria are specific and testable** — § Acceptance Criteria.
|
|
17
|
+
9. **Flag ambiguity, never leave gaps**: the best interpretation plus `*[Inferred]*` — § Ambiguity Marker.
|
|
18
|
+
10. **Write immediately, offer edits after**; edits are in place, never a regeneration — § Write, Then Offer Edits; [edit-guide.md](../edit/edit-guide.md).
|
|
19
|
+
11. **Composite source actions are contracts in the genome** — § Workflow; `uipath-genome` turns them into patterns.
|
|
20
|
+
12. **The transactional shape is described; a split is recorded only when it was already decided**: the genome asserts no split, store, template or unit of its own. A flow's `Decided:` line records the split the agreed SDD, the user's request or the refactor answers chose ([transactional-shape-guide.md](transactional-shape-guide.md) rule 8); for every other flow `uipath-genome` asks the split questions.
|
|
21
|
+
13. **Checked after every write**: the writer reviews every write against these rules, then runs the strict check and fixes every `FAIL` before offering edits ([SKILL.md](../../SKILL.md) § Check). `uipath-genome` builds the genome as written.
|
|
22
22
|
|
|
23
23
|
## Two Levels
|
|
24
24
|
|
|
25
25
|
| Level | File | Scope | Use when |
|
|
26
26
|
|---|---|---|---|
|
|
27
|
-
| **Component genome** | `<slug>-genome.md` | One buildable project
|
|
28
|
-
| **Process genome** | `<slug>-genome.md` plus `<slug>-genome/<component-slug>-genome.md` per component | Business process
|
|
27
|
+
| **Component genome** | `<slug>-genome.md` | One buildable project (RPA process, Flow, BPMN, agent, API workflow, coded app, function, IXP model, decision table, case plan) | Automation is one project. Only file for a standalone automation. |
|
|
28
|
+
| **Process genome** | `<slug>-genome.md` plus `<slug>-genome/<component-slug>-genome.md` per component | Business process realised by two or more buildable projects | Solution with ≥2 projects, coordinator (Flow / BPMN / Case) invoking other automations, or described process clearly needing ≥2 components |
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
Rules:
|
|
31
|
+
|
|
32
|
+
1. **Choose the level before writing, by the buildable projects the rebuild needs.** One project → component genome only. Two or more projects, or one coordinator plus anything it invokes → process genome plus one component genome per project. The source's own units do not decide it: a single source workflow or bot whose parts the source guide's § Component Detection maps to different project types (a Flow and the RPA process it starts) is a process genome. Never flatten a multi-project process into one component genome; never split a single project into a process genome.
|
|
33
|
+
- **Test components are the one exception to "one component = one project".** Every test component of a process (a group of test cases over data rows for one business area) lives in a *single* test project, `<ProcessName>.Tests`, with one configuration for constants. Each group keeps its own component genome (Interface, rules, criteria), so the process genome still lists them as components, but Deployment counts one test project, and each group's Type cell names it (§ Build With (component) / Components (process)). Never emit one test project per business area. A UiPath test project that is the whole source takes the same shape when it holds two or more groups: a process genome whose components are its groups, plus one shared component for the execution template and the helpers the cases share, which that project already holds; a single group is a component genome. The procedures the test cases of any other source share are a library component (rule 6).
|
|
34
|
+
2. **Component genomes inside a process carry the `Part of:` line** immediately after the blueprint blockquote, linking back to the process genome. Standalone component genomes omit it.
|
|
35
|
+
3. **Detail lives at the lowest level that owns it.** Component-specific workflow steps, business rules, error handling, and acceptance criteria go in the component genome. The process genome holds only what spans components: process map, handoffs, shared platform dependencies, the transactional shape (its flows, producers and consumers), cross-cutting rules, end-to-end criteria, deployment.
|
|
36
|
+
4. **Every section present, always.** Each template section appears in every genome. A section that does not apply gets its stub line (below), never an omission.
|
|
37
|
+
5. **Preamble is mandatory, and it routes to `uipath-genome`.** Every genome starts with the `<!-- UIPATH-AUTOMATION-GENOME: component|process | ... -->` comment and carries the visible blueprint blockquote after the one-liner, both worded as the template words them. Both name `uipath-genome` as the skill that builds the genome: an agent handed the file reads it before it picks a skill, and a preamble naming only the Build With skills sends it straight to them, past the configuration questions and the build's procedure. The comment also names `uipath-planner` as the skill that changes the genome: `uipath-genome` never edits one, so without that line an agent asked for a small change edits the file directly, skipping the edit rules and the checker. The preamble also prevents an agent from executing the steps instead of building the automation. Build With (component) or Components (process) appears before Workflow / Process Map so an agent meets the skill references before the steps.
|
|
38
|
+
6. **Shared behaviour is one library component.** When several components run the same behaviour and the rebuild has to write it because it is more than one or a few UiPath activities do — run setup and cleanup, drive mapping, a document-store client, a mail built from templates and rules of its own — that behaviour is one common library component, and each consumer's steps call it as they call any library. The library is a project of its own, published to a feed and installed in its consumers as a package; it is never a project of the solution (§ Deployment), and that is no reason to fold its workflows into a consumer; only the user's answer to the build's configuration questions folds one (Library layout). Described in each consumer instead, it is built once per project and the copies drift apart. What one or a few activities do (close an application, append a line to the run's log) stays a step of each consumer. The source guide's § Component Detection names the forms shared behaviour takes in a source.
|
|
37
39
|
|
|
38
40
|
## File Naming and Location
|
|
39
41
|
|
|
40
|
-
- Write
|
|
42
|
+
- Write to user's current working directory unless they name a location.
|
|
41
43
|
- Slug: split CamelCase on capitals, lowercase, hyphens for spaces, strip other characters. "Invoice Processing" → `invoice-processing-genome.md`; "InvoiceIntake" → `invoice-intake-genome.md`; "Email Triage & Routing" → `email-triage-routing-genome.md`.
|
|
42
|
-
- Extracted genomes
|
|
43
|
-
- Process components
|
|
44
|
-
-
|
|
44
|
+
- Extracted genomes take slug from source project or solution name; fall back to directory name.
|
|
45
|
+
- Process genome components: `<process-slug>-genome/<component-slug>-genome.md`. Component slug from project name; when two components would share a slug, each adds its kind (`-process`, `-model`, `-agent`).
|
|
46
|
+
- A genome authored from an SDD is written beside it, named after it: `<process-slug>-sdd.md` → `<process-slug>-genome.md`. A solution SDD gets one genome, named after its root and written beside it: `<solution-slug>-solution-sdd.md` → `<solution-slug>-genome.md`, its component genomes in `<solution-slug>-genome/`.
|
|
45
47
|
|
|
46
48
|
## Section Rules
|
|
47
49
|
|
|
48
50
|
### Overview
|
|
49
|
-
|
|
51
|
+
Business purpose, who it serves, what triggers it. Write as the author of the automation, never as a describer of files ("this project contains…" is banned). An extracted test suite says in its first sentence that it is a test and what it proves.
|
|
50
52
|
|
|
51
53
|
### Target Applications (component) / Actors and Systems (process)
|
|
52
|
-
Resolve infrastructure to the real system
|
|
54
|
+
Resolve infrastructure to the real system. "Integration Service" is not an application; write "Salesforce", "ServiceNow". Process genomes also list human actors.
|
|
53
55
|
|
|
54
56
|
### Build With (component) / Components (process)
|
|
55
|
-
|
|
57
|
+
One skill per row from [skill-mapping-guide.md](skill-mapping-guide.md). Rationale states why that skill and not the nearest alternative. **A process genome's Components table links every component genome** in its Genome column, as a markdown link to `<process-slug>-genome/<component-slug>-genome.md`: the build finds the components only through those links.
|
|
56
58
|
|
|
57
|
-
|
|
59
|
+
**Process genomes with test components:** the Type column of every test component reads "Test-case group in project `<ProcessName>.Tests`", and the Process Map diagram nests the test components inside a subgraph for the test project.
|
|
58
60
|
|
|
59
61
|
### Platform Dependencies
|
|
60
|
-
|
|
62
|
+
Every Orchestrator or Integration Service resource touched: queues, assets, credentials, storage buckets, connections, folders, triggers. Each row names resource type and purpose. Extracted genomes keep the source resource name; authored genomes propose one.
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
**Credentials: one credential asset per login account**, named after the account or persona, with its environment or tenant. Scenarios often sign in as several accounts with different roles on different tenants; never collapse them onto one login. The asset holds the secret; the genome and the data rows name the asset — a password, token or secret value never appears in a genome, a data file or a report, and dropping the account identity along with the secret loses which role each scenario ran as. A secret crosses no component boundary: an Interface argument, a Handoffs row and a start argument carry the asset's name, and the component that uses the secret reads it in the scope that uses it, unless a connection holds the secret (an Integration Service connection). A secret with no account behind it (an API key, a token) is a Secret asset.
|
|
63
65
|
|
|
64
|
-
Identifiers are not credentials
|
|
66
|
+
**Identifiers are not credentials.** An application registration's client id and tenant id, a service URL or a mailbox address are Text assets (or configuration values), one per value, even when the source stored them in its credential vault: a credential asset's second half is a secret that a consumer cannot read back as text without a conversion the workflow analyzer rejects at build. The genome names them as Text assets; execution declares them the same way.
|
|
65
67
|
|
|
66
|
-
A value the source platform holds outside the process and sets per environment — an environment variable, a global value — is one asset, named as the source names it
|
|
68
|
+
**Values the source platform keeps per environment are assets.** A value the source platform holds outside the process and sets per environment — an environment variable, a global value — is one asset, named as the source names it, of the type its values take: Text, Integer or Bool, Secret for a secret, a credential asset for an account. When its value is open, the Configuration Question that asks it names the asset. A component whose type reads no assets keeps such a value in the variable its owning skill provides. A source's own configuration store is not such a value (§ Configuration Questions).
|
|
67
69
|
|
|
68
70
|
### Interface (component)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
A `uipath-maestro-case` component designed by a Case Management SDD names that SDD's path relative to the genome as build input: `uipath-genome` hands it unchanged to `uipath-maestro-case`, which builds from it without redesign.
|
|
71
|
+
Inputs, outputs, side effects. Mandatory content for a component inside a process genome (it is the contract the Handoffs table relies on). Standalone components may stub it: "Runs unattended with no arguments; outputs are the side effects listed in Workflow." Name each input and output by its contract name, without the source's direction prefix (`in_`, `out_`, `io_`): `MailboxFolder`, not `in_MailboxFolder`. A contract name that is a reserved word of Visual Basic or C#, or a .NET namespace or type name (`To`, `Sub`, `Date`, `Type`, `Object`, `System`), takes a qualifier (`ToAddresses`, `KeyDate`, `SapSystem`): the expression language is chosen at build, and such a name breaks the expressions of one of the two. The source argument is provenance and goes to the Source Map. A `uipath-maestro-case` component whose case a Case Management SDD designed names that SDD's path, relative to the genome, as its build input: `uipath-genome` hands that SDD to `uipath-maestro-case` unchanged, and the case is built from it, never redesigned.
|
|
72
72
|
|
|
73
|
-
**Library components** (a project other components consume as a package) carry, instead of the three bullets, one
|
|
73
|
+
**Library components** (a project other components consume as a package) carry, instead of the three bullets, one table per public workflow — never one table shared by several, which hides each workflow's types and directions: `Argument | Direction | Type | Description`. The Type is the one the rebuild gives the argument — a flag is a Boolean and a count a number, whatever text the source carried them in — and the description states the default and the value format (what a flag means, how a date is rendered, which side quotes a value), plus the conventions consumers rely on (naming, defaults, what a failed final check does). This table is the contract consumers are authored against before the library packs; every detail it omits becomes a question between two build groups. A workflow over the analyzer's argument cap (20) carries its optional switches and values in one options object — one In argument with its own table (`Field | Type | Default | Description`).
|
|
74
74
|
|
|
75
|
-
**State kept between calls.**
|
|
75
|
+
**State kept between calls.** A library workflow starts each call from its declared defaults, and a library project holds no global variables or constants, so state the source keeps from one call of its actions to the next — a value one action stores and another reads, an attached application or handle, its own instance of another component it calls — lives in the consumer and crosses each call as an argument: Out from the workflow that produces it, In to each that reads it, In/Out where one changes it. A coded library's static field does outlive a call, but as one value for every caller in the job and none inside an isolated invoke, and no Interface shows it, so it holds none of this state. An attached application crosses as the application handle the owning skill's public-workflow contract has workflows return and accept. The conventions name the holder and the work the source ran on its own — set-up before the first call, a close-down when the run ends, after a failure too — each a public workflow the holder calls at that point. The holder follows the source's instances, as the source guide's § Call Graph Rules state them: an instance per caller is held by each caller — a process in its entry workflow for its whole run, passed to the workflows that call the library, and a calling library in its own Interface, since it holds nothing either; one instance per run is held by the run's entry workflow and passed to every caller, calling libraries included. A stored value no action changes is no state: it is a fact or a Configuration Question (§ Configuration Questions).
|
|
76
76
|
|
|
77
|
-
**Test components**
|
|
77
|
+
**Test components** (a group of test cases over data rows in the single test project) list the row schema per test case: the fields that vary per scenario, separately from the constants in the project's configuration. Credentials appear as the name of a credential asset per row, never as values. Each case names its data set — a single row included — with its row count and where the source keeps it, since the rebuild keeps it there: a data set kept in a store is the case's data source, the project's test-data entity filtered on the data set's name; one shipped with the project is a variation file in the owning skill's format, named after the case, whose fields stay within the analyzer's argument cap (above). A case with no data set takes its values from configuration constants.
|
|
78
78
|
|
|
79
79
|
### Configuration Questions
|
|
80
|
-
|
|
80
|
+
Format: `N. {Question}? ({setting | constant}; default: {value})` — every question names its kind (below) before its default.
|
|
81
81
|
|
|
82
|
-
Authored genomes ask every
|
|
82
|
+
**Authored genomes** ask every value the description gives or leaves open: paths, URLs, addresses, server names, credential and queue names, thresholds, column names, and the application choice itself ("Which email provider? (constant; default: Outlook)").
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
**Extracted genomes ask only what the source leaves open.** The source is the ground truth and a migration keeps its rules, so a value the source fixes has one right answer; asked, it can only be answered with its default. A value is open when it is:
|
|
85
|
+
|
|
86
|
+
1. **Bound to the environment** the rebuild runs in — hosts and URLs, paths, shares and folders, mailboxes, recipients and senders, domains, system and client entries, the browser, credential, asset, queue, bucket and Data Fabric entity names, schedules, the language model an AI step uses (the tenant decides which models exist), the reach of a clean-up that acts beyond what the run set up (every window of the session, every certificate of the user, every mapped drive). Default: the source's value.
|
|
87
|
+
2. **Missing from the export** — a value the build needs that the export does not hold: a setting the source reads from a configuration file, table or vault left out of the export, a caption the source picks only by its key, the starting content of a state file the source reads before it first writes it (a last-used number). Default: the key name and "not in the export".
|
|
88
|
+
3. **A choice the source never faced** — the target platform offers a way the source had no counterpart for: an Integration Service connection beside the source's token. Default: the source's way. The run's log is the exception: its default is the job's log in Orchestrator, keeping the source's own run log the option ([extract-guide.md](../extract/extract-guide.md) Step 3, evidence policy). The mirror case is open too: the target lacks the source's way, as for an inbound endpoint that took the caller's own token where the target authenticates every caller itself. Default: the target's way, named.
|
|
87
89
|
4. **Read from the source's own configuration store** — a key the source reads from a config table, properties file or workbook the export holds, whatever it carries (a host, a timeout, a poll interval, a limit, a flag): the source's owners change it without a release, so the rebuild keeps it changeable. Default: the source's value. A key that only names another resource is a fact (below); the same value written only in the code is a fact.
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
Every other value is a fact, written once where its reader looks: a value typed, posted, compared or checked, and a limit, length or format, in the Workflow substep or Business Rule that uses it; a wait, timeout, poll interval or attempt count in its step or that step's Error Handling; the item retry and consecutive-failure counts in the Transactional Shape's outcomes ([transactional-shape-guide.md](transactional-shape-guide.md) rule 4); a switch a start argument sets in Interface; the application and a machine prerequisite (Excel installed) in Target Applications; a file the project ships in the step that uses it and the Source Map. Changing a fact is a genome edit, not a configuration answer.
|
|
90
92
|
|
|
91
|
-
Every Orchestrator connection the automation is deployed to is its own environment — dev, UAT, prod — and the build is often made on another machine and tenant than the one it runs on. Mark a
|
|
93
|
+
**A setting depends on the environment.** Every Orchestrator connection the automation is deployed to is its own environment — dev, UAT, prod — and the build is often made on another machine and tenant than the one it runs on. Mark each Configuration Question as a *setting* when its answer differs between environments (hosts and URLs, mailboxes and recipients, shares and paths, credential, queue, bucket, asset and Data Fabric entity names, schedules, language models) or must change without a new version (a key the source reads from its configuration store, item 4 above), and as a *constant* when it is the same in every environment and a change to it is a change to the automation (thresholds, limits, retry counts, message texts). The kind is written in the question's parenthesis, before the default: `(setting; default: …)` or `(constant; default: …)`. A configuration key is not by itself one setting: several keys that always carry the same value (one recipient list repeated per notification type) are one setting, and a key whose value only names another resource (a vault alias, a table name fixed by the setup) is a fact. A source's own configuration store (a config table, a properties file, a workbook) is not a Platform Dependency of the rebuild: its keys become questions or facts, and where the rebuild's settings and constants live is decided by execution's configuration questions.
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
Both modes: when the open values run to dozens (a configuration table or procedure), group them by theme into one question per theme and name every key inside its question, before the question mark, so the list stays readable and the build can still map each key: `4. Which folders does the run use — the drive letter (row 5) and the in-process, processed and invalid folders (rows 6–8)? (setting; default: not in the export)`. A grouped question holds values of one kind; a theme whose values are settings and constants is two questions. When an empty value would change the flow instead of failing (an end time that compares as reached, a list matched by containment), the question says so — "required: empty ends the run" — so the build guards it. Questions the build asks itself are not written into the genome: the scaffolding choices (project location, target framework, expression language, installed package versions), and the split questions (unit, split, store, template, triggers and runners) when the Transactional Shape is not the stub.
|
|
94
96
|
|
|
95
97
|
### Workflow (component) / Process Map (process)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
A step calling an automation not held by the source (another project's process, a workflow outside the export) names behavior, passed inputs, and used results, flags `*[Inferred]*` what the caller does not show, and treats the callee as a Platform Dependency rather than something built; Source Map records an unresolved invocation.
|
|
98
|
+
Numbered steps in execution order, each `N. **{Step name}** (input: …; output: …)`: the number keys the step's row in the Source Map's step table, the bold name heads its Business Rules and Error Handling entries. Steps may be grouped under `###` headings (one per entry point), each step keeping that form. Steps several entry points share are written once, under a heading of their own, and each entry point's last step names the step it continues into. A step that calls an automation the source does not hold (another project's process, a workflow outside the export) names it by what it does, states what the step passes to it and what it uses of the result, and flags `*[Inferred]*` what the caller does not show; the callee is a Platform Dependency the rebuild calls but does not build, and the Source Map's unresolved-invocation row names it. A step involving several fields, a condition, validation, or a transformation gets substeps (a, b, c) and a data annotation `(input: …; output: …)`.
|
|
99
99
|
|
|
100
100
|
Shallow, insufficient for replication:
|
|
101
101
|
```markdown
|
|
@@ -112,59 +112,60 @@ Sufficient:
|
|
|
112
112
|
e. If any mismatch exceeds tolerance, flag the invoice with the field, expected value, and actual value
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Test: if a builder cannot rebuild the step from the text alone, add detail. Never
|
|
115
|
+
Test: if a builder cannot rebuild the step from the text alone, add detail. Never compress distinct steps to hit a count.
|
|
116
116
|
|
|
117
|
-
Test components
|
|
117
|
+
**Test components** list one numbered step per test case — `N. **Test case: <title>**` — with the case's steps as lettered substeps and its assertions named in them; the Source Map's step table then has one row per case. A **library** component lists one numbered step per public workflow, grouped by the screen (or stage) it acts on, in the order a user meets the screens; the steps are independent entry points the consumers invoke, not one execution, and a lead-in sentence says so.
|
|
118
118
|
|
|
119
|
-
Composite interactions
|
|
119
|
+
**Composite UI interactions carry their full contract.** Source frameworks and descriptions bundle a multi-step interaction into one step: type-ahead pick, menu or tree path, option list, find-row-then-act, keystrokes to the focused element. The substep states, in behavioural words, everything the builder needs to rebuild the interaction: what is typed, how the suggestion or option is matched (equals / contains / nth), which key confirms, each path level, the row rule. "Enter Voluntary into Primary Reason" is a data loss; "type Voluntary into Primary Reason and pick the suggestion that equals Voluntary" is the step. A source guide's composite-actions table gives the wording per source action; execution builds each contract as a pattern.
|
|
120
120
|
|
|
121
|
-
A substep in a dialog, popup,
|
|
121
|
+
**A substep in a window an action opened names that window.** When an action opens a window (a dialog, a popup, a browser tab) and the next substep acts inside it, that substep names the window: "in the Select Vendor dialog, click OK". A source that acts in the new window without first switching to it never names it: deduce the name from the action that opened it and flag it `*[Inferred]*`.
|
|
122
122
|
|
|
123
|
-
A source
|
|
123
|
+
**A source's workaround for its own platform is not behaviour.** A clipboard copy between two ranges, a temporary file written beside the input, a rename around a path the source's script cannot open, a user setting switched to steer a file format: the step states the result the workaround produced, and the Source Map names the workaround — unless a later step reads what it leaves behind, which makes it data.
|
|
124
124
|
|
|
125
125
|
### Business Rules
|
|
126
|
-
|
|
126
|
+
Plain language, no code syntax, specific fields and thresholds kept. Group under `### Step N: {name}` headings for the step where the rule fires; a rule or handler several steps share goes once under a heading naming them (`### Steps 4, 10 and 15: …`); cross-step rules under `### General`.
|
|
127
127
|
|
|
128
128
|
| Code construct | Genome wording |
|
|
129
129
|
|---|---|
|
|
130
|
-
| `If` / `FlowDecision` / `if` |
|
|
131
|
-
| `Switch` / `FlowSwitch` / `switch` |
|
|
132
|
-
| `AndAlso` / `&&` |
|
|
133
|
-
| `OrElse` / `\|\|` |
|
|
134
|
-
| `>` `<` `=` `<>` `==` `!=` |
|
|
130
|
+
| `If` / `FlowDecision` / `if` | "If {condition}, then {action}; otherwise {action}" |
|
|
131
|
+
| `Switch` / `FlowSwitch` / `switch` | "Route based on {field}: {case} → {action}, {case} → {action}" |
|
|
132
|
+
| `AndAlso` / `&&` | "and" |
|
|
133
|
+
| `OrElse` / `\|\|` | "or" |
|
|
134
|
+
| `>` `<` `=` `<>` `==` `!=` | "exceeds", "is less than", "is", "is not" |
|
|
135
135
|
|
|
136
|
-
`Amount > 10000 AndAlso Category = "Premium"` →
|
|
136
|
+
`Amount > 10000 AndAlso Category = "Premium"` → "If amount exceeds $10,000 and category is Premium".
|
|
137
137
|
|
|
138
138
|
### Error Handling
|
|
139
|
-
|
|
139
|
+
Same step-associated layout as Business Rules, plus `### Global`. Behavioural wording: "Retries 3× on timeout, then routes the item to the exception queue" — never "RetryScope with NumberOfRetries=3". An entry states the failure, the outcome and the level that handles it; a failure that every UI step shares ("expected element not found: screenshot, stop naming the step") is written once under `### Global`, not repeated per step, and a step entry exists only where that step's handling differs. A Workflow substep's "confirm …" is a post-condition of the action before it, not a separate check (execution builds it as that action's verification).
|
|
140
140
|
|
|
141
141
|
### Transactional Shape
|
|
142
|
-
|
|
142
|
+
Whether the automation iterates over units of work — items that succeed, fail, are retried and are tracked independently of one another — and, when it does, per flow how the work is handled today and how it could be divided at build, asserting no split except one a `Decided:` line records: [transactional-shape-guide.md](transactional-shape-guide.md). A genome with no unit of work carries the stub line (§ Stub Lines).
|
|
143
143
|
|
|
144
144
|
### Acceptance Criteria
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
A numbered list (`1. …`), so the build report's verdicts and a comparison of two runs cite a criterion by its number. Patterns:
|
|
147
146
|
- "Given {specific input}, the automation {specific observable outcome}"
|
|
148
147
|
- "When {condition}, the automation {expected behaviour}"
|
|
149
148
|
- "{Specific action} produces {specific result}"
|
|
150
149
|
|
|
151
|
-
|
|
150
|
+
Sources, one criterion each minimum: every major workflow step, every data transformation or field mapping, every business rule, every error handler, plus edge cases (empty input, duplicate, malformed data).
|
|
151
|
+
|
|
152
|
+
**A criterion whose outcome rests on a language model's answer is written in one of three checkable forms.** (1) It states the answer: "Given the model classifies the item as {category}, …" — checked with a supplied or recorded answer, so it tests the build, not the model. (2) It states an invariant that holds whatever the model answers: every record's status agrees with the classification it stores, every handled message has exactly one record. (3) For the quality of the model's own answer, it gives an input whose right answer is computed outside the model — dates written out, a count derived from reference data, a value the input itself carries — is checked over several runs, and says it rests on the model, so a miss is a finding on the model, never on the build.
|
|
153
|
+
|
|
154
|
+
Banned: "completes successfully", "handles errors properly", and anything code-level ("Uses ReadPDF activity", "Calls Main.xaml", "Assigns true to isValid").
|
|
152
155
|
|
|
153
156
|
| Banned | Acceptable |
|
|
154
157
|
|---|---|
|
|
155
158
|
| "Uses ReadPDF to process InvoiceFile" | "Given an invoice PDF, extracts vendor_name, invoice_number, line items (description, qty, unit_price), tax, and total" |
|
|
156
159
|
| "SendMail sends to admin@company.com" | "When processing fails after retries, sends a notification to the configured administrator with invoice_number and failure reason" |
|
|
157
160
|
|
|
158
|
-
For language-model outcomes use one checkable form: (1) state the answer (“Given the model classifies the item as {category}, …”) and check against a supplied/recorded answer; (2) state an invariant independent of the answer (every record's status agrees with the classification it stores, every handled message has exactly one record); or (3) test quality against an answer computed outside the model (dates written out, a count derived from reference data, a value the input itself carries) over several runs, explicitly attributing misses to the model, not the build.
|
|
159
|
-
|
|
160
161
|
### Complexity
|
|
161
|
-
|
|
162
|
+
`simple | medium | complex`. Never ask the user to declare it. Component genomes: inferred from the description, PDD or SDD ([author-guide.md](../author/author-guide.md) § Step 3 — Infer complexity) or from source signals ([extract-guide.md](../extract/extract-guide.md) § Step 5 — Infer complexity (component)); both default to the lower level when ambiguous and escalate when later evidence demands it. Process genomes are `medium` with at most three **buildable projects**, no human lanes and no `complex` component, otherwise `complex`; the test-case groups of the single test project count as that one project, not one component each. A human lane is a human actor whose action the process **waits on** (an approval, a task, a mailed decision); recipients of notifications are not lanes.
|
|
162
163
|
|
|
163
164
|
### Tags
|
|
164
|
-
Comma-separated business domain, target applications,
|
|
165
|
+
Comma-separated: business domain, target applications, platform features (document-understanding, queues, human-in-the-loop, …).
|
|
165
166
|
|
|
166
167
|
### Source Map (extraction only)
|
|
167
|
-
|
|
168
|
+
Where every part of an extracted genome came from — its contract rows, the step table and, for a framework source, the migration contract: [extracted-genome-guide.md § Source Map](extracted-genome-guide.md). Authored genomes have no Source Map.
|
|
168
169
|
|
|
169
170
|
## Population Matrix (component genomes)
|
|
170
171
|
|
|
@@ -174,11 +175,11 @@ Record where every extracted genome element came from, including contract rows,
|
|
|
174
175
|
| Target Applications, Build With, Platform Dependencies, Interface, Configuration Questions, Complexity, Tags | Full | Full | Full |
|
|
175
176
|
| Workflow | 3-5 steps minimum | 5+ steps, substeps where detailed | 8+ steps, substeps where detailed |
|
|
176
177
|
| Business Rules | Stub allowed | Step-associated | Step-associated |
|
|
177
|
-
| Error Handling | Stub allowed | Per applicable
|
|
178
|
-
| Transactional Shape | Full when a unit exists ([transactional-shape-guide.md](transactional-shape-guide.md) rule 1), else stub | Full when a unit of work exists, else stub | Full when a unit of work exists, else stub |
|
|
179
|
-
| Acceptance Criteria | 3-4 minimum | 5+
|
|
178
|
+
| Error Handling | Stub allowed | Per step where applicable | Per step where applicable |
|
|
179
|
+
| Transactional Shape | Full when a unit of work exists ([transactional-shape-guide.md](transactional-shape-guide.md) rule 1), else stub | Full when a unit of work exists, else stub | Full when a unit of work exists, else stub |
|
|
180
|
+
| Acceptance Criteria | 3-4 minimum | 5+ incl. data checks | 7+ incl. data checks |
|
|
180
181
|
|
|
181
|
-
|
|
182
|
+
Minimums, not ceilings. Fifteen distinct steps in the source or description means fifteen steps in the genome. A test component's steps are its test cases and a library's its public workflows, so the Workflow minimums apply to neither: their depth is in the cases' checkpoints and the workflows' substeps.
|
|
182
183
|
|
|
183
184
|
## Stub Lines
|
|
184
185
|
|
|
@@ -193,46 +194,37 @@ These are minimums, not ceilings. Preserve fifteen distinct source/description s
|
|
|
193
194
|
|
|
194
195
|
## Ambiguity Marker
|
|
195
196
|
|
|
196
|
-
|
|
197
|
+
When intent is unclear from the source, write the best interpretation, append `*[Inferred]*` to that line, and record the uncertainty in the Source Map. Never leave a section empty because the source is ambiguous. Users remove markers once they confirm the content ("Remove the inferred flags").
|
|
197
198
|
|
|
198
199
|
## Write, Then Offer Edits
|
|
199
200
|
|
|
200
|
-
Every writing verb writes
|
|
201
|
+
Every writing verb writes the file(s) to the working directory immediately — no preview, no confirmation — then says where they are and asks "Want to adjust anything?". Edits are targeted and in place, never a regeneration, and made only by the `edit` verb of the skill that writes genomes.
|
|
201
202
|
|
|
202
203
|
## Provenance
|
|
203
204
|
|
|
204
|
-
|
|
205
|
+
The body of a genome reads as a specification, not a report: no "the project contains", no file paths in Workflow or Business Rules, no activity or variable names anywhere. Provenance lives only in the Source Map section. A message, log text or text shown to a person (a form's title, instruction or field label) the source writes is behaviour and is written in the body as the source spells it; a text that embeds a variable or activity name, a path or one of the source project's own file names is described in the body instead ("the corrupt-register message") and quoted in full in its step's Source Map row.
|
|
205
206
|
|
|
206
207
|
## Process Genome Sections
|
|
207
208
|
|
|
208
|
-
|
|
209
|
+
The section rules of the sections only a process genome has; a component genome has none of them.
|
|
209
210
|
|
|
210
211
|
### Process Map diagrams (process)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
215
|
-
-
|
|
216
|
-
- Wrap labels with `<br/>` at about 34 characters and edge labels at about 26; never wrap subgraph titles. Test-project components may share a subgraph. If mermaid-cli is installed, render and inspect; otherwise use these widths.
|
|
212
|
+
One Mermaid component-view diagram (`flowchart TB`), kept under `## Process Map` after the numbered stage list, with no subheading above it. Sequence and order live in the stage list, never in the diagram.
|
|
213
|
+
- **Nodes:** the automation's own components and its queues only; no people or outside systems, so no lanes. One node per queue, never a grouped node, drawn as a cylinder `[( )]` with no number. Every component node carries its number from the Components table in brackets.
|
|
214
|
+
- **Trigger marks** prefix a component node: ⏰ time trigger, 🔔 queue trigger (a component that consumes a queue). A component with no mark is invoked by another component; one with several entry points carries the mark of each triggered one. A trigger is *[Inferred]* when the source holds no schedules. A short legend under the diagram names the marks and the arrows.
|
|
215
|
+
- **Arrows** point the way the data or work travels; never a double-headed arrow, draw two. Solid: a component adds to a queue (component → queue), takes from or reads a queue (queue → component), or calls another component (caller → callee). Dotted: a handoff between components through a file or mail rather than a queue or a call. A queue inside one component (the stages a decided split realises) is drawn in that component's label — `2 InvoiceProcess<br/>Dispatcher → queue → Performer` — never as a loop from the component back to itself.
|
|
216
|
+
- **Layout:** wrap node labels with `<br/>` at about 34 characters per line and edge labels at about 26; never put `<br/>` in a subgraph title (a test project's components may share one subgraph). A Mermaid parse success does not catch clipped text: when a renderer (mermaid-cli) is installed, render the diagram and look at it; otherwise keep to the wrap widths above.
|
|
217
217
|
|
|
218
|
-
Mermaid cannot render BPMN 2.0
|
|
218
|
+
Mermaid cannot render BPMN 2.0 itself; when the customer wants a formal model, add a sidecar `<process-slug>-process.bpmn` authored from the Process Map (the `uipath-maestro-bpmn` skill knows the format) and link it from this section.
|
|
219
219
|
|
|
220
220
|
### Handoffs (process)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
Omit rows for people or systems merely read/acted on; retain human-task rows created by a component. Use one row per queue edge, naming queue(s), never “the queues”, and one per call and file/mail handoff.
|
|
221
|
+
One row per edge between components: mechanism (queue item, start job, Flow invoke, event, file drop, Action Center task, a shared store one component writes and another reads when asked — a Data Fabric entity, a database table), data schema passed, and what happens when the receiving side fails. This table is the data contract; component Interface sections must agree with it. When the Transactional Shape's producer and consumer are two phases of one component that form a flow ([transactional-shape-guide.md](transactional-shape-guide.md) rule 12) exchanging items through a store (a database work table, a folder, an in-memory work list the job reads once and then works item by item), add one row for that edge too, marked as intra-component and naming the stages on each side (the sub-projects a `Decided:` line names): it is the data contract the shape cites. Every flow of the Transactional Shape cites the Handoffs row that carries its items. The table follows the Process Map diagram: no rows for people or systems the automation only reads from or acts on (the diagram omits them), a human task a component creates (an Action Center task) keeps its row because it carries a data contract, one row per queue edge naming the queue(s) by name, never "the queues", and one row per call and per file or mail handoff between components.
|
|
224
222
|
|
|
225
223
|
### Deployment (process)
|
|
226
|
-
|
|
224
|
+
Packaging (one solution vs independent packages), entry points and triggers, target folders or environments. Name the buildable projects explicitly; a library is listed with the feed it is published to, apart from the solution's projects, since it is never one of them; when test components exist, Deployment names exactly one test project and one Test Manager test set per test component.
|
|
227
225
|
|
|
228
226
|
## Design Links
|
|
229
227
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
`> Designed in: [<SDD title>](<relative path to the SDD>) · sdd-sha256 <SDD_FINGERPRINT>`
|
|
233
|
-
|
|
234
|
-
The fingerprint is mandatory. Obtain it only after content is final by running `node "<SKILL_DIR>/scripts/sdd-fingerprint.mjs" "<SDD_PATH>"`, where `<SKILL_DIR>` contains this skill's `SKILL.md`. For a solution, `<SDD_PATH>` is the root SDD and the fingerprint covers root plus every listed child SDD. The SDD's `Genome` row and an older `Tasks file` row do not change it.
|
|
235
|
-
|
|
236
|
-
The build builds as written and hands a case SDD unchanged to `uipath-maestro-case`. `uipath-planner` keeps the genome current: an SDD change ends with `edit`'s “The SDD was revised” ([edit-guide.md](../edit/edit-guide.md)) and a new fingerprint ([sdd-writing-guide.md](../design/sdd-writing-guide.md) § Keeping the Genome Current). Strict check fails a `Designed in:` line whose fingerprint no longer matches its SDD (root plus every child for a solution), or whose SDD cannot be read.
|
|
228
|
+
One optional blockquote line after the blueprint blockquote (the process genome's, or a standalone component's) ties a genome to the document it derives from. It is written only when that document exists; it is never invented.
|
|
237
229
|
|
|
238
|
-
|
|
230
|
+
- **`> Designed in: [<SDD title>](<relative path to the SDD>) · sdd-sha256 <SDD_FINGERPRINT>`** — the genome was authored from that agreed SDD. The fingerprint is required on every `Designed in:` line. `<SDD_FINGERPRINT>` is what `node "<SKILL_DIR>/scripts/sdd-fingerprint.mjs" "<SDD_PATH>"` prints once the genome's content is final (`<SKILL_DIR>` is the folder holding this skill's `SKILL.md`); for a solution `<SDD_PATH>` is the root SDD, and the fingerprint covers the root and every child SDD it lists. The SDD's `Genome` row, and an older SDD's `Tasks file` row, do not change it. The build builds the genome as written and hands a case component's SDD to `uipath-maestro-case`. `uipath-planner` keeps the genome current: an SDD change ends with `edit`'s "The SDD was revised" ([edit-guide.md](../edit/edit-guide.md)) and a new fingerprint ([sdd-writing-guide.md](../design/sdd-writing-guide.md) § Keeping the Genome Current). The strict check fails a `Designed in:` line whose fingerprint no longer matches its SDD (root plus every child for a solution) or whose SDD cannot be read, so a stale genome never passes. The SDD's decisions — the split and queue design, the implementation mode, the package pins, the refactor answers — are recorded in the sections that hold them (a flow's `Decided:` line, Configuration Questions defaults, a process genome's Deployment). The genome restates the SDD's products and projects and never contradicts them; which changes to a designed genome go to `design` first: [edit-guide.md](../edit/edit-guide.md) § Any genome.
|
package/version-manifest.json
CHANGED