CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/playwright-fixture-builder

Use when a Playwright suite has copy-pasted beforeEach setup that should be a fixture, or needs shared login, database or feature-flag setup across many specs. Builds test.extend fixtures with the right test or worker scope, setup and teardown, and per-worker isolation.

Quality

89%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

80%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong build-an-X skill body: executable code, a decision table for the key design choice (scope), a concrete worked example with measured impact, and a clean three-file reference bundle with clear navigation. Its main weakness is workflow validation — the refactor rewrites setup across many spec files but never instructs running the test suite to verify behavior is preserved.

Suggestions

Add an explicit validation checkpoint to the workflow, e.g. after step 6: run `npx playwright test` (or a smoke subset) and confirm the same tests pass as before the refactor before deleting the old beforeEach blocks.

Include a brief error-recovery loop for the validation step (e.g. if a test fails after the refactor, check for test-scoped state that was incorrectly hoisted to worker scope, per the Step 1 rule of thumb).

Consolidate the triplicated scope-selection guidance — keep the Step 1 rule of thumb and the table's Why column, and drop the restatement in How-to-use step 2 — to trim the body further.

DimensionReasoningScore

Conciseness

The body is efficient — a dense scope table, one complete inline code example, a concrete worked example, and detail pushed to references — but scope-selection guidance is stated three ways (How-to-use step 2's rule, the Step 1 rule of thumb, and the table's Why column), which is minor repetition that could be trimmed. Fits 'efficient; minor instances of over-explanation' rather than the every-token-earns-its-place level 5.

4 / 5

Actionability

The storageState fixture example is complete, correct Playwright test.extend syntax (worker-scoped array fixture with workerInfo.workerIndex namespacing) and copy-paste ready; the scope table gives per-fixture decisions and the worked example shows the resulting test signature. Remaining recipes are delegated to real reference files, so the common cases are covered by fully executable material.

5 / 5

Workflow Clarity

The 7-step How-to-use sequence is clearly ordered (inventory blocks → assign scope → write fixtures → compose → confirm teardown/boxing → replace specs → emit review note), but this is a batch refactor across many spec files and there is no explicit validation step such as running the suite to confirm tests still pass before and after — only the step-7 review note. The rubric's cap for batch operations without validation applies, holding this at 3 rather than 4.

3 / 5

Progressive Disclosure

Scored against the actual bundle: all three referenced files (fixture-recipes.md, composition-and-output.md, anti-patterns-and-limits.md) exist, contain the promised content, and are referenced one level deep with no nested .md links. Each reference is clearly signaled with a description of what it contains, and SKILL.md keeps only one representative code example inline — matching the 'clear overview with well-signaled one-level-deep references' anchor.

5 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A well-constructed description: explicit 'Use when' clause with two concrete trigger scenarios, third-person 'what' statement naming the exact API (test.extend) and the key design decisions (scope, teardown, per-worker isolation). The only gap is that it omits the performance/slow-suite trigger vocabulary that the body identifies as a primary use case.

DimensionReasoningScore

Specificity

"Builds test.extend fixtures with the right test or worker scope, setup and teardown, and per-worker isolation" names the domain and multiple concrete actions (fixture construction, scope selection, setup/teardown split, worker isolation) with comprehensive coverage for this task, matching the top anchor rather than the 'minor gaps' level 4.

5 / 5

Completeness

Both halves are explicit: "Use when a Playwright suite has copy-pasted beforeEach setup... or needs shared login, database or feature-flag setup across many specs" answers when with concrete trigger phrases, and "Builds test.extend fixtures with the right test or worker scope, setup and teardown..." clearly answers what. This is the level-5 anchor verbatim in structure; level 4's 'when could be more explicit' does not apply since two specific trigger conditions are given.

5 / 5

Trigger Term Quality

Natural terms a user would say are present ("Playwright suite", "copy-pasted beforeEach setup", "fixture", "shared login", "feature-flag setup", "specs", "test.extend"), but a few natural trigger phrasings are missing — notably the slow-suite/performance angle ("tests are slow", "every test re-authenticates", "speed up the suite") that the skill body itself lists as a use case. Fits the 'good keyword coverage; a few natural terms missing' anchor, not the comprehensive level 5.

4 / 5

Distinctiveness Conflict Risk

The niche (extracting shared setup into Playwright test.extend fixtures) is clear and the triggers (copy-pasted beforeEach, shared login/DB/flag setup across specs) are distinct from generic Playwright-test-writing or auth-setup skills, giving minimal conflict risk. It goes beyond level 4's 'minor overlap risk with closely related skills' because the triggering condition is a specific refactoring situation rather than a broad task area.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page