CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

unit-test-generator

The content demonstrates unit tests for utilities, asynchronous functions, classes, and React components, with examples of happy paths, edge cases, and errors. It also includes test-generation templates, coverage notes, and recommendations for focused, isolated tests.

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

Quality

Scored by GLM 5.3

Content

50%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 complete, executable test examples, but it is token-heavy: it re-teaches basic testing knowledge Claude already has, duplicates the AAA pattern across multiple examples, and inlines everything into one large file instead of splitting specialized example categories into references. It also lacks an explicit generate-then-run-then-verify workflow.

Suggestions

Cut the redundant 'AAA Pattern Template' section (its structure is already demonstrated in the calculator and ShoppingCart examples) and trim boilerplate examples of basic describe/it/expect usage Claude already knows.

Move specialized example banks (React component testing, async mocking, class testing) into references/ files (e.g., references/react-testing.md, references/async-testing.md) and keep SKILL.md as a lean overview with one canonical example plus the file-structure and checklist sections.

Add an explicit sequenced workflow — analyze the source file, categorize functions/classes, generate the test file, run the test suite, and fix failures — so the Output Checklist is backed by a verification loop.

DimensionReasoningScore

Conciseness

The ~550-line body is almost entirely code examples demonstrating testing patterns Claude already knows (describe/it/expect, vi.fn mocking, testing-library); the 'AAA Pattern Template' section substantially duplicates the calculator and ShoppingCart examples, and the Edge Case Categories interface and TODO-filled generation script add padding — noticeably verbose with several unnecessary sections rather than just needing tightening.

2 / 5

Actionability

The validator, calculator, userService, ShoppingCart, and Counter examples are concrete and copy-paste ready, and the Output Checklist gives verifiable criteria; however, the 'Test Generation Script' contains '/* TODO */' placeholders and assumes the export name matches the filename, leaving minor gaps that keep it from fully executable.

4 / 5

Workflow Clarity

There is an implied sequence (templates → Test File Structure → Output Checklist) but no explicit ordered workflow for generating tests from a source file, and the checklist never verifies that generated tests actually run and pass — checkpoints are missing or implicit.

3 / 5

Progressive Disclosure

Section headers are clear and logical, but the entire ~550-line skill lives in SKILL.md with no bundle files at all; the React component, async mocking, and class testing example banks are content that should be split into references/ files, leaving it between 'should be separate is inline' (3) and inlined-with-no-structure (2).

3 / 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 states concrete capabilities and includes an explicit 'Use for...' clause with natural trigger phrases. The only weaknesses are a few missing trigger synonyms (notably vitest, despite the body's examples using it) and minor overlap risk with broader testing-related skills.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — 'AAA pattern (Arrange-Act-Assert), edge cases, error scenarios, and coverage analysis' plus 'Creates test files matching source structure with complete test suites' — giving comprehensive coverage of the skill's capabilities rather than only minor gaps, matching the top anchor.

5 / 5

Completeness

It explicitly answers both what ('Generates comprehensive unit tests with AAA pattern... coverage analysis') and when ('Use for "unit testing", "test generation", "Jest tests", or "test coverage"') with concrete quoted trigger phrases, matching the anchor-5 example structure; the 'when' clause is explicit, not merely implied as at anchor 4.

5 / 5

Trigger Term Quality

Triggers 'unit testing', 'test generation', 'Jest tests', 'test coverage' are natural user phrases with good coverage, but common variations are missing (e.g., 'write tests', 'vitest', 'mocha', 'test suite'), and the body's examples use vitest while only Jest appears as a trigger — so it falls short of the comprehensive synonym coverage of the top anchor.

4 / 5

Distinctiveness Conflict Risk

Unit test generation is a mostly distinct niche with clear triggers, but 'test generation' and 'test coverage' could overlap with closely related skills (generic testing, TDD, or coverage-analysis skills), so it fits 'mostly distinct; minor overlap risk' rather than 'minimal conflict risk'.

4 / 5

Total

18

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

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

Warning

referenced_paths_exist

Referenced path issues: 1 possibly missing (scripts/generate-tests.ts)

Warning

Total

14

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/unit-test-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.