CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

unit-testing-test-generate

Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.

Quality

61%

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

Quality

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 body delivers substantial concrete code across pytest, Jest, React, coverage analysis, and mocking, organized under clear numbered sections. However, the code has missing pieces that block direct execution (undefined helpers, `self` used outside classes, a malformed subprocess call), there is no validation loop of running generated tests and verifying coverage, and everything is inlined in one long file with redundant Context/Requirements padding.

Suggestions

Add an explicit validation loop: generate tests → run them (e.g., `pytest` / `npx jest`) → fix failures → re-run coverage and confirm gaps closed, so the workflow has checkpoints.

Move the per-language generators (pytest, Jest, React, coverage) into separate reference files under references/ and keep SKILL.md as a concise overview with clear links, instead of inlining ~200 lines.

Fix the code gaps that block execution: define `_calculate_complexity` and `create_targeted_test`, present the pytest generators as proper TestGenerator methods (or remove `self`), handle java/go in `analyze_file`, and split the coverage test command for subprocess.run.

Delete the redundant Context and Requirements sections and the persona intro paragraph, which restate the description without adding guidance.

DimensionReasoningScore

Conciseness

The body is code-heavy and never re-teaches known concepts, but pads with redundancy: the persona intro ("You are a test automation expert specializing in...") and the Context section ("The user needs automated test generation that analyzes code structure...") restate the description, "Requirements" ("Take the requirements, target, and scope from the user's request") is empty filler, and ~200 lines of string-building generator code could be tightened. Matches anchor 3 ("Mostly efficient but includes some unnecessary explanation or could be tightened"); not 4 because the redundant sections exceed minor trimming, and not 2 because there is no explanation of concepts Claude already knows.

3 / 5

Actionability

Code is concrete but incomplete: `_calculate_complexity` and `create_targeted_test` are called but never defined; `analyze_file` silently returns None for java/go despite framework_map listing them; `generate_pytest_tests` and `_generate_function_tests` are presented as module-level functions taking `self`; and `subprocess.run([test_command, '--coverage', '--json'])` passes a full command string as a single list element. Matches anchor 3 ("Some concrete guidance but incomplete... missing key details"); not 4 because these gaps prevent copy-paste execution and exceed minor gaps, and not 2 because the snippets are near-executable rather than high-level hints.

3 / 5

Workflow Clarity

Sections are numbered 1-6 (analyze → generate per-language → coverage analysis → mocks), giving a catalog order, but there is no explicit sequence connecting them and no validation checkpoint — the skill never instructs running the generated tests to confirm they pass or re-checking coverage after generation. Matches anchor 3 ("Steps listed but validation gaps; sequence present but checkpoints missing or implicit"); not 4 because checkpoints are absent rather than mostly present, and not 2 because the numbered sections and per-stage code define steps more clearly than a rough gap-filled sequence.

3 / 5

Progressive Disclosure

The skill is ~320 lines with no bundle files; per-language generator code (pytest, Jest, React, coverage) that clearly belongs in separate reference files is inlined, though section headers provide organization. Matches anchor 3 ("Some structure but could be better organized... content that should be separate is inline"), whose example is exactly inline content that could live in a separate file under headers; not 4 because the bulk of the content should be split out, and not 2 because headers and clear per-section organization exist. The under-50-line simple-skill exception does not apply.

3 / 5

Total

12

/

20

Passed

Description

53%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 states a clear, single concrete capability (generating comprehensive unit tests with coverage and edge-case focus) in appropriate third-person voice, and the unit-testing niche is reasonably distinct. Its main weaknesses are the complete absence of a "Use when..." trigger clause and sparse natural trigger terms — no framework names (pytest, jest) or common user phrasings like "write tests" — leaving users and Claude without explicit activation guidance.

Suggestions

Add an explicit trigger clause, e.g. "Use when the user asks to write, generate, or improve unit tests, add test coverage, or create test suites for existing code."

Include natural trigger terms and synonyms such as framework names (pytest, jest, JUnit) and phrases like "write tests", "test my code", or "test coverage" to improve trigger_term_quality and completeness.

List one or two more concrete actions (e.g., "generate mocks and fixtures, detect coverage gaps") so the capability coverage reads as comprehensive rather than a single action with qualifiers.

DimensionReasoningScore

Specificity

Quotes: "Generate comprehensive, maintainable unit tests", "across languages", "strong coverage and edge case focus". One concrete action (generate unit tests) plus quality qualifiers, with no second action such as mocking or coverage analysis. Matches anchor 3 ("Names domain and 1-2 concrete actions, but not comprehensive"); not 4 because only one action is listed, and not 2 because the domain and action are named concretely rather than generically.

3 / 5

Completeness

The "what" is clear ("Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus"), but the description contains no "Use when..." clause or any trigger guidance, which caps completeness at 3 per the judging guidelines. Matches anchor 3 ("Has a clear 'what' but 'when' is missing or only weakly implied"); not 4 because 'when' is entirely absent, and not 2 because the 'what' is specific rather than vague.

3 / 5

Trigger Term Quality

Quotes: "unit tests", "coverage", "edge case". These are natural user terms, but common variations are missing — no framework names (pytest, jest), no "write tests", "test suite", or "test my code". Matches anchor 3 ("Some relevant keywords but missing common variations or synonyms"); not 4 because the keyword set is thin and "across languages" adds no trigger value, and not 2 because the terms present are genuinely natural, not generic filler.

3 / 5

Distinctiveness Conflict Risk

Quotes: "unit tests", "edge case focus". Unit test generation is a fairly distinct niche that would not trigger for document, data, or review skills, with only minor overlap against a general testing/TDD skill. Matches anchor 4 ("Mostly distinct; minor overlap risk with closely related skills"); not 5 because no explicit trigger phrases disambiguate it from adjacent testing skills (integration/E2E), and not 3 because it is more specific than anchor-3 broadness.

4 / 5

Total

13

/

20

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

rmyndharis/antigravity-skills

Path

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