flutter-test

flutter-test is a command for Claude Code from sifxprime/kodelyth-ecc. It costs 27 tokens per session (953 once invoked), scanned A, a copy of flutter-test, MIT.

A Flutter and Dart testing workflow covering unit tests, widget tests, visual comparison tests, and integration tests.

In plain words
What is it for?
Use it after feature work, when a test fails, before submitting a pull request, or when checking coverage and intentional visual changes.
Why use it?
It helps find regressions and explains failures, then fixes them one at a time and checks the result again.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it after feature work, when a test fails, before submitting a pull request, or when checking coverage and intentional visual changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sifxprime/kodelyth-ecc/flutter-test
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/flutter-test/github.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/flutter-test)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/flutter-test"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/flutter-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-test

Your own site · 80×15
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/flutter-test"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/flutter-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 953 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00953
Opus 5.5 $0.00011 $0.00381
Sonnet 5.5 $0.00005 $0.00191
Haiku 4.5 $0.00003 $0.00095

Measured 2mo ago against content hash b713d7f7aecb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to flutter-test — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/flutter-test.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter Test

This command runs the Flutter test suite and reports results. When failures occur, it diagnoses and fixes issues incrementally.

What This Command Does

  1. Run Tests: Execute flutter test (or scope to changed files)
  2. Parse Failures: Identify failing tests by type and cause
  3. Fix Incrementally: One failure at a time where possible
  4. Verify: Re-run after each fix
  5. Report: Show coverage summary and remaining failures

When to Use

Use /flutter-test when:

  • After implementing a feature to verify nothing broke
  • After running /flutter-build to ensure tests pass
  • To check test coverage on new code
  • When a specific test file is failing
  • Before submitting a PR

Commands Run

# Run all tests
flutter test 2>&1

# Run with coverage
flutter test --coverage 2>&1

# Run specific test file
flutter test test/unit/domain/usecases/get_user_test.dart 2>&1

# Run tests matching a name pattern
flutter test --name "CartBloc" 2>&1

# Run integration tests (requires device/emulator)
flutter test integration_test/ 2>&1

# Update golden files when intentional visual changes are made
flutter test --update-goldens 2>&1

Example Session

User: /flutter-test

Agent:
# Flutter Test Run

## Test Execution

```
$ flutter test
00:05 +42 -2: Some tests failed.

FAILED: test/unit/data/user_repository_test.dart
  UserRepository getById
    returns null when user not found
    Expected: null
    Actual: User(id: 'test-id', name: 'Test User')

FAILED: test/widget/cart_page_test.dart
  CartPage
    shows empty state when cart is empty
    Expected: exactly one widget with text 'Your cart is empty'
    Found: no widget with text 'Your cart is empty'
```

## Fix 1: Repository Test

File: test/unit/data/user_repository_test.dart
Failure: `getById` returns a user when it should return null for missing ID

Root cause: Test setup adds a user with ID 'test-id' but queries with 'missing-id'.
Fix: Updated test to query with 'missing-id' — setup was correct, query was wrong.

```
$ flutter test test/unit/data/user_repository_test.dart
1 test passed.
```

## Fix 2: Widget Test

File: test/widget/cart_page_test.dart
Failure: Empty state text widget not found

Root cause: Empty state message was renamed from 'Your cart is empty' to 'Cart is empty' in the widget.
Fix: Updated test string to match current widget copy.

```
$ flutter test test/widget/cart_page_test.dart
1 test passed.
```

## Final Run

```
$ flutter test --coverage
All 44 tests passed.
Coverage: 84.2% (target: 80%)
```

## Summary

| Metric | Value |
|--------|-------|
| Total tests | 44 |
| Passed | 44 |
| Failed | 0 |
| Coverage | 84.2% |

Test Status: PASS ✓

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 145 lines · 27 tokens per session scan A b713d7f7aecb

Subscribe to this mod's changes

flutter-test is a command published in the GitHub repository sifxprime/kodelyth-ecc (12 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 953 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to flutter-test, differing in 2 lines, and is treated as a copy.

Related

flutter-test compared with commands from other repositories

flutter-test next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-testsifxprime/kodelyth-eccCommand12todayMITA27Claude Code
integratenxtg-ai/forge-pluginCommand73d agoMITA6Claude Code
notebook-queryMarcosNahuel/antigravity-plugin-ccCommand341mo agoMITA74Claude Code
cold-startkunalsuri/ai-fication-kitCommand31mo agoApache-2.0A28GitHub Copilot
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code