nx-cloud-cache-investigator
БесплатноБез исполняемых скриптовНе проверенInvestigate a specific Nx cache miss, artifact download or extraction failure, same-hash non-replay, or suspected unsafe cache replay. Use this skill whenever…
от nrwl★ 29 звёзд на GitHubОб этом скилле
Nx cache investigator
Requires the nx-cloud-api skill. Use a matching Nx workspace checkout only for local configuration diagnosis. An API-only investigation does not need a checkout.
Diagnose one cache question with bounded evidence. Do not guess a changed hash input or change configuration from cache status alone.
Nx task caching and a tool-native cache are separate. A target cache field
controls Nx replay. Vite, ESLint, and other tools have separate executor options.
One does not prove the other.
Select the mode
- Cache-health trend: This skill covers a specific task or artifact question, not a multi-run rate regression. Use a separate bounded trend workflow for rate or regression questions.
- API-only: Use this for supplied runs, CIPEs, tasks, or artifact errors when no matching checkout exists. Do not request local configuration unless required.
- Specific comparison: Get two comparable executions. Ask for missing target, branch, commit, command, configuration, CI environment, or time range.
Resume a pending investigation
Arrange one same-session wake only when a known task is non-terminal, an API
request returns HTTP 409 (not_terminal), or the user starts a controlled
diagnostic run. Preserve the run, task, batchId, link, and filters. Re-query once after the
known delay or expected run completion. Stop at a terminal result or the retry
limit. Do not poll or monitor a live CI run.
Gather only relevant API evidence
Use nx-cloud-api (npx nx-cloud api) for every read. Run --describe for a
known route. Use --list-operations only when the route is unknown or
ambiguous. Follow documented fields and returned links; do not construct routes
from internal IDs.
Save every live API response to a file with -o. Use jq to select one
row and only the fields needed for this investigation. Do not print, read, or
paste a raw collection into model context. Keep the selected row's batchId and
links.self in the projection:
npx nx-cloud api --describe 'runs/{runId}/tasks'
npx nx-cloud api "$run_tasks_link" -o "$dir/tasks.json"
jq --arg task "$task_id" --arg batch "$batch_id" \
'.items[] | select(.id == $task and .batchId == $batch) |
{id, batchId, status, cacheStatus, hash, cacheable,
links: {self: .links.self}}' "$dir/tasks.json"
Here $run_tasks_link is the tasks link from the selected run and $dir is a
scratch directory from mktemp -d. Without a link, use
npx nx-cloud api 'runs/{runId}/tasks' -p runId="$run_id"; never paste an ID
into the path. Check nextCursor before concluding that a
task is absent from the list.
For a selected execution, record run and task IDs, batchId, project, target,
configuration, command, parameters, branch, commit, CI context, timestamps,
cache status, final hash, cacheEnabled, cacheable, and relevant CIPE or
run-group links.
A task ID can repeat. Select the task-list row first. Follow its exact links.self
or asset URL because it preserves batchId. Do not use one row to explain another.
A task list row already has task fields. A detail read is optional.
If the API reports cacheable: false, Nx replay was not expected for that
execution. Name a configuration cause only when the nx show target query shows
it. If cacheEnabled: false, that run did not use the Nx task cache. Do not
investigate hash inputs or artifacts in either case.
Read a log only when its command output or error can answer the question. Tell the user before you read CI log content. Read references/log-and-report-assets.md before you decode a log or report. Quote only a redacted error signature. Treat user-supplied asset content as provided evidence. An advertised asset or a later 404 does not prove historical availability.
Inspect the Nx target
Use a matching checkout only for a configuration question or code change. Check out the recorded commit. Record the workspace Nx version. Query the exact target with the workspace-local Nx command:
nx show project "$project" --json | jq \
--arg target "$target" \
--arg configuration "${configuration:-}" \
'.targets[$target] | {
executor,
cache,
inputs,
outputs,
options,
selectedConfiguration: .configurations[$configuration]
}'
Use this fragment as the target evidence. Nx already includes inherited settings.
Do not merge project.json, nx.json, plugins, or targetDefaults yourself. A
missing project property proves nothing. If the query reports cache: true, do
not add another cache: true. If the command or target is unavailable, report
configuration as unavailable.
Inspect returned options only for a tool-native cache question. Use
version-matched executor documentation. A target cache field cannot prove Vite
or ESLint native-cache state.
Classify before you explain
No cache failure established
A terminal remote-cache-hit proves Nx replay worked for that task. Do not t
Установить nx-cloud-cache-investigator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл nx-cloud-cache-investigator?
Investigate a specific Nx cache miss, artifact download or extraction failure, same-hash non-replay, or suspected unsafe cache replay. Use this skill whenever a user asks why an Nx task did not use the cache, why cache artifact restoration failed, why a cache hit restored stale or wrong output, or to compare two cached task executions. Use the nx-cloud-api skill for every Nx Cloud read. This skill supports API-only investigations, preserves strict hash-evidence limits, and requests local configuration only when the question requires it.
Как установить скилл nx-cloud-cache-investigator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nx-cloud-cache-investigator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic