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.

64

Quality

76%

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 ./plugins/AI-Agents-Safe-Coding-Skills-claude/skills/testing-patterns/SKILL.md

The canonical home for this skill is testing-patterns in administrakt0r/AI-Agents-Safe-Coding-Skills

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 content is highly actionable with abundant executable examples, but it is held back by a philosophy section that over-explains familiar concepts and a single-file structure that inlines material which could be progressively disclosed into reference files.

Suggestions

Trim the 'Testing Philosophy' section to the non-obvious project conventions only; drop the generic 'When to Use' filler sentence.

Move the detailed mocking and factory pattern catalogs into reference files (e.g., references/mocking.md, references/factories.md) and link them one level deep from SKILL.md.

Add a short sequenced TDD workflow with explicit validation checkpoints (run failing test -> implement -> run again -> refactor) instead of leaving the cycle as implicit bullets.

DimensionReasoningScore

Conciseness

The bulk is lean, code-driven content, but the 'Testing Philosophy' section restates TDD/BDD/factory concepts Claude already knows, and the closing 'When to Use' line ('applicable to execute the workflow or actions described in the overview') is generic filler.

3 / 5

Actionability

Provides copy-paste-ready, executable TypeScript across custom render, props/data factories, module and GraphQL mocking, query patterns, and user-interaction tests, covering the common cases comprehensively.

5 / 5

Workflow Clarity

This is primarily a patterns catalog rather than a sequenced workflow; the TDD red-green-refactor cycle is present but checkpoints are implicit, and the generic 'When to Use' section does not add clear sequencing.

3 / 5

Progressive Disclosure

The body is well-sectioned with clear headers, but all ~250 lines live in a single inline SKILL.md with no references or bundle files, so content that could be split (detailed mocking/factory guides) is not progressively disclosed.

3 / 5

Total

14

/

20

Passed

Description

87%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 is strong: third-person voice, explicit 'what' and 'when' clauses, and concrete trigger phrases that a user would naturally say. Minor room to broaden trigger synonyms and replace the generic 'testing patterns' wrapper with more specific actions.

DimensionReasoningScore

Specificity

Lists several specific capabilities — 'factory functions', 'mocking strategies', and 'TDD workflow' — but the wrapper 'Jest testing patterns' is generic and leaves minor gaps in coverage (e.g., test structure, custom render).

4 / 5

Completeness

Clearly states what the skill does ('Jest testing patterns, factory functions, mocking strategies, and TDD workflow') and explicitly when to use it with concrete trigger phrases ('Use when writing unit tests, creating test factories, or following TDD red-green-refactor cycle').

5 / 5

Trigger Term Quality

The 'when' clause includes natural user phrases like 'writing unit tests', 'creating test factories', and 'TDD red-green-refactor cycle', but a few common synonyms (e.g., 'mocking', 'Jest') are absent from the trigger clause.

4 / 5

Distinctiveness Conflict Risk

The Jest-specific niche combined with concrete triggers (factories, mocking, TDD) gives it a clear, distinct scope with minimal overlap risk against unrelated skills.

5 / 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

frontmatter_unknown_keys

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

Warning

Total

15

/

16

Passed

Repository
administrakt0r/AI-Agents-Safe-Coding-Skills
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.