[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E0KZDWM2892PZ3XJ59SYZ5":3,"skill-same:01M6E0KZDWM2892PZ3XJ59SYZ5":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":13,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M6E0KZDWM2892PZ3XJ59SYZ5","blacksmith-testbox",null,"Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.","7dvq6yrkgs-stack\u002Fplaywright","7dvq6yrkgs-stack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F251638143?v=4","01M6E061J2AMGWYZ6TK7Y8NM74","01M6E061PQCQJGQMPBERMCFN5G",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fblacksmith-testbox\u002FSKILL.md",[],[18,19,20,21,22,23,24,25],"blacksmith testbox","run","ci","services","secrets","reproduce","migrations","local","2026-11-10 10:12:30",false,"---\nname: blacksmith-testbox\ndescription: Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.\n---\n\n# Blacksmith Testbox\n\n## Scope\n\nUse Testbox when you need remote CI parity, injected secrets, hosted services,\nor an OS\u002Fruntime image that your local machine cannot provide cheaply.\n\nDo not default to Testbox for every local test\u002Fbuild loop. If the repo has\ndocumented local commands for normal iteration, use those first so you keep\nwarm caches, local build state, and fast feedback.\n\nTestbox is the expensive path. Reach for it deliberately.\n\n## Install the CLI\n\nIf `blacksmith` is not installed, install it:\n\n    curl -fsSL https:\u002F\u002Fget.blacksmith.sh | sh\n\nFor the canary channel (bleeding-edge):\n\n    BLACKSMITH_CHANNEL=canary sh -c 'curl -fsSL https:\u002F\u002Fget.blacksmith.sh | sh'\n\nThen authenticate:\n\n    blacksmith auth login\n\n## Agent-triggered browser auth (non-interactive)\n\nWhen an agent needs to ensure the user is authenticated before running testbox\ncommands (e.g. warmup, run), use browser-based auth with non-interactive mode.\nThis opens the browser for the user to sign in; the agent does not interact with\nthe browser. The org selector in the dashboard is skipped, so the user only sees\nthe sign-in flow.\n\n**Required command** (`--organization` is required with `--non-interactive`):\n\n    blacksmith auth login --non-interactive --organization \u003Corg-slug>\n\nThe org slug can come from `BLACKSMITH_ORG` env var or the `--org` global flag.\nIf neither is set, the agent should use the project's known org (e.g. from repo\nconfig or user context). Example:\n\n    blacksmith auth login --non-interactive --organization acme-corp\n    blacksmith --org acme-corp auth login --non-interactive --organization acme-corp\n\n**Flow**: The CLI starts a local callback server, opens the browser to the\ndashboard auth page, and blocks for up to 2 minutes. The user completes sign-in\nand authorization in the browser. The dashboard redirects to localhost with the\ntoken; the CLI saves credentials and exits. The agent then proceeds.\n\n**Do not use** `--api-token` for this flow — that is for headless\u002Ftoken-based\nauth. This skill focuses on browser-based auth when the user prefers signing in\nvia the web UI.\n\nOptional flags:\n\n- `--dashboard-url \u003Curl>` — Override dashboard URL (e.g. for staging)\n\n## Decide first: local or Testbox\n\nBefore warming anything up, check the repo's own instructions.\n\nPrefer local commands when:\n\n- the repo documents a supported local test\u002Fbuild workflow\n- you are iterating on unit tests, lint, typecheck, formatting, or other\n  local-only validation\n- the value comes from warm local caches and fast repeat runs\n- the command does not need remote secrets, hosted services, or CI-only images\n\nPrefer Testbox when:\n\n- the repo explicitly requires CI-parity or remote validation\n- the command needs secrets, service containers, or provisioned infra\n- you are reproducing CI-only failures\n- you need the exact workflow image\u002Fjob environment from GitHub Actions\n\nFor OpenClaw specifically, normal local iteration should stay local:\n\n- `pnpm check:changed`\n- `pnpm test:changed`\n- `pnpm test \u003Cpath-or-filter>`\n- `pnpm test:serial`\n- `pnpm build`\n\nOnly use Testbox in OpenClaw when the user explicitly wants CI-parity or the\ncheck truly depends on remote secrets\u002Fservices that the local repo loop cannot\nprovide.\n\n## Setup: Warmup before coding\n\nIf you decided Testbox is actually warranted, warm one up early. This returns\nan ID instantly and boots the CI environment in the background while you work:\n\n    blacksmith testbox warmup ci-check-testbox.yml\n    # → tbx_01jkz5b3t9...\n\nSave this ID. You need it for every `run` command.\n\nWarmup dispatches a GitHub Actions workflow that provisions a VM with the\nfull CI environment: dependencies installed, services started, secrets\ninjected, and a clean checkout of the repo at the default branch.\n\nOptions:\n\n    --ref \u003Cbranch>         Git ref to dispatch against (default: repo's default branch)\n    --job \u003Cname>           Specific job within the workflow (if it has multiple)\n    --idle-timeout \u003Cmin>   Idle timeout in minutes (default: 30)\n\n## CRITICAL: Always run from the repo root\n\nALWAYS invoke `blacksmith testbox` commands from the **root of the git\nrepository**. The CLI syncs the current working directory to the testbox\nusing rsync with `--delete`. If you run from a subdirectory (e.g.\n`cd backend && blacksmith testbox run ...`), rsync will mirror only that\nsubdirectory and **delete everything else** on the testbox — wiping other\ndirectories like `dashboard\u002F`, `cli\u002F`, etc.\n\n    # CORRECT — run from repo root, use paths in the command\n    blacksmith testbox run --id \u003CID> \"cd backend && php artisan test\"\n    blacksmith testbox run --id \u003CID> \"cd dashboard && npm test\"\n\n    # WRONG — do NOT cd into a subdirectory before invoking the CLI\n    cd backend && blacksmith testbox run --id \u003CID> \"php artisan test\"\n\nIf your shell is in a subdirectory, `cd` back to the repo root first:\n\n    cd \"$(git rev-parse --show-toplevel)\"\n    blacksmith testbox run --id \u003CID> \"cd backend && php artisan test\"\n\n## Running commands\n\n    blacksmith testbox run --id \u003CID> \"\u003Ccommand>\"\n\nThe `run` command automatically waits for the testbox to become ready if\nit is still booting, so you can call `run` immediately after warmup without\nneeding to check status first.\n\n## Downloading files from a testbox\n\nUse the `download` command to retrieve files or directories from a running\ntestbox to your local machine. This is useful for fetching build artifacts,\ntest results, coverage reports, or any output generated on the testbox.\n\n    blacksmith testbox download --id \u003CID> \u003Cremote-path> [local-path]\n\nThe remote path is relative to the testbox working directory (same as `run`).\nIf no local path is specified, the file is saved to the current directory\nusing the same base name.\n\nTo download a directory, append a trailing `\u002F` to the remote path — this\ntriggers recursive mode:\n\n    # Download a single file\n    blacksmith testbox download --id \u003CID> coverage\u002Freport.html\n\n    # Download a file to a specific local path\n    blacksmith testbox download --id \u003CID> build\u002Foutput.tar.gz .\u002Foutput.tar.gz\n\n    # Download an entire directory\n    blacksmith testbox download --id \u003CID> test-results\u002F .\u002Fresults\u002F\n\nOptions:\n\n    --ssh-private-key \u003Cpath>   Path to SSH private key (if warmup used --ssh-public-key)\n\n## How file sync works\n\nUnderstanding this model is critical for using Testbox correctly.\n\nWhen you call `run`, the CLI performs a **delta sync** of your local changes\nto the remote testbox before executing your command:\n\n1. The testbox VM starts from a clean `actions\u002Fcheckout` at the warmup ref.\n   The workflow's setup steps (e.g. `npm install`, `pip install`, `composer install`)\n   run during warmup and populate dependency directories on the remote VM.\n\n2. On each `run`, the CLI uses **git** to detect which files changed locally\n   since the last sync. It syncs ONLY tracked files and untracked non-ignored\n   files (i.e. files that `git ls-files` reports).\n\n3. **`.gitignore`'d directories are never synced.** This means directories\n   like `node_modules\u002F`, `vendor\u002F`, `.venv\u002F`, `build\u002F`, `dist\u002F`, etc. are\n   NOT transferred from your local machine. The testbox uses its own copies\n   of those directories, populated during the warmup workflow steps.\n\n4. If nothing has changed since the last sync (same git commit and working\n   tree state), the sync is skipped entirely for speed.\n\n### Why this matters\n\n- **Changing dependencies**: If you modify `package.json`, `requirements.txt`,\n  `composer.json`, `go.mod`, or similar dependency manifests, the lock\u002Fmanifest\n  file will be synced but the actual dependency directory will NOT. You must\n  re-run the install command on the testbox:\n\n      blacksmith testbox run --id \u003CID> \"npm install && npm test\"\n      blacksmith testbox run --id \u003CID> \"pip install -r requirements.txt && pytest\"\n      blacksmith testbox run --id \u003CID> \"composer install && phpunit\"\n\n- **Generated\u002Fbuild artifacts**: If your tests depend on a build step (e.g.\n  `npm run build`, `make`), and you changed source files that affect the build\n  output, re-run the build on the testbox before testing.\n\n- **New untracked files**: New files you create locally ARE synced (as long as\n  they are not gitignored). You do not need to `git add` them first.\n\n- **Deleted files**: Files you delete locally are also deleted on the remote\n  testbox. The sync model keeps the remote in lockstep with your local managed\n  file set.\n\n## CRITICAL: Do not ban local tests\n\nDo not assume local validation is forbidden. Many repos intentionally invest in\nfast, warm local loops, and forcing every run through Testbox destroys that\nadvantage.\n\nUse Testbox for the checks that actually need it: remote parity, secrets,\nservices, CI-only runners, or reproducibility against the workflow image.\n\nIf the repo says local tests\u002Fbuilds are the normal path, follow the repo.\n\n## When to use\n\nUse Testbox when:\n\n- running database migrations or destructive environment checks\n- running commands that depend on secrets or environment variables not present locally\n- reproducing CI-only failures or validating against the workflow image\n- validating behavior that needs provisioned services or remote runners\n- doing a final parity check before commit\u002Fpush when the repo or user wants that\n\nTrim that list based on repo guidance. If the repo documents supported local\ntests\u002Fbuilds, prefer local for routine iteration and keep Testbox for the\nchecks that need parity or remote state.\n\n## Workflow\n\n1. Decide whether the repo's local loop is the right default.\n2. Only if Testbox is warranted, warm up early:\n   `blacksmith testbox warmup ci-check-testbox.yml` → save the ID\n3. Write code while the testbox boots in the background.\n4. Run the remote command when needed:\n   `blacksmith testbox run --id \u003CID> \"npm test\"`\n5. If tests fail, fix code and re-run against the same warm box.\n6. If you changed dependency manifests (package.json, etc.), prepend\n   the install command: `blacksmith testbox run --id \u003CID> \"npm install && npm test\"`\n7. If you need artifacts (coverage reports, build outputs, etc.), download them:\n   `blacksmith testbox download --id \u003CID> coverage\u002F .\u002Fcoverage\u002F`\n8. Once green, commit and push.\n\n## OpenClaw full test suite\n\nFor OpenClaw, use the repo package manager and the measured stable full-suite\nprofile below. It keeps six Vitest project shards active while limiting each\nshard to one worker to avoid worker OOMs on Testbox:\n\n    blacksmith testbox run --id \u003CID> \"env NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test\"\n\nObserved full-suite time on Blacksmith Testbox is about 3-4 minutes:\n\n- 173-180s on a warmed box\n- 219s on a fresh 32-vCPU box\n\nWhen validating before commit\u002Fpush, run `pnpm check:changed` first when\nappropriate, then the full suite with the profile above if broad confidence is\nneeded.\n\n## Examples\n\n    blacksmith testbox warmup ci-check-testbox.yml\n    # → tbx_01jkz5b3t9...\n\n    # Run tests\n    blacksmith testbox run --id \u003CID> \"npm test -- --testPathPattern=handler.test\"\n    blacksmith testbox run --id \u003CID> \"go test .\u002Fpkg\u002Fapi\u002F... -run TestHandler -v\"\n    blacksmith testbox run --id \u003CID> \"python -m pytest tests\u002Ftest_api.py -k test_auth\"\n\n    # Re-install deps after changing package.json, then test\n    blacksmith testbox run --id \u003CID> \"npm install && npm test\"\n\n    # Build and test\n    blacksmith testbox run --id \u003CID> \"npm run build && npm test\"\n\n    # Download artifacts from the testbox\n    blacksmith testbox download --id \u003CID> coverage\u002Flcov-report\u002F .\u002Fcoverage\u002F\n    blacksmith testbox download --id \u003CID> build\u002Foutput.tar.gz\n\n## Waiting for the testbox to be ready\n\nThe `run` command automatically waits for the testbox, so explicit waiting is\nusually unnecessary. If you do need to check readiness separately (e.g. before\na series of runs), use the `--wait` flag. Do NOT use a sleep-and-recheck loop.\n\nCorrect: block until ready with a timeout:\n\n    blacksmith testbox status --id \u003CID> --wait [--wait-timeout 5m]\n\nWrong: never use sleep + status in a loop:\n\n    # BAD — do not do this\n    sleep 30 && blacksmith testbox status --id \u003CID>\n    while ! blacksmith testbox status --id \u003CID> | grep ready; do sleep 5; done\n\n`--wait` polls the status and exits as soon as the testbox is ready (or when the\ntimeout is reached). Default timeout is 5m; use `--wait-timeout` for longer\n(e.g. `10m`, `1h`).\n\n## Managing testboxes\n\n    # Check status of a specific testbox\n    blacksmith testbox status --id \u003CID>\n\n    # List all active testboxes for the current repo\n    blacksmith testbox list\n\n    # Stop a testbox when you're done (frees resources)\n    blacksmith testbox stop --id \u003CID>\n\nTestboxes automatically shut down after being idle (default: 30 minutes).\nIf you need a longer session, increase the timeout at warmup time:\n\n    blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60\n\n## With options\n\n    blacksmith testbox warmup ci-check-testbox.yml --ref main\n    blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60\n    blacksmith testbox run --id \u003CID> \"go test .\u002F...\"\n","# Blacksmith Testbox\n\n## Scope\n\nUse Testbox when you need remote CI parity, injected secrets, hosted services,\nor an OS\u002Fruntime image that your local machine cannot provide cheaply.\n\nDo not default to Testbox for every local test\u002Fbuild loop. If the repo has\ndocumented local commands for normal iteration, use those first so you keep\nwarm caches, local build state, and fast feedback.\n\nTestbox is the expensive path. Reach for it deliberately.\n\n## Install the CLI\n\nIf `blacksmith` is not installed, install it:\n\n    curl -fsSL https:\u002F\u002Fget.blacksmith.sh | sh\n\nFor the canary channel (bleeding-edge):\n\n    BLACKSMITH_CHANNEL=canary sh -c 'curl -fsSL https:\u002F\u002Fget.blacksmith.sh | sh'\n\nThen authenticate:\n\n    blacksmith auth login\n\n## Agent-triggered browser auth (non-interactive)\n\nWhen an agent needs to ensure the user is authenticated before running testbox\ncommands (e.g. warmup, run), use browser-based auth with non-interactive mode.\nThis opens the browser for the user to sign in; the agent does not interact with\nthe browser. The org selector in the dashboard is skipped, so the user only sees\nthe sign-in flow.\n\n**Required command** (`--organization` is required with `--non-interactive`):\n\n    blacksmith auth login --non-interactive --organization \u003Corg-slug>\n\nThe org slug can come from `BLACKSMITH_ORG` env var or the `--org` global flag.\nIf neither is set, the agent should use the project's known org (e.g. from repo\nconfig or user context). Example:\n\n    blacksmith auth login --non-interactive --organization acme-corp\n    blacksmith --org acme-corp auth login --non-interactive --organization acme-corp\n\n**Flow**: The CLI starts a local callback server, opens the browser to the\ndashboard auth page, and blocks for up to 2 minutes. The user completes sign-in\nand authorization in the browser. The dashboard redirects to localhost with the\ntoken; the CLI saves credentials and exits. The agent then proceeds.\n\n**Do not use** `--api-token` for this flow — that is for headless\u002Ftoken-based\nauth. This skill focuses on browser-based auth when the user prefers signing in\nvia the web UI.\n\nOptional flags:\n\n- `--dashboard-url \u003Curl>` — Override dashboard URL (e.g. for staging)\n\n## Decide first: local or Testbox\n\nBefore warming anything up, check the repo's own instructions.\n\nPrefer local commands when:\n\n- the repo documents a supported local test\u002Fbuild workflow\n- you are iterating on unit tests, lint, typecheck, formatting, or other\n  local-only validation\n- the value comes from warm local caches and fast repeat runs\n- the command does not need remote secrets, hosted services, or CI-only images\n\nPrefer Testbox when:\n\n- the repo explicitly requires CI-parity or remote validation\n- the command needs secrets, service containers, or provisioned infra\n- you are reproducing CI-only failures\n- you need the exact workflow image\u002Fjob environment from GitHub Actions\n\nFor OpenClaw specifically, normal local iteration should stay local:\n\n- `pnpm check:changed`\n- `pnpm test:changed`\n- `pnpm test \u003Cpath-or-filter>`\n- `pnpm test:serial`\n- `pnpm build`\n\nOnly use Testbox in OpenClaw when the user explicitly wants CI-parity or the\ncheck truly depends on remote secrets\u002Fservices that the local repo loop cannot\nprovide.\n\n## Setup: Warmup before coding\n\nIf you decided Testbox is actually warranted, warm one up early. This returns\nan ID instantly and boots the CI environment in the background while you work:\n\n    blacksmith testbox warmup ci-check-testbox.yml\n    # → tbx_01jkz5b3t9...\n\nSave this ID. You need it for every `run` command.\n\nWarmup dispatches a GitHub Actions workflow that provisions a VM with the\nfull CI environment: dependencies installed, services started, secrets\ninjected, and a clean checkout of the repo at the default branch.\n\nOptions:\n\n    --ref \u003Cbranch>         Git ref to dispatch against (default: repo's default branch)\n    --job \u003Cname>           Specific job within the workflow (if it has multiple)\n    --idle-timeout \u003Cmin>   Idle timeout in minutes (default: 30)\n\n## CRITICAL: Always run from the repo root\n\nALWAYS invoke `blacksmith testbox` commands from the **root of the git\nrepository**. The CLI syncs the current working directory to the testbox\nusing rsync with `--delete`. If you run from a subdirectory (e.g.\n`cd backend && blacksmith testbox run ...`), rsync will mirror only that\nsubdirectory and **delete everything else** on the testbox — wiping other\ndirectories like `dashboard\u002F`, `cli\u002F`, etc.\n\n    # CORRECT — run from repo root, use paths in the command\n    blacksmith testbox run --id \u003CID> \"cd backend && php artisan test\"\n    blacksmith testbox run --id \u003CID> \"cd dashboard && npm test\"\n\n    # WRONG — do NOT cd into a subdirectory before invoking the CLI\n    cd backend && blacksmith testbox run --id \u003CID> \"php artisan test\"\n\nIf your shell is in a subdirectory, `cd` back to the repo root first:\n\n    cd \"$(git rev-parse --show-toplevel)\"\n    blacksmith testbox run --id \u003CID> \"cd backend && php artisan test\"\n\n## Running commands\n\n    blacksmith testbox run --id \u003CID> \"\u003Ccommand>\"\n\nThe `run` command automatically waits for the testbox to become ready if\nit is still booting, so you can call `run` immediately after warmup without\nneeding to check status first.\n\n## Downloading files from a testbox\n\nUse the `download` command to retrieve files or directories from a running\ntestbox to your local machine. This is useful for fetching build artifacts,\ntest results, coverage reports, or any output generated on the testbox.\n\n    blacksmith testbox download --id \u003CID> \u003Cremote-path> [local-path]\n\nThe remote path is relative to the testbox working directory (same as `run`).\nIf no local path is specified, the file is saved to the current directory\nusing the same base name.\n\nTo download a directory, append a trailing `\u002F` to the remote path — this\ntriggers recursive mode:\n\n    # Download a single file\n    blacksmith testbox download --id \u003CID> coverage\u002Freport.html\n\n    # Download a file to a specific local path\n    blacksmith testbox download --id \u003CID> build\u002Foutput.tar.gz .\u002Foutput.tar.gz\n\n    # Download an entire directory\n    blacksmith testbox download --id \u003CID> test-results\u002F .\u002Fresults\u002F\n\nOptions:\n\n    --ssh-private-key \u003Cpath>   Path to SSH private key (if warmup used --ssh-public-key)\n\n## How file sync works\n\nUnderstanding this model is critical for using Testbox correctly.\n\nWhen you call `run`, the CLI performs a **delta sync** of your local changes\nto the remote testbox before executing your command:\n\n1. The testbox VM starts from a clean `actions\u002Fcheckout` at the warmup ref.\n   The workflow's setup steps (e.g. `npm install`, `pip install`, `composer install`)\n   run during warmup and populate dependency directories on the remote VM.\n\n2. On each `run`, the CLI uses **git** to detect which files changed locally\n   since the last sync. It syncs ONLY tracked files and untracked non-ignored\n   files (i.e. files that `git ls-files` reports).\n\n3. **`.gitignore`'d directories are never synced.** This means directories\n   like `node_modules\u002F`, `vendor\u002F`, `.venv\u002F`, `build\u002F`, `dist\u002F`, etc. are\n   NOT transferred from your local machine. The testbox uses its own copies\n   of those directories, populated during the warmup workflow steps.\n\n4. If nothing has changed since the last sync (same git commit and working\n   tree state), the sync is skipped entirely for speed.\n\n### Why this matters\n\n- **Changing dependencies**: If you modify `package.json`, `requirements.txt`,\n  `composer.json`, `go.mod`, or similar dependency manifests, the lock\u002Fmanifest\n  file will be synced but the actual dependency directory will NOT. You must\n  re-run the install command on the testbox:\n\n      blacksmith testbox run --id \u003CID> \"npm install && npm test\"\n      blacksmith testbox run --id \u003CID> \"pip install -r requirements.txt && pytest\"\n      blacksmith testbox run --id \u003CID> \"composer install && phpunit\"\n\n- **Generated\u002Fbuild artifacts**: If your tests depend on a build step (e.g.\n  `npm run build`, `make`), and you changed source files that affect the build\n  output, re-run the build on the testbox before testing.\n\n- **New untracked files**: New files you create locally ARE synced (as long as\n  they are not gitignored). You do not need to `git add` them first.\n\n- **Deleted files**: Files you delete locally are also deleted on the remote\n  testbox. The sync model keeps the remote in lockstep with your local managed\n  file set.\n\n## CRITICAL: Do not ban local tests\n\nDo not assume local validation is forbidden. Many repos intentionally invest in\nfast, warm local loops, and forcing every run through Testbox destroys that\nadvantage.\n\nUse Testbox for the checks that actually need it: remote parity, secrets,\nservices, CI-only runners, or reproducibility against the workflow image.\n\nIf the repo says local tests\u002Fbuilds are the normal path, follow the repo.\n\n## When to use\n\nUse Testbox when:\n\n- running database migrations or destructive environment checks\n- running commands that depend on secrets or environment variables not present locally\n- reproducing CI-only failures or validating against the workflow image\n- validating behavior that needs provisioned services or remote runners\n- doing a final parity check before commit\u002Fpush when the repo or user wants that\n\nTrim that list based on repo guidance. If the repo documents supported local\ntests\u002Fbuilds, prefer local for routine iteration and keep Testbox for the\nchecks that need parity or remote state.\n\n## Workflow\n\n1. Decide whether the repo's local loop is the right default.\n2. Only if Testbox is warranted, warm up early:\n   `blacksmith testbox warmup ci-check-testbox.yml` → save the ID\n3. Write code while the testbox boots in the background.\n4. Run the remote command when needed:\n   `blacksmith testbox run --id \u003CID> \"npm test\"`\n5. If tests fail, fix code and re-run against the same warm box.\n6. If you changed dependency manifests (package.json, etc.), prepend\n   the install command: `blacksmith testbox run --id \u003CID> \"npm install && npm test\"`\n7. If you need artifacts (coverage reports, build outputs, etc.), download them:\n   `blacksmith testbox download --id \u003CID> coverage\u002F .\u002Fcoverage\u002F`\n8. Once green, commit and push.\n\n## OpenClaw full test suite\n\nFor OpenClaw, use the repo package manager and the measured stable full-suite\nprofile below. It keeps six Vitest project shards active while limiting each\nshard to one worker to avoid worker OOMs on Testbox:\n\n    blacksmith testbox run --id \u003CID> \"env NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test\"\n\nObserved full-suite time on Blacksmith Testbox is about 3-4 minutes:\n\n- 173-180s on a warmed box\n- 219s on a fresh 32-vCPU box\n\nWhen validating before commit\u002Fpush, run `pnpm check:changed` first when\nappropriate, then the full suite with the profile above if broad confidence is\nneeded.\n\n## Examples\n\n    blacksmith testbox warmup ci-check-testbox.yml\n    # → tbx_01jkz5b3t9...\n\n    # Run tests\n    blacksmith testbox run --id \u003CID> \"npm test -- --testPathPattern=handler.test\"\n    blacksmith testbox run --id \u003CID> \"go test .\u002Fpkg\u002Fapi\u002F... -run TestHandler -v\"\n    blacksmith testbox run --id \u003CID> \"python -m pytest tests\u002Ftest_api.py -k test_auth\"\n\n    # Re-install deps after changing package.json, then test\n    blacksmith testbox run --id \u003CID> \"npm install && npm test\"\n\n    # Build and test\n    blacksmith testbox run --id \u003CID> \"npm run build && npm test\"\n\n    # Download artifacts from the testbox\n    blacksmith testbox download --id \u003CID> coverage\u002Flcov-report\u002F .\u002Fcoverage\u002F\n    blacksmith testbox download --id \u003CID> build\u002Foutput.tar.gz\n\n## Waiting for the testbox to be ready\n\nThe `run` command automatically waits for the testbox, so explicit waiting is\nusually unnecessary. If you do need to check readiness separately (e.g. before\na series of runs), use the `--wait` flag. Do NOT use a sleep-and-recheck loop.\n\nCorrect: block until ready with a timeout:\n\n    blacksmith testbox status --id \u003CID> --wait [--wait-timeout 5m]\n\nWrong: never use sleep + status in a loop:\n\n    # BAD — do not do this\n    sleep 30 && blacksmith testbox status --id \u003CID>\n    while ! blacksmith testbox status --id \u003CID> | grep ready; do sleep 5; done\n\n`--wait` polls the status and exits as soon as the testbox is ready (or when the\ntimeout is reached). Default timeout is 5m; use `--wait-timeout` for longer\n(e.g. `10m`, `1h`).\n\n## Managing testboxes\n\n    # Check status of a specific testbox\n    blacksmith testbox status --id \u003CID>\n\n    # List all active testboxes for the current repo\n    blacksmith testbox list\n\n    # Stop a testbox when you're done (frees resources)\n    blacksmith testbox stop --id \u003CID>\n\nTestboxes automatically shut down after being idle (default: 30 minutes).\nIf you need a longer session, increase the timeout at warmup time:\n\n    blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60\n\n## With options\n\n    blacksmith testbox warmup ci-check-testbox.yml --ref main\n    blacksmith testbox warmup ci-check-testbox.yml --idle-timeout 60\n    blacksmith testbox run --id \u003CID> \"go test .\u002F...\"\n",{"name":5,"description":7},"main","a2e3284ed4488780397ee2f78217366e11470dfb","skills\u002Fblacksmith-testbox","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright","https:\u002F\u002Fplaywright.dev","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack","2026-04-25 06:04:45",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill blacksmith-testbox",{"tool":44,"command":45},"bunx","bunx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill blacksmith-testbox",{"tool":47,"command":48},"pnpm","pnpm dlx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill blacksmith-testbox","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fblacksmith-testbox\u002FSKILL.md",true,[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},".skillfish.json","REFERENCE","参考文档",237,"https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fblacksmith-testbox\u002F.skillfish.json",[59,77,85,93,106,116],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":26},"01M6E3XK4PRPMQHM7Y98FQPTY1","zyte-api-automation","Automate Zyte API tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzyte-api-automation\u002FSKILL.md",[],[66,67,68,69,70,71,72,73,74,75,76],"zyte api automation","api","automation","MCP","tasks","search","Tools","first","automate","composio","via",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":26},"01M6E3XFX6QSTR1QR59NFXJTMA","zylvie-automation","Automate Zylvie tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzylvie-automation\u002FSKILL.md",[],[84,68,74,69,70,71,72,73,75,76],"zylvie automation",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":26},"01M6E3XCX2GDYYCHN58ZJHT37M","zoominfo-automation","Automate Zoominfo tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoominfo-automation\u002FSKILL.md",[],[92,68,71,72,73,74,75,76,70,69],"zoominfo automation",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":26},"01M6E3X9WJ2T73216WQHHTB9BD","zoho_mail-automation","Automate Zoho Mail tasks via Rube MCP (Composio): email sending, folders, labels, and mailbox management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_mail-automation\u002FSKILL.md",[],[100,101,102,68,69,70,71,103,72,73,74,104,75,105,76],"mail","zoho mail automation","zoho","email","management","mailbox",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":26},"01M6E3X719W648XZBW1EC6JQ64","zoho_invoice-automation","Automate Zoho Invoice tasks via Rube MCP (Composio): invoices, estimates, expenses, clients, and payment tracking. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_invoice-automation\u002FSKILL.md",[],[113,102,68,70,71,72,73,74,114,115,75,76,69],"zoho invoice automation","tracking","payment",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":26},"01M6E3X28JYTC3QTK32AQF7BYB","zoho_inventory-automation","Automate Zoho Inventory tasks via Rube MCP (Composio): items, orders, warehouses, shipments, and stock management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_inventory-automation\u002FSKILL.md",[],[68,123,102,124,73,74,72,71,70,69,75,76,125,126,104],"inventory","zoho inventory automation","stock","orders"]