nx-cloud-api
БесплатноБез исполняемых скриптовНе проверенQuery the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`. Use this skill when a user asks to inspect or retrieve CIPEs, pipelines…
от nrwl★ 29 звёзд на GitHubОб этом скилле
Nx Cloud API
Answer a defined workspace-data question with npx nx-cloud api, the read-only
Nx Cloud Public API command. This is an API access skill, not a report generator
or configuration editor. Run every command from the workspace root so the
command finds nx.json, or pass --nxCloudId <id> to name the workspace
(see Authentication).
Run npx nx-cloud api --help (or npx nx-cloud api alone) once for syntax and
options. This skill covers the workflow around it.
All output is JSON. stdout carries only the response data. stderr carries one
JSON object per line: {"error": ...}, {"output": ...}, and, with -i or
NX_VERBOSE_LOGGING, {"response": ...} and {"log": ...}. The one exception
is an asset download, whose raw bytes go to the -o file.
Non-negotiable rules
- Discover endpoints from the live spec. Use
npx nx-cloud api --list-operationsto find a route andnpx nx-cloud api --describe <operationId | path | link>for its parameters, response fields, and error statuses. Both show what an operationreturns:list(the wrapped list below),object(the response body), orfile(an asset download). Do not use remembered routes, fields, filter names, or enum values. - Start at
cipesand follow returnedlinksvalues. Do not build child URLs by hand or use an internal workflow ID as a route parameter. When you must address an entity by ID, use the{placeholder}path from--describeand fill it with-p name=value. Never paste an ID into a path: IDs are raw and can contain/or:(task IDs like@scope/app:build). - Start with one filtered page. Ask for a workspace, scope, or time range when they are missing. Do not collect history by default.
- Read the operation description from
--describe. It states server limits that the command does not enforce. - Do not use this skill to poll or monitor live CI.
- Only read.
--list-operationsalso lists actions (method: POST, such asci/{ciExecutionId}/rerun); take one only when the user asks for it.
Authentication
npx nx-cloud api authenticates for you; do not read credentials out of
nxcloud.ini or call the API with curl. It sends the first available of:
- A workspace token in
NX_CLOUD_ACCESS_TOKEN(orNX_CLOUD_AUTH_TOKEN). When one is set, the command uses it alone and ignores any stored login. - The user's OAuth login from
npx nx login, refreshed as needed. - A personal access token stored in
nxcloud.iniby an older login.
A login or personal access token also needs the workspace's Nx Cloud ID, sent
as Nx-Cloud-Id. The command reads it from nxCloudId in nx.json;
--nxCloudId <id> overrides it, so you can query a workspace you are a member
of without its checkout. The command still reads an nx.json in the current
directory, so outside a checkout run it from a scratch directory holding an
nx.json of {}, with NX_CLOUD_API set to the workspace's Nx Cloud host
when it is not https://cloud.nx.app. A workspace token always reads its own
workspace and ignores the ID.
If you must call the API without the command, the headers differ per credential, and an OAuth access token is not a bearer token:
| Credential | Headers |
|---|---|
| Workspace (CI) token | Authorization: Bearer <token> |
| OAuth access token | Nx-Cloud-OAuth-Access-Token: <token> and Nx-Cloud-Id: <id> |
| Personal access token | Nx-Cloud-Personal-Access-Token: <token> and Nx-Cloud-Id: <id> |
Cache boundary
The API returns recorded task and run fields. It does not query the local Nx
target. cacheEnabled describes the recorded run. cacheable describes the
recorded task. Neither value identifies targetDefaults, an inferred target,
or Vite, ESLint, or another tool-native cache.
Do not infer cache: false from an absent project property. For cache causes,
target settings, inputs, outputs, or a configuration change, use
nx-cloud-cache-investigator. API data alone cannot justify a cache or inputs
pull request.
Quick workflow
npx nx-cloud api --describe cipes
# Save one bounded page to a scratch file, then project only what you need.
dir="$(mktemp -d)"
npx nx-cloud api cipes \
-f createdAfter=2026-08-01T00:00:00Z \
-f statuses=FAILED -f statuses=CANCELED \
-o "$dir/cipes.json"
echo "exit $?"
jq '{pageLimitReached, nextCursor, items: [.items[] | {id, status, createdAt, links}]}' "$dir/cipes.json"
# Follow a link from a previous response as-is.
npx nx-cloud api "<link from a previous response>" -o "$dir/next.json"
# Address an entity by ID only through a path parameter.
npx nx-cloud api 'runs/{runId}/tasks' -p runId="$run_id" -o "$dir/tasks.json"
Pass a links.* value exactly as returned; it may already carry query
parameters, and -f adds more. Full URLs ar
Установить nx-cloud-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nx-cloud-api?
Query the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`. Use this skill when a user asks to inspect or retrieve CIPEs, pipelines, run groups, runs, tasks, workflows, agents, task statistics, flaky tasks, cache data, CI compute or credit estimates, or API endpoint details. Use this skill before any Nx Cloud API call. It covers endpoint discovery, link navigation, pagination, asset downloads, and error recovery. Do not use it for live CI monitoring.
Как установить скилл nx-cloud-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nx-cloud-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic