/uipath:uipath-rulesfrom uipath
Creates, edits, validates, and debugs UiPath Business Rules (.dmn, DMN 1.5, FEEL) in BusinessRules projects. Covers decision tables, decision graphs, evaluation sets, and deployed rule management.
Ships in uipath. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A Business Rules project holds one .dmn rule of one or more decisions. DMN and FEEL follow the OMG standard; this skill covers only what UiPath accepts on top of it.
.dmn in a BusinessRules projecthttps://www.omg.org/spec/DMN/20230324/... and DC/DI http://www.omg.org/spec/DMN/20180521/.... When editing a file on an older DMN version, rewrite it to these namespaces..dmn per project. rules debug evaluates only the project's first .dmn; rules eval refuses more.<uipath:authoring surface="…" /> picks the editor: keep the decision-table surface init scaffolds while the rule is one table, and switch to decision-graph only when the file gains a second decision, a knowledge model, a knowledge source, or a text annotation; validate checks neither. Read the Decision Graphs Guide before authoring or editing a graph. A decision reads an upstream one by that one's name when it has one output, as name.column when it has several, never by a bare column name. Critical Rule 16 lists what a rule never holds.<description> element, or a <textAnnotation> tied to the element it is about.string, number, boolean, Any, date, time, date and time, days and time duration, years and months duration, for both columns and input arguments.init; after every edit, format, refresh then validate. An existing project needs no init: edit its .dmn and run refresh. Fix what validate reports, then recreate, never hand-edit, each evals/rule/ data point the edit changes (Evaluate Guide step 3). Never hand-write or delete project.uiproj, entry-points.json, or bindings_v2.json; keep the scaffolded .dmn file and its root element.validate passes and debug returns the reviewed design's outputs for every decision. One run covers every decision; each case the request names gets at most one run. Never write a cases file, loop or script debug, or run it per row or decision; tests the user asks for are an evaluation set (Evaluate Guide), and a create or edit request asks for none. Never re-run debug to inspect a wrong or failed run: read the trace (uip traces spans get <TRACE_ID>), fix, run once more. Error retries follow Critical Rule 12. After 3 fix rounds, stop and show the user the tables and the failing inputs.uip solution. When a uip rules command says Business Rules is not available on the tenant, or not enabled for the organization, stop and relay the CLI's instruction (its Failure Modes Guide row). Pack, publish, and deploy belong to the uipath-solution skill.<output>, declare one <annotation name="Annotation" />, and give each <rule> one <annotationEntry> naming its case: the review table's Annotation column. A literal-expression decision has neither.format draws them. Leave DMNDI out of a new .dmn, and run uip rules format <PROJECT_DIR> after adding or removing an input, a decision, a knowledge model or a text annotation: it places new shapes, drops deleted ones, and keeps the user's layout. validate never checks the diagram. When editing a .dmn that has one, keep its dmndi:DMNDI element as it is; dropping it discards the layout the user arranged.init reports Data.RuleStatus: "Preserved", or that the project already exists — its rule is the user's, not a placeholder: leave its files unchanged. Change it only when the request asks to. When a user can answer, ask once: "Edit the existing rule", "Create the new rule as <RULE_NAME>2", "Something else". When no one will answer, create it under a free name such as <RULE_NAME>2 and say so in your final reply as an assumption the user must confirm. Never pass init --force to get past the existing project.Retry field; never re-run a command unchanged. RetryWillNotFix means the same command fails again until something changes. Apply the fix the error's row in the Failure Modes Guide names, such as editing the project, correcting a flag or name, or updating the CLI, then re-run. When the row says stop, or names no fix, stop and show the user the error. Another folder spelling, profile or login is not a fix unless the row names it. RetryAfter<N>Second(s) or RetryLater: wait, run the same command once more, and if it fails again, stop and report the error. An error with no Retry field follows its row the same way. A project name that already exists follows Critical Rule 11.nightlyRate and minimumStay, is one decision both require. "Guests the front desk marks VIP get the Concierge line" is a decision that requires the VIP decision. Never fold either into another table's rows or output columns. A term only one answer reads stays a condition in that answer's table: "stays longer than 14 nights are long stays and pay the monthly rate" is one rate decision.amenities, not amenity. The caller reads it under that name, nested under its decision's name.uip rules init <RULE_NAME> --output json
Run init from the solution folder when one exists; outside a solution it creates <RULE_NAME>Solution/<RULE_NAME>/. The rule is the one .dmn file in the project folder. After Data.RuleStatus: "Created", the scaffolded table is a placeholder; step 3 replaces it. The table is the placeholder — not the root element, and not its extensionElements, which already carry the right authoring surface. Data.RuleStatus: "Preserved" means the project already held a rule and init left it untouched: Critical Rule 11 applies.
Choose the shape first, from what the caller reads:
| The policy | Shape |
|---|---|
| One value, from one set of inputs | One decision |
| Values one lookup returns together — each row of a rate card lists a room rate and its deposit | One decision, one output column each |
| Two values the business decides separately, each from its own inputs — a room upgrade and a late-checkout fee | One decision each |
| A term two answers read, or a value stated in terms of another answer | Its own decision (Critical Rule 13) |
| One calculation run on different arguments — the same city tax on the room charge and on the spa charge | A knowledge model each answer calls |
| A column the caller never reads, carried only to reach the next row | Still one decision; a column is not a decision |
Never split one answer across tables to make each table smaller: each decision is an entry point a consumer can bind to. More than one decision, or a knowledge model, needs the Decision Graphs Guide; read it before authoring.
Then choose each table's hit policy from how its rows relate:
| The rows | Hit policy |
|---|---|
| Never overlap — every input matches at most one row | UNIQUE |
Overlap on purpose — a catch-all - row, or a narrow row before a broad one; the first match wins | FIRST |
| Every matching row answers, and the caller reads the list | COLLECT |
A - entry matches every value in its column, so it overlaps any row that names a value there: "Suite", "Weekend" and "Suite", - both match a suite at the weekend. Before choosing UNIQUE, check each pair of rows. If one input can match both, use FIRST with the more specific row first, or write the - as the cases left over (not("Weekend")) and keep UNIQUE. Prefer UNIQUE when no pair overlaps; the engine then fails an input that matches two rows instead of silently taking the first.
Show each table as Markdown before authoring and after each change, upstream decisions first, each named. Ask what the request leaves open first (Critical Rule 15).
**Hit policy:** FIRST
| # | creditScore (number) | income (number) | riskBand (string) | Annotation |
|---|---|---|---|---|
| 1 | < 580 | - | "High" | Subprime |
| 2 | [580..700) | >= 50000 | "Medium" | Near-prime, sufficient income |
| 3 | - | - | "Low" | Default |
Replace the scaffolded table with the reviewed design, and add the other decisions a graph needs.
uip rules format <PROJECT_DIR> --output json
uip rules refresh <PROJECT_DIR> --output json
uip rules validate <PROJECT_DIR> --output json
Run format whenever the edit added or removed a drawn element; it writes only the files whose diagram changed. Fix every error in Data.Diagnostics, then run all three again.
uip rules debug <PROJECT_DIR> --inputs '<INPUTS_JSON>' --output json
--inputs takes one JSON object keyed by input-argument name, or @<FILE>. Compare Data.result.decisions[].outputs with the expected values, for every decision the rule holds. The run failed when debug exits 1 (Result: Failure); the decision and input errors are in Data.result, the summary code in Data.error. On a mismatch, read the trace:
uip traces spans get <TRACE_ID> --output json
<TRACE_ID> is Data.traceId, present when tracing is on (the default); the trace shows which rules fired, and without it you compare the inputs against each row by hand. debug needs the project directly inside its solution folder and a logged-in user; it uploads the solution's files (.uipignore applied) and overwrites its Studio Web solution, so pull Studio Web edits first.
uip rules list --folder-path <FOLDER_PATH> --output json
uip rules list --all-folders --output json
uip rules get <RULE_NAME> --folder-path <FOLDER_PATH> --output json
uip rules versions <RULE_NAME> --folder-path <FOLDER_PATH> --output json
uip rules describe <RULE_NAME> --folder-path <FOLDER_PATH> --output json
Each command takes --folder-path or --folder-key, never both. Exception: list --all-folders spans every folder you can see (mutually exclusive with the folder flags) — use it to locate a rule when its folder is unknown. describe returns the active version's entry points, with InputArguments and OutputArguments as JSON Schema strings. OutputArguments carrying "x-uipath-decision-keyed": true nests each output under its decision's name.
A deployed rule is held by the Business Rules service, or still by Orchestrator when it was deployed before rules moved there; each row's Source (BusinessRules or Orchestrator) says which. get, versions, describe and list --all-folders find a rule in either. list on one folder shows the service's rules there, or Orchestrator's when the service holds none in that folder. When it leaves Orchestrator's rules out, it says so on stderr: read those by name with get, or find them with list --all-folders.
Binding a rule into a process, workflow, or case belongs to that artifact's skill.
id and name and the .dmn file name. Consumers bind to the entry point /<file>.dmn#<decisionId>, and renaming either points them at an entry point that no longer exists.evals/rule/, never edit its files, even to fix one expected value: each data point keeps a copy per evaluator, and a hand edit leaves those stale. For each data point whose expected output the edit changes, uip rules eval delete it and uip rules eval create it again with the same name and inputs (Evaluate Guide step 3); leave the others alone. When the CLI has no uip rules eval, leave the eval files unchanged and name those data points in your final reply.| Reference | When to read |
|---|---|
| Decision Graphs Guide | The shape table in step 2 picks more than one decision or a knowledge model, or the rule already holds one |
| Failure Modes Guide | A uip rules command reports an error — after Critical Rule 12. uip rules eval adds its own errors in the Evaluate Guide's Failures table |
| Evaluate Guide | Writing, running, or reading a rule's evaluation sets (uip rules eval) |
typeRefvalidate rejects itdmndi: shapes by hand instead of running uip rules formatWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub uipath/skills --plugin uipath34 skills in this plugin
/uipath-a2a-agentsUiPath Agent Gateway A2A agents (`uip agenthub remote-a2a-agent` / `remote-a2a-agent-user-connections`). Add an external A2A agent (Salesforce Agentforce, Microsoft Foundry, any agent that publishes an agent card) from its card link or card JSON; sign it in with an OAuth Agent 2 Agent connection or with headers from Orchestrator assets; give a person their own Agent 2 Agent connection; change it, refresh its card, show it or remove it. Agents and Maestro flows can then call it. For calling an A2A agent from a flow→uipath-maestro-flow. For MCP servers→uipath-mcp-servers./uipath-activity-migratorUiPath Activity Migrator — migrate Windows-Legacy RPA projects (`targetFramework: Legacy`, classic `ui:` activities) to the Windows framework and rewrite UiPath's own classic activities into their modern UiPath counterparts with `uip rpa project migrate`/`UiPath.Upgrade.exe`. Windows only. Third-party or custom packages are not rewritten, only version-moved. Acquires the tool, resolves the target UIAutomation line, runs analyze then upgrade into a sibling folder, verifies with `uip rpa build`, triages the SARIF. Classic UI Automation→modern UIA, Outlook classic→Microsoft 365, GSuite classic→modern, Microsoft.Activities.Extensions→Invoke Code. Also the post-migration fix for migrated projects whose expression-selector targets fail or silently report not-found. Authoring or editing Legacy `.xaml`→uipath-rpa. Migration-readiness review without running the tool→uipath-review. Post-migration failures with neither marker nor annotation→uipath-troubleshoot. Maestro `instance migrate`→the Maestro skills.Other plugins' skills for the same job