/uipath:uipath-connector-builderfrom uipath
Authors UiPath Integration Service connectors (REST+JSON) on disk: init shell, configure auth, add activities, wire triggers, validate, and publish via `uip is connectors builder`.
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.
Author UiPath Integration Service connectors on disk with uip is connectors builder, then import + publish them through the parent uip is connectors. A connector is a periodic-* repo (periodic-uipath-{vendor}-{product} for official; periodic-design-{org}-{slug} for custom — init derives the design-{org}-{slug} element key from --name + --organization) whose core is app/element/element.json plus standard-resources/*.json and JavaScript hooks/. Connectors wrap REST APIs that return JSON only — no SOAP, GraphQL, or XML. Terminology: the authoring noun is activity (it maps to an element.json resource + a standard-resource file).
element.json / a standard-resource file.uip extension (init → validate → submit).Inspect before editing. On any existing connector, run builder inspect first to map auth, config, activities, hooks, and triggers. Never edit blind. Never invent config keys, activity paths, or IDs — read state first (inspect, activity list, state query).
Validate before you finish. Run builder validate at the end of every workflow and after each fix — it runs the full periodic check set and exits non-zero on failure. On failure, read the reported field, fix that one entry, re-validate. After 3 failed attempts on the same error, stop and surface the validate output — don't keep guessing. Don't stop at "0 errors": read the WARNINGS too — they flag real gaps that still ship a half-built connector (a fieldless activity, a broken SR link). Treat them as must-fix unless you can articulate why a given one is acceptable.
auth set owns all authentication. It writes the config entries, authentication.type / typeOauth / authenticationTypes, and the token-refresh resource in one call. Define scopes here too (--scope, --scope-options, --required-scopes, --preselected-scopes) — there is no separate scope command. init --auth oauth2|customApiKey is inline sugar for the create-time common case; everything else goes through auth set. Never hand-roll auth via state patch.
activity create writes both sides in one call — the standard-resource file AND one element.json entry per method. Re-running on an existing activity appends/merges. Pass --skip-sr (or use auth system create) only for system resources that need no SR file. Model GETBYID/PATCH/PUT/DELETE only for TRUE by-id endpoints — never for search. The by-id /{id} path param is added automatically: ALWAYS for GETBYID, and for PATCH/PUT/DELETE only when the activity is CRUD (it also has a GET/GETBYID); a write-only/action activity keeps its base path. The by-id path token and the primary key are separate — the token is substituted before the request leaves us (the vendor never sees its name), while the primary key names a field read back from the vendor's response. A trailing {token} in --vendor-path is NOT adopted as the key; pass --primary-key <vendor response key>.
state patch REPLACES the whole node at a pointer (no merge). To change one field: state query the entry, edit it, then state patch the COMPLETE object back. element-metadata.json has no addressable sub-paths — round-trip the whole file. Activity paths in pointers are URL-encoded: /contacts → %2Fcontacts. Use the dedicated authoring verbs for creation, not state patch.
Connector targeting. Builder verbs walk up from the cwd, then scan immediate subdirectories, then fall back to the .uip-connector.json marker init writes in the directory it ran from — so follow-up commands from that same directory hit the last-init connector automatically, even next to other connector dirs. Pass --connector-dir <PATH> to override or when working from elsewhere. import reads --connector-dir the same way (the connector root holding app/element/element.json); on download it instead names the OUTPUT directory to write the pulled connector into. Exception — init does NOT scan subdirectories (it would otherwise resolve a SIBLING connector and silently EDIT/rename it): to CREATE, run init from a fresh/empty directory (a dir that merely contains connector subdirs — e.g. /tmp — creates a new connector, it will not dive into a child to edit it); to EDIT, run from inside the connector or pass --connector-dir.
Output is the {Result, Code, Data} envelope. Add --output json to parse it. Failures exit non-zero. Never suppress stderr.
import / download / publish — and init when CREATING — need uip login. Authenticate before any tenant pull/push. A NEW connector's key design-{org}-{slug} takes its org from your logged-in session, so init create ERRORS when you're not logged in. Let it derive the org; do NOT pass a guessed --organization (a wrong org bakes into the key and only surfaces, mismatched, at import/publish) — --organization <slug> is only for offline/CI builds with a known org.
Never echo, log, or hard-code a secret. Secret config keys (client secret, API key, password, token) are written by auth set ENCRYPTED (encrypt: true) — most as PASSWORD fields, though some (OAuth tokens, a service-account JSON) are encrypted TEXTFIELD/TEXTAREA. End users supply real credentials at connection time; the connector holds only the auth TYPE + endpoint URLs + scopes. Use placeholders in every example command.
Prefer a built-in over a hook. Before writing JS, consult the decision table (references/hooks.md §"Decide first: hook or built-in?") — a hook is only for transforms, orchestration, or derivation no declarative feature expresses. One hook file per activity+method+phase; hooks run in Denali (modern JS + require('axios') for secondary calls) and must end every path with done().
Windows + Git Bash: disable MSYS path conversion FIRST. In Git Bash any argument starting with / is rewritten to a Windows path before the CLI ever sees it — --vendor-path /latest lands in element.json as C:/Program Files/Git/latest, validate PASSES it, the connector publishes, and it only fails at request time against the vendor with no local trace. Export MSYS_NO_PATHCONV=1 and MSYS2_ARG_CONV_EXCL='*' once per shell (or prefix every builder command). Affects every path option — --vendor-path, --resource-path, --method-vendor-path, --reference-path, --validation-vendor-path, --path, --polling-url. Quoting does NOT help (the rewrite happens after the shell strips quotes). If a connector already carries a mangled path, repair it with state patch.
Author the field schema for EVERY activity — activity create does NOT infer fields. An activity with no fields renders in Studio Web as a single raw JSON body in and raw JSON out, with zero typed inputs/outputs — a half-built connector that still validates and publishes, so the omission is easy to miss (it's a recurring failure: "got it valid and published" while skipping the schema). After activity create, ALWAYS define the request/response fields from the vendor's documented schema — either pass --fields-file <json> on activity create for the whole schema at once, or add them one at a time with activity field create. validate emits a WARNING for any fieldless activity — treat it as must-fix. Never report a connector "done" with fieldless activities; if a raw-body passthrough is genuinely intended, say so explicitly.
The icon must stay visible on a dark surface. app/element/image.svg is the connector's icon in Studio Web. builder validate does NOT check this (it only warns when the file is missing), but the periodic build fails an icon whose ink has under 1.5:1 contrast on Studio Web's dark surface (#1F1F1F) — a black logo, or shapes with no fill. When you add or replace the icon, check it against the rules in references/icon.md. Fix black ink with a @media (prefers-color-scheme: dark) rule or fill="currentColor". Never recolour a brand logo.
Pick the route before init: legacy or community. Follow Pick the route first. On a community connector, activities run scripts: no hook on an activity, no trigger create.
Decide how each per-connection value reaches the request BEFORE scaffolding — getting this wrong is the most common rework:
init --base-url 'https://{instance}.../api' + auth set --token-url 'https://{instance}.../token' --authorization-url 'https://{instance}.../authorize'. The CLI auto-seeds a single fillable {instance} field that resolves all three (references/configuration.md §Templated hosts). Do NOT expose base.url/oauth.token.url/oauth.authorization.url as separate connection fields.state patch the seeded entry to type:COMBO with options, whose value can be the host fragment itself).postRequest hook that validates (https + allowlisted host, never log the token) and persists via done({configuration}) — recipe: references/hooks.md §"Pattern: base URL …". Discoverable id → an onProvision system resource that calls the lookup at connection time (references/system-resources.md).configScreenType:"pre" or "pre-optional" field should have hintText with an example or where to find the value. give every visible connection-form field a hint (validate does not currently check this) for instance/workspace IDs, tenant hosts, and token-type-specific credentials.--token-url/--authorization-url too, not just the base URL.Each workflow is an ordered sequence of copy-paste-ready commands. Use placeholders (<ORG>, https://api.example.com) — never real secrets.
Community is the v4 route: the CLI calls it v4 (--v4, flags.v4Compatible).
New connector:
uip --version.-<tag>: -alpha, -beta, -preview, -dev) → ask the user (AskUserQuestion): Legacy or Community (only for Flow).
Existing connector: flags.v4Compatible: true in element-metadata.json → community route. Otherwise legacy.
The community route needs a preview CLI. Run uip --version here too: no prerelease tag → stop and tell the user to install a preview build.
# 0. Log in FIRST. The key `design-{org}-{slug}` takes its org from your logged-in
# session, so `init` (create) ERRORS if you're not logged in. Let it derive the
# org — do NOT guess --organization (a wrong org bakes into the key and only
# surfaces, mismatched, at import). --organization <slug> is for offline/CI only.
uip login status # check Data.Status == "Logged in" — NOT the envelope
# Result/exit, which is "Success" even when the session
# is dead (refresh-failed / expired). (`init` create
# itself re-checks the live login status and blocks.)
# 1. Scaffold the shell. --name is required when creating; key + folder are derived
# (the org comes from your login — see step 0).
uip is connectors builder init --name 'Acme Widgets' \
--description 'Acme Widgets connector' --categories 'CRM,Sales and marketing' \
--base-url https://api.acme.com --auth oauth2 \
--authorization-url https://acme.com/oauth/authorize \
--token-url https://acme.com/oauth/token --scope 'read write'
# --categories must be approved DISPLAY-NAME values (e.g. 'CRM', 'Sales and marketing',
# 'Collaboration', 'Productivity', 'E-commerce') — NOT lowercase slugs like `crm,sales`.
# Validated at init AND `validate`: wrong case is canonicalized, an unknown value fails fast
# and the error lists the approved enum. init seeds element-metadata.json:latestVersion = "1.0.0".
# 2. Add an activity (writes element.json entries + standard-resources/accounts.json).
uip is connectors builder activity create --name accounts --vendor-path /v1/accounts \
--methods GET,GETBYID,POST,PATCH,DELETE --primary-key id --has-ceql
# 3. Author the field schema — REQUIRED, not optional (Rule 12). `activity create`
# does NOT infer fields; without this the activity ships as a raw JSON body and
# `validate` warns. Pass `--fields-file <json>` on `activity create` for the whole
# schema at once, or add fields one at a time with `field create`
# (visibility flags apply to every --method listed; re-runs merge):
uip is connectors builder activity field create --resource accounts --name email \
--type string --method GET --method POST --response
# 4. Replace the placeholder app/element/image.svg with the vendor's logo, and check
# it stays visible on a dark surface (Rule 13). validate does not check this.
# 5. Validate — must be 0 errors AND no unresolved warnings (fieldless activity,
# broken SR link) before import.
uip is connectors builder validate
# 6. Publish to the tenant. The route decides the commands:
# - Legacy: import (create-or-update the design connector), then publish.
# - Community (flags.v4Compatible: true): publish only. It zips the folder and
# publishes it; `import` is refused. First check the CLI has this route and
# the tenant's version, then pass --version; --wait is required
# (references/v4-flow.md, "Workflow").
uip login
uip is connectors import # legacy route only
uip is connectors publish --wait # blocks until SUCCESS; live in Studio Web then
# (legacy only: fire-and-forget without --wait,
# allow ~5-10 min)
Publishing a NEW connector needs no --version (init seeded 1.0.0). Re-publishing an existing connector requires a HIGHER version — bump element-metadata.json:latestVersion (or pass --version 1.0.1); the server rejects an equal version.
Community-route connectors only (flags.v4Compatible: true). A legacy connector is not submitted: stop and say so.
After publish --wait succeeds on a community-route connector, ask the user once (AskUserQuestion): Submit to the community catalog or Keep it private. Never submit without a yes.
uip extension init → validate → submit --dry-run → submit.In Studio Web, do not ask: tell the user these steps run from a terminal.
uip is connectors builder inspect --output json # map what exists first
# research the vendor API, then:
uip is connectors builder activity create --name contacts --vendor-path /v1/contacts \
--methods GET,GETBYID,POST --primary-key id --fields-file ./contacts-fields.json
uip is connectors builder activity field create --resource contacts --name status \
--type string --method GET --response --searchable
uip is connectors builder activity hook create --resource-name contacts --method GET \
--hook-type postRequest --custom-code-file ./contacts-postRequest.js # optional response shaping (you write the JS)
uip is connectors builder validate
trigger create authors a POLLING trigger. The target activity must already exist and have an SR file (trigger create hard-fails otherwise).
uip is connectors builder activity list --output json # confirm the activity exists
uip is connectors builder trigger create --resource-name accounts --event-kind polling \
--updated-date-field LastModifiedDate --id-field Id # seeds the event config + hasEvents flag
uip is connectors builder validate
--updated-date-field is REQUIRED for every --event-kind — the command always authors a polling loop. --event-kind polling|webhook|all (default polling) only picks the config bundle; webhook/all add webhook config keys but don't implement delivery. Webhook delivery, the polling-vs-webhook semantics, and per-flag defaults all live in references/events.md.
activity create auto-curates every method into a standalone Studio activity by default (opt out with --no-curate). Use method curate only to override the generated name/displayName, or to curate a --no-curate method.
Generic CRUD activities are always present separately from curated activities: List/Get/Create/Update/Delete Records let the user choose any object that supports that method. Do not remove them or report them as pollution when you add a curated/list-capable object; author the curated service action alongside the generic object picker.
uip is connectors builder activity method curate --resource cases --method GET \
--display-name 'Get Support Request'
uip is connectors builder activity field create --resource cases --name subject --type string \
--method GET --response --response-curated --design-position primary
uip is connectors builder validate
uip is connectors builder inspect --output json
# state patch REPLACES the node — query the WHOLE entry, change ONLY the field at fault, patch it ALL back:
uip is connectors builder state query element.json/configuration/oauth.token.url --output json
uip is connectors builder state patch element.json/configuration/oauth.token.url \
--value '<full entry from the query above, with defaultValue corrected>'
uip is connectors builder validate
For a base URL or id derived at connection time: use a token-response postRequest hook when the value is returned by the token call, or an onProvision system resource when it must be discovered after auth. Validate the value, then persist it with done({configuration}) — NOT state patch, which baking-time-edits one connection's value into every connection. Full recipe: references/hooks.md §"Pattern: base URL …"; investigation checklists: references/debugging.md.
uip is connectors # tenant/catalog + design-connector lifecycle (needs `uip login`)
list | get <key> | swagger <key> | export <key> | audit-logs | event-operations
download <key> | import | publish | publish-status <id> | probe
versions <key> # versions published on the tenant, latest marked
builder # author a connector ON DISK
init # create-or-EDIT the connector shell in ONE verb
# (folds the old scaffold / metadata / global / base+pagination preset)
# --v4 (preview CLI): community route
preset apply --kind base|pagination
header delete <vendorName>
auth set | get | system (create|list)
activity create | list | get | delete
field (create|list|get|delete)
method (get|set|curate)
param (create|list|get|delete)
hook (create|list|get|delete)
script (list|get|delete) # preview CLI, community route
trigger create # --event-kind polling|webhook|all (folds the event preset + polling)
inspect # read-only whole-connector rollup
validate # full check set; exits non-zero on failure
state query <pointer> | patch <pointer>
publish returns a PublishId; --wait polls to SUCCESS/FAILURE (timeout via --timeout-seconds, default 600); check later with publish-status <id> (positional). Status enum: IN_PROGRESS | SUCCESS | FAILURE.
Depth lives in references/ — each self-contained. SKILL.md owns the workflows, command map, and rules above; references must not repeat them. The always-current flag source is uip is connectors builder <noun> <verb> --help.
| Task → read this | Reference |
|---|---|
| What a connector is, file layout, the CRUD/curated/HTTP activity model | references/overview.md |
Connector icon (image.svg): how the periodic build judges dark-surface visibility, fixes | references/icon.md |
| element.json internals: top-level fields, resources[], parameters[], value interpolation, hook order | references/element-json.md |
| Standard-resource files: linking, metadata.method, curated, fields (visibility/design/searchable), file responses (downloads) | references/standard-resources.md |
| configuration[] entries: widget types, screen types, per-auth key sets, pagination + event keys | references/configuration.md |
| Authentication setup: all 19 auth types (incl. JWT Bearer claims, FPS, none) and the OAuth/JWT scope surface | references/auth.md |
| Auth-system resources: auth-validation, onProvision/onDelete, OAuth token overrides | references/system-resources.md |
| When to write a hook vs use a built-in (decision table + good/avoidable patterns), execution order, context vars, done(), naming | references/hooks.md |
| Community route (Flow only): workflow, rules, what differs from legacy | references/v4-flow.md |
Submitting a published community-route connector to the community catalog: node id, uip extension commands, versions, fixing a failed pull request | references/community-submit-guide.md |
Writing a script: what is in scope (context, intsvc), patterns, limits | references/scripts.md |
| Polling and webhook triggers: config keys, event.poller.configuration schema | references/events.md |
| Debugging auth / activity / hook / trigger / pagination issues (workflow + checklists) | references/debugging.md |
builder inspect first (Rule 1) — you'll invent keys/paths that don't exist.state patch instead of auth set (Rule 3) — leaves the auth block inconsistent.state patch REPLACES the node, dropping omitted fields. Query the whole entry and patch the complete object back.activity create with a name that already exists when you meant a SEPARATE activity — it's an idempotent upsert that MERGES into the same-named activity (appends methods, preserves existing field definitions unless --overwrite-fields); it does not error, so a wrong name silently merges instead of warning.GETBYID for a search/list endpoint (Rule 4) — by-id verbs auto-add the /{id} param; reserve them for true single-record reads.latestVersion or pass --version.--categories values — they must come from the approved enum; validate reports the list.done() so the hook never returns.connector scaffold/inspect/validate wrapper (use init/inspect/validate directly), no global/metadata/config/resource*/event polling add/auth scope/remote*/describe/reference.activity create writes endpoints/methods/auth but NOT the field schema; an activity with no field create / --fields-file shows only a raw JSON body in Studio and trips a validate WARNING. Author fields before finishing, and never treat a 0-error/has-warnings validate as a pass.validate and then disappears on Studio Web's dark surface, and the periodic build fails it. Add a prefers-color-scheme: dark rule or use currentColor.init --v4 and --method-script-ref do not exist there.custom-community- or design-community- key into the connector — see Rule 2 in references/community-submit-guide.md.import on a community-route connector — it is refused (Import to UI not supported for Flow (V4) connectors). Run publish directly.--response-type file — the runtime parses the file as JSON and the activity has no file output. See references/standard-resources.md §"File response (download)".references/auth.md (opens in a new tab)references/community-submit-guide.md (opens in a new tab)references/configuration.md (opens in a new tab)references/debugging.md (opens in a new tab)references/element-json.md (opens in a new tab)references/events.md (opens in a new tab)references/hooks.md (opens in a new tab)references/icon.md (opens in a new tab)references/overview.md (opens in a new tab)references/scripts.md (opens in a new tab)references/standard-resources.md (opens in a new tab)references/system-resources.md (opens in a new tab)references/v4-flow.md (opens in a new tab)What 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