CtrlK
BlogDocsLog inGet started
Tessl Logo

flutter-add-widget-test

Implement a component-level test using `WidgetTester` to verify UI rendering and user interactions (tapping, scrolling, entering text). Use when validating that a specific widget displays correct data and responds to events as expected.

68

Quality

82%

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

81%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.

Highly actionable content with a crystal-clear 9-step workflow, explicit validation checkpoints, and a feedback loop, plus fully executable code. The weak spot is token efficiency: it re-teaches standard flutter_test concepts and inlines a large example where a leaner core with the bulk in a separate file would serve better.

Suggestions

Trim or collapse the 'Core Components' section — Finder/Matcher/WidgetTester are standard flutter_test APIs Claude already knows; keep only non-obvious usage notes like the find.byKey pattern.

Move the full TodoList widget source (or the entire worked example) into a references/ file and keep a short pointer plus the key test snippets in SKILL.md.

Delete the filler opener 'Ensure the testing environment is properly configured before authoring widget tests' — the numbered setup steps that follow are self-explanatory.

DimensionReasoningScore

Conciseness

The 'Core Components' section re-explains standard flutter_test APIs (Finder, Matcher) that Claude already knows, the opener 'Ensure the testing environment is properly configured...' is filler, and the ~50-line target widget source is inlined. Mostly efficient but includes unnecessary explanation that could be trimmed, matching anchor 3 rather than the lean anchor 5.

3 / 5

Actionability

Fully executable, copy-paste-ready Dart for both the target widget and the test, exact API calls with parameters (e.g., 'await tester.scrollUntilVisible(itemFinder, 500.0, scrollable: listFinder)'), and a specific run command ('flutter test test/your_test_file_test.dart'). Covers the common cases comprehensively.

5 / 5

Workflow Clarity

The 9-step task checklist sequences define→build→locate→verify initial→interact→rebuild→verify updated→run, and Step 9 is an explicit feedback loop ('Review test output -> identify failing matchers -> adjust widget logic or test assertions -> re-run until passing'). Validation checkpoints and error recovery are both explicit.

5 / 5

Progressive Disclosure

Well-organized single-file skill: a Contents nav, clearly delineated sections, and no nested references, so navigation is easy. The large worked example (~85 lines of widget + test code) could be split into a references file, a minor organization gap that keeps it below 5.

4 / 5

Total

17

/

20

Passed

Description

83%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: concrete actions, an explicit 'Use when' clause, and a well-defined Flutter widget-testing niche. Its main gaps are the absent 'Flutter' keyword (users would naturally say 'write a Flutter widget test') and a few missing natural trigger variations.

DimensionReasoningScore

Specificity

Lists several specific concrete actions — 'verify UI rendering and user interactions (tapping, scrolling, entering text)' — with minor gaps in coverage (no drag/dismiss/golden-file comparison mentioned). Clearly above the 1-2-action anchor but not comprehensive enough for 5.

4 / 5

Completeness

Explicitly answers both what ('Implement a component-level test using WidgetTester to verify UI rendering and user interactions') and when ('Use when validating that a specific widget displays correct data and responds to events as expected'), with concrete trigger phrasing matching the anchor-5 example.

5 / 5

Trigger Term Quality

Natural phrases like 'component-level test', 'tapping, scrolling, entering text', and 'widget displays correct data' match what users would say, though 'Flutter' itself never appears and common variations like 'tap a button' or 'widget tests' are only implied by 'WidgetTester'. Good coverage with a few natural terms missing, so 4 rather than 5.

4 / 5

Distinctiveness Conflict Risk

'WidgetTester' and 'component-level test' carve a clear niche in Flutter testing, but 'component-level test' has minor overlap risk with general unit-testing skills. Mostly distinct rather than a fully clean niche.

4 / 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.