Logo von Nx Cloud Api

Nx Cloud Api

Organisation
nrwl
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.

Übersicht

Herausgebernrwl
Repositorynx-ai-agents-config
Skill-Namenx-cloud-api
Sterne
28
Forks
8
Mitgelieferte Dateien
1
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 1 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von nrwl auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Nx Cloud Api in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/nrwl/nx-ai-agents-config/tree/main/generated/.agents/skills/nx-cloud-api
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nrwl/nx-ai-agents-config.git /tmp/nx-ai-agents-config
mkdir -p .claude/skills
cp -r /tmp/nx-ai-agents-config/generated/.agents/skills/nx-cloud-api .claude/skills/nx-cloud-api
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Nx Cloud Api in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Nx Cloud Api automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Nx Cloud Api nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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-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.

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:

text
{"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.

ExitHTTPcodeNext 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.
4400invalid_parameterRun npx nx-cloud api --describe <same path> and fix the named parameter. Unknown query parameters are always rejected.
4400invalid_limit, invalid_timestamp, invalid_date_range, invalid_filterFix the value or filter combination named in message, using --describe for formats and limits.
4400invalid_cursorA cursor is valid only for the list that minted it. Resume with the same path and filters, or restart without cursor.
4401none (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.
4403plan_not_allowedThe organization's plan does not include the Nx Cloud Public API. Tell the user; do not retry or use another person's token.
4404not_foundThe 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.
4404none (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.
4409not_terminalThe entity is still running. This is not a failure; its data is not final yet. See same-session retry below.
4429rate_limit_exceeded or no bodyThe organization-wide quota is exhausted. The command already retried 3 times honoring Retry-After. Back off, narrow filters, and make fewer requests.
5503data_api_at_capacity, query_deadline_exceeded, audit_log_unavailable, rate_limit_unavailableNo 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.
55xxotherRetry 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 ... --json in a matching checkout.
  • Tool-native cache: Unknown until 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.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill 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.

Warum Nx Cloud Api in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Nx Cloud Api besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Nx Cloud Api in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/nrwl/nx-ai-agents-config/tree/main/generated/.agents/skills/nx-cloud-api ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Nx Cloud Api nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Nx Cloud Api verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Nx Cloud Api damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Nx Cloud Api kostenlos?

Ja. Der Skill wird von nrwl auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇