CtrlK
BlogDocsLog inGet started
Tessl Logo

dart-add-unit-test

Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains correct and regression-free.

63

Quality

75%

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/dart-add-unit-test/SKILL.md
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 strong, well-structured skill: executable examples, exact commands, a mirrored-directory convention, and a sequential workflow with an explicit feedback loop. Its only weaknesses are mild — some bullets restate testing fundamentals Claude already knows, and the inline examples make the file slightly longer than a minimal overview would be.

DimensionReasoningScore

Conciseness

The body is lean — bullet guidance, two code examples, and a checklist with no padded prose. It dips below anchor 5 because the 'Writing Tests' section explains mechanics Claude already knows (what `test()`, `expect()`, `setUp()`/`tearDown()` do) rather than only adding Dart-specific facts.

4 / 5

Actionability

Fully executable, copy-paste-ready guidance: two complete code examples (standard suite with sync/async cases and a Mockito suite including the `@GenerateNiceMocks` build_runner step), exact CLI commands (`dart test`, `flutter test integration_test`), and a concrete file-naming convention. These cover the common cases the skill targets.

5 / 5

Workflow Clarity

The 'Test Implementation Workflow' is a numbered 7-step checklist with an explicit **Feedback Loop** step (run -> review stack trace -> fix -> re-run until passing), exactly matching the anchor for clear sequence with validation and error-recovery loops.

5 / 5

Progressive Disclosure

A single-file skill (~115 lines) with a linked Contents list, well-delineated sections, and content appropriately sized for inline inclusion. It scores 4 rather than 5 because it exceeds the under-50-line simple-skill case and the two full code examples could arguably live in a separate examples file, though nothing is buried or hard to navigate.

4 / 5

Total

18

/

20

Passed

Description

62%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 is well-formed with a clear what and an explicit 'Use when' trigger clause, but it undersells its own niche: neither "Dart" nor "Flutter" appears anywhere, which weakens both natural trigger matching and distinctiveness. The action list is also thin relative to what the skill body actually covers.

Suggestions

Name the ecosystem explicitly — e.g., "Write and organize unit tests for Dart and Flutter functions, methods, and classes using `package:test`" — so the description triggers on the words users actually say.

Broaden the when-clause to cover direct requests, e.g., "Use when the user asks to write, add, or run unit tests, or when creating new logic or fixing bugs."

Add one or two more concrete actions (e.g., running test suites via `dart test`/`flutter test`, or mocking dependencies with Mockito) to raise specificity from two actions to several.

DimensionReasoningScore

Specificity

"Write and organize unit tests" names the domain (via `package:test`) and two concrete actions, but coverage is not comprehensive — running tests, mocking, and the Dart/Flutter ecosystem are absent. This matches the anchor for 1-2 concrete actions without comprehensiveness, not the several-actions anchor above.

3 / 5

Completeness

Both parts are present: a clear what ("Write and organize unit tests for functions, methods, and classes using `package:test`") and an explicit when ("Use when creating new logic or fixing bugs"). However, the when-clause is indirect — it doesn't explicitly cover a user directly asking to write or add tests — so it sits at anchor 4 ('when' could be more explicit) rather than 5.

4 / 5

Trigger Term Quality

Natural phrases like "unit tests", "fixing bugs", and "regression" are present, but the most common user phrasings — "Dart", "Flutter", "testing my code" — are missing entirely. Relevant keywords exist but common variations/synonyms are absent, matching anchor 3 rather than the good-coverage anchor 4.

3 / 5

Distinctiveness Conflict Risk

The `package:test` reference carves a clear Dart-specific niche with minimal conflict risk against generic test-writing skills. Minor overlap remains because the language/framework names (Dart, Flutter) are never stated, fitting anchor 4 rather than the fully distinct anchor 5.

4 / 5

Total

14

/

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.