ln-42-acceptance-test-builder

levnikolaevich/claude-code-skills

Создание и запуск воспроизводимых приёмочных тестов на штатных инструментах проекта.

Звёзды597
Форки90
Авторlevnikolaevich
Обновлённоя 11 2026

Установка

SKILL.md

Acceptance Test Builder

Goal: Create executable evidence that stated requirements work through the boundary users or external systems observe. Modify only the approved test and test-documentation scope. If a test exposes a product defect, preserve the evidence and report it instead of repairing production code.

Execution contract: Treat the ordered checkbox workflow below as this skill's Definition of Done. Work through every item in order, and mark it complete only when its action and required evidence are complete. N/A, skipped, unavailable, or delegated items remain incomplete. Before returning, apply this skill's verdict, decision, and approval rules to every incomplete item and prepend Checklist: X/Y complete<br>Incomplete: None | section/item — reason; outcome impact; exact next action; list every incomplete item.

Tool Routing

NeedPreferred toolUse it whenFallback
Workspace safetyGit status, diff, repository instructions, and branch or worktree inspectionAlways before editingStop when user changes cannot be separated safely
Existing test conventionsFile listing, search, manifests, runner configuration, CI, and focused readsSelecting the project-native runner, layout, fixtures, and commandsFollow the nearest maintained test pattern
Behavior and wiringLanguage server or host-native code intelligenceLocating observable entrypoints, registration, consumers, and state boundariesNarrow search plus direct inspection
Test implementationNative editing tools and project generatorsCreating tests, fixtures, helpers, and narrowly required test documentationMinimal project-consistent files; never hand-edit generated state
Observable executionRepository-defined shell commands, browser, API client, CLI, or disposable integration environmentProving UI, protocol, command, or durable state outcomesReturn INCOMPLETE with the exact missing check
External contractOfficial version-matched documentation or specificationExpected behavior depends on a current external API or standardMark it UNVERIFIED; do not encode a guessed oracle

Never run acceptance tests against production or an unapproved external target. Do not deploy, publish, migrate shared data, rotate credentials, or accept changed output merely to make a test pass.

Evidence Rules

  • Derive expected behavior from requirements, public contracts, examples, invariants, or an independent reference; never from the implementation calculation being tested.
  • Prefer a terminal durable or user-visible outcome over an intermediate status, mock call, log line, or internal method result.
  • Use golden files or snapshots only for deterministic, reviewable contracts. Updating expected output is a specification change, not test verification.
  • Make setup, data allocation, execution, cleanup, and rerun behavior reproducible; preserve the first failure before retries or cleanup obscure it.
  • A passing command proves only the environment and scenarios it actually exercised. State every excluded cell and unavailable boundary.

Checklist

1. Establish the Change Boundary

  • <!-- -->Resolve the requirements, acceptance criteria, actor, protected human or system outcome, observable contract, explicit non-goals, allowed test paths, and allowed test-documentation paths. Treat inferred experience qualities as assumptions and never let them override explicit requirements, evidence, safety, or exact-output constraints.
  • <!-- -->Read applicable repository instructions and inspect Git state, untracked files, generated areas, and existing user changes before editing.
  • <!-- -->Detect the project-native runner, directory layout, naming, fixtures, setup, cleanup, environment configuration, and CI invocation.
  • <!-- -->Map each requirement to the boundary that can prove it: UI, API, CLI, message, integration, file, or durable state.
  • <!-- -->Identify credentials, services, accounts, ports, devices, browsers, datasets, and destructive effects required by the scenarios.
  • <!-- -->Return BLOCKED before editing when no safe target, reliable expected contract, or separable workspace exists.

2. Design Reproducible Acceptance Evidence

  • <!-- -->Define the protected outcome, defect class, setup, action, terminal outcome, independent oracle, expected evidence, and cleanup for every requirement.
  • <!-- -->Use the lowest production-shaped boundary that still proves the requirement; do not replace acceptance evidence with a unit-level implementation check or create acceptance coverage for an internal detail absent from the observable contract.
  • <!-- -->Include invalid, authorization, boundary, partial-failure, retry, idempotency, recovery, and compatibility behavior only when it can materially change the protected outcome.
  • <!-- -->Allocate unique or namespaced test data and control clock, randomness, locale, ordering, and concurrency where they affect reproducibility.
  • <!-- -->Use real dependencies or approved emulators when mocks would bypass the behavior under acceptance; pin versions and verify readiness and reset behavior.
  • <!-- -->For deterministic output, derive golden or diff expectations from an independent contract and keep the artifact small enough to review.
  • <!-- -->For nondeterministic output, assert stable invariants and semantic fields instead of normalizing away failures or snapshotting noise.

3. Implement within Test Scope

  • <!-- -->Create or update tests in the existing project layout with behavioral names and failure messages that identify the violated requirement, protected outcome, and detected defect.
  • <!-- -->Reuse maintained fixtures and helpers only when their defaults and side effects remain visible; avoid a new abstraction for one scenario.
  • <!-- -->Make setup fail fast on missing prerequisites and make cleanup safe after success, assertion failure, timeout, cancellation, or partial setup.
  • <!-- -->Keep tests rerunnable and idempotent; do not depend on execution order or silently reuse state from a previous run.
  • <!-- -->Add the narrowest required test documentation only when contributors otherwise cannot configure, run, interpret, or clean up the new evidence.
  • <!-- -->Do not edit production code, weaken assertions, broaden timeouts without evidence, skip failing cases, or regenerate expected artifacts to obtain a pass.
  • <!-- -->Inspect the diff for unrelated formatting, generated churn, secrets, environment-specific paths, and changes outside the approved scope.

4. Execute and Preserve Evidence

  • <!-- -->Run the smallest new scenario first, then the relevant suite and required repository gate when available.
  • <!-- -->Record the exact command, working directory, environment class, target, versions, exit status, duration, and artifact locations.
  • <!-- -->Preserve the first failing output, seed, order, request, response, screenshot, diff, or durable state needed to reproduce the defect.
  • <!-- -->Distinguish product failure, test defect, environment failure, unavailable dependency, and flaky evidence before changing the test.
  • <!-- -->If the test exposes a product defect, stop modifying the implementation, retain the failing acceptance evidence, and report the smallest reproduction.
  • <!-- -->Verify cleanup and rerun at least the affected scenario when state ownership or idempotency is material.
  • <!-- -->Avoid retries unless they diagnose nondeterminism; a retry must not convert the initial failure into a silent pass.

5. Finalize without Overclaiming

  • <!-- -->Map every requirement and protected outcome to its test path, command, oracle, and result as PASS, FAIL, or UNPROVEN.
  • <!-- -->Use COMPLETE when the requested tests are created and all required acceptance evidence executes to a recorded PASS or FAIL; this verdict describes evidence completion, not product correctness.
  • <!-- -->Use INCOMPLETE when tests are created but an environment, dependency, or interrupted run prevents complete execution; state the exact missing check.
  • <!-- -->Use BLOCKED when tests cannot be created safely, requirements lack a reliable oracle, or the workspace cannot be protected.
  • <!-- -->Return created and changed test files, commands, evidence, cleanup result, limitations, product defects, and residual risks.

Output Contract

# Acceptance Test Build

**Verdict:** COMPLETE | INCOMPLETE | BLOCKED

## Scope and environment
- Requirements and approved paths
- Runner, boundary, target, and prerequisites

## Requirements matrix
| Protected outcome | Requirement | Test | Oracle | Command | Result |
|---|---|---|---|---|---|
| ... | ... | ... | ... | ... | PASS / FAIL / UNPROVEN |

## Changes and evidence
- Created or changed test and documentation files
- Exact commands, outputs, and evidence artifacts
- Product defects preserved without repair

## Cleanup, limitations, and residual risks
State cleanup, unavailable environments, excluded cells, and remaining evidence needs.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: ln-42-acceptance-test-builder](https://darkplay.ru/ai/skills/levnikolaevich-claude-code-skills-ln-42-acceptance-test-builder)

Из того же репозитория

ln-33-code-modernizer Модернизация ограниченной функциональности: удаление устаревших механизмов, снижение затра ★597 ln-12-delivery-reviewer Ревью завершённого изменения и затронутых путей: поиск дефектов и проверка готовности. ★597 ln-25-persistence-auditor Аудит запросов, транзакций, производительности данных и жизненного цикла ресурсов. ★597 ln-41-test-strategy-planner Стратегия тестирования на основе рисков и приоритетные сценарии без изменения кода. ★597 ln-51-opportunity-evaluator Оценка новых продуктовых направлений по спросу, конкуренции, экономике и валидации. ★597 ln-31-performance-optimizer Оптимизация известного узкого места через профилирование и эксперименты keep-or-discard. ★597 ln-34-benchmark-comparator Сравнение инструментов через воспроизводимые A/B-нагрузки и контролируемые замеры. ★597 ln-63-release-publisher Подготовка и публикация тегированного релиза GitHub на основе данных репозитория. ★597

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

E2e Runneraffaan-m · Специалист по E2E-тестам на Vercel Agent Browser и Playwright: генерация, запуск и…
225 587 ★
Fastapi Revieweraffaan-m · Проверяет FastAPI-приложения: async, DI, Pydantic, безопасность, OpenAPI и тесты.
225 587 ★
Gan Evaluatoraffaan-m · GAN Harness — агент-оценщик: тестирует приложение через Playwright и даёт обратную связь.
225 587 ★
Pr Test Analyzeraffaan-m · Оценивает качество и полноту покрытия тестами в pull request.
225 587 ★
Spec Mineraffaan-m · Извлекает поведенческие спецификации из кода для OpenSpec в виде блоков Requirement и…
225 587 ★
Tdd Guideaffaan-m · Специалист по TDD: сначала тесты, покрытие 80%+.
225 587 ★
example-skillsanthropics · Набор примеров навыков, демонстрирующих разные возможности: создание навыков, разработку…
17 комп.
pr-review-toolkitanthropics · Комплексные агенты для ревью PR, специализирующиеся на комментариях, тестах, обработке…
34 комп.
ruflo-browserruvnet · Агентная автоматизация браузера на Playwright для тестирования, скрапинга и…
240 комп.
ruflo-neural-traderruvnet · Нейросетевые торговые стратегии: самообучающиеся модели LSTM/Transformer/N-BEATS с…
240 комп.

Лучшие ИИ-инструменты для программирования

ИИ для программирования

Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные

GenAPIGenapi
По запросу
5.0
Notepad++ AINotepad-plus-plus
По запросу
4.9
GitHub CopilotGitHub
По подписке
4.9
Creatium MaxCremax
По запросу
4.8
Emacs AIGnu
По запросу
4.8
KiteKite
По запросу
4.8
Amazon Q DeveloperAmazon
По запросу
4.8
VECTA
Есть бесплатный тариф
4.8
SoftPractice
Есть бесплатный тариф
4.8
VibeForge
Есть бесплатный тариф
4.7

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8