test-harness
БесплатноБез исполняемых скриптовНе проверенInstall vigiles and test a Claude Code harness — hooks, skills, agents, settings, CLAUDE.md — by picking the right tier (unit / deterministic / eval) and…
от zernie★ 17 звёзд на GitHubОб этом скилле
Test the Claude Code harness — the hooks, skills, settings, and CLAUDE.md that steer an agent — as the assembled machine it ships as. vigiles gives three tiers, cheapest first; this skill picks the right one, writes the test, and runs it.
The guiding rule: start at the cheapest tier that can answer the question, and climb only when it genuinely can't. Two of the three tiers need no model and no API key, so they run on every commit for free — reach for the paid real-model tier only when the question actually requires a real model.
Step 0 — Pick the tier (the judgment call)
Match what you're testing to the cheapest tier that can answer it:
| What you're testing | Tier | Cost | API |
|---|---|---|---|
| "Does this hook block/allow event X?" — pure hook logic, every event type (incl. Edit/Write, PreCompact, SessionEnd, SubagentStop) | Unit | free, milliseconds, no claude |
runHook |
| "Is the hook actually wired into the assembled plugin and does it fire in a real session?" | Deterministic | free, no API key (real claude + scripted mock) |
runHarnessTest + scriptModel |
"Did the injected context (a SessionStart hook, a /command) actually reach the model?" |
Deterministic | free, no API key | runHarnessTest → trace.modelRequests / check.received |
| "Does this skill's description trigger when it should (recall) and stay quiet when it shouldn't (precision)?" | Eval | paid (real model) | measureTriggerRate (+ irrelevantPrompts) → assertRates(report, { min, maxFalsePositive }) |
| "Can I measure triggering on a cheaper model and trust it as a floor?" | Eval | paid (two runs) | compare(weak, strong) (from vigiles/eval) → .lost |
| "Is this exact skill's output any good?" — absolute quality, no on/off baseline (the default for testing one skill) | Eval | paid (real model) | runEval({ checks: [judged(rubric)] }) → assertRates({ min }) |
| "Does this harness change move what the agent does, relative to off?" — A/B lift, regression, signal vs noise | Eval | paid (real model) | runEval (arms) + assertImproves({ significant: true }) (from vigiles/eval) |
Most harness questions — block/allow, wired-in, context-landed — never need a model. Only "does the model trigger / behave differently" needs the eval tier.
⚠️ A trigger-rate of 0% on EVERY prompt is a wiring bug until proven otherwise.
It reads like a verdict on the description, and three separate setup mistakes
produce it: a bare id in fired where the namespaced <plugin>:<skill> is
required; pluginDir where a loose .claude/skills needs skillsDir; and a
missing fixture, since a run starts in an empty directory and a prompt about
a file that isn't there is one the model is right to decline. Rule all three out
before reporting it. (A partial rate is a real number — don't second-guess it.)
Don't tune against a cheaper model until you've checked it's actually a floor.
Run the same prompts on both and compare(weak, strong) (from vigiles/eval):
each prompt in lost fired on the weak model but NOT the strong one, which means the weak model is not a
lower bound but a different router. Prompts in gained (fired only on the strong model)
are expected and are not a failure. Measured once (21 skills, 84 prompts, haiku
vs sonnet): 3 weak-only, and one skill higher on haiku — so containment is
not established, which is why the floor stays.
If the unit and deterministic tiers can both answer it, prefer unit: it's faster and reaches events the deterministic mock can't drive.
Step 0.4 — Observing a run, and what it costs
Two questions have their own references — open the one you need, don't guess:
Установить test-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteGlobGrepBashВложенные файлы
FAQ
Что делает скилл test-harness?
Install vigiles and test a Claude Code harness — hooks, skills, agents, settings, CLAUDE.md — by picking the right tier (unit / deterministic / eval) and writing a test that passes. Use to check that a hook fires or blocks, that a skill triggers, that injected context lands; or to observe a run — which tools it called, whether it stayed inside its declared allowed-tools, what files and side effects it produced, how to intercept a call without executing it.
Как установить скилл test-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-harness запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic