test-soundness-review
Repo-owned test soundness auditor and navigator for citum-core. Reasons from a spec (not the implementation) to classify each test as good, suspicious…
от citum★ 36 звёзд на GitHub
Установить test-soundness-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
test-soundness-review
Audit test functions against the spec that governs them, and keep a durable
record of the state of test quality across citum-core. The goal is to find
tests that could pass while the implementation still violates the spec — and
tests that exist for their own sake and prove nothing — not to review code
style.
The verdict bar is the shared "What makes a test worth keeping" contract in
docs/guides/CODING_STANDARDS.md. That
section is the source of truth; this skill operationalises it. If this skill and
that contract ever disagree, the contract wins — fix the skill.
Arguments
/test-soundness-review [spec-path] [test-file-or-glob]
Examples:
/test-soundness-review docs/specs/SORTING.md crates/citum-engine/tests/
/test-soundness-review docs/specs/DISAMBIGUATION.md crates/citum-engine/tests/citations.rs
/test-soundness-review # no args — navigate the ledger, propose what's next
Both arguments are optional. With no arguments, run Step 0 only and stop — the skill becomes a way to navigate test-quality state. With one argument, ask for the missing one before proceeding.
Step 0 — Read the ledger first (always)
Read docs/architecture/TEST_SOUNDNESS_STATUS.md
before anything else. It is the index of what has been audited, addressed, and
what remains todo.
- No spec named → summarise the ledger (counts by status, any
needs-reworkrows blocked on a spec decision) and offer the next fewtodorows ranked by risk. Stop there; let the user pick. - Spec named → find its row (or note that you'll create one). If the row is
already
addressed, say so and ask whether to re-audit before spending effort.
The ledger is also where you'll write back at the end (Step 6). Treat it as the entry and exit point of every run.
Step 1 — Read the spec and build the behaviour map
Read <spec-path> in full. Extract:
- Documented behaviours (numbered sections, rules, invariants).
- Acceptance criteria (checklist items).
- Strategy cascades / decision trees.
- Explicit "must", "must not", "is never consulted", "always" statements.
Build a map: spec section → observable behaviour. You'll use it both to judge each test and to drive the spec review in Step 2.
Step 2 — Review the spec itself (first-class, runs alongside test reading)
A test audit is only as trustworthy as the spec it reasons from. As you build the behaviour map, record spec defects in three buckets:
- Ambiguity — a rule that admits two readings, where a test could be "right"
under either. (Most dangerous: it lets a test launder the ambiguity into a
false
good.) - Contradiction — two sections that cannot both hold.
- Silence — a behaviour a test asserts, or a fixture clearly implies, that the spec never states.
For each defect, classify its audit impact:
blocking— you cannot honestly classify a test without the user first deciding what the spec means.advisory— worth fixing, but doesn't change any verdict.
Gating. If any defect is blocking, stop and prompt the user before
finalising verdicts. Quote the spec section, name the affected tests, and give
2–3 concrete resolution options. Do not pick a reading yourself: choosing one
silently is exactly the failure this skill exists to catch, and per the repo
rule you "never make content decisions unilaterally." Advisory defects are
recorded (Step 6) and summarised, but don't halt the run.
Step 3 — Enumerate and read the tests
Enumerate test functions in the glob. Prefer jcodemunch (get_file_outline,
get_symbol) over raw reads — it's the repo's standard and token-efficient.
Fallback:
grep -nE "fn |#\[test\]|#\[rstest\]" <file>
Also collect any announce_behavior(...) text or docstrings — a second source
of "what the author thought this checks".
For each test, read the body: fixture setup, the call under test, and every
assertion. Read shared helpers it calls (e.g. run_test_case_native,
build_author_date_style) — the helper's defaults change what the test proves.
Step 4 — Classify each test
Reason from the spec, not the implementation. The question is always: could this test pass while the implementation still violates the spec section it claims to cover? — and does this test make an independent claim at all?
Verdicts
broken — passes but proves nothing about the spec:
contains()/!contains()on rendered output under ~30 chars (a garbled renderer can still hit a short substring). Note: the repo banscontains()on rendered output outright unless the substring is ≥30 chars and the test name signals it — see CODING_STANDARDS §Test Independence.- No assertion at all (vacuous).
- Asserts an intermediate value but never the final rendered output.
- A stale capture stub left in (
panic!("intentional capture")).
**`
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл test-soundness-review?
Repo-owned test soundness auditor and navigator for citum-core. Reasons from a spec (not the implementation) to classify each test as good, suspicious, broken, or redundant; simultaneously reviews the spec for ambiguity, contradiction, and silence, halting to prompt the user when a spec defect blocks an honest verdict. Records state in the living ledger docs/architecture/TEST_SOUNDNESS_STATUS.md — never ephemeral JSON. Trigger on: "/test-soundness-review", "review my tests against the spec", "audit test soundness", "are my tests vacuous", "find broken tests", "find redundant tests", "are these tests just for the sake of it", "test quality review", "review the spec while you're at it", "what's the state of our test quality", "what test audits are outstanding", "what's next for test soundness". Also trigger proactively after a disambiguation, sorting, algorithm, or engine feature is implemented when the user asks "do the tests actually cover the spec?". Takes up to two arguments: /test-soundness-review [spec-path] [test-file-or-glob]
Как установить скилл test-soundness-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-soundness-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…