CtrlK
BlogDocsLog inGet started
Tessl Logo

testing-patterns

Jest testing patterns, factory functions, mocking strategies, and TDD workflow. Use when writing unit tests, creating test factories, or following TDD red-green-refactor cycle.

68

Quality

82%

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 jbvc/testing-patterns

SKILL.md
Quality
Evals
Security

Quality

Content

65%Weight 40%Scale 1-3

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

The content is highly actionable thanks to numerous concrete, executable TypeScript/Jest examples, but it carries conceptual preamble about testing philosophy that Claude already knows and is a single long file with no progressive disclosure to supporting references. It reads more as a flat pattern catalog than a sequenced workflow with validation checkpoints.

Suggestions

Trim the "Testing Philosophy" preamble and "Best Practices" recap that restate concepts Claude already knows; lead with the actionable patterns and keep only non-obvious guidance.

Consider splitting the longer reference-style sections (e.g., Mocking Patterns, Query Patterns) into files under references/ and linking to them from a concise overview, so the body stays a lean entry point.

If a multi-step TDD workflow is intended, add explicit validation checkpoints (e.g., confirm the test fails before implementing, confirm green before refactoring) rather than listing steps without verification.

DimensionReasoningScore

Conciseness

The body opens with a "Testing Philosophy" section explaining TDD red-green-refactor and behavior-driven testing tenets ("Write failing test FIRST", "Test behavior, not implementation") that Claude already knows, and the closing "Best Practices" list restates earlier points; the code examples themselves are efficient, but the prose could be tightened.

2 / 3

Actionability

It provides many complete, executable TypeScript/Jest examples — custom render with ThemeProvider, getMockUser/getMockMyComponentProps factories, jest.mock factories, fireEvent/waitFor interactions — that are copy-paste ready with concrete details.

3 / 3

Workflow Clarity

The TDD red-green-refactor steps are listed ("Write failing test FIRST", "Implement minimal code to pass", "Refactor after green") but lack explicit validation checkpoints or error-recovery feedback loops, and the rest of the skill is a pattern catalog rather than a sequenced workflow.

2 / 3

Progressive Disclosure

Content is well-organized into clearly headed sections, but it is a single monolithic ~260-line file with no external references or file splitting; reference-style material (mocking patterns, query patterns) that could live in separate files is kept inline, and no bundle files are present.

2 / 3

Total

9

/

12

Passed

Description

100%Weight 40%Scale 1-3

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 concisely names four concrete capability areas and pairs them with an explicit "Use when" trigger clause using natural developer vocabulary. It uses third-person/imperative voice throughout with no first- or second-person phrasing.

DimensionReasoningScore

Specificity

"Jest testing patterns, factory functions, mocking strategies, and TDD workflow" lists multiple specific concrete capabilities rather than vague language, matching the anchor for listing several specific concrete actions.

3 / 3

Completeness

It explicitly states both what it does (testing patterns, factories, mocking, TDD) and when to use it ("Use when writing unit tests, creating test factories, or following TDD red-green-refactor cycle"), with an explicit trigger clause.

3 / 3

Trigger Term Quality

"Use when writing unit tests, creating test factories, or following TDD red-green-refactor cycle" provides good coverage of natural terms a developer would actually say, including common variations.

3 / 3

Distinctiveness Conflict Risk

The Jest/factory/mocking/TDD niche is clearly bounded with distinct triggers unlikely to fire for unrelated skills; it is not generic enough to conflict broadly.

3 / 3

Total

12

/

12

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
ChrisWiles/claude-code-showcase
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.