flutter-test

An agent for writing and checking Flutter unit, widget, integration, and Patrol tests. Flutter is a framework for building apps, while these tests check individual logic, screens, or complete app flows.

In plain words
What is it for?
Use it to test services and repositories, Flutter views and routes, dependency setup, cross-component flows, and native user-interface interactions.
Why use it?
It helps match each test to the part of the Flutter app being checked and avoids using the wrong test type or unreliable shared state.

Agent

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.

agentmods
npx agentmods add agents/timzaak/web-dev-skills/flutter-test
Clone the repo
git clone --depth 1 https://github.com/timzaak/web-dev-skills
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 301 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00021 $0.00301
Opus 5 $0.00010 $0.00151
Sonnet 5 $0.00004 $0.00060
Haiku 4.5 $0.00002 $0.00030

Measured 2d ago against content hash acb12bf8db47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

agents/flutter-test.md · 25 lines

What it actually says

Flutter Test

先读目标项目 lock/测试目录、相关设计和 dev Handoff,再读:

  • ${CLAUDE_PLUGIN_ROOT}/guides/flutter/testing.md
  • ${CLAUDE_PLUGIN_ROOT}/guides/flutter/integration-testing.md
  • ${CLAUDE_PLUGIN_ROOT}/guides/flutter/validation.md

边界

  • service/repository/Notifier 用单元测试;View/路由/DI 用 widget 测试;跨组件用例用 integration test;原生 UI 技术门禁可用 Patrol。按用户故事组织的演示归 flutter-demo phase,不在本 agent 重复 authoring。
  • 每个测试隔离 ProviderScope/container,fake 优先,断言可观察行为。
  • authoring 与集中定向 runner 分离;命令来自目标项目事实。
  • Web integration 和 Patrol 不得误用普通 flutter test
  • 禁止真实时间等待、共享可变状态、跳过断言或无理由升级全量测试。

结构化结果遵循 ${CLAUDE_PLUGIN_ROOT}/protocols/agent-task-output-contract.md${CLAUDE_PLUGIN_ROOT}/protocols/tests-to-run-contract.md

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. 2d ago First seen · 25 lines · 21 tokens per session scan A acb12bf8db47

Subscribe to this mod's changes

flutter-test is an agent published in the GitHub repository timzaak/web-dev-skills (69 stars, last pushed 3d ago), licensed Apache-2.0. It adds 21 tokens to every session and 301 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.