test-runner
Use this skill when orchestrating agentic end-to-end tests. Resolves target + profile, dispatches the right driver(s) (playwright for web today, peekaboo for…
от Kanevry★ 53 звезды на GitHub
Установить test-runner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test Runner Skill
Project-instruction file resolution:
CLAUDE.mdandAGENTS.md(Codex CLI) are transparent aliases — see skills/_shared/instruction-file-resolution.md. Wherever this skill mentionsCLAUDE.md, the alias rule applies.
Plugin root:
${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill'sskills/folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.
Soul
Before anything else, read and internalize soul.md in this skill directory. It defines WHO you are — your role as an orchestrator, your delegation boundaries, and your non-negotiable constraints.
Phase 0: Bootstrap Gate
Read skills/_shared/bootstrap-gate.md and execute the gate check. If GATE_CLOSED, invoke skills/bootstrap/SKILL.md and wait for completion. If GATE_OPEN, continue to Phase 1.
Phase 1: Read Session Config + Resolve Target / Profile
Read and parse Session Config per skills/_shared/config-reading.md. Store result as $CONFIG.
Test-runner specific fields (parse these specifically):
test-runner.default-profile(default:smoke)test-runner.retention-days(default:30)test-command,typecheck-command,lint-command(used for context only — not driven here)
Target / Profile Resolution
Resolution order (first match wins):
- CLI argument
--target <name> --profile <name>(explicit, highest priority) - Policy file lookup —
.orchestrator/policy/test-profiles.jsonby target name (if present) - Convention-based detection (marker files):
playwright.config.{ts,js,mjs,cjs,mts}present → target typeweb, dispatchplaywright-driverPackage.swiftpresent → target typemac, dispatchpeekaboo-driver(seeskills/peekaboo-driver/SKILL.md)
- Fallback → emit error and halt:
Error: Cannot resolve target — provide --target or add .orchestrator/policy/test-profiles.json
Rubric and Target Label
Resolve the rubric and requested target right after the profile; verify the target against Phase 2 capture evidence before Phase 3 passes it to the evaluator.
RUBRIC — the selected profile's rubric field:
import { loadProfiles, getProfile } from 'scripts/lib/profiles/registry.mjs';
const reg = await loadProfiles(); // .orchestrator/policy/test-profiles.json
const hit = reg.ok ? getProfile(reg.profiles, PROFILE) : { ok: false };
const RUBRIC = hit.ok ? hit.profile.rubric : 'skills/test-runner/rubric-v2.md';
getProfile() already applies the schema default (scripts/lib/profiles/schema.mjs, rubric-v2) when a profile names no rubric, so a pin is honoured and an unpinned profile gets v2. No registry file or no matching profile (convention-based detection) → rubric-v2. The mac profiles pin rubric-v1.md on purpose: peekaboo writes ax-snapshots/<scenario>.json, no 1440/390 viewports, so the v2 human checks could never complete there.
TARGET_KIND / TARGET_URL — what the run actually looked at (rubric-v2 Hard rule 4):
- Consume
target_kindandtarget_urlfrom the/testhandoff. A recognized--target-kind(live,production-build,dev-server) overrides an operator statement; without that flag, use an explicit statement for this run, otherwisedev-server. An invalid or missing flag value forces the pairdev-server unknowneven if a URL was supplied. No profile field upgrades the kind. TARGET_URListarget_urlfrom--target-urlfirst, then the URL the operator named, then the web target'splaywright.config.{ts,js,mjs,cjs,mts}use.baseURL(read the file, never execute it); for a macOS target use the app path. No value, or an explicitly missing flag value, is the literalunknown. Use the resolved URL for browser navigation as well as labelling; a label must describe the target actually driven.- A
localhost/127.0.0.1/ branch-preview URL is alwaysdev-server, whatever was stated or flagged. - Unknown is never upgraded: the evaluator gets
dev-server unknown, and its report header saysDEV-SERVER RUN. - For web targets, treat
TARGET_KINDas requested until capture evidence confirms${TARGET_URL}was actually driven. GrantLIVE RUN/PRODUCTION-BUILD RUNonly when the per-page visited-URL record from Phase 2 supports that target. Missing records or any visited origin differing from${TARGET_URL}'s origin forceTARGET_KIND = dev-server; name
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- rubric-v1.md
- rubric-v2.md
- soul.md
FAQ
Что делает скилл test-runner?
Use this skill when orchestrating agentic end-to-end tests. Resolves target + profile, dispatches the right driver(s) (playwright for web today, peekaboo for macOS (issue #381)), invokes the ux-evaluator agent (opus, read-only) against driver artifacts, reconciles findings with the open issue tracker via scripts/lib/test-runner/issue-reconcile.mjs, and writes report.md + JSONL roll-up. Wraps upstream tools (no forks). Hard-gates Playwright MCP for browser drive (4× token cost vs CLI per Microsoft's own benchmark).
Как установить скилл test-runner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-runner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse 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…
xlsx
AnthropicUse 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…
pptx
AnthropicUse 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…