run-parity
БесплатноЗапускает вложенные скриптыНе проверенCompare React Doctor diagnostics for a GitHub pull request (PR) with Vercel Sandbox. Use when asked to run parity, check a PR for diagnostic regressions…
от millionco★ 15 205 звёзд на GitHubОб этом скилле
Run pull request parity
Run the pull request base and head against the same repository commits. Write deterministic newline-delimited JSON (NDJSON) artifacts and compare them.
Prepare the run
Require VERCEL_OIDC_TOKEN or VERCEL_TOKEN with VERCEL_TEAM_ID (or VERCEL_ORG_ID) and VERCEL_PROJECT_ID, authenticated gh, and a pushed pull request head. Do not push changes without permission. Use ni and nr in this repository.
Resolve the pull request:
gh pr view <pr-number-or-url> \
--json number,url,baseRefOid,headRefOid,headRepository,headRepositoryOwner
Derive the base repository from the pull request URL. Derive the head repository from headRepositoryOwner.login and headRepository.name. Use the returned commit hashes, not branch names.
Create tmp/parity-pr-<number>-<head-short-sha> and preserve it after the run. Run ni before evaluation.
Run both revisions
Run from packages/evals. The default corpus contains the 2,000 highest-ranked repositories, and the initial concurrency is 200. Sandbox creation is capped at 20 to avoid overloading Vercel Sandbox. The evaluator cleans up resources and retries failed projects at concurrency 50, then 10.
nr --silent eval \
--react-doctor-repository <base-repository-url> \
--react-doctor-ref <baseRefOid> \
> <absolute-run-directory>/baseline.ndjson
nr --silent eval \
--repositories <absolute-run-directory>/baseline.ndjson \
--react-doctor-repository <head-repository-url> \
--react-doctor-ref <headRefOid> \
> <absolute-run-directory>/candidate.ndjson
Cache a successful baseline only under its exact React Doctor commit, corpus manifest hash, evaluator schema, and ruleset/config hash. A cached baseline must still pass the streaming validator before reuse. PRs may share that immutable baseline, but never combine their candidate heads or deltas.
The evaluator stamps every record with the exact detector commit, revision-local rule/config hash, and evaluator source hash. Never cache an older unstamped run. After the normal input validator passes, create the adjacent provenance file:
node .agents/skills/run-parity/scripts/baseline-cache-provenance.mjs create \
--baseline <baseline.ndjson> \
--corpus-manifest <corpus-manifest.json> \
--base-commit <full-base-commit> \
--repository <react-doctor-repository-url> \
--evaluator-source-hash <packages-evals-source-hash> \
--config-contract revision-local-rule-config-v1 \
--rule-set-hash <stamped-full-ruleset-hash>
Get the expected evaluator hash with nr --silent source-hash from
packages/evals. Before every reuse, run the same command with verify.
Verification streams the raw NDJSON bytes, requires full-baseline ruleKeys: [],
checks every record's producer, and independently requires the exact pinned
corpus project set to match its manifest. Any mismatch is a cache miss.
On a cache hit, keep the base out of Vercel Sandbox: run the normal candidate-only
command above against the validated cached baseline and do not pass any
--paired-* option.
On a cache miss, or for a required full-versus-scoped shadow run, evaluate both detectors in the same Vercel sandbox:
nr --silent eval \
--repositories <corpus-manifest-or-validated-input> \
--paired-baseline-output <absolute-new-baseline-path> \
--paired-base-react-doctor-repository <base-repository-url> \
--paired-base-react-doctor-ref <base-or-full-shadow-commit> \
--paired-base-rule <treatment-plugin/rule> \
--react-doctor-repository <treatment-repository-url> \
--react-doctor-ref <treatment-commit> \
--paired-execution sequential \
--rule <treatment-plugin/rule> \
> <absolute-run-directory>/candidate.ndjson
The baseline output path is created exclusively and never overwrites an existing artifact. Paired sandboxes fetch each target repository once into one object store, then scan isolated base/treatment target worktrees with isolated detector installs, config files, and report paths. A project pair is emitted only after both sides succeed, so retries cannot leave a partial successful pair in either output. Paired writes use one single-writer queue and roll the baseline back if either sink fails. Any nonzero paired evaluator run still makes both output artifacts invalid and non-reusable; discard them instead of feeding them to the comparator or cache.
Use the same --paired-base-rule and --rule values for performance
comparison, or omit both for a full-rule comparison. A full-versus-scoped
shadow run remains valid diagnostic evidence but not performance evidence.
Paired sandboxes request four CPU cores, eight GiB of memory, and twenty GiB of
disk. --paired-execution auto is the default and runs the scans in parallel
only when the sandbox has at least four CPU cores. Use
--paired-execution sequential for the controlled sequential benchmark and
the performance comparison below. Use auto or parallel only for
diagnostic-only parity where timing
Установить run-parity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл run-parity?
Compare React Doctor diagnostics for a GitHub pull request (PR) with Vercel Sandbox. Use when asked to run parity, check a PR for diagnostic regressions, compare a PR with its base, or report added and removed diagnostics.
Как установить скилл run-parity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл run-parity запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic