CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

e2e-testing

Playwright E2E 测试模式、页面对象模型、配置、CI/CD 集成、工件管理和不稳定测试策略。

Quality

69%

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

Fix and improve this skill with Tessl

tessl review fix ./docs/zh-CN/skills/e2e-testing/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

65%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.

The body is a dense, code-first pattern library with essentially zero concept over-explanation and strong copy-paste-ready coverage of organization, POM, configuration, flaky-test remediation, artifacts, and CI/CD. Its weaknesses are a handful of non-executable API usages (browser.startTracing, videosPath, an import path inconsistent with the shown tree), no explicit sequenced workflow with validation checkpoints, and no progressive disclosure of the advanced/specialty sections into separate files.

Suggestions

Fix the non-executable snippets: replace browser.startTracing/stopTracing with context.tracing.start()/stop(), use the valid video options ('video: { dir: "artifacts/videos/" }'), and align the ItemsPage import with the actual directory tree (add pages/ to the layout or fix the import path).

Add an explicit sequenced workflow section (e.g., 1. scaffold the directory layout → 2. write the page object → 3. configure playwright.config.ts → 4. wire the CI workflow → 5. verify with a smoke run) with validation checkpoints such as running 'npx playwright test --list' or a dry-run before committing.

Move the specialty sections (钱包/Web3 测试, 金融/关键流程测试, 测试报告模板) into one-level-deep reference files (e.g. references/web3.md, references/reporting.md) with clearly signaled links, keeping SKILL.md as a lean overview.

DimensionReasoningScore

Conciseness

The body is almost entirely executable code with minimal prose — there is no padding explaining what Playwright is or how testing works, matching the 'efficient, assumes competence' profile. A few pieces could be trimmed (the 测试报告模板 markdown template is something Claude could generate unprompted, and the 'wait for stability' animation example repeats the same locator three times), keeping it just below anchor 5.

4 / 5

Actionability

Nearly all guidance is concrete, complete, copy-paste-ready code: the POM class, the spec file, the full playwright.config.ts, bash commands for flaky detection, and a full GitHub Actions workflow — matching anchor 5's form. However, a few examples would not run as written: 'browser.startTracing(page, ...)' is not a Playwright API (tracing goes through 'context.tracing'), 'videosPath' is not a valid 'use' option, and the spec imports '../../pages/ItemsPage' which does not exist in the shown file layout (fixtures/ is shown, no pages/ directory). These are minor gaps, placing it at anchor 4.

4 / 5

Workflow Clarity

The body is a topic-organized pattern reference: sections imply a rough order (file organization → POM → test structure → config → flaky handling → artifacts → CI/CD) but there is no explicit step sequence for going from nothing to a working suite, and no explicit validation checkpoints. The 不稳定测试模式 section does contain an implicit diagnose→fix loop ('--repeat-each=10' to identify, 常见原因与修复 bad/good pairs), which lifts it above anchor 2's 'validation absent, steps poorly defined', but checkpoints remain implicit rather than explicit, matching anchor 3.

3 / 5

Progressive Disclosure

This is a single-file skill with no references/, scripts/, or assets/ directories, so all ~320 lines live inline in SKILL.md. Section headers are clear and the content is well-organized by topic (above anchor 2's 'minimal structure'), but specialty content that would naturally sit in separate reference files — wallet/Web3 mocking, financial/critical-flow testing, the report template — is inlined with no one-level-deep pointers, matching anchor 3's 'content that should be separate is inline'.

3 / 5

Total

14

/

20

Passed

Description

61%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.

The description identifies a distinct, well-scoped niche (Playwright E2E testing) and lists its concrete coverage areas with good natural trigger terms. Its main weaknesses are the complete absence of any 'when to use' trigger clause and the lack of action verbs — it reads as a table of contents rather than a statement of capabilities.

Suggestions

Add an explicit trigger clause, e.g. 'Use when writing or debugging Playwright end-to-end tests, setting up Playwright in CI, or fixing flaky E2E tests' — this would raise completeness from 3.

Convert the topic nouns into concrete action verbs (e.g. 'Structure test suites with the page object model, configure Playwright, integrate E2E runs into CI/CD, capture artifacts, and diagnose flaky tests') to improve specificity.

Include common trigger variations such as 'end-to-end tests', 'test automation', and 'flakiness' so users phrasing the need differently still match.

DimensionReasoningScore

Specificity

The description names the domain ('Playwright E2E 测试模式') and enumerates concrete topic areas ('页面对象模型、配置、CI/CD 集成、工件管理和不稳定测试策略'), going beyond the bare domain naming of anchor 2. However, it is a noun-phrase topic list with no action verbs at all — it never states what the skill does with these patterns — so it does not reach the 'lists several specific actions' level of anchors 4-5.

3 / 5

Completeness

The 'what' is present and reasonably clear (a pattern library for Playwright E2E covering POM, configuration, CI/CD, artifacts, and flaky-test strategy), but there is no 'when' guidance at all — no 'Use when...' clause or equivalent trigger phrasing. Per the judging guidelines, a missing 'Use when...' clause caps completeness at 3, which matches anchor 3 ('clear what but when is missing'); it is not score 2 because the 'what' is specific and multi-faceted rather than vague.

3 / 5

Trigger Term Quality

Includes natural terms users would actually say: 'Playwright', 'E2E', '页面对象模型' (page object model), 'CI/CD', '不稳定测试' (flaky tests), '工件管理' (artifact management). Common variations are missing — 'end-to-end' spelled out, 'test automation', '测试不稳定' as a synonym phrasing — so it falls just short of the comprehensive synonym/variation coverage of anchor 5, but clearly above the sparse keyword coverage of anchor 3.

4 / 5

Distinctiveness Conflict Risk

'Playwright E2E' carves out a clear, specific niche that is unlikely to trigger for unrelated skills, and the enumerated sub-domains (POM, flaky tests, Playwright CI config) further sharpen it. It is not score 5 because without any 'use when' guidance it could still overlap with generic testing or CI/CD skills when a user asks broadly to 'write tests' or 'set up CI'.

4 / 5

Total

14

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

xu-xiang/everything-claude-code-zh

Path

docs/zh-CN/skills/e2e-testing/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.