用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill testing-infrastructure命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | testing-infrastructure |
| description | Guide and workflow for Testing Infrastructure. Use when you need Testing Infrastructure. |
Purpose: Centralized testing utilities, debug protocols, and CI/local parity guidelines.
Always use testing_mcp/lib/ utilities - NEVER reimplement test infrastructure.
| Module | Functions |
|---|---|
lib/evidence_utils.py | get_evidence_dir(), capture_provenance(), save_evidence(), write_with_checksum(), create_evidence_bundle(), save_request_responses() |
lib/mcp_client.py | MCPClient(base_url, timeout), client.tools_call(tool_name, args) |
lib/campaign_utils.py | create_campaign(), process_action(), get_campaign_state(), ensure_game_state_seed() |
lib/server_utils.py | start_local_mcp_server(), pick_free_port(), DEFAULT_EVIDENCE_ENV |
lib/model_utils.py | settings_for_model(), update_user_settings() |
lib/narrative_validation.py | validate_narrative_quality(), extract_dice_notation() |
# Import from lib modules
from testing_mcp.lib.evidence_utils import get_evidence_dir, capture_provenance
from testing_mcp.lib.mcp_client import MCPClient
from testing_mcp.lib.campaign_utils import create_campaign, process_action
# NEVER reimplement these functions
Writing custom capture_provenance(), get_evidence_dir(), save_evidence(), or any function that duplicates testing_mcp/lib/ functionality.
Mock external dependencies to ensure tests pass in both CI and local environments:
with patch('shutil.which', return_value='/usr/bin/command'):
with patch('subprocess.run') as mock_run:
mock_run.return_value = MagicMock(returncode=0)
# test code here
Rules:
shutil.which(), subprocess.run(), file opsmvp_site/tests/*) may use direct logging# CORRECT - Debug info in assertion
debug_info = f"function_result={result}, context={context}"
self.assertTrue(result, f"FAIL DEBUG: {debug_info}")
# WRONG - Print statements (lost in CI)
print(f"Debug: {result}")
ZERO TOLERANCE: Fix ALL test failures in CI
LOCAL TESTING: Don't run full test suite locally - rely on GitHub CI
TESTING=true vpython mvp_site/tests/test_<specific>.pyMCP_SERVER_URL="https://..." MCP_TEST_MODE=real node scripts/mcp-smoke-tests.mjs
/tmp/repo/branch/smoke_tests/evidence-standards.md - Evidence capture standardsend2end-testing.md - E2E test patterns