CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

jest-generator

Generate Jest unit tests for JavaScript/TypeScript with mocking, coverage. Use for JS/TS modules, React components, test generation, or encountering missing coverage, improper mocking, test structure errors.

62

Quality

78%

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/jest-generator/skills/jest-generator/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

68%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 highly actionable, code-first reference with executable examples for every major Jest pattern, but it reads as a pattern catalog rather than a guided workflow. It also spends tokens on material Claude already knows (basic matchers, generic best practices) instead of project-specific conventions.

Suggestions

Replace the implicit sequence with an explicit workflow: generate the test file per the naming map → run it (bun test <file>) → verify it passes → iterate, and wire the Quality Checklist in as the validation step at the end of that loop.

Cut or move the "Common Matchers" section and the generic "Best Practices" list — Jest matchers and practices like "keep tests independent" are knowledge Claude already has; keep only project-specific conventions.

Clarify the runner story: the skill is named "jest-generator" and the examples use jest.*, but the preferred command is "bun test" (Bun's own jest-compatible runner, not Jest). State which runner is expected and when to fall back to npm test, since running generated jest.mock-based tests under the wrong runner can silently differ.

DimensionReasoningScore

Conciseness

The presentation is terse and code-first with no prose padding, but the "Common Matchers" section (toBe, toEqual, toBeNull, toContain...) and the generic "Best Practices" list ("Keep tests independent", "Use descriptive test names") are Jest knowledge Claude already has. Mostly efficient with some unnecessary sections, matching anchor 3 rather than 2 since there are no padded explanations.

3 / 5

Actionability

Everything is executable: concrete naming mappings (src/utils/validator.ts → src/utils/validator.test.ts), runnable commands (bun test src/utils/validator.test.ts, npm test -- --coverage), and copy-paste-ready mocking, spy, timer, async, and React Testing Library patterns. This matches the fully-executable top anchor.

5 / 5

Workflow Clarity

The pieces (naming → running → structure → checklist) imply a sequence but never state it: there is no explicit generate-tests → run → verify-they-pass → iterate loop, and the Quality Checklist sits at the end as a static list rather than an integrated validation checkpoint. Sequence present with implicit checkpoints matches anchor 3, not 4.

3 / 5

Progressive Disclosure

A single-file skill (no references/, scripts/, or assets/ exist) with clear, well-ordered section headers, so navigation is easy. At ~190 lines it exceeds the under-50-line simple-skill case, and the matcher/pattern reference material could arguably be split into a separate file, keeping it at anchor 4 rather than 5.

4 / 5

Total

15

/

20

Passed

Description

78%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 explicitly covers both what the skill does and when to use it, with concrete and fairly natural trigger terms. Its main weaknesses are modest specificity in the what-clause and trigger terms that are not framework-pinned in the when-clause, creating some overlap risk with other test-runner skills.

DimensionReasoningScore

Specificity

"Generate Jest unit tests for JavaScript/TypeScript with mocking, coverage" names the domain and 1-2 concrete capabilities (test generation, mocking, coverage), matching the anchor for domain-plus-1-2-actions. It does not list several distinct specific actions, so it falls short of a 4.

3 / 5

Completeness

Both parts are explicit: "Generate Jest unit tests for JavaScript/TypeScript with mocking, coverage" answers what, and "Use for JS/TS modules, React components, test generation, or encountering missing coverage, improper mocking, test structure errors" answers when with concrete trigger phrases. This clearly matches the top anchor.

5 / 5

Trigger Term Quality

"JS/TS modules, React components, test generation, missing coverage, improper mocking, test structure errors" gives good natural keyword coverage a user would actually say. A few natural variations ("unit tests for", ".test.ts", "spec") are missing, so it is not comprehensive enough for a 5.

4 / 5

Distinctiveness Conflict Risk

The Jest/React/JS-TS niche is clear, but the when-triggers ("missing coverage", "test structure errors") do not name the framework, so a project using vitest or mocha could plausibly pull this skill in. That is minor overlap risk with closely related skills, matching anchor 4 rather than 5.

4 / 5

Total

16

/

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

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

Total

15

/

16

Passed

Repository

secondsky/claude-skills

Path

plugins/jest-generator/skills/jest-generator/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.