[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6WM8F8Z1K6NS4NY6M0Q1CPR":3,"skill-same:01M6WM8F8Z1K6NS4NY6M0Q1CPR":57},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M6WM8F8Z1K6NS4NY6M0Q1CPR","testing-infrastructure",null,"Use shared testing utilities, debug protocols, and CI\u002Flocal parity for WorldArchitect.AI.","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fworldarchitect\u002Fskills\u002Ftesting-infrastructure\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"testing","infrastructure","testing infrastructure","debug","protocols","ci","use","worldarchitect","local","shared","Utilities","for","parity","2026-11-10 10:12:30",false,"---\nname: testing-infrastructure\ndescription: Use shared testing utilities, debug protocols, and CI\u002Flocal parity for WorldArchitect.AI.\n---\n\n# Testing Infrastructure\n\n**Purpose**: Centralized testing utilities, debug protocols, and CI\u002Flocal parity guidelines.\n\n## Test Utilities (MANDATORY)\n\nUse the shared utilities owned by the test layer being exercised. For tests under\n`testing_mcp\u002F`, reuse its `lib\u002F` utilities; for other directories, use their\nscoped utilities instead of importing a service harness that does not own them.\n\n### Available Shared Utilities\n\n| Module | Functions |\n|--------|-----------|\n| `lib\u002Fevidence_utils.py` | `get_evidence_dir()`, `capture_provenance()`, `save_evidence()`, `write_with_checksum()`, `create_evidence_bundle()`, `save_request_responses()` |\n| `lib\u002Fmcp_client.py` | `MCPClient(base_url, timeout)`, `client.tools_call(tool_name, args)` |\n| `lib\u002Fcampaign_utils.py` | `create_campaign()`, `process_action()`, `get_campaign_state()`, `ensure_game_state_seed()` |\n| `lib\u002Fserver_utils.py` | `start_local_mcp_server()`, `pick_free_port()`, `DEFAULT_EVIDENCE_ENV` |\n| `lib\u002Fmodel_utils.py` | `settings_for_model()`, `update_user_settings()` |\n| `lib\u002Fnarrative_validation.py` | `validate_narrative_quality()`, `extract_dice_notation()` |\n\n### `testing_mcp\u002F` Pattern\n```python\n# Import from lib modules\nfrom testing_mcp.lib.evidence_utils import get_evidence_dir, capture_provenance\nfrom testing_mcp.lib.mcp_client import MCPClient\nfrom testing_mcp.lib.campaign_utils import create_campaign, process_action\n\n# NEVER reimplement these functions\n```\n\n### Anti-Pattern\nFor a test under `testing_mcp\u002F`, writing custom evidence, server, client, or\ncampaign helpers that duplicate its `lib\u002F` functionality. Outside that directory,\nfollow the local test-layer owner; do not force MCP-specific utilities onto unit,\nHTTP, or browser suites.\n\n## Browser Testing Tools\n\n**MANDATORY GUIDANCE: Choose the right tool for the task**\n\n### chrome-superpower (MCP Tool)\n**Use for**: Exploratory manual browsing and interactive testing\n- Quick browser exploration during development\n- Manual testing workflows that need human guidance\n- Inspecting page state and debugging UI issues\n- Taking screenshots and reading page content\n\n**DON'T use for**: Deterministic automated tests (async operations don't complete reliably)\n\n### Playwright\n**Use for**: Deterministic browser tests with validation\n- Automated end-to-end test suites\n- Tests that submit forms and verify streaming responses\n- Tests that need to wait for async operations to complete\n- CI-ready browser automation\n\n**Pattern**:\n```python\nfrom playwright.sync_api import sync_playwright\n\nplaywright = sync_playwright().start()\nbrowser = playwright.chromium.launch(headless=True)\ncontext = browser.new_context()\npage = context.new_page()\n\n# Navigate and interact\npage.goto(url)\npage.fill(\"#input\", \"text\")\npage.click(\"button[type='submit']\")\n\n# Validate results\nelements = page.query_selector_all(\".story-entry\")\nassert len(elements) > 0, \"Expected story content\"\n```\n\n**Why this matters**: chrome-superpower returns immediately from async JavaScript operations (shows `[object Promise]`), making it unsuitable for tests that need to validate streaming responses. Playwright properly waits for events and async operations.\n\n## CI\u002FLocal Parity\n\nFor deterministic tests outside `testing_mcp\u002F` and `testing_ui\u002F`, mock external\ndependencies when the test's claim is offline and isolated:\n\n```python\nwith patch('shutil.which', return_value='\u002Fusr\u002Fbin\u002Fcommand'):\n    with patch('subprocess.run') as mock_run:\n        mock_run.return_value = MagicMock(returncode=0)\n        # test code here\n```\n\n**Rules:**\n- Mock `shutil.which()`, `subprocess.run()`, file ops\n- Never rely on system state in tests\n- Test files (`$PROJECT_ROOT\u002Ftests\u002F*`) may use direct logging\n\n## Debug Protocol\n\n### Test Failure Debugging\n- Embed debug info in assertions, not print statements\n- Debugging order: Environment -> Function -> Logic -> Assertions\n- Test most basic assumption first: \"Does the function actually work?\"\n\n```python\n# CORRECT - Debug info in assertion\ndebug_info = f\"function_result={result}, context={context}\"\nself.assertTrue(result, f\"FAIL DEBUG: {debug_info}\")\n\n# WRONG - Print statements (lost in CI)\nprint(f\"Debug: {result}\")\n```\n\n## Testing Protocol\n\nTriage CI failures against the tested SHA and change scope. Fix failures caused\nby the change and follow the inherited-failure policy for failures proven outside\nthe change.\n\n**LOCAL TESTING:** Do not run an unfiltered full suite locally. Run the targeted\nchecks selected by the repository's test owner. CI is authoritative for its\nrequired checks; when a check is queued or pending beyond the repository's\nbacklog threshold, follow `\u002Fgreen` for its local equivalent and applicable\ndocumentation-only exception.\n\n## README-aligned Runner Selection (Critical)\n\n### `testing_mcp` suites\n- Resolve the project root and follow its `testing_mcp\u002FAGENTS.md` for exact\n  invocation, authentication, provider, server, and evidence requirements.\n- Do not use `vpython`, change into `testing_mcp\u002F`, collect these scripts with\n  pytest, or use mock\u002Fbypass mode there. The scoped owner documents the supported\n  direct `python3` + explicit-`PYTHONPATH` invocation and dedicated real account.\n\n### `testing_ui` authentication\n- Resolve the project root and follow its `testing_ui\u002FCLAUDE.md` and linked\n  `testing_mcp\u002FAGENTS.md`. Browser acceptance uses a dedicated real account,\n  real Firebase Auth, and a bypass-disabled server. Do not use `TESTING_AUTH_BYPASS`,\n  `ALLOW_TEST_AUTH_BYPASS`, `?test_mode=true`, synthetic identity headers, or a\n  mocked browser route for acceptance evidence. Missing credentials or account\n  access is a reported blocker, not a reason to enable bypass.\n\n## MCP Smoke Tests\n\n```bash\nMCP_SERVER_URL=\"https:\u002F\u002F...\" MCP_TEST_MODE=real node scripts\u002Fmcp-smoke-tests.mjs\n```\n- Hard-fails on any non-2xx response\n- The runner writes its log to `\u002Ftmp\u002F\u003Crepo>\u002F\u003Cbranch>\u002Fsmoke_tests\u002F` by its own\n  hardcoded path; no scratch setting redirects it. That is acceptable here: the policy\n  prohibits \u002Ftmp *workspaces* (clones, worktrees, build dirs) and explicitly permits\n  logs and single temp files. Do not claim these results live on the Scratch volume, and\n  do not add a `SCRATCH_ROOT` wrapper that implies otherwise.\n\n## Local test selection and runner\n\nResolve the current project root with `git rev-parse --show-toplevel` and follow\nits `AGENTS.md`, the relevant testing-layer owner, and the current runner's help.\nFor this repository, use the documented targeted `.\u002Frun_tests.sh \u003Cpath-or-filter>`\ncontract; never substitute an unfiltered local full suite when CI owns it. For\n`testing_mcp\u002F` and `testing_ui\u002F`, follow their stricter scoped owners for Python,\nauthentication, account, provider, server, and evidence requirements. Do not\ncarry forward historical home-directory interpreter paths or assume that a\nshell-level `vpython` function is available inside another process.\n\n## Related Skills\n- Resolve the current evidence-standards and end-to-end testing owners through the active skill catalog.\n","# Testing Infrastructure\n\n**Purpose**: Centralized testing utilities, debug protocols, and CI\u002Flocal parity guidelines.\n\n## Test Utilities (MANDATORY)\n\nUse the shared utilities owned by the test layer being exercised. For tests under\n`testing_mcp\u002F`, reuse its `lib\u002F` utilities; for other directories, use their\nscoped utilities instead of importing a service harness that does not own them.\n\n### Available Shared Utilities\n\n| Module | Functions |\n|--------|-----------|\n| `lib\u002Fevidence_utils.py` | `get_evidence_dir()`, `capture_provenance()`, `save_evidence()`, `write_with_checksum()`, `create_evidence_bundle()`, `save_request_responses()` |\n| `lib\u002Fmcp_client.py` | `MCPClient(base_url, timeout)`, `client.tools_call(tool_name, args)` |\n| `lib\u002Fcampaign_utils.py` | `create_campaign()`, `process_action()`, `get_campaign_state()`, `ensure_game_state_seed()` |\n| `lib\u002Fserver_utils.py` | `start_local_mcp_server()`, `pick_free_port()`, `DEFAULT_EVIDENCE_ENV` |\n| `lib\u002Fmodel_utils.py` | `settings_for_model()`, `update_user_settings()` |\n| `lib\u002Fnarrative_validation.py` | `validate_narrative_quality()`, `extract_dice_notation()` |\n\n### `testing_mcp\u002F` Pattern\n```python\n# Import from lib modules\nfrom testing_mcp.lib.evidence_utils import get_evidence_dir, capture_provenance\nfrom testing_mcp.lib.mcp_client import MCPClient\nfrom testing_mcp.lib.campaign_utils import create_campaign, process_action\n\n# NEVER reimplement these functions\n```\n\n### Anti-Pattern\nFor a test under `testing_mcp\u002F`, writing custom evidence, server, client, or\ncampaign helpers that duplicate its `lib\u002F` functionality. Outside that directory,\nfollow the local test-layer owner; do not force MCP-specific utilities onto unit,\nHTTP, or browser suites.\n\n## Browser Testing Tools\n\n**MANDATORY GUIDANCE: Choose the right tool for the task**\n\n### chrome-superpower (MCP Tool)\n**Use for**: Exploratory manual browsing and interactive testing\n- Quick browser exploration during development\n- Manual testing workflows that need human guidance\n- Inspecting page state and debugging UI issues\n- Taking screenshots and reading page content\n\n**DON'T use for**: Deterministic automated tests (async operations don't complete reliably)\n\n### Playwright\n**Use for**: Deterministic browser tests with validation\n- Automated end-to-end test suites\n- Tests that submit forms and verify streaming responses\n- Tests that need to wait for async operations to complete\n- CI-ready browser automation\n\n**Pattern**:\n```python\nfrom playwright.sync_api import sync_playwright\n\nplaywright = sync_playwright().start()\nbrowser = playwright.chromium.launch(headless=True)\ncontext = browser.new_context()\npage = context.new_page()\n\n# Navigate and interact\npage.goto(url)\npage.fill(\"#input\", \"text\")\npage.click(\"button[type='submit']\")\n\n# Validate results\nelements = page.query_selector_all(\".story-entry\")\nassert len(elements) > 0, \"Expected story content\"\n```\n\n**Why this matters**: chrome-superpower returns immediately from async JavaScript operations (shows `[object Promise]`), making it unsuitable for tests that need to validate streaming responses. Playwright properly waits for events and async operations.\n\n## CI\u002FLocal Parity\n\nFor deterministic tests outside `testing_mcp\u002F` and `testing_ui\u002F`, mock external\ndependencies when the test's claim is offline and isolated:\n\n```python\nwith patch('shutil.which', return_value='\u002Fusr\u002Fbin\u002Fcommand'):\n    with patch('subprocess.run') as mock_run:\n        mock_run.return_value = MagicMock(returncode=0)\n        # test code here\n```\n\n**Rules:**\n- Mock `shutil.which()`, `subprocess.run()`, file ops\n- Never rely on system state in tests\n- Test files (`$PROJECT_ROOT\u002Ftests\u002F*`) may use direct logging\n\n## Debug Protocol\n\n### Test Failure Debugging\n- Embed debug info in assertions, not print statements\n- Debugging order: Environment -> Function -> Logic -> Assertions\n- Test most basic assumption first: \"Does the function actually work?\"\n\n```python\n# CORRECT - Debug info in assertion\ndebug_info = f\"function_result={result}, context={context}\"\nself.assertTrue(result, f\"FAIL DEBUG: {debug_info}\")\n\n# WRONG - Print statements (lost in CI)\nprint(f\"Debug: {result}\")\n```\n\n## Testing Protocol\n\nTriage CI failures against the tested SHA and change scope. Fix failures caused\nby the change and follow the inherited-failure policy for failures proven outside\nthe change.\n\n**LOCAL TESTING:** Do not run an unfiltered full suite locally. Run the targeted\nchecks selected by the repository's test owner. CI is authoritative for its\nrequired checks; when a check is queued or pending beyond the repository's\nbacklog threshold, follow `\u002Fgreen` for its local equivalent and applicable\ndocumentation-only exception.\n\n## README-aligned Runner Selection (Critical)\n\n### `testing_mcp` suites\n- Resolve the project root and follow its `testing_mcp\u002FAGENTS.md` for exact\n  invocation, authentication, provider, server, and evidence requirements.\n- Do not use `vpython`, change into `testing_mcp\u002F`, collect these scripts with\n  pytest, or use mock\u002Fbypass mode there. The scoped owner documents the supported\n  direct `python3` + explicit-`PYTHONPATH` invocation and dedicated real account.\n\n### `testing_ui` authentication\n- Resolve the project root and follow its `testing_ui\u002FCLAUDE.md` and linked\n  `testing_mcp\u002FAGENTS.md`. Browser acceptance uses a dedicated real account,\n  real Firebase Auth, and a bypass-disabled server. Do not use `TESTING_AUTH_BYPASS`,\n  `ALLOW_TEST_AUTH_BYPASS`, `?test_mode=true`, synthetic identity headers, or a\n  mocked browser route for acceptance evidence. Missing credentials or account\n  access is a reported blocker, not a reason to enable bypass.\n\n## MCP Smoke Tests\n\n```bash\nMCP_SERVER_URL=\"https:\u002F\u002F...\" MCP_TEST_MODE=real node scripts\u002Fmcp-smoke-tests.mjs\n```\n- Hard-fails on any non-2xx response\n- The runner writes its log to `\u002Ftmp\u002F\u003Crepo>\u002F\u003Cbranch>\u002Fsmoke_tests\u002F` by its own\n  hardcoded path; no scratch setting redirects it. That is acceptable here: the policy\n  prohibits \u002Ftmp *workspaces* (clones, worktrees, build dirs) and explicitly permits\n  logs and single temp files. Do not claim these results live on the Scratch volume, and\n  do not add a `SCRATCH_ROOT` wrapper that implies otherwise.\n\n## Local test selection and runner\n\nResolve the current project root with `git rev-parse --show-toplevel` and follow\nits `AGENTS.md`, the relevant testing-layer owner, and the current runner's help.\nFor this repository, use the documented targeted `.\u002Frun_tests.sh \u003Cpath-or-filter>`\ncontract; never substitute an unfiltered local full suite when CI owns it. For\n`testing_mcp\u002F` and `testing_ui\u002F`, follow their stricter scoped owners for Python,\nauthentication, account, provider, server, and evidence requirements. Do not\ncarry forward historical home-directory interpreter paths or assume that a\nshell-level `vpython` function is available inside another process.\n\n## Related Skills\n- Resolve the current evidence-standards and end-to-end testing owners through the active skill catalog.\n",{"name":5,"description":7},"main","8144f00ebafc4306264c63239e4b9fa42e48a90e","plugins\u002Fworldarchitect\u002Fskills\u002Ftesting-infrastructure",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill testing-infrastructure",{"tool":49,"command":50},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill testing-infrastructure",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill testing-infrastructure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fworldarchitect\u002Fskills\u002Ftesting-infrastructure\u002FSKILL.md",true,[],[58,66,73,81,89,98],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":65},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":65},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":93,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":88},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":88},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]