Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

spec-testability-heuristics

БесплатноБез исполняемых скриптовНе проверен

Use when a user story, acceptance criterion, PRD section, API contract or PR description is about to go to implementation and someone needs to know which…

testlandот testland★ 18 звёзд на GitHub

Об этом скилле

spec-testability-heuristics

What testability means here

ISTQB defines testability as "the degree to which test conditions can be established for a component or system, and tests can be performed to determine whether those test conditions have been met" (ISTQB Glossary, testability). A sentence from which no test condition can be established is not a weak requirement, it is an untestable one, and no downstream tooling fixes it.

Applying the rubric before implementation starts is the shift left approach. A requirement rewritten during review costs a sentence; the same requirement discovered as untestable after the code lands costs a rewrite, a re-implementation, and a re-review.

What this skill judges, and what it does not

This skill answers exactly one question per sentence: can this claim be tested as written?

It deliberately does not:

Out of scope Why it is a different job
Writing the tests Turning a passing claim into Given/When/Then, a test case, or an assertion is a downstream formatting step with its own output shape.
Assessing risk or priority A perfectly testable claim can be trivial, and a critical claim can be untestable. Testability and importance are independent axes.
Checking correctness "p95 latency is under 10 hours" is fully testable and probably wrong. This rubric passes it. Product judgment is a separate review.
Checking completeness Missing requirements are invisible to a rubric that reads only the sentences present. A coverage review looks for what is absent; this looks at what is there.
Proofreading Typos, tense, and house style are not testability defects. A misspelled but Observable, Decidable, Bounded claim is OK.

If a claim passes all three heuristics, it is OK regardless of prose preference. Stylistic nitpicks are not findings.

The three heuristics

A claim is testable when all three hold. Each heuristic below gives the failure signature, untestable examples, and the testable rewrite of each one.

Heuristic 1: Observable

The claim describes a state or output that can be observed from outside the system. This is what makes a test condition establishable at all, and it is why ISTQB defines an expected result as "the observable predicted behavior of a test item under specified conditions based on its test basis" (ISTQB Glossary, expected result). If nothing observable is predicted, there is nothing to compare an actual result against.

Failure signature: an adjective or an internal-state verb with no externally visible referent. Words such as fast, clean, robust, seamless, intuitive, modern, secure, scalable, and any verb describing what a user feels rather than what the system emits.

Untestable Why it fails Testable rewrite
"The system will be fast." No observable threshold and no named surface. "p95 page-load time on /dashboard is at most 2.5s under 100 concurrent users."
"Users will enjoy the new flow." Enjoyment is not emitted by the system. "Users complete the new onboarding flow in at most 90 seconds (median, n at least 30)."
"The data will be clean." No assertion can be written against "clean". "Every row in customers.email matches the email regex; the not_null check passes."

The rewrite move for Observable is: name the surface, name the metric, name the number.

Heuristic 2: Decidable

A test run against the claim produces a deterministic pass or fail. In ISTQB terms the claim must supply, or point at, a test oracle: "a source to determine an expected result" (ISTQB Glossary, test oracle). Observable and Decidable are distinct. "The page renders a banner" is observable but not decidable until the banner's identity is pinned down; two reviewers would disagree on whether a given banner counts.

Failure signature: a comparative or qualitative judgement with no reference point. Words such as good, graceful, appropriate, reasonable, better, consistent, and any regression claim with no stated baseline.

Untestable Why it fails Testable rewrite
"The page should look good on mobile." "Good" has no oracle; two reviewers disagree. "Visual snapshot at 375px viewport matches the approved design frame."
"Errors should be handled gracefully." "Graceful" has no oracle. "On a 5xx response, the UI shows a retry banner with data-testid=\"retry-banner\"."
"Performance should not regress." A comparison with no baseline named. "p95 latency on POST /orders does not regress more than 10% versus the current trunk build."

The rewrite move for Decidable is: name the oracle - a golden file, an approved baseline, a prior build, a schema, a specific selector, a status code, or a fixed expected value.

Heuristic 3: Bounded

The

Полный SKILL.md на GitHub

Установить spec-testability-heuristics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.tessl-plugin/plugin.jsonevals/analytics-spec-where-they-also-want-risk-ranked/criteria.jsonevals/analytics-spec-where-they-also-want-risk-ranked/task.mdevals/bulk-import-contract-before-two-teams-build-it/criteria.jsonevals/bulk-import-contract-before-two-teams-build-it/task.mdevals/pr-description-review-with-the-diff-attached/criteria.jsonevals/pr-description-review-with-the-diff-attached/task.mdevals/prd-section-that-is-mostly-background-prose/criteria.jsonevals/prd-section-that-is-mostly-background-prose/task.mdevals/three-refinement-tickets-and-the-ugly-one-is-fine/criteria.jsonevals/three-refinement-tickets-and-the-ugly-one-is-fine/task.mdreferences/worked-examples.md

FAQ

Что делает скилл spec-testability-heuristics?

Use when a user story, acceptance criterion, PRD section, API contract or PR description is about to go to implementation and someone needs to know which sentences can't be verified. Scores each claim as observable, decidable and bounded, rewrites weak ones and gives a BLOCK, REVIEW or OK verdict.

Как установить скилл spec-testability-heuristics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл spec-testability-heuristics запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить spec-testability-heuristics с