Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reproduce-issue

БесплатноБез исполняемых скриптовНе проверен

Reproduce an Nx GitHub issue or explicit reproduction recipe inside the shared review sandbox, then report observed behavior. Use for bug reproduction and PR…

nrwlот nrwl★ 29 499 звёзд на GitHub

Об этом скилле

Read Codex execution conventions before following this workflow.

Reproduce an issue (sandboxed)

Reproduce an nx bug inside the sandbox and report the outcome. The untrusted repro — its install (arbitrary postinstall scripts) and its repro command — runs only there, never on the host.

Everything goes through .claude/tools/sandbox. That CLI owns the container: which isolation runtime applies on this platform, the hardening flags, the shared host, and teardown. Do not run docker yourself — hand-rolling it is how a repro ends up unisolated on one platform and nobody notices. This is a workflow requirement: use only the sandbox CLI for execution, and keep host-side repro scripts under /tmp. Codex skill metadata does not enforce a tool allowlist.

This is the one reproduction engine in the repo. It has two front doors:

Entry A — a GitHub issue (human: $reproduce-issue <N>)

  1. Fetch the issue:
    gh issue view <N> --repo nrwl/nx --json number,title,body,comments,labels
    
  2. Extract from the body: the repro repo URL (or create-nx-workspace steps), the exact command(s) that show the bug, the reported vs expected behavior, and the Nx Report (nx version + Node version).
  3. Fill the parameters below and run the sandbox (default nx-version = whatever the issue reports / the repo pins; default registry = public npm).

Entry B — explicit parameters (agent: reproduce-verifier Level 2)

The caller passes these directly:

  • repro — repo:<git-url> (clone a public repo) OR create:"<create-nx-workspace args>".
  • nx-version:<version> — install this published nx and rewrite the repro's nx / @nx/* / @nrwl/* deps to it. For reproducing against a released version.
  • nx-build:<git-ref> (PR-verification mode) — instead of a published version, build nx from this nrwl/nx commit inside the sandbox and reproduce against it. Uses the nx-review-sandbox image; the skill derives the version and serves it from a localhost verdaccio in the same container. Mutually exclusive with nx-version.
  • nx-registry:<url> (optional, nx-version mode only) — registry to install from. Default public npm.
  • command:"<repro-cmd>" — the command whose output/exit code decides the verdict.
  • node-image:<img> (optional) — base image matching the issue's Node (default node:22; public images are multi-arch → native on Apple Silicon).
  • expect:<reported symptom> (optional), setup:"<files/steps>" (optional) — files to create in the workspace first.

Preflight

One command. It reports the platform, the backend, and the isolation tier the CLI will use:

.claude/tools/sandbox doctor

isolation=vm (macOS) or isolation=runsc (Linux) with exec=full means you are good. Anything else prints its own fix — usually the setup-review-sandbox skill. On Linux without gVisor the CLI refuses to run, rather than quietly falling back to plain runc.

For nx-build mode only, the toolchain image must exist:

.claude/tools/sandbox doctor --image nx-review-sandbox:latest

Safety rails

The CLI enforces the container ones for you — --cap-drop ALL, no-new-privileges, the isolation runtime, and resource limits. What is still yours to get right:

  • Never pass a repro URL to --checkout. That fetches into /work/.repo, the object store every review shares, mixing a stranger's history into the repo reviewers read. Start without --checkout to get an empty private workspace, and clone inside it.
  • Never mount a host path. The CLI gives you no way to; do not reach around it.
  • Always stop the id when you are done. The workspace is a real directory in a long-lived container, not a --rm container that cleans itself.
  • Lanes share the container. Isolation between sandboxes is not claimed — that is a deliberate disk trade. So do not assume a fixed port is free, and if a run looks poisoned by a neighbour, stop it and start a fresh id rather than debugging the contamination.

Run

Three commands: start a workspace, pipe a script into it, stop it.

ID=$(.claude/tools/sandbox start --image node:22 | head -1)
.claude/tools/sandbox exec "$ID" -- bash -s < /tmp/repro-<N>.sh
.claude/tools/sandbox stop "$ID"

Write the script to a file with an available file-writing tool and pipe it in. exec joins its argv with spaces after --, so an inline script loses its quoting — a node -e '...' one-liner arrives mangled, fails, and reads as the repro failing. bash -s on stdin passes heredocs, nested quotes and all through untouched.

Use node:22 by default, or the image matching the issue's Node version. Public node images are multi-arch, so they run native on Apple Silicon.

The script

set -euo pipefail          # pipefail matters: see "surface the real error" below

git clone --depth 1 <GIT_URL> repro     # repo: form
#
Полный SKILL.md на GitHub

Установить reproduce-issue в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yaml

FAQ

Что делает скилл reproduce-issue?

Reproduce an Nx GitHub issue or explicit reproduction recipe inside the shared review sandbox, then report observed behavior. Use for bug reproduction and PR fix verification; never execute untrusted repro code on the host.

Как установить скилл reproduce-issue?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reproduce-issue запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить reproduce-issue с