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.

62

Quality

74%

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

57%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 thorough, highly actionable catalog of JS/TS testing patterns with copy-paste-ready code, but it is a monolithic ~1015-line wall of inline content that would benefit from progressive disclosure into reference files and from trimming generic best-practice padding Claude already knows.

Suggestions

Split the body into one-level-deep reference files (e.g. MOCKING.md, INTEGRATION.md, FRONTEND.md) and keep SKILL.md as a concise overview that links to them, scoring progressive_disclosure higher.

Remove or compress the generic 'Best Practices' list and 'Common Patterns' section, which restate concepts Claude already knows, to improve conciseness.

Add an explicit TDD red-green-refactor workflow with validation checkpoints (write failing test -> run -> confirm failure -> implement -> run -> confirm pass) to raise workflow_clarity.

DimensionReasoningScore

Conciseness

The prose is lean and code-forward with no 'what is a test' style padding, but at ~1015 lines it is mostly efficient yet could be tightened: the 15-item 'Best Practices' list and 'Common Patterns' section restate concepts Claude already knows, and UserService appears in multiple reimplemented forms.

3 / 5

Actionability

Overwhelmingly copy-paste-ready TypeScript covering unit, async, mocking, DI, spying, integration, React, hooks, fixtures, snapshots, and timers, with only minor gaps such as empty it(() => {}) bodies in 'Test Organization' and a truncated CREATE TABLE (...) in the integration example.

4 / 5

Workflow Clarity

Sections are logically organized (framework setup -> test types -> techniques) giving a rough learning sequence, but there are no explicit validation checkpoints or feedback loops; a natural TDD red-green-refactor loop with verify steps is mentioned in the description yet never walked through in the body.

3 / 5

Progressive Disclosure

Good section headers provide real structure and navigation, but at ~1015 lines all content is inlined in a single monolithic file with zero external references, where clearly separable areas (mocking, integration, frontend) would belong in one-level-deep reference files.

3 / 5

Total

13

/

20

Passed

Description

91%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, well-structured description that clearly states what the skill does and when to use it with rich natural trigger terms and named frameworks. The only soft spot is a slightly abstract lead verb and minor overlap risk within the broad testing domain.

DimensionReasoningScore

Specificity

Enumerates several concrete capabilities (unit, integration, end-to-end testing, mocking, fixtures, TDD), but the leading verb 'Implement comprehensive testing strategies' is more categorical than the crisp discrete operations in the score-5 anchor, leaving minor gaps.

4 / 5

Completeness

Explicitly answers both 'what' (testing strategies for unit/integration/e2e with mocking/fixtures/TDD) and 'when' via a concrete 'Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows' clause.

5 / 5

Trigger Term Quality

Comprehensive natural terms including tool names (Jest, Vitest, Testing Library), test types (unit/integration/end-to-end), and synonyms (TDD/BDD, e2e) that users would naturally say when they need this skill.

5 / 5

Distinctiveness Conflict Risk

The JavaScript/TypeScript scope plus named frameworks (Jest, Vitest, Testing Library) carve a clear niche, but 'testing' is a broad domain with minor overlap risk against a closely related frontend/component-testing skill.

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.

Validation15 / 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.