CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generate

Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".

68

Quality

85%

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

The canonical home for this skill is generate in alirezarezvani/claude-skills

SKILL.md
Quality
Evals
Security

Quality

Content

77%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 well-structured, actionable workflow: concrete locator and assertion rules, an explicit run-and-fix verification loop, and convention-matching guidance. The main defects are the unverifiable, inconsistently-prefixed template references that undermine navigation, and a placeholder-only main code example where one complete generated test would set the quality bar.

Suggestions

Fix the template references: use one consistent path style, and align the table with the actual bundle layout (e.g. 'templates/auth/login.md' for all rows) so the referenced files resolve.

Replace or supplement the placeholder skeleton in step 4 with one complete, runnable generated example test so the expected output quality is unambiguous.

Trim filler comments in the structure block ('// Group related behaviors', '// Arrange/Act/Assert' narration) and fold the overlapping 'Bare CSS selectors' item in the Never-use list into the locator priority.

DimensionReasoningScore

Conciseness

The body is lean and assumes competence: no 'what is Playwright' padding, and the locator-priority list, GOOD/BAD assertion contrast, and Never/Always rules each earn their tokens. Minor trims remain (skeleton filler comments like '// Group related behaviors', and the 'Never use' list partially overlapping the locator priority), so it sits just below the 'every token earns its place' anchor.

4 / 5

Actionability

Highly concrete guidance: exact locator method priorities, an executable GOOD/BAD assertion pair, an exact verify command ('npx playwright test <generated-file> --reporter=list'), and convention-matching rules. The primary structure example is a placeholder skeleton ('test(\u2019should <expected behavior>\u2019...)') rather than complete runnable code, which is a minor gap against the fully copy-paste-ready anchor.

4 / 5

Workflow Clarity

Seven clearly sequenced steps (understand target, explore codebase, select templates, generate, match conventions, supporting files, verify) culminate in an explicit validation step with a feedback loop: read error, fix the test, re-run, and escalate app issues to the user. This matches the anchor for clear sequence with explicit validation and error-recovery loops.

5 / 5

Progressive Disclosure

The single file is well-sectioned and template references are surfaced in a clear table, but the referenced paths are inconsistent ('../pw/templates/auth/login.md' vs 'templates/crud/', 'templates/checkout/', ...) and no templates/ directory exists in the bundle, so the navigation targets are unverifiable and the path prefix is unreliable.

3 / 5

Total

16

/

20

Passed

Description

86%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 strong description: it pairs a clear one-line capability statement with an explicit, comprehensive 'Use when' trigger list of natural user phrases. Its only weaknesses are the thin 'what' clause (a single action verb, no scope of supporting outputs) and generic test-authoring triggers that could collide with unit-testing skills.

Suggestions

Expand the capability statement beyond 'Generate Playwright tests' to name the supporting outputs the skill produces, e.g. 'Generate production-ready Playwright tests with page objects, fixtures, and test data, then run and fix them.'

Disambiguate from unit testing by scoping triggers, e.g. adding 'e2e tests', 'end-to-end test', 'browser test', or 'Playwright test' alongside the generic 'write tests'.

DimensionReasoningScore

Specificity

"Generate Playwright tests" names the domain plus a single concrete action, matching the 'names domain and 1-2 concrete actions, but not comprehensive' anchor. It does not list several specific actions (nothing about page objects, fixtures, or running tests), so it falls short of anchor 4; it is concrete rather than generic, so it is above anchor 2.

3 / 5

Completeness

It explicitly answers what ("Generate Playwright tests") and when ("Use when user says ...") with a concrete enumerated trigger list, matching the anchor for clearly and explicitly answering both what AND when with concrete trigger phrases.

5 / 5

Trigger Term Quality

Eight natural trigger phrases ("write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", "test this feature") comprehensively cover synonyms and the ways users would naturally phrase this request.

5 / 5

Distinctiveness Conflict Risk

"Playwright" carves out a clear niche with distinct triggers, but broad phrases like "write tests", "add tests for", and "test this component" could also fire for unit-test (Jest/Vitest) requests, giving minor overlap risk with closely related skills.

4 / 5

Total

17

/

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.

Repository

alirezarezvani/claude-skills

Path

.gemini/skills/generate/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.