Configures Patrol E2E testing in a Flutter project for Android: pubspec setup, native wiring, first minimal test, and gotchas.
Ships in flutter-patrol. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Get a first Patrol test passing on an Android emulator. Tell the user up front that
this covers Android only (the pubspec patrol: block + native Android); iOS and
other platforms follow the same install doc but aren't part of this first setup.
This skill is the ordered process and the gotchas; the canonical docs are the source of truth for versions, native config, and code — follow them at each step instead of guessing:
patrol: block, Android, iOS,
flavors) — https://patrol.leancode.co/documentationFollow the Setup steps, deep-linking to the relevant point:
patrol dev dependency and the patrol: block in pubspec.yaml — https://patrol.leancode.co/documentation#add-patrol-dependencyMainActivityTest.java) — https://patrol.leancode.co/documentation#android-setup
(Groovy build files: https://patrol.leancode.co/documentation#old-android-setup)Follow write your first test for the current API: https://patrol.leancode.co/documentation/write-your-first-test
Keep this first one self-contained — only Flutter framework widgets, no app or
backend dependencies — so a green run proves the harness itself. Place it in
patrol_test/ (or the configured test_directory).
Gitignore test_bundle.dart (generated by Patrol) and .patrol.env (your
dart-defines, often secrets) per the Setup section:
https://patrol.leancode.co/documentation#setup
Boot an Android emulator and wait for boot to fully complete before running —
a test launched mid-boot fails. Then run the single test with patrol test. A
green run confirms the setup.
MainActivity cannot be resolved (Java) — set the MainActivityTest.java
package to the app's applicationId.Once the setup is green, mention to the user that Patrol MCP exists and can be set up on request — it lets an AI agent run tests, capture screenshots, read the native UI tree, and drive an interactive session. Let the user decide; if they want it, follow the README: https://pub.dev/packages/patrol_mcp
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/patrol-migrate-from-maestroMigrate a Flutter app's Maestro UI flows (`.yaml`) to Patrol end-to-end tests — inventory the flows, translate each command to Patrol, replace text and relative selectors with widget keys, move JS scripts and hooks to Dart, and prove every migrated test green before the next one. Use when a project has a `maestro/` (or `.maestro/`) directory and the user wants those flows in Patrol./patrol-test-architectureAdd-on to patrol-write-test for Patrol test suites built on LeanCode's recommended architecture — Modules, System, and ApiClients — with per-feature keys.dart files. Use together with patrol-write-test when the project's Patrol tests already follow this architecture (e.g. a `patrol_test/modules/` directory and a `testApp` wrapper), or when the user asks to introduce it or to organize test code into modules./patrol-write-test/flutter-patrol:patrol-setupfrom flutter-patrol
flutter-patrol@leancode-ai-plugins is listed by leancodepl/ai-plugins — review the source before installing
npx claudepluginhub leancodepl/ai-plugins --plugin flutter-patrolOther plugins' skills for the same job