test-framework-blueprint
БесплатноБез исполняемых скриптовНе проверенUse when designing a test automation framework from scratch or re-architecting one that grew organically. Walks seven steps from inventorying the app to…
от testland★ 18 звёзд на GitHubОб этом скилле
test-framework-blueprint
Overview
This skill is a build-an-X workflow: it walks an SDET through designing a test automation framework end to end and ends with two artifacts the team can act on:
- A framework blueprint: a short design doc recording the directory tree, fixture list, chosen object-model + data patterns, and CI matrix.
- An implementation order: which piece to build first and what each later piece waits on.
It is the connective tissue between the pattern catalogs and the scaffolder.
The catalogs (object-model-patterns,
test-isolation-patterns,
test-data-patterns in qa-test-data)
say what each pattern IS; the scaffolder emits a skeleton once decisions
are made. Neither walks the decisions in order. This skill does.
When to use
- Designing a test automation framework from scratch: the repo has no suite, or only scattered unit tests, and the team needs the full design before writing harness code.
- Re-architecting a framework that grew organically: helpers sprawled, nobody remembers why the fixtures look the way they do, and a framework-architecture audit run came back with structural findings.
- A new SDET joins a team with no written test architecture and needs to produce one.
Do not use this skill to:
- Pick only the runner. That single decision has a deeper reference: the
framework-choice-advisorcatalog (in the qa-process plugin) - NFR scoring- side-by-side trade-off matrices in prose. When a repo already has an E2E
convention in
package.json, prefer continuing with it unless there is a reason to switch. Step 2 below summarizes the criteria and hands off.
- side-by-side trade-off matrices in prose. When a repo already has an E2E
convention in
- Scaffold the skeleton. That is a separate harness-scaffolding step, which consumes this blueprint's decisions as its inputs.
- Audit an existing framework against its own conventions. That is a separate framework-architecture audit.
Step 1 - Inventory the system under test
Before any tool is named, record four facts about the SUT. Every later decision keys off them.
| Inventory item | Questions to answer |
|---|---|
| App stack | Languages, frameworks, persistence (e.g. Node + React + Postgres). Which external services does it call (payments, email, auth provider)? |
| Deployment shape | Monolith / services / serverless? Can a full stack run locally (compose file, dev server) or only in a shared environment? |
| Change shape | Where do PRs land - one monorepo, or per-service repos? Do most changes touch the API, the UI, or both? The layer that changes most needs the fastest feedback. |
| Team skills | What languages do the engineers writing and maintaining tests already know? Per framework-choice-advisor Step 1, the framework-language mismatch is the #1 maintenance cost. |
Decision output: a coverage-layers table stating which layers get automated coverage in this framework and which are explicitly out of scope (already covered elsewhere, or deferred). Example shape:
| Layer | In this framework? | Rationale |
|---|---|---|
| Unit | No | Lives in each package, owned by devs |
| API integration | Yes | Most PRs touch the API |
| Web E2E | Yes (thin) | Critical paths only |
| Contract | Deferred | Single team owns both sides today |
Step 2 - Choose runner + language
Two criteria dominate; everything else is tie-breaking:
- Team language first. A framework in a language the team does not write rots: nobody fixes flake they cannot read.
- One runner across layers when possible. If the same runner can execute
the API tier and the E2E tier (Playwright Test runs both: its built-in
requestfixture is an isolatedAPIRequestContextinstance per test, per the Playwright test-fixtures docs), the team maintains one config, one reporter, one CI job family.
For the full trade-off matrices (cross-browser, mobile, parallelization,
ecosystem, hire-ability) use framework-choice-advisor; when a repo already
has an E2E convention in package.json, prefer continuing with it unless
there is a reason to switch.
Decision output: one runner + one language, with the rejected alternatives and the reason recorded in the blueprint (the rejection rationale is what stops the debate from reopening every quarter).
Step 3 - Directory layout + fixture architecture
Layout (worked stack: Playwright + TypeScript)
tests/
e2e/ # browser tests, grouped by user journey
invoicing/
auth/
api/ # request-fixture tests, grouped by resource
fixtures/
db.ts # worker-scoped database fixtures
auth.ts # test-scoped authenticated-session fixtures
index.ts # merged export the specs import
pages/ # object model (Step 4)
builders/ # test-data builders (Step 5)
playwright.config.ts
Rules of thumb: group specs by user-facing domain (not by page or by d
Установить test-framework-blueprint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл test-framework-blueprint?
Use when designing a test automation framework from scratch or re-architecting one that grew organically. Walks seven steps from inventorying the app to runner, layout, fixtures, object model, data and mocks, reporting, CI and conventions, and outputs a written blueprint with a build order.
Как установить скилл test-framework-blueprint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-framework-blueprint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic