nx-cloud-api
Query the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`.
Skill by nrwl
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nrwl-nx-cloud-api-e0ff42
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, devops, data, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/nx-cloud-api
What's inside
- Skill name
nx-cloud-api- Description
- 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, 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.
- License
- MIT
- Instructions
- 190 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- extraction-and-calculation.md · references/
SKILL.md (first lines)
# 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-operations`
to find a route and `npx nx-cloud api --describe <operationId | path | link>`
for its parameters, response fields, and error statuses. Both show what an
operation `returns`: `list` (the wrapped list below), `object` (the response
body), or `file` (an asset download). Do not use
remembered routes, fields, filter names, or enum values.
- Start at `cipes` and follow returned `links` values. 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 `--describe` and
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.
## 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:
1. A workspace token in `NX_CLOUD_ACCESS_TOKEN` (or `NX_CLOUD_AUTH_TOKEN`). When
one is set, the command uses it alone and ignores any stored login.
2. The user's OAuth login from `npx nx login`, refreshed as needed.
3. A personal access token stored in `nxcloud.ini` by 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 and works outside an Nx workspace, so you can
query a workspace you are a member of without its checkout. 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
```sh
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 are accepted only on the configured
Nx Cloud host. That includes app links such as `https://cloud.nx.app/cipes/<id>`,
which resolve like the bare path `cipes/<id>`.
## Keep API output compact
To preserve context, write every live data response to a file with `-o` (files are created
owner-only) in a scratch directory outside the workspace. Give the file an
extension. A name without one gets `.json`, `.ndjson`, or the download's own
(such as `.tar.gz`), and the command reports the final path on stderr as
`{"output": {"file": "..."}}`. Create the scratch directory with `mktemp -d`,
and read a question-specific `jq` projection. Do not let
a raw collection print into the conversation unless the user asks for it.
Choose projected fields from `--describe`. For one row, select it first, then
project only the needed fields. Delete saved data when the task is done unless
the user asks to keep it.
`--describe` output is usually small. Pipe it through `jq` only when you need
part of a large operation.
## Exit codes and errors
Always check the exit code. Every failure prints one record on stderr, and the
command adds no recovery hints; do not hide stderr with `2>/dev/null`:From nrwl/nx-ai-agents-config, MIT.
More from nrwl/nx-ai-agents-config
- 0.629score
nx-workspace
nrwl
Explore and understand Nx workspaces.
SkillAFreshness: A★ 29Claude Code +9 - 0.629score
nx-cloud-cache-investigator
nrwl
Investigate a specific Nx cache miss, artifact download or extraction failure, same-hash non-replay, or suspected unsafe cache replay.
SkillAFreshness: A★ 29Claude Code +9 - 0.624score
nx-cloud-ci-failure-review
nrwl
Review failed Nx Cloud CI pipeline executions and group recurring, evidence-based failure patterns.
SkillAFreshness: A★ 29Claude Code +9 - 0.624score
nx-generate
nrwl
Generate code using nx generators.
SkillAFreshness: A★ 29Claude Code +9 - 0.542score
monitor-ci
nrwl
Monitor Nx Cloud CI pipeline and handle self-healing fixes.
SkillCFreshness: C★ 29Claude Code +9 - 0.480score
nx-import
nrwl
Import, merge, or combine repositories into an Nx workspace using nx import.
SkillDFreshness: D★ 29Claude Code +9 - 0.475score
link-workspace-packages
nrwl
Link workspace packages in monorepos (npm, yarn, pnpm, bun).
SkillDFreshness: D★ 29Claude Code +9 - 0.475score
nx-run-tasks
nrwl
Helps with running tasks in an Nx workspace.
SkillDFreshness: D★ 29Claude Code +9 - 0.470score
nx-plugins
nrwl
Find and add Nx plugins.
SkillDFreshness: D★ 29Claude Code +9
Signals
- Stars
- 29
- Forks
- 10
- Open issues
- 6
- Last commit (this folder)
- Oct 7, 2026 (21 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/nrwl/nx-ai-agents-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.377score
nx-cloud-api
nrwl
Query the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`.
SkillAFreshness: A★ 29Claude Code +9 - 0.377score
nx-cloud-api
nrwl
Query the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`.
SkillAFreshness: A★ 29Claude Code +9 - 0.377score
nx-cloud-api
nrwl
Query the read-only Nx Cloud Public API for workspace data with `npx nx-cloud api`.
SkillAFreshness: A★ 29Claude Code +9
More from nrwl
- 0.736score

Nx Console
nrwl
The UI for Monorepos, providing visual workflows and enriching your AI Chat with deep insights
PluginAFreshness: A★ 1.4KVS Code +3 - 0.681score
performance-analyzer
nrwl
Subagent "performance-analyzer" from nrwl/nx: Use this agent during PR review to analyze the runtime performance of a PR's changes along two axes - (1)…
TemplateAFreshness: A★ 29.4KClaude Code - 0.681score
alternative-approach
nrwl
Subagent "alternative-approach" from nrwl/nx: Use this agent during PR review to independently design alternative solutions to the problem a PR solves and…
TemplateAFreshness: A★ 29.4KClaude Code - 0.681score
docs-reviewer
nrwl
Subagent "docs-reviewer" from nrwl/nx: Use this agent during PR review to answer two docs questions about any PR.
TemplateAFreshness: A★ 29.4KClaude Code - 0.681score
comment-analyzer
nrwl
Subagent "comment-analyzer" from nrwl/nx: Use this agent during PR review to check that a PR's comments and doc-comments are TRUE.
TemplateAFreshness: A★ 29.4KClaude Code - 0.681score
security-analyzer
nrwl
Subagent "security-analyzer" from nrwl/nx: Use this agent during PR review to hunt injection-class vulnerabilities in a PR's changes - command injection…
TemplateAFreshness: A★ 29.4KClaude Code
Cite this page
nx-cloud-api skill. Agent Mart. https://agentmart.dev/skills/nrwl-nx-cloud-api-e0ff42 (last updated 2026-10-24)