CtrlK
BlogDocsLog inGet started
Tessl Logo

javascript-testing-patterns

Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.

58

Quality

67%

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 ./tests/ext_conformance/artifacts/agents-wshobson/javascript-typescript/skills/javascript-testing-patterns/SKILL.md

The canonical home for this skill is javascript-testing-patterns in wshobson/agents

SKILL.md
Quality
Evals
Security

Quality

Content

46%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 delivers genuinely executable, well-categorized code patterns, but it is a monolithic ~1000-line catalog that re-teaches testing basics Claude already knows and keeps everything inline with no reference files or layered structure. It also lacks any sequenced workflow for the infrastructure setup its description promises.

Suggestions

Move the bulk of the pattern code (mocking patterns, integration tests, Testing Library examples) into references/ files (e.g., references/mocking.md, references/integration.md, references/frontend.md) and keep SKILL.md as a lean overview with clearly signaled one-level-deep links.

Cut examples that re-teach what Claude already knows — the calculator add/divide tests, useCounter hook tests, and basic snapshot testing — and retain only project-specific conventions, gotchas, or non-obvious patterns that earn their tokens.

Add a short, ordered workflow for the promised 'setting up test infrastructure' task (choose framework -> add config -> add setup file -> run suite -> verify coverage threshold) with an explicit validation checkpoint so the skill instructs end-to-end rather than only cataloging patterns.

DimensionReasoningScore

Conciseness

The ~1000-line body is dominated by textbook examples Claude already knows — testing an 'add(a, b)' calculator function, a basic 'useCounter' hook, standard Testing Library queries, and snapshot basics — making it noticeably padded even though it lacks explanatory prose; it is not fully level-1 because it isn't decorated with concept explanations.

2 / 5

Actionability

Most content is concrete, executable code (framework configs, vi.mock patterns, supertest integration tests, faker fixtures), but minor gaps remain: placeholder comments ('// Business logic here', '// Process order logic'), empty it() bodies in the Test Organization section, and undefined types (User, CreateUserDTO) prevent copy-paste readiness across all examples.

4 / 5

Workflow Clarity

Despite the description promising 'setting up test infrastructure', the body never sequences that task — it is a pattern catalog with no ordered steps and no validation checkpoints (e.g., run the suite or check coverage after setup). It is not level 1-2 incoherent since sections are logically categorized, but it cannot reach level 4 without a step sequence.

4 / 5

Progressive Disclosure

No references/, scripts/, or assets/ directories exist, and all ~1000 lines of pattern code are inlined in SKILL.md. This matches 'content that clearly belongs in separate files is inlined' (anchor 2); the section headers keep it from being fully unstructured at level 1, but there are no external references at all to reach level 3.

2 / 5

Total

12

/

20

Passed

Description

88%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 that clearly and concretely states both capabilities and explicit trigger conditions, with named tools and comprehensive action coverage. The only weaknesses are a few missing natural trigger synonyms (test suite, coverage, CI) and minor overlap risk with framework-specific testing skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development' — and names the specific tools (Jest, Vitest, Testing Library), giving comprehensive coverage rather than the minor gaps of the level-4 anchor.

5 / 5

Completeness

It explicitly answers both what ('Implement comprehensive testing strategies using Jest, Vitest, and Testing Library...') and when ('Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows') with concrete trigger phrases, mirroring the level-5 exemplar; it exceeds level 4 because the 'when' clause is specific rather than generic.

5 / 5

Trigger Term Quality

Natural phrases like 'writing JavaScript/TypeScript tests', 'setting up test infrastructure', and 'TDD/BDD workflows' are present, but common variations users would say — 'test suite', 'coverage', 'specs', 'CI' — are missing, matching 'good keyword coverage; a few natural terms missing' rather than the comprehensive level-5 anchor.

4 / 5

Distinctiveness Conflict Risk

The JS/TS testing niche with named frameworks is mostly distinct, but the broad 'writing JavaScript/TypeScript tests' trigger could overlap with framework-specific testing skills (e.g., a dedicated React or Jest skill), so it fits 'mostly distinct; minor overlap risk' rather than the minimal-conflict level-5 anchor.

4 / 5

Total

18

/

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

skill_md_line_count

SKILL.md is long (1022 lines); consider splitting into references/ and linking

Warning

Total

15

/

16

Passed

Repository
Dicklesworthstone/pi_agent_rust
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.