agentleFS
ai-dashboadai-dashboad/flutter-skill/skills/e2e-testing/SKILL.md

e2e-testing

Skill384 starsChanged 4 months agoMITView on GitHub

AI-powered E2E testing for any app — Flutter, React Native, iOS, Android, Electron, Tauri, KMP, .NET MAUI. Connects via MCP to running apps so the agent can take screenshots, tap elements, enter text, scroll, inspect UI trees, and verify state with natural language. Use when the user wants to test an app's UI end-to-end, automate cross-platform testing, run smoke tests, validate form flows, or verify navigation without writing test code.

  • Installs packages

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use swift-protocol-di-testing, content-hash-cache-pattern and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • InfopibeSkill

    swift-protocol-di-testing

    Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.

    Also in 8 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 8 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 7 projects that use this

  • +9 more from Infopibe

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add to your AI agent's MCP config (Claude Desktop, Cursor, Windsurf, OpenClaw, etc.):

    line 37
  2. Distinctive:

    Use refs for reliable element targeting that survives UI changes:

    line 135
  3. Very specific:

    Always call screenshot() before and after actions.

    line 148
  4. Very specific:

    After tap() or enter_text(): Call screenshot() to verify the UI responded.

    line 153
  5. Very specific:

    After navigation: Use wait_for_element(key: "target_screen") with a timeout.

    line 154
  6. Very specific:

    On unexpected state: Call get_logs() and inspect_interactive() to understand what elements are present.

    line 155

“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AI E2E Testing — 8 Platforms, Zero Test Code

flutter-skill is an MCP server that connects AI agents to running apps across 8 platforms. The agent takes screenshots, taps elements, enters text, scrolls, navigates, inspects UI trees, and verifies state — all through natural language.

Supported Platforms

PlatformSetup
Flutter (iOS/Android/Web)flutter pub add flutter_skill
React Nativenpm install flutter-skill-react-native
Electronnpm install flutter-skill-electron
iOS (Swift/UIKit)SPM: FlutterSkillSDK
Android (Kotlin)Gradle: flutter-skill-android
Tauri (Rust)cargo add flutter-skill-tauri
KMP DesktopGradle dependency
.NET MAUINuGet package

Install

# npm (recommended)
npm install -g flutter-skill

# Homebrew
brew install ai-dashboad/flutter-skill/flutter-skill

# Or download binary from GitHub Releases

MCP Configuration

Add to your AI agent's MCP config (Claude Desktop, Cursor, Windsurf, OpenClaw, etc.):

{
  "mcpServers": {
    "flutter-skill": {
      "command": "flutter-skill",
      "args": ["server"]
    }
  }
}

Quick Start

1. Initialize your app (one-time)

flutter-skill init

Auto-detects project type and patches your app with the testing bridge.

Verify: Output should confirm the project type was detected and main entry point was patched. If it fails, check that you are in the project root and the framework is supported.

2. Launch and connect

flutter-skill launch .

Verify: A VM Service URI appears in the output (e.g. ws://127.0.0.1:50000/ws). If no URI appears, check that Flutter/the target framework is installed and the app compiles.

3. Test with natural language

The agent follows this core loop:

  1. screenshot() — see the current screen
  2. inspect_interactive() — discover all tappable/typeable elements with semantic refs
  3. tap(ref: "button:Login") — tap using stable semantic reference
  4. enter_text(ref: "input:Email", text: "admin@test.com") — type into field
  5. wait_for_element(key: "Dashboard") — verify navigation succeeded
  6. screenshot() — confirm final state

If inspect_interactive() returns no elements: Take a screenshot to confirm the screen loaded, then check get_logs() for errors. The app may still be loading — retry after a short wait.

Available MCP Tools

Core Actions

ToolDescription
screenshotCapture current screen as image
tapTap element by key, text, ref, or coordinates
enter_textType text into a field
scrollScroll up/down/left/right
swipeSwipe gesture between points
long_pressLong press an element
dragDrag from point A to B
go_backNavigate back
press_keySend keyboard key events

Inspection

ToolDescription
inspect_interactiveGet all interactive elements with semantic ref IDs
get_elementsList all elements on screen
find_elementFind element by key or text
wait_for_elementWait for element to appear (with timeout)
get_element_propertiesGet detailed properties of an element

Text Manipulation

ToolDescription
set_textReplace text in a field
clear_textClear a text field
get_textRead text content

App Control

ToolDescription
get_logsRead app logs
clear_logsClear log buffer

Semantic Refs

inspect_interactive returns elements with stable semantic reference IDs:

button:Login          → Login button
input:Email           → Email text field
toggle:Dark Mode      → Dark mode switch
button:Submit[1]      → Second Submit button (disambiguated)

Format: {role}:{content}[{index}]

7 roles: button, input, toggle, slider, select, link, item

Use refs for reliable element targeting that survives UI changes:

tap(ref: "button:Login")
enter_text(ref: "input:Email", text: "test@example.com")

Testing Workflow

Core Loop

screenshot() → inspect_interactive() → tap/enter_text → screenshot() → verify

Always call screenshot() before and after actions. Use wait_for_element() after navigation — apps need time to transition.

Validation Checkpoints

  • After screenshot(): Confirm the expected screen is visible before acting.
  • After tap() or enter_text(): Call screenshot() to verify the UI responded.
  • After navigation: Use wait_for_element(key: "target_screen") with a timeout. If it times out, call screenshot() and get_logs() to diagnose.
  • On unexpected state: Call get_logs() and inspect_interactive() to understand what elements are present.

Element Targeting Priority

  1. ref: (most reliable) — semantic ref from inspect_interactive()
  2. key: — widget key set by the developer
  3. text: — visible text content (fragile if text changes)
  4. Coordinates — last resort, breaks on different screen sizes

Links

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.