CtrlK
BlogDocsLog inGet started
Tessl Logo

dart-generate-test-mocks

Define and generate mock objects for external dependencies using `package:mockito` and `build_runner`. Use when unit testing classes that depend on complex external services like APIs or databases.

69

Quality

85%

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

SKILL.md
Quality
Evals
Security

Quality

Content

88%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 is a highly actionable, well-sequenced guide with concrete commands, real API usage, a full executable example, and an explicit error-recovery loop. Its weaknesses are minor: a few over-explanatory lines and a long inline example that a reference file could absorb.

DimensionReasoningScore

Conciseness

Most sections are lean bullet lists of concrete commands and APIs, but a few lines explain concepts Claude already knows ("Design Dart classes to support dependency injection", "Utilize Dart's object-oriented features (classes, mixins) to define clear interfaces").

4 / 5

Actionability

Fully executable throughout: specific commands (dart pub add, dart run build_runner build, dart test), exact API signatures (when(...).thenAnswer, verify(...).called(1)), and a complete copy-paste-ready SUT and test example covering both success and error paths.

5 / 5

Workflow Clarity

A 10-step sequenced checklist is paired with an explicit feedback loop (run validator, review errors, targeted fixes keyed to specific error signatures like ArgumentError and missing-stub nulls, then repeat until passing).

5 / 5

Progressive Disclosure

A single coherent file with a contents TOC and well-organized sections, with no bundle files and none strictly needed; however, everything lives inline including a ~75-line worked example that could be split into a separate reference file.

4 / 5

Total

18

/

20

Passed

Description

82%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: it states what it does and when to use it concretely in third person, with specific tool names and natural trigger terms. Its only gap is that the action list is slightly narrower than the skill's actual scope.

DimensionReasoningScore

Specificity

The description names the domain and two concrete actions ("Define and generate mock objects") plus the tools (mockito, build_runner), but stops short of several specific actions like stubbing or verification that the skill actually covers.

3 / 5

Completeness

It explicitly answers what ("Define and generate mock objects for external dependencies using package:mockito and build_runner") and when ("Use when unit testing classes that depend on complex external services like APIs or databases") with concrete trigger phrasing in third person.

5 / 5

Trigger Term Quality

Natural phrases like "mock objects", "unit testing", and "APIs or databases" plus tool names give good keyword coverage, though common variations like "test doubles", "stubs", or "Flutter tests" are missing.

4 / 5

Distinctiveness Conflict Risk

Naming the exact package and the narrow task (mock generation for external dependencies in Dart tests) carves a clear niche with distinct triggers and minimal overlap risk beyond a general Dart-testing skill.

5 / 5

Total

17

/

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

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository
flutter/agent-plugins
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.