@uipath/skills 1.207.0-preview.2141 → 1.207.0-preview.2172

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 (27) hide show
  1. package/CODEOWNERS +8 -0
  2. package/README.md +1 -0
  3. package/assets/skill-status.json +8 -0
  4. package/assets/uip-catalog-snapshot.json +13 -0
  5. package/package.json +1 -1
  6. package/skills/uipath-ontology/SKILL.md +316 -0
  7. package/skills/uipath-ontology/references/artifacts-guide.md +53 -0
  8. package/skills/uipath-ontology/references/document-guide.md +128 -0
  9. package/skills/uipath-ontology/references/entity-guide.md +162 -0
  10. package/skills/uipath-ontology/references/errors-guide.md +70 -0
  11. package/skills/uipath-ontology/references/mapping-yarrrml-guide.md +260 -0
  12. package/skills/uipath-ontology/references/owl-patterns-guide.md +377 -0
  13. package/skills/uipath-ontology/references/relationships-guide.md +97 -0
  14. package/skills/uipath-ontology/references/shacl-patterns-guide.md +220 -0
  15. package/skills/uipath-ontology/references/summary-context-guide.md +61 -0
  16. package/skills/uipath-planner/SKILL.md +2 -2
  17. package/skills/uipath-planner/references/shared/skill-mapping-guide.md +1 -0
  18. package/skills/uipath-planner/scripts/check-genome.mjs +1 -0
  19. package/skills/uipath-solution/SKILL.md +1 -1
  20. package/skills/uipath-solution/references/develop-solution.md +4 -2
  21. package/skills/uipath-solution/references/pack-and-deploy.md +4 -0
  22. package/skills/uipath-solution/references/scenarios/local-entity-file-field.md +30 -0
  23. package/skills/uipath-solution/references/scenarios/ontology-solution.md +37 -0
  24. package/skills/uipath-solution/references/scenarios.md +4 -0
  25. package/skills/uipath-test/SKILL.md +10 -9
  26. package/skills/uipath-test/references/publish-and-link-guide.md +5 -3
  27. package/version-manifest.json +1 -1
package/CODEOWNERS CHANGED
@@ -63,6 +63,14 @@
63
63
  /tests/tasks/uipath-platform/data-fabric/ @UiPath/DatafabricCodingAgent
64
64
  /tests/tasks/uipath-platform/licensing/ @biftime @mihai-stef-uipath @dinud-uipath @bogdan-alexandru-uipath @raresgrm @cristiansinescu7-uipath
65
65
 
66
+ # Ontology skills (local solution: Ontology + local Entity resources)
67
+ /skills/uipath-ontology/ @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
68
+ /skill-flavors/studioweb/uipath-ontology/ @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
69
+ /tests/tasks/uipath-ontology/ @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
70
+ /tests/scripts/test_ontology_skill_contract.py @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
71
+ /tests/scripts/test_ontology_solution_golden.py @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
72
+ /tests/scripts/test_check_ontology_classes.py @diwakar-jha3110 @venkat202 @UiPath/DatafabricCodingAgent
73
+
66
74
  # Agents skill (coded + low-code)
67
75
  /skills/uipath-agents/ @UiPath/team-coded-agents @AlexandruCGhimisi @andreibalas-uipath @al3xanndru @andreitava-uip @UiPath/team-agents-cli
68
76
  /tests/tasks/uipath-agents/ @UiPath/team-coded-agents @AlexandruCGhimisi @andreibalas-uipath @al3xanndru @andreitava-uip @UiPath/team-agents-cli
package/README.md CHANGED
@@ -106,6 +106,7 @@ Every skill's maturity is tracked in [`assets/skill-status.json`](assets/skill-s
106
106
  | `uipath-maestro-case` | Stable |
107
107
  | `uipath-maestro-flow` | Stable |
108
108
  | `uipath-mcp-servers` | Preview |
109
+ | `uipath-ontology` | Preview |
109
110
  | `uipath-planner` | Stable |
110
111
  | `uipath-platform` | Stable |
111
112
  | `uipath-process-mining` | Preview |
@@ -177,6 +177,14 @@
177
177
  },
178
178
  "last_synced": null
179
179
  },
180
+ "uipath-ontology": {
181
+ "status": "preview",
182
+ "confluence": {
183
+ "page_id": null,
184
+ "url": null
185
+ },
186
+ "last_synced": null
187
+ },
180
188
  "uipath-planner": {
181
189
  "status": "stable",
182
190
  "confluence": {
@@ -1128,6 +1128,19 @@
1128
1128
  "model-hub routing-history list",
1129
1129
  "model-hub tenants",
1130
1130
  "model-hub tenants get",
1131
+ "ont",
1132
+ "ont artifacts",
1133
+ "ont artifacts check",
1134
+ "ont create",
1135
+ "ont delete",
1136
+ "ont files",
1137
+ "ont files add",
1138
+ "ont files list",
1139
+ "ont files remove",
1140
+ "ont get",
1141
+ "ont list",
1142
+ "ont update",
1143
+ "ont validate",
1131
1144
  "or",
1132
1145
  "or assets",
1133
1146
  "or assets create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2141",
3
+ "version": "1.207.0-preview.2172",
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"
@@ -0,0 +1,316 @@
1
+ ---
2
+ name: uipath-ontology
3
+ description: "UiPath Ontology (.ofn, .yarrrml.yml, optional summary/context .json and SHACL .ttl). Always invoke to build or update an ontology, even from an SDD or PDD. Models a domain and builds the ontology and its local entities as a UiPath solution with the local (`--local`) `uip ont` and `uip df entities` commands, validates with the ontology service, then packs; also reads a deployed ontology (`uip ont get|list --folder-path`). Input: an SDD, PDD or design document, a plain-language domain, or existing artifact files to clone or rebuild. For publish/deploy/activate of the packed solution→uipath-solution. For PDD→automation SDD design→uipath-planner. For Data Fabric entity or record work outside an ontology→uipath-platform."
4
+ when_to_use: "User provides an SDD, PDD or design/domain specification and wants an ontology from it; describes classes, fields, and relationships and wants an ontology; or supplies .ofn/.ttl/.yarrrml.yml files to clone or turn into a solution. Also: 'list the ontologies in folder X', 'show the deployed ontology Y'."
5
+ allowed-tools: Bash, Read, Write, Edit
6
+ user-invocable: true
7
+ ---
8
+
9
+
10
+ # UiPath Ontology
11
+
12
+ Builds an ontology as a **local UiPath solution**: one ontology resource plus the local Data Fabric entities, choice sets and federated entities it reads, all linked by name. The CLI keeps one zip per ontology; the skill never builds, reads or edits it. Nothing is created on the tenant before deploy.
13
+
14
+ ## When to Use This Skill
15
+
16
+ - The user supplies an SDD, PDD, design document or domain specification and wants an ontology built from it.
17
+ - The user describes a domain (classes, fields, relationships, value lists) in plain language and wants an ontology.
18
+ - The user supplies `.ofn`, SHACL `.ttl` or `.yarrrml.yml` files to clone, rebuild or turn into a solution.
19
+ - Publish or deploy of the packed solution → `uipath-solution`.
20
+
21
+ | Mode | Input | Stages |
22
+ |---|---|---|
23
+ | Document | An SDD, PDD, design document or domain specification (file, Confluence URL or pasted text) | Stages 1–9 in order; Stage 2 confirms the model one table at a time per [document-guide.md](references/document-guide.md) |
24
+ | Standalone | Plain-language domain description | Stages 1–9 in order |
25
+ | Files | The user supplies the artifact files (clone or rebuild) | Copy the supplied files into `WORKDIR`, derive the entity definitions from the mapping (Stage 2), then Stages 3 and 4, then `artifacts check` on the supplied files (Stage 5), then Stages 6–9 |
26
+ | Artifacts only | The user wants the artifact files, no solution. The input may be a document, a description or files; a document is confirmed table by table as in Document mode | Stages 1, 2 and 5. The artifacts are written from the confirmed entity definitions; no solution and no entities (Stages 3–4 are skipped). Stops after Stage 5 |
27
+
28
+ In Files mode, copy only artifact files (`.ofn`, `.ttl`, `.yarrrml.yml`, `.json`), never symlinks or subfolders. When cloning, rename `{oldName}` to `{name}` in file names, IRIs and `PREFIX ont:` lines, and remove every Data Fabric id from the mapping (keep `table: <Entity>`).
29
+
30
+
31
+ ## Critical Rules
32
+
33
+ 1. **Every step runs through the `uip` CLI with `--output json`.** No scripts, REST or SDK calls; never write into `resources/files/` or the `.uipx` by hand.
34
+ 2. **Entities, relationships and choice sets are authored locally with `uip df … --local`.** An entity is an entity project (`<Name>/project.uiproj` + `<Name>.entity`) with its resource at `resources/solution_folder/entity/native/<Name>.json`; federated: `entity/federated/<Name>.json`; choice set: `choiceSet/<Name>.json`. Nothing is created on the tenant before deploy.
35
+ 3. **Every `uip df` create or update carries `--local`.** No tenant folder scope on any `uip df` command.
36
+ 4. **Duplicate check before any create** (`uip df choice-sets list --local`, `uip df entities list --local`). Reuse a matching definition; when it differs, ask before changing it. Never a silent update.
37
+ 5. **The only remote import is a federated entity's connection:** `uip solution resources add --source remote --kind Connection --name <CONNECTION> --folder-path "<CONNECTION_FOLDER>"`. No entity or choice-set import, re-import or refresh.
38
+ 6. **`uip ont --help` runs first in every mode. `uip login status` runs next, except in Artifacts-only mode** (offline; see Stage 1). Being logged out never blocks Stage 2: the model is confirmed and saved without a tenant, and login is asked for before Stage 3. The connection import, a federated entity's create over a connector source and service validation need login; native entities, choice sets and a federated entity over local native sources only do not.
39
+ 7. **A relationship is one `RELATIONSHIP` field on the referencing entity**; its inverse lives only in the schema (`InverseObjectProperties`). A federated target means a plain-column join. See [relationships-guide.md](references/relationships-guide.md).
40
+ 8. **Choice sets are mapped by value name** (`xsd:string`; the schema comment lists the values); `CHOICE_SET_MULTIPLE` gives one triple per value. See [mapping-yarrrml-guide.md](references/mapping-yarrrml-guide.md#choice-set-columns).
41
+ 9. **No Data Fabric id or GUID** (entity, field, choice-set, value, connection or folder) in an artifact, the saved model, `WORKDIR` or a `--body`. Bodies reference entities and choice sets by name.
42
+ 10. **An entity change is a local edit** (`uip df entities update <E> --local`), followed by validate.
43
+ 11. **Validation needs `uip login`.** `uip ont validate --local` always calls the ontology service; stop if it can't be reached. `uip ont artifacts check` is the offline per-file check.
44
+ 12. **Stop after pack.** The skill ends with `uip solution pack` and `uip ont files list --package`; publish and deploy belong to `uipath-solution`.
45
+ 13. **Save the confirmed model to `<WORKDIR>/input/model.md`** after each confirmation, and save every later fix to it before the next step ([Saved model](#saved-model)). It survives a compacted or ended session.
46
+ 14. **Ontology names are unique per folder.** Never rename the ontology resource while authoring; a new name means a new resource. Change its display name, description and entities only with `uip ont update --local`, and its files only with `uip ont files add|remove`.
47
+ 15. **What the user gives is authoritative.** Ask before changing anything the user stated. Produce the schema, the mapping and the optional summary and context; no business rules, functions or actions.
48
+ 16. **Constraints are optional.** The ontology service stores a SHACL constraints file without using it, so write one only when the user supplies one or asks for it. Record required, range and value-list rules in the schema's `rdfs:comment` text ([owl-patterns-guide.md](references/owl-patterns-guide.md)).
49
+ 17. **No `uip ont`, no build.** When a `uip ont` command fails with `unknown command 'ont'` (Stage 1 checks this before anything else), the installed `uip` predates the ontology tool. Stop, tell the user to update `uip` and re-run, and report what is done so far (the saved model, the local entities). Never pack, refresh or import resources to work around it: a package without the ontology is not the result.
50
+
51
+ ## Paths
52
+
53
+ ```text
54
+ ONTOLOGY_NAME ^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$ resource name, file prefix and IRI slug, verbatim
55
+ ONTOLOGY_IRI https://ontology.uipath.com/<ONTOLOGY_NAME>#
56
+ WORKDIR <BASE_DIR>/<ONTOLOGY_NAME>/ artifacts at top level, plus input/
57
+ SOLUTION_DIR <SOLUTION_PARENT>/<SOLUTION_NAME>/ absent (new) or holding exactly one .uipx
58
+ ```
59
+
60
+ `WORKDIR` and `SOLUTION_DIR` are separate and absolute: neither is inside the other, and they are never the same path. When the user names the solution after the ontology under the same base directory, propose `<ONTOLOGY_NAME>-solution` as `SOLUTION_NAME` and confirm it. Artifacts-only mode has no `SOLUTION_DIR`: no solution is asked for, checked or saved. Write files only inside `WORKDIR`; change `SOLUTION_DIR` only through `uip` commands. Quote every path. File names, types and counts are in [artifacts-guide.md](references/artifacts-guide.md).
61
+
62
+ ## Saved model
63
+
64
+ The confirmed model lives in `<WORKDIR>/input/model.md`, the only file this skill writes besides the artifacts and `input/entities/`. Its first line is `CONFIRMED_THROUGH: <step>`: `concepts`, `properties` or `labels` while Document mode confirms its tables, `model` once the whole model is confirmed (every mode), `built` once Stage 8 has packed. Below it, one `text` fenced block with these fields, filled as far as confirmed:
65
+
66
+ ```text
67
+ ONTOLOGY_NAME: exact slug (unique per folder; the solution's own ontology is upgraded in place, a same-name ontology the solution does not own is a deploy conflict)
68
+ ONTOLOGY_IRI: https://ontology.uipath.com/{name}#
69
+ DISPLAY_NAME: optional; defaults to ONTOLOGY_NAME
70
+ DESCRIPTION: optional
71
+ WORKDIR: absolute path of the dedicated {name}/ artifact folder
72
+ SOLUTION_DIR: absolute path of the solution folder to create or update; entities and choice sets are authored there locally. Absent in Artifacts-only mode
73
+ CLASS_MAP: class -> entityName; names only, no ids
74
+ ENTITY_DEFINITIONS: entityName -> confirmed Data Fabric entity body, authored locally as is; names in place of ids (referenceEntityName, referenceFieldName default Id, choiceSetName)
75
+ CHOICE_SETS: choiceSetName -> [value names in order]
76
+ RELATIONSHIPS: [{ property, from, to, relationshipField, toColumn }] ([] when none); relationshipField is the RELATIONSHIP field on `from` (toColumn Id), or a plain column when `to` is federated
77
+ FEDERATED_SOURCES: entityName -> { sources: [ { connector: <connectorKey>, connectionName, object, fields } | { entityName, fields } ], joins: [ { source, relatedSource, sourceField, relatedField, sourceConnectionName, relatedConnectionName } ] } by name ({} when none); a join's sourceConnectionName/relatedConnectionName is the side's connectionName, or its entityName for a native source. A { entityName } source is a local entity in the same solution. fields entries are external field names or { source, name?, type?, direction?, searchable?, sortable?, requiredForRead? } (field options as in uipath-platform's federated entities). Each connectionName is imported into the solution with uip solution resources add --source remote --kind Connection --name <connectionName> --folder-path <CONNECTION_FOLDER>; no id is stored anywhere
78
+ MAPPING_STATUS: supplied | generate
79
+ DOMAIN_MODEL: confirmed classes, properties, relationships, constraints
80
+ ANNOTATIONS: confirmed labels, comments, synonyms, value domains, grain, and class domains (groups): class -> domain label
81
+ ```
82
+
83
+ `MAPPING_STATUS: supplied` means check and use the supplied mapping (Files mode); `generate` means write it, and is invalid while a class-to-entity, field, join or identifier choice is ambiguous.
84
+
85
+ **Every change goes into the file first.** A fix after a failed step (a renamed entity after `NAME_RESERVED`, a class folded into a property after `XF-009`, a user's correction) is saved to `model.md` before the next command, so a retry or a new session starts from it.
86
+
87
+ **Update, not resume.** When `model.md` reads `CONFIRMED_THROUGH: built` and the user asks to change that ontology, follow [Updating an existing solution](#updating-an-existing-solution); do not offer to resume or start over.
88
+
89
+ **Resume.** When `WORKDIR` already holds `input/model.md` short of `built`, the folder is this skill's own earlier work. Show its `CONFIRMED_THROUGH` step and the confirmed tables, and ask whether to continue or start over; overwrite it only when the user starts over. A `model.md` with no `SOLUTION_DIR` is Artifacts-only: continuing after `model` re-runs Stage 5 only. Otherwise continuing after `model` re-runs Stages 3–9: an existing `SOLUTION_DIR` is not created again, the duplicate check (Critical Rule 4) reuses the entities and choice sets already authored, and an ontology the solution already has (`uip ont get <Name> --local`) is not created again: `files add` replaces its files. A `WORKDIR` holding files but no `input/model.md` was not written by this skill: ask for another folder.
90
+
91
+ ## Report
92
+
93
+ At the end, report:
94
+
95
+ ```text
96
+ SOLUTION_DIR: absolute path of the packed solution folder
97
+ PACKAGE_PATH: absolute path of the packed solution zip
98
+ ONTOLOGY_NAME: the ontology resource name
99
+ ENTITIES: entityName -> native | federated, authored locally in the solution
100
+ CHOICE_SETS: choiceSetName -> [value names], authored locally in the solution
101
+ CONNECTIONS: connectionName -> folder it was imported from; each needs sign-in after deploy (NeedsSetupToActivate)
102
+ PACKED_FILES: fileName -> type, from uip ont files list --package
103
+ VALIDATION: Done, with any remaining WARNING
104
+ UNRESOLVED_AMBIGUITIES: [] or the open items
105
+ ```
106
+
107
+ Artifacts-only mode has no solution or package; report instead:
108
+
109
+ ```text
110
+ WORKDIR: absolute path of the artifact folder
111
+ FILES: fileName -> type, with its `uip ont artifacts check` result (clean, or the WARNINGs left)
112
+ NOT_CHECKED: the cross-file (`XF-…`) and service checks; they run at `uip ont validate --local` once the files are built into a solution (Files mode)
113
+ UNRESOLVED_AMBIGUITIES: [] or the open items
114
+ ```
115
+
116
+ ## Workflow
117
+
118
+ Entities come before artifacts: a federated entity's fields are known only after `create --local` reads the connector, and a name or type corrected at create must reach the mapping before it is written.
119
+
120
+ ### Stage 1 — Check the CLI and sign in
121
+
122
+ In every mode, first check that the installed `uip` has the ontology tool:
123
+
124
+ ```bash
125
+ uip ont --help
126
+ ```
127
+
128
+ When it fails with `unknown command 'ont'`, stop before asking anything (Critical Rule 17): tell the user to update `uip` and re-run.
129
+
130
+ ```bash
131
+ uip login status --output json
132
+ ```
133
+
134
+ Artifacts-only mode skips the login check: `artifacts check` is offline. In every other mode, when not logged in, say so and go on to Stage 2: confirming and saving the model needs no tenant. Before Stage 3, ask the user to run `uip login` and wait. The connection import, a federated entity's `create --local` over a connector source (it reads the connection and the connector metadata) and service validation need it. Native entities, choice sets and a federated entity over local native sources only do not. Nothing is created on the tenant.
135
+
136
+ ### Stage 2 — Model and confirm
137
+
138
+ Collect only what is missing: the document, domain or source files, any entity definitions the user has, `ONTOLOGY_NAME`, optional display name and description, the solution (new name or existing folder; not in Artifacts-only mode) and the base directory. Resolve every path to an absolute path and reject a name that fails the `ONTOLOGY_NAME` pattern, or nested `WORKDIR` and `SOLUTION_DIR`. A `WORKDIR` that already holds `input/model.md` is resumed ([Saved model](#saved-model)); one holding other files is refused.
139
+
140
+ In Document mode, read the document and confirm the model in three tables per [document-guide.md](references/document-guide.md), saving `model.md` after each (run `mkdir -p "<WORKDIR>/input"` before the first save). In the other modes, show one reviewable model: classes with grain, entity name and domain (the business area the viewer groups the class under, 3–7 per ontology; see [owl-patterns-guide.md](references/owl-patterns-guide.md#domain-annotation)) (never `Order` or `Group`, which the CLI refuses: propose `SalesOrder`-style names, see [entity-guide.md](references/entity-guide.md)), data properties with xsd and field types ([entity-guide.md](references/entity-guide.md)), relationships ([relationships-guide.md](references/relationships-guide.md)), choice sets with their value names, federated sources and joins, and constraints. The confirmed model fixes the entity, field, relationship and choice-set names. In every mode, when the model has a `FILE` field, tell the user before they confirm that later upgrades keep that entity as installed, so fields added to or changed on it are not applied ([entity-guide.md](references/entity-guide.md#xsd-to-data-fabric-type)).
141
+
142
+ After confirmation, run `mkdir -p "<WORKDIR>/input/entities"`, save `model.md` with `CONFIRMED_THROUGH: model`, and write one entity definition per entity to `<WORKDIR>/input/entities/<Entity>.json` (Files mode derives them from the supplied mapping), with names in place of ids. Stage 4 creates each entity from its file, so write every file.
143
+
144
+ ### Stage 3 — Init the solution and import connections
145
+
146
+ Artifacts-only mode skips Stages 3–4 (no solution, no entities) and goes to Stage 5.
147
+
148
+ 1. When `SOLUTION_DIR` does not exist yet, create the solution from its parent folder:
149
+ ```bash
150
+ cd "<SOLUTION_PARENT>" && uip solution init "<SOLUTION_NAME>" --output json
151
+ ```
152
+ 2. For each `connectionName` in `FEDERATED_SOURCES`, find the folder that holds it (`uip is connections list --output json` lists candidates; ask when several match or the folder is unclear), then import it. This is the `uipath-solution` connection flow:
153
+ ```bash
154
+ uip solution resources add --source remote --kind Connection --name <CONNECTION> --folder-path "<CONNECTION_FOLDER>" --output json
155
+ ```
156
+ 3. Confirm with `uip solution resources list --kind Connection --source local --output json`.
157
+
158
+ ### Stage 4 — Author entities locally
159
+
160
+ The `uip df` commands take no `--solution-folder`: prefix each with `cd "<SOLUTION_DIR>" &&`, since the shell's working directory may differ. Follow [entity-guide.md](references/entity-guide.md) for bodies and create order.
161
+
162
+ 1. Duplicate check:
163
+ ```bash
164
+ uip df choice-sets list --local --output json
165
+ uip df entities list --local --output json
166
+ uip df choice-sets list-values <C> --local --output json
167
+ ```
168
+ Reuse a matching definition; ask before `update --local` when it differs.
169
+ 2. Choice sets, then their values one by one, in order:
170
+ ```bash
171
+ uip df choice-sets create <C> --local --display-name "<DISPLAY_NAME>" --output json
172
+ uip df choice-set-values create <C> <VALUE> --local --output json
173
+ ```
174
+ 3. Native entities in dependency order (a referenced entity first), previewing each schema before the create. In Document mode the confirmed tables are the preview: create without one. When a create changes a confirmed name or type (`NAME_RESERVED`, a refused type), ask, then save the change to `model.md`:
175
+ ```bash
176
+ cd "<SOLUTION_DIR>" && uip df entities create <E> --local --body "$(cat "<WORKDIR>/input/entities/<E>.json")" --output json
177
+ ```
178
+ 4. Federated entities last, after their connections and native sources. Logged in when a source is a connector source; a federated entity over local native sources only needs no login:
179
+ ```bash
180
+ uip df entities create <F> --local --body '<FEDERATED_BODY>' --output json
181
+ ```
182
+ 5. Validate the entities: `uip df entities validate --local --output json`.
183
+
184
+ ### Stage 5 — Write the artifacts against the created entities
185
+
186
+ Before writing anything, list the artifact files (name and type, one line each) and ask the user to confirm them as one batch; wait for the reply. Confirming the model in Stage 2 does not count; skip the ask only when the user already said to go ahead without further confirmation. When the user says stop, stop: `model.md` stays at `model`. Then write the schema, mapping and optional summary and context (constraints only per Critical Rule 16) into `WORKDIR` per [artifacts-guide.md](references/artifacts-guide.md). The mapping uses the created entity and field names exactly (artifacts-only mode: the confirmed definitions from Stage 2); a federated entity's external fields are the ones `create --local` read from the connector.
187
+
188
+ Two annotations the ontology viewer reads, written in every ontology:
189
+
190
+ - **Groups:** the schema declares `Declaration(AnnotationProperty(:domain))` and gives every class one `AnnotationAssertion(:domain :<Class> "<Domain>")` from the confirmed domains ([owl-patterns-guide.md](references/owl-patterns-guide.md#domain-annotation)). Without it the viewer draws no groups.
191
+ - **Source icons:** each mapping block over a federated entity with a connector source adds `system: <CONNECTOR_KEY>` to its source block, the `connector` of that source in `FEDERATED_SOURCES` ([mapping-yarrrml-guide.md](references/mapping-yarrrml-guide.md#source-system)). Without it the class shows the Data Fabric icon, not the connector's. Native entities get no `system:`.
192
+
193
+ Check each file (in Files mode, the supplied files):
194
+
195
+ ```bash
196
+ uip ont artifacts check "<PATH>" --output json
197
+ ```
198
+
199
+ The file name decides the type, the same way `files add` decides it. Pass `--type summary` or `--type context` only for a `.json` name that ends in neither `-summary` nor `-context`.
200
+
201
+ Fix every ERROR; show WARNINGs and fix them when the fix is mechanical. In a constraints file, `SHC-006` on a `CHOICE_SET_MULTIPLE` property is expected: never add `sh:maxCount 1` to it ([shacl-patterns-guide.md](references/shacl-patterns-guide.md#every-property-block-carries-shname-and-shmaxcount)). After 3 rounds on the same file with ERRORs left, stop and show them to the user. Artifacts-only mode stops here: tell the user that only the per-file check ran, and that the cross-file and service checks run only when the files are built into a solution (Files mode). Give the Artifacts-only [Report](#report).
202
+
203
+ ### Stage 6 — Create the ontology resource and add its files
204
+
205
+ ```bash
206
+ uip ont create <Name> --local --entity <E1> --entity <E2> [--display-name "<DISPLAY_NAME>"] [--description "<DESCRIPTION>"] --solution-folder "<SOLUTION_DIR>" --output json
207
+ uip ont files add <Name> <FILES…> --local --solution-folder "<SOLUTION_DIR>" --output json
208
+ ```
209
+
210
+ `files add` checks every file again; one ERROR attaches nothing. Re-adding a file name replaces it (`Replaced`). The cross-file rules (`XF-…`) run at validate.
211
+
212
+ ### Stage 7 — Validate until clean
213
+
214
+ ```bash
215
+ uip ont validate --local --solution-folder "<SOLUTION_DIR>" --output json
216
+ ```
217
+
218
+ Clean means no ERROR and `ServiceValidation` is `"Done"`. Validation always calls the service; logged out it fails `ServiceValidationUnavailable`. A local ERROR skips the service call (`serviceValidation` is `"Skipped"` in the failure's `Data`). When the service fails or cannot validate, `Data` still holds the local results.
219
+
220
+ - An entity fix is a local edit: `uip df entities update <E> --local --body '<CHANGE>' --output json`, then validate. A federated entity: `uip df entities delete <F> --local --yes`, then create it again. A choice-set fix: `uip df choice-set-values create <C> <VALUE> --local --output json`.
221
+ - An artifact fix: edit the file in `WORKDIR`, `artifacts check`, `files add`, then validate.
222
+ - Stop after 5 validate rounds with ERRORs left, or 2 rounds that report the same ERROR unchanged. Show the remaining ERRORs and return them in `UNRESOLVED_AMBIGUITIES`; never pack.
223
+
224
+ ### Stage 8 — Pack and confirm the contents
225
+
226
+ ```bash
227
+ uip solution pack "<SOLUTION_DIR>" "<SOLUTION_DIR>/out" --dry-run --output json
228
+ uip solution pack "<SOLUTION_DIR>" "<SOLUTION_DIR>/out" --output json
229
+ uip ont files list <Name> --package "<PACKAGE_PATH>" --output json
230
+ ```
231
+
232
+ Show the dry-run listing first. `PACKAGE_PATH` is the zip the real pack reports in `Data.Packages` (one path for this solution). The packed listing must equal the validated set; a mismatch means a file changed after validation (see the recovery table).
233
+
234
+ ### Stage 9 — Stop after pack and hand off to `uipath-solution`
235
+
236
+ Save `model.md` with `CONFIRMED_THROUGH: built` and give the [Report](#report). When the user asks to deploy, hand off to `uipath-solution` with:
237
+
238
+ - The ontology name, unique per folder. The solution's own ontology upgrades normally. A same-name ontology the solution does not own is a deploy conflict: the deployer chooses `Replace` or gives a new `name` in the deployment configuration (`RenameInSolution`). A rename onto a name another ontology holds fails the install (`InstallError`): choose another name.
239
+ - The entities and choice sets are created in the target folder at deploy from their local resources, or merged into a same-name entity there. Tell the user to check the target folder for same-name entities before deploying: a changed field type there is reported as `EntityConflict`.
240
+ - The federated connections, each needing sign-in after deploy (`NeedsSetupToActivate`), unless the deployer links each one in the deployment configuration to an existing signed-in connection of the same connector.
241
+ - A solution already deployed is upgraded in place, never deployed again: see [Updating an existing solution](#updating-an-existing-solution).
242
+ - The post-deploy check in the deployment folder belongs to `uipath-solution`. The skill runs nothing after this stage.
243
+
244
+ ## Updating an existing solution
245
+
246
+ The saved model is the record of what was built. When `<WORKDIR>/input/model.md` exists, read it with the current state, save each change to it before running that change, and set `CONFIRMED_THROUGH: built` again after the pack. When it does not exist (a solution built elsewhere), write it from the current state before the first change.
247
+
248
+ 1. Read the current state:
249
+ ```bash
250
+ uip ont get <Name> --local --solution-folder "<SOLUTION_DIR>" --output json
251
+ cd "<SOLUTION_DIR>" && uip df entities list --local --output json
252
+ ```
253
+ 2. Change locally, then link or unlink the entity. Report, never delete, entities that are no longer linked.
254
+ ```bash
255
+ cd "<SOLUTION_DIR>" && uip df entities create <E> --local --body '<BODY>' --output json # or: entities update <E>
256
+ uip ont update <Name> --local --add-entity <E> --solution-folder "<SOLUTION_DIR>" --output json # or: --remove-entity <E>
257
+ ```
258
+ 3. Attach new or changed files, and remove dropped ones:
259
+ ```bash
260
+ uip ont files add <Name> <FILES…> --local --solution-folder "<SOLUTION_DIR>" --output json
261
+ uip ont files remove <Name> <FILE> --local --solution-folder "<SOLUTION_DIR>" --output json
262
+ ```
263
+ 4. Validate (Stage 7), then pack (Stage 8) with a version above the deployed one: `uip solution pack "<SOLUTION_DIR>" "<SOLUTION_DIR>/out" --version <NEXT_VERSION> --output json`. Without `--version` the pack is `1.0.0` again, which the feed already holds.
264
+ 5. Hand off to `uipath-solution` to publish the new version and upgrade the existing deployment in place (its *deploy upgrade* flow, by deployment name and `<NEXT_VERSION>`). The upgrade keeps the deployment's folder, its entity data and its resource links (a linked connection stays linked). A new `deploy run` would create a second folder instead.
265
+ 6. A solution whose entity has a `FILE` field is rejected on every upgrade with `TypeIncompatible`. Tell `uipath-solution` when handing off; its local-entity `FILE`-field scenario finishes the upgrade.
266
+
267
+ ## Errors
268
+
269
+ Act on each violation's `rule`, `file` and `suggestion` (`Rule`, `File`, `Suggestion` in a success envelope; lower case in a failure's `Data`); never re-implement a check. The full recovery table, one row per rule and error code, is in [errors-guide.md](references/errors-guide.md). The most common:
270
+
271
+ | Signal | Action |
272
+ |---|---|
273
+ | `ValidationFailed`, `ArtifactCheckFailed` | The ERRORs are in `Data` (`Data.violations`); fix each per [errors-guide.md](references/errors-guide.md), then `files add` and validate |
274
+ | `ServiceValidationUnavailable` | Ask for `uip login`, then validate again; stop if the service stays unreachable |
275
+ | `ServiceValidationFailed` | Stop and tell the user; never pack as validated |
276
+ | `XF-012`, `XF-013` | Entity missing from the solution or column not a field: author or fix the local entity, link it with `uip ont update --add-entity`, validate |
277
+ | `XF-017`, `RELATIONSHIP_CYCLE` | Keep one `RELATIONSHIP` field per relationship; the inverse lives in the schema only |
278
+ | `XF-019` | Copy the choice-set value names exactly into `sh:in`, or add the missing value locally |
279
+ | `NAME_RESERVED` (in `Instructions`) | Rename the entity (`SalesOrder`, not `Order`), confirm, and use the name everywhere |
280
+ | `BLOCKED_AMBIGUITY` | A class-to-entity, join or identifier has no unique answer: stop and ask |
281
+ | `unknown command 'ont'` | The installed `uip` has no ontology tool: stop and ask the user to update `uip` (Critical Rule 17); never pack without the ontology |
282
+
283
+ ## Inspecting a deployed ontology
284
+
285
+ Read-only, logged in. Pass the deployment folder as exactly one of `--folder-path` or `--folder-key`, never with `--local`:
286
+
287
+ ```bash
288
+ uip ont list --folder-path "<FOLDER_PATH>" --output json
289
+ uip ont get <Name> --folder-path "<FOLDER_PATH>" --output json
290
+ ```
291
+
292
+ `list` takes `--limit` and `--offset` and then reports `Pagination`. A deployed ontology is changed only by changing its solution locally (§ Updating an existing solution) and upgrading through `uipath-solution`; never edit it on the tenant.
293
+
294
+ ## Reference Navigation
295
+
296
+ | Need | Read |
297
+ |---|---|
298
+ | Modeling from an SDD, PDD or design document: the three confirmation tables and how document phrases map to the model | [document-guide.md](references/document-guide.md) |
299
+ | Artifact files, types, counts, write order | [artifacts-guide.md](references/artifacts-guide.md) |
300
+ | Entity bodies, field types, reserved names, choice sets, federated bodies, create order | [entity-guide.md](references/entity-guide.md) |
301
+ | Which entity holds a relationship, inverses, cycles, federated targets, many-to-many | [relationships-guide.md](references/relationships-guide.md) |
302
+ | `{name}.ofn` schema patterns and OWL 2 QL limits | [owl-patterns-guide.md](references/owl-patterns-guide.md) |
303
+ | SHACL constraint shapes, only when the user supplies or asks for constraints | [shacl-patterns-guide.md](references/shacl-patterns-guide.md) |
304
+ | YARRRML mapping, joins, typed literals, USAGE POLICY | [mapping-yarrrml-guide.md](references/mapping-yarrrml-guide.md) |
305
+ | Optional summary and context files | [summary-context-guide.md](references/summary-context-guide.md) |
306
+ | Every rule and error code, and its recovery | [errors-guide.md](references/errors-guide.md) |
307
+
308
+ ## Anti-patterns
309
+
310
+ - Writing into `resources/files/`, the `.uipx` or the ontology zip by hand (Critical Rule 1).
311
+ - A `uip df` command without `--local`, or importing an entity or choice set from the tenant (Critical Rules 3 and 5).
312
+ - Writing artifacts before the entities exist: a federated entity's fields are known only after its create (Stage 5).
313
+ - A second `RELATIONSHIP` field for an inverse (Critical Rule 7).
314
+ - A data property mapped without its xsd range when the range is not `xsd:string` ([mapping-yarrrml-guide.md](references/mapping-yarrrml-guide.md#property-object-pairs-po)).
315
+ - Packing after `ServiceValidationFailed`, or reporting the solution as validated when `ServiceValidation` is not `"Done"`.
316
+ - Publishing or deploying: hand off to `uipath-solution` (Critical Rule 12).
@@ -0,0 +1,53 @@
1
+ # Ontology Artifacts Guide
2
+
3
+ The skill writes the ontology's artifact files into `WORKDIR` and attaches them to the Ontology resource with `uip ont files add`. The CLI packages them into the deployable zip. This guide lists the files, their types and how many of each the ontology takes.
4
+
5
+ | File | Artifact type | Media type | Count |
6
+ |---|---|---|---|
7
+ | `{name}.ofn` | `schema` | `text/owl-functional` | exactly 1 |
8
+ | `{name}-constraints[-{area}].ttl` | `constraints` | `text/turtle` | 0+ (optional) |
9
+ | `{name}-mapping.yarrrml.yml` | `mapping` | `application/yaml` | exactly 1 |
10
+ | `{name}-summary.json` | `summary` | `application/json` | 0..1 |
11
+ | `{name}-context.json` | `context` | `application/json` | 0..1 |
12
+
13
+ `{name}` is the Ontology resource name, verbatim, in every file name and every IRI.
14
+
15
+ Constraints are optional. The ontology service stores a SHACL file without using it, so write one only when the user supplies one or asks for it. Required, range and value-list rules go in the schema's `rdfs:comment` text.
16
+
17
+ Per-file format rules:
18
+
19
+ | Artifact | Guide |
20
+ |---|---|
21
+ | `schema` | [owl-patterns-guide.md](owl-patterns-guide.md) |
22
+ | `constraints` | [shacl-patterns-guide.md](shacl-patterns-guide.md) |
23
+ | `mapping` | [mapping-yarrrml-guide.md](mapping-yarrrml-guide.md) |
24
+ | `summary`, `context` | [summary-context-guide.md](summary-context-guide.md) |
25
+
26
+ Check one file at a time with `uip ont artifacts check <PATH>`. The file name decides the type, as in `uip ont files add`; pass `--type` only for a `.json` name that ends in neither `-summary` nor `-context`. That check is offline. Whole-ontology validation (`uip ont validate --local`) calls the ontology service and needs `uip login`.
27
+
28
+ ## Write order
29
+
30
+ 1. Schema (`{name}.ofn`): classes, properties, labels and comments.
31
+ 2. Mapping (`{name}-mapping.yarrrml.yml`): one block per class over the local entity, using the entity and field names exactly as created.
32
+ 3. Summary and context, only when they add value.
33
+ 4. Constraints (`{name}-constraints.ttl`), only when supplied or asked for: one shape per rule, over terms the schema declares.
34
+
35
+ Every term in a later file must exist in the schema.
36
+
37
+ ## Files the skill does not own
38
+
39
+ - `operations/` is reserved and empty. Put nothing in it.
40
+ - The CLI writes `ontology.json` and the zip. The skill never builds, reads or edits either one.
41
+
42
+ ## Entity-backed facts
43
+
44
+ - The mapping links a class to its entity by name only (`table: <EntityName>`). The service resolves the name in the deployment folder at install.
45
+ - System fields are `Id`, `CreateTime`, `UpdateTime`, `CreatedBy` and `UpdatedBy`. Never model them as domain properties. `$(Id)` is the subject key.
46
+ - A relationship is one `RELATIONSHIP` field on the referencing entity. The mapping joins it with `equal(str1=$(customer), str2=$(Id))`.
47
+ - A choice-set field is mapped by value name (`xsd:string`), and the schema comment lists its values (a constraints file, when written, lists them with `sh:in`).
48
+
49
+ ## Do not
50
+
51
+ - Write business rules, functions or actions into any artifact. The ontology describes data only: classes, properties, constraints and mappings.
52
+ - Write a Data Fabric identifier of any kind into an artifact. Reference entities, fields and choice sets by name.
53
+ - Put a `.txt` or manifest file in the artifact set. The summary is JSON.
@@ -0,0 +1,128 @@
1
+ # Document Guide
2
+
3
+ How Stage 2 runs in Document mode: the input is an SDD, PDD, design document or domain specification. The model is confirmed one table at a time (concepts, then properties and relationships, then labels), and each confirmed table is saved to `<WORKDIR>/input/model.md` before the next ([SKILL.md](../SKILL.md#saved-model)). Types, names and relationship rules are the ones in [entity-guide.md](entity-guide.md) and [relationships-guide.md](relationships-guide.md); this guide adds only how a document maps onto them.
4
+
5
+ ---
6
+
7
+ ## Read the document
8
+
9
+ The document is a file path, a Confluence URL or pasted text. Read it before asking anything else, and take from it:
10
+
11
+ - the **class names**, first;
12
+ - any **entity definitions or field lists** (tables, JSON bodies, column lists): a definition given in full is `supplied` and used verbatim, fields described in words are `described` ([entity-guide.md](entity-guide.md#how-a-definition-is-treated));
13
+ - **value lists**, which become choice sets;
14
+ - **external data sources**: a system, connector and connection the document names. A source with no connection name means asking for the connection and the folder that holds it.
15
+
16
+ Anything you propose from the domain rather than read from the document is `generated`: show it for confirmation.
17
+
18
+ ---
19
+
20
+ ## Table 1 — Business concepts
21
+
22
+ | Class | Entity name | Domain | Description (one line) | Synonyms | Subclass of |
23
+ |---|---|---|---|---|---|
24
+ | `Doctor` | `Doctor` | Care team | Medical practitioner licensed to treat patients | physician, doc | — |
25
+ | `Prescription` | `Prescription` | Treatment | A medication order issued by a doctor | script | — |
26
+
27
+ The entity name defaults to the class name and follows the entity-name rules in [entity-guide.md](entity-guide.md#xsd-to-data-fabric-type). Check it while the user approves this table: a document concept called "Order" or "Group", or a C# or VB keyword (`Case`, `Class`, `New`), gets a domain name (`SalesOrder`, `MaintenanceCrew`), and the class label may still say "Order".
28
+
29
+ The **domain** is the business area the viewer groups the class under ([owl-patterns-guide.md](owl-patterns-guide.md#domain-annotation)). Take 3–7 from the document's sections or process stages (`Master data`, `Purchasing`, `Intake`), give every class exactly one, and spell each the same way across its classes. Group by business area, not by source system.
30
+
31
+ | Document phrase | Model construct |
32
+ |---|---|
33
+ | "a/an X", "each X", "X is a" | New class |
34
+ | "also known as / aka / alias" | `skos:altLabel` on the class |
35
+ | "Y is a type of / subtype of Z", and Y has fields of its own | `SubClassOf(:Y :Z)`; Y gets its own entity |
36
+ | "Y is a type of Z", and Y has no fields of its own | Not a class: a choice-set value on Z (`Customer.tier` = `Premium`) |
37
+
38
+ **A subclass needs its own entity** (`XF-009`: every class is a property domain mapped over its own entity). A subtype with no fields of its own becomes a choice-set value on its parent.
39
+
40
+ **Not every noun is a class.** An actor, role or system named only in the narrative ("the AP Clerk captures the invoice"), with no fields and no entity, fails `XF-009`. Fold it into the relevant property's `rdfs:comment` instead (`Payment.approvedBy`: "The Accounts Payable Manager who approved this payment.").
41
+
42
+ ---
43
+
44
+ ## Table 2 — Properties and relationships
45
+
46
+ **Data properties.** Types per [entity-guide.md](entity-guide.md#xsd-to-data-fabric-type); field names follow its field-name rules (no underscores, none of the reserved or system field names).
47
+
48
+ | Class | Property name | XSD type | Data Fabric type | Required? |
49
+ |---|---|---|---|---|
50
+ | `Doctor` | `Doctor.licenseNo` | `xsd:string` | `STRING` | required |
51
+ | `Prescription` | `Prescription.quantity` | `xsd:integer` | `DECIMAL` (`decimalPrecision: 0`) | — |
52
+ | `Prescription` | `Prescription.status` | `xsd:string` | `CHOICE_SET_SINGLE` (`PrescriptionStatus`) | required |
53
+
54
+ Property names are `{ClassName}.{propName}` in camelCase, never `has{Prop}`.
55
+
56
+ **When you propose a `FILE` field, tell the user what it costs on upgrade:** a solution with a `FILE` field is refused on every later upgrade (`TypeIncompatible`), and `uipath-solution` finishes that upgrade by keeping the installed entity, so fields added to or changed on that entity in a later version are not applied. Ask the user to confirm the field with that in mind.
57
+
58
+ **Choice sets**, one per fixed value list:
59
+
60
+ | Choice set | Values (in order) | Used by | Select |
61
+ |---|---|---|---|
62
+ | `PrescriptionStatus` | `Active`, `Cancelled`, `Filled` | `Prescription.status` | single |
63
+
64
+ Value names are letters and digits and start with a letter. A property that allows several values uses `CHOICE_SET_MULTIPLE`.
65
+
66
+ **Object properties (relationships)**, one `RELATIONSHIP` field on the referencing entity each ([relationships-guide.md](relationships-guide.md)):
67
+
68
+ | Property | From | To | Relationship field | To column | Cardinality | Notes |
69
+ |---|---|---|---|---|---|---|
70
+ | `prescribedBy` | `Prescription` | `Doctor` | `doctor` (`RELATIONSHIP` on `Prescription`) | `Id` | exactly one | inverse: `prescribes` |
71
+ | `treatedAt` | `Visit` | `Clinic` (federated) | `clinicKey` (plain column) | `ClinicKey` | exactly one | federated target |
72
+
73
+ Use a reference field name the document gives; otherwise propose one and ask.
74
+
75
+ **Federated sources**, only when the document names external data a class reads:
76
+
77
+ | Entity | Source | Connection name | Object | Fields | Joins |
78
+ |---|---|---|---|---|---|
79
+ | `Clinic` | connector `<CONNECTOR_KEY>` | `<CONNECTION_NAME>` | `<OBJECT_NAME>` | `ClinicKey`, `Name` | — |
80
+
81
+ | Document phrase | Model construct |
82
+ |---|---|
83
+ | "X has a/an Y" | Data property `{X}.{propName}` |
84
+ | "X is linked to / belongs to Y" | Object property from X to Y, one relationship field on X |
85
+ | "X must have a Y" | Object property, required |
86
+ | "each X has exactly one Y" | Object property, exactly one |
87
+ | "X can have many Y AND Y can be shared across many X" | Junction class with its own entity ([relationships-guide.md](relationships-guide.md#many-to-many)); flag it to the user |
88
+ | "X can have many Y" (Y owned by one X) | Object property on Y pointing at X, no cardinality |
89
+ | "X is one of / has a status of A, B, C" | Choice set with those value names |
90
+ | "inverse of" | `InverseObjectProperties`, plus `SubObjectPropertyOf` for a subproperty |
91
+
92
+ Required and cardinality rules go into the schema's `rdfs:comment` text (Critical Rule 16), not a constraints file.
93
+
94
+ ---
95
+
96
+ ## Table 3 — Labels, descriptions and synonyms
97
+
98
+ Show one table at a time (classes, then data properties, then object properties) and wait after each.
99
+
100
+ | Class | `rdfs:label` | `rdfs:comment` (grain first) | `skos:altLabel` |
101
+ |---|---|---|---|
102
+ | `Doctor` | `"Doctor"` | `"ONE row per doctor, keyed by Id."` | `"physician"` |
103
+
104
+ | Property | `rdfs:label` | `rdfs:comment` | `skos:altLabel` |
105
+ |---|---|---|---|
106
+ | `Prescription.status` | `"Status"` | `"Values: 'Active' \| 'Cancelled' \| 'Filled' (case-sensitive)."` | — |
107
+ | `prescribedBy` | `"Prescribed by"` | `"Each Prescription is prescribed by one Doctor. Join: Prescription.doctor = Doctor.Id."` | — |
108
+
109
+ | Fact type | `rdfs:comment` form |
110
+ |---|---|
111
+ | Plain meaning | `"{What this field stores.}"` |
112
+ | Value domain (choice set) | `"Values: 'A' \| 'B' \| 'C' (case-sensitive; copy exactly)."` |
113
+ | Code list | `"'A' = meaning \| 'B' = meaning. '{Phrase}' means code IN ('A','B')."` |
114
+ | Format / scale | `"Stored 0–1 fraction; multiply by 100 for a percent answer."` |
115
+ | NULL with condition | `"NULL for ~N rows. NULLs sort last in DESC."` |
116
+ | Boolean | `"Compare true/false, never 1/0."` |
117
+
118
+ Keep domain facts (meaning, grain, value domains) in these comments, required and range rules in the property comments, and query or join guidance as its own sentence.
119
+
120
+ ---
121
+
122
+ ## What a document may ask for that this skill does not build
123
+
124
+ | The document asks for | Do |
125
+ |---|---|
126
+ | Query functions, write actions or business rules | Say they are not produced; record business constraints as schema comments |
127
+ | An external system with no connection named | Ask for the connection name and the folder that holds it |
128
+ | A class, field, join column, choice-set value or identifier with no unique answer | Stop and ask (`BLOCKED_AMBIGUITY`) |