automation-hublisted
Install: claude install-skill wesLydonia/Automation-Hub
# Automation Hub Open API skill
This skill turns Automation Hub's Open API into a set of callable tools. One
helper — `scripts/ahub.ps1` — reaches **every** endpoint and field the tenant
exposes. Full endpoint + field catalog is in `reference/api-reference.md`.
Requires **Windows PowerShell 5.1+** or PowerShell 7+. No other dependencies.
## 0. First run in a new project — ask the user for these
This skill is tenant-agnostic: **no org, tenant, token, or id is hard-coded
anywhere.** Before the first call, ask the user for whichever of these you don't
already have:
1. **Org and tenant** (from their Automation Hub URL:
`https://cloud.uipath.com/{org}/{tenant}/automationhub_/...`)
2. **Open API token + App Key** — they generate these at
*Admin → Open API* (`.../automationhub_/admin/open-api-management`).
The token looks like `<tenantId>/<guid>`.
If a task needs **CBA cost writes**, they must additionally sign in and supply a
session token — see §6. Everything else works with the Open API token alone.
> **Ids are tenant-specific.** Phase, status, category, document-type and
> cost-role ids all vary between tenants. Resolve them at runtime from the live
> endpoints (`idea-flows`, `hierarchy`, `idea-schema`); never carry a mapping
> from one tenant to another.
## 1. Authenticate (once per session)
The Open API uses a static token, **not** a user login. Set env vars so the secret
never lands in a file or transcript:
```powershell
$env:AH_ORG = "<org>"