test-framework-architecture-audit
БесплатноБез исполняемых скриптовНе проверенUse for any question or task about reviewing a test automation framework's structure, such as before a big refactor or after years of growth without review…
от testland★ 18 звёзд на GitHubОб этом скилле
test-framework-architecture-audit
What this owns, and what it does not
This audit owns the framework's internal structure: how many tests reach the UI through an object model, how deep the inheritance chains run, how fixtures are scoped, how far helpers have sprawled, whether one naming convention is in force, whether waits and retries are consistent, whether the written conventions still describe the code, and whether CI is wired the way the framework assumes. Every finding is a cross-file pattern, invisible from inside a single test file, which is what separates this from any review that opens one spec and argues about a locator or an assertion.
Three neighbouring capabilities own adjacent ground. Do not duplicate them:
| Not owned | Where it belongs |
|---|---|
| What each object-model pattern is: the definition of Page Object, Screenplay, Component Object, App Actions, Service Object, Repository, Screen Object, their canonical citations, and their per-pattern anti-patterns | An object-model pattern catalog such as object-model-patterns. This audit cites that catalog's rules as the baseline it measures against; it does not restate what a Page Object is. |
| Designing a framework: choosing runner and language, laying out directories, deciding the fixture architecture, picking the object-model pattern, wiring test data and CI, writing the conventions doc | A framework design workflow such as test-framework-blueprint. That is the build side and it runs before any code exists. This is the audit side and it needs code to read. |
| The suite's health: how many tests sit in each tier, whether the pyramid is inverted, per-layer flake rate, defects caught per run-minute | A suite-level audit such as test-suite-health-audit. |
The last boundary is the one readers get wrong, because both are audits. Split them on the object being measured: a suite audit counts tests and asks whether there are the right number at each level (delete, move, quarantine); this audit reads the machinery the tests are written against and asks whether that machinery is sound (collapse a base class, split a fixture, delete a helper, replace a sleep). A suite can be perfectly balanced and sit on a depth-five hierarchy; a framework can be immaculate and carry three hundred redundant E2E tests. Run both if you want the whole picture.
Before scoring: what the baseline is
Two axes need a baseline the codebase cannot supply. A1 needs the team's
object-model pattern, because the coverage number means something different for
Page Object Model than for App Actions, where bypassing the UI during Arrange is
the point rather than a violation: take it from the conventions doc, or from what
the code predominantly does, and state which pattern you assumed. A7 needs a
written conventions doc, typically docs/test-conventions.md; without one it
emits n/a. Never substitute a generic convention set and then report the team
as drifted from a document they never wrote. That finding is unfalsifiable and
will be argued away, correctly.
A1 - Page-object coverage, purity, and navigation return shape
Three sub-measurements, one band.
Coverage. The share of test files that reach the UI through an object model rather than through inline selectors. The rule being measured: a page object "wraps an HTML page, or fragment, with an application-specific API, allowing you to manipulate page elements without digging around in the HTML" (Fowler, PageObject), which the official Selenium guidance states as "a clean separation between the test code and page-specific code, such as locators" (Selenium, Page Object Models). A test file holding raw locator strings has no such separation.
Purity. Object-model classes that assert are flagged. This one is grounded, not conventional: Fowler records "differences of opinion on whether page objects should include assertions themselves" and concludes "I favor having no assertions in page objects" (Fowler, PageObject), and Selenium states it without hedging: "Page objects themselves should never make verifications or assertions. This is part of your test and should always be within the test's code, never in a page object" (Selenium, Page Object Models). Selenium names one narrow exception: verifying the correct page loaded, done in the constructor at instantiation. Do not flag that one.
Navigation return shape. An action that navigates must return the object for
the destination, not void. Fowler: "if you navigate to another page, the
initial page object should return another page object for the new page"
(Fowler, PageObject), and
Selenium
Установить test-framework-architecture-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл test-framework-architecture-audit?
Use for any question or task about reviewing a test automation framework's structure, such as before a big refactor or after years of growth without review, when its written conventions may no longer match the code. Grades eight axes PASS, WARN or FAIL: page objects, base classes, fixtures, helpers, naming, waits and retries, convention drift and CI.
Как установить скилл test-framework-architecture-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-framework-architecture-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic