
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, 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.
- Installs
- 61
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/nrwl/nx-ai-agents-config --skill nx-cloud-api- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads nx-cloud-api automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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.
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.
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 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:
{"error":{"type":"http","message":"HTTP 409 Conflict","status":409,"url":"...","body":{"code":"not_terminal","message":"..."}}}
type is usage, http, network, response (an answer the command cannot
use), or output (an unwritable -o file). For http, body is the server's
error body, parsed when it is JSON and absent when it is empty. Exit 4 and 5
bodies carry a stable code (except 401 and an empty-body 429); branch on
.error.body.code, not on the prose message.
| Exit | HTTP | code | Next action |
|---|---|---|---|
| 1 | — | — | Usage, network, response, or output error; read .error.type and .error.message on stderr. Fix the flags, path, or -p values, or check the host (NX_CLOUD_API or nxCloudUrl), proxy, and VPN. |
| 4 | 400 | invalid_parameter | Run npx nx-cloud api --describe <same path> and fix the named parameter. Unknown query parameters are always rejected. |
| 4 | 400 | invalid_limit, invalid_timestamp, invalid_date_range, invalid_filter | Fix the value or filter combination named in message, using --describe for formats and limits. |
| 4 | 400 | invalid_cursor | A cursor is valid only for the list that minted it. Resume with the same path and filters, or restart without cursor. |
| 4 | 401 | none (body is plain text) | Run npx nx-cloud login --status from the workspace root. The command needs a personal access token from npx nx-cloud login with nxCloudId in nx.json, or a workspace token in NX_CLOUD_ACCESS_TOKEN. A stored personal access token takes precedence, so a stale one fails even when a valid workspace token is set. Run npx nx-cloud login only when the status check reports no usable login. |
| 4 | 403 | plan_not_allowed | The organization's plan does not include the Nx Cloud Public API. Tell the user; do not retry or use another person's token. |
| 4 | 404 | not_found | The ID in the path or in a parent-ID filter (cipeId, runGroup, stepId, agentName) is wrong. An unknown parent is never an empty result. Recheck the ID, or follow a link instead. |
| 4 | 404 | none (no body) | The path matched no route, usually because a raw ID containing / (such as @scope/app:build) was pasted into it. Use the {placeholder} path with -p, or follow links, and check the path with --describe. |
| 4 | 409 | not_terminal | The entity is still running. This is not a failure; its data is not final yet. See same-session retry below. |
| 4 | 429 | rate_limit_exceeded or no body | The organization-wide quota is exhausted. The command already retried 3 times honoring Retry-After. Back off, narrow filters, and make fewer requests. |
| 5 | 503 | data_api_at_capacity, query_deadline_exceeded, audit_log_unavailable, rate_limit_unavailable | No data was returned. The command already retried 3 times. Back off before one more attempt; for query_deadline_exceeded, narrow the time range or filters. |
| 5 | 5xx | other | Retry once after a short wait. Keep the endpoint, filters, time range, and traceId from the body for support. |
--list-operations, --describe, and --print-api-spec do not need
credentials, so they succeed even when data requests fail with 401.
Do not alter workspace configuration or credentials without the user's explicit request.
Same-session retry
For a 409 not_terminal on a known request, arrange at most one same-session
wake after the entity is expected to finish. Preserve the link and filters.
Stop at a terminal response.
Pagination
Every list response is wrapped, even a single page:
{source, pagesFetched, fetchedItemCount, pageLimitReached, nextCursor, items}.
source records the origin, endpoint, and original query. Read rows with
jq '.items[]'. Non-list responses are returned as-is.
The list is complete only when the exit code is 0 and nextCursor is null.
pageLimitReached: true means --pages stopped the run while more results
exist. To continue, rerun the same path and filters with
--cursor <nextCursor>, or state that the data is incomplete. The output's
source.query records the cursor it started from.
The command fetches one page by default. Raise --pages deliberately and keep
it small; prefer narrower filters over more pages. Do not fetch many
flaky-tasks or task-stats pages without a narrow filter. Leave the page size
alone unless needed: every page costs one unit of the organization's rate
limit, and --page-size (which sets limit, max 500) only helps when raised.
If a later page fails, the command still prints what it fetched, with
nextCursor at the failed page, and exits 4 or 5. Handle the error, then
resume from that cursor.
--format ndjson prints only the rows, one per line, with no metadata. Nothing
in its output says whether more pages exist, and it records no resume cursor. It prints each page as it is retrieved which can matter for responsiveness or very large responses.
Use it only when completeness does not matter; otherwise use the default JSON
output.
For multi-range extraction, task or log assets, or a calculation, read references/extraction-and-calculation.md first.
Interpret responses
Collection responses have top-level items and nextCursor. Single resources
are returned as-is. Do not infer a field meaning from its name; check
--describe and a live record first.
Label cache statements by evidence source:
- API response field: a recorded
cacheEnabled,cacheable, cache-status, or hash value. - Nx target query: a value from
nx show project ... --jsonin a matching checkout. - Tool-native cache:
Unknownuntil its executor options are inspected.
Empty task assets
A valid task asset can have zero-byte terminal output and no output files;
nx:noop commonly does. Check the matching workspace task before reporting a
log-capture or archive defect.
Report
State the operations queried, filters, item counts, and whether the data is complete. State whether a result is recorded API data, a local target query, or a hypothesis. Never claim that an API-only read proved configuration provenance or tool-native cache state.
FAQ
What does the nx-cloud-api skill do?
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.
How do I install nx-cloud-api?
Run npx skills add https://github.com/nrwl/nx-ai-agents-config --skill nx-cloud-api in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/nx-cloud-api/ (personal) or .claude/skills/nx-cloud-api/ (project).
Which AI agents can use nx-cloud-api?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is nx-cloud-api safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains nx-cloud-api?
It is published by nrwl in nrwl/nx-ai-agents-config. It has 61 recorded installs.
More from nrwl/nx-ai-agents-config
nx-workspace
nrwl/nx-ai-agents-config
Explore and understand Nx workspaces. USE WHEN answering questions about the workspace, projects, or tasks. ALSO USE WHEN an nx command fails or you need to check available targets/configuration before running a task. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What depends on library Y?', 'What targets can I run?', 'Cannot find configuration for task', 'debug nx task failure'.
nx-run-tasks
nrwl/nx-ai-agents-config
Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.
nx-generate
nrwl/nx-ai-agents-config
Generate code using nx generators. INVOKE IMMEDIATELY when user mentions scaffolding, setup, structure, creating apps/libs, or setting up project structure. Trigger words - scaffold, setup, create a new app, create a new lib, project structure, generate, add a new project. ALWAYS use this BEFORE calling nxdocs or exploring - this skill handles discovery internally.
link-workspace-packages
nrwl/nx-ai-agents-config
Link workspace packages in monorepos (npm, yarn, pnpm, bun). USE WHEN: (1) you just created or generated new packages and need to wire up their dependencies, (2) user imports from a sibling package and needs to add it as a dependency, (3) you get resolution errors for workspace packages (@org/) like "cannot find module", "failed to resolve import", "TS2307", or "cannot resolve". DO NOT patch around with tsconfig paths or manual package.json edits - use the package manager's workspace commands to fix actual linking.
nx-plugins
nrwl/nx-ai-agents-config
Find and add Nx plugins. USE WHEN user wants to discover available plugins, install a new plugin, or add support for a specific framework or technology to the workspace.
nx-import
nrwl/nx-ai-agents-config
Import, merge, or combine repositories into an Nx workspace using nx import. USE WHEN the user asks to adopt Nx across repos, move projects into a monorepo, or bring code/history from another repository.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.