CtrlK
BlogDocsLog inGet started
Tessl Logo

mocking-test-generator

Generate unit tests with proper mocking for Python (unittest.mock/pytest) or Java (Mockito/JUnit) code. Use when users request test generation, unit tests with mocks, or testing code that has external dependencies like database calls, API requests, file I/O, or network operations. Automatically identifies dependencies to mock and creates executable, maintainable test code.

89

1.12x
Quality

86%

Does it follow best practices?

Impact

91%

1.12x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Discovery

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is an excellent skill description that hits all the key criteria. It provides specific capabilities (unit test generation with mocking), names concrete frameworks and dependency types, includes an explicit 'Use when' clause with natural trigger terms, and carves out a distinct niche that won't conflict with general coding or other testing skills.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: 'Generate unit tests', 'proper mocking', specifies frameworks (unittest.mock/pytest, Mockito/JUnit), and details dependency types (database calls, API requests, file I/O, network operations).

3 / 3

Completeness

Clearly answers both what ('Generate unit tests with proper mocking...identifies dependencies to mock and creates executable, maintainable test code') and when ('Use when users request test generation, unit tests with mocks, or testing code that has external dependencies').

3 / 3

Trigger Term Quality

Excellent coverage of natural terms users would say: 'unit tests', 'mocks', 'test generation', 'external dependencies', 'database calls', 'API requests', 'file I/O', 'network operations', plus language-specific framework names.

3 / 3

Distinctiveness Conflict Risk

Clear niche focused specifically on unit test generation with mocking for Python/Java, distinct from general coding skills or other testing approaches. The specific frameworks and dependency types create a well-defined scope.

3 / 3

Total

12

/

12

Passed

Implementation

72%

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

This skill provides solid, actionable guidance for generating mocked unit tests with good code examples and clear framework-specific instructions. The progressive disclosure is well-executed with appropriate references to detailed pattern files. However, the content could be more concise by trimming explanatory text, and the workflow would benefit from explicit validation steps to verify generated tests are correct and executable.

Suggestions

Add a validation step after test generation (e.g., 'Run the generated tests to verify they pass and mocks behave correctly')

Trim explanatory phrases like 'Read the target code to identify' - Claude knows how to analyze code

Condense the 'Always mock' and 'Never mock' lists into a more compact format or move to reference files

DimensionReasoningScore

Conciseness

The content is mostly efficient but includes some unnecessary explanation. Phrases like 'Read the target code to identify' and the detailed lists of what to mock could be tightened. The workflow steps are somewhat verbose for concepts Claude already understands.

2 / 3

Actionability

Provides fully executable code examples for both Python and Java with complete imports, proper structure, and copy-paste ready patterns. The examples show concrete mock setup, execution, and assertion patterns.

3 / 3

Workflow Clarity

The 5-step workflow is clearly sequenced, but lacks explicit validation checkpoints. There's no feedback loop for verifying generated tests work correctly or guidance on what to do if tests fail. For a code generation task, validation steps would strengthen this.

2 / 3

Progressive Disclosure

Excellent structure with clear overview sections and well-signaled one-level-deep references to Python and Java pattern files. The main content stays focused while pointing to detailed examples in reference files.

3 / 3

Total

10

/

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.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Repository
ArabelaTso/Skills-4-SE
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.