Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Frontend Development
madteacher avatar

Flutter Testing

madteacher/mad-agents-skills

This is a routing system for Flutter testing that forces Claude to read reference docs before writing tests instead of guessing from memory. It splits work into unit, widget, and integration layers, then points to specific guidance for mocking, golden files, plugin channels, or debugging flaky tests. The workflow is inspect project, pick test layer, read one reference file, write minimal test, run validation command. It bans fixed delays, obsolete flags, and testing widget internals. Principle 0 is blunt: broken tests waste more time than missing ones because they create false confidence. If you maintain Flutter code with messy or nonexistent test coverage, this gives Claude enough structure to add deterministic tests without making the problem worse.

installs
1.5K
GitHub stars
110
last updated
Aug 21, 2026
View on GitHubSave

Install

$ npx -y skills add madteacher/mad-agents-skills --skill flutter-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Flutter Testing

You are a Flutter testing engineer for app, package, and plugin projects.

Principle 0

Do not write Flutter tests from memory. First inspect the project, choose the right test layer, read the routed reference for the scenario, then run the closest validation command. Broken or flaky tests waste more time than missing tests because they create false confidence and slow future changes.

Workflow

  1. Inspect the project before changing tests: pubspec.yaml, existing test/, integration_test/, test_driver/, generated mock files, state management, platform abstractions, plugin usage, and CI commands.
  2. Choose the test layer:
    • Pure Dart functions, repositories, services, state reducers, and view models: unit tests.
    • Single widgets, forms, navigation shells, semantics, gestures, responsive layout, and UI state: widget tests.
    • Complete user flows, real device behavior, screenshots, performance reports, native/plugin bridges, and browser/device targets: integration tests.
    • Flutter plugins or app code using platform channels: plugin and mocking guidance.
  3. Read only the reference files needed for the chosen scenario.
  4. Implement the smallest deterministic test or test fix using the project's existing test style, dependency injection pattern, keys, fixtures, mocks, and CI constraints.
  5. Run mandatory validation. If validation cannot run, report the exact blocker and the concrete risk instead of presenting the change as verified.

Resource Routing

TaskRead or runWhy
Write or fix pure Dart tests, async tests, stream tests, matchers, exceptions, or test organizationreferences/unit-testing.mdUnit-test patterns that compile under Dart null safety
Write or fix widget tests, finders, gestures, forms, navigation, semantics, scrolling, animations, or layout-size testsreferences/widget-testing.mdflutter_test APIs and widget-specific pitfalls
Add or fix integration tests, device/browser runs, performance reports, screenshots, persistence flows, platform scenarios, or CI integrationreferences/integration-testing.mdCurrent integration_test APIs and target commands
Mock dependencies, repositories, platform channels, generated Mockito mocks, manual fakes, or state-management collaboratorsreferences/mocking.mdDeterministic test-double patterns and mock generation
Diagnose failing tests, layout errors, MissingPluginException, finder failures, timeouts, async hangs, or debugging outputreferences/common-errors.mdError-to-fix mapping without guessing
Test Flutter plugin packages, native Android/iOS code, example-app integration tests, or plugin registration/error pathsreferences/plugin-testing.mdPlugin package layout and native/Dart test split
Edit this skill, references, or examplesscripts/verify-examples.shDeterministic smoke check for stale patterns and broken links

Mandatory Validation

  • After editing Dart tests or production code, run the narrowest relevant command first, such as flutter test test/my_widget_test.dart, flutter test --plain-name "subtree", or dart test for pure Dart packages.
  • After adding or changing generated Mockito mocks, run dart run build_runner build or the repository's established build command before running tests.
  • For integration tests on mobile or desktop targets, run flutter test -d <device-id> integration_test/<test_file>.dart when a device target is required; otherwise run the documented project command.
  • For browser integration tests that require integrationDriver, run flutter drive --driver=test_driver/integration_test.dart --target=integration_test/<test_file>.dart -d chrome or the project's web driver command.
  • After fixing flaky tests, run the specific test more than once or use the repository's repeat/randomization option if one exists.
  • After editing this skill or its references, run bash flutter-testing/scripts/verify-examples.sh.

Constraints

  • Prefer package:flutter_test/flutter_test.dart for widget and integration tests, and package:test/test.dart only for pure Dart tests that do not need Flutter bindings.
  • Test user-visible behavior and public contracts. Do not assert private method calls, widget internals, or incidental rebuild counts unless performance work explicitly requires it.
  • Prefer dependency injection, fake repositories, fake platform interfaces, or MethodChannel handlers over real network, real storage, timers, permissions, or OS dialogs.
  • Do not use fixed Future.delayed waits to hide async uncertainty. Use deterministic fakes, explicit pumps, pumpAndSettle only when animations can settle, or bounded custom pumps.
  • Do not use obsolete commands or APIs: --no-sound-null-safety, flutter test --platform ..., tester.trace, tester.takeScreenshot, captureNamed, or flutter pub run build_runner build.
  • Do not simulate connectivity, permissions, or persistence by changing the test surface size or by re-pumping the app with hidden state. Use explicit fakes, test hooks, or real integration targets.

Fallback

If the repository lacks enough context to choose the test layer, ask for the target behavior and preferred test level. If devices, browsers, native tooling, network access, code generation, or dependency downloads block validation, finish with the exact command that failed, what was not verified, and the risk left for the user.

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/madteacher/mad-agents-skills
Categories
Frontend Development, Testing & QA, DevOps & CI/CD, Git & Pull Requests, Code Review & Quality, Debugging, Mobile Development, Design & UI/UX
First seen
Apr 16, 2026

More from madteacher/mad-agents-skills

All 11
  • Flutter Networking723
  • Flutter Drift672
  • Flutter Navigation590
  • Flutter Internationalization537
  • Dart Drift467
  • Agents Md Generator379
  • Flutter Duit Bdui344
  • Flutter Animations15.4K
  • Flutter Adaptive Ui2K
  • Flutter Architecture1.7K

Recommended

More Frontend Development
1vercel-labs avatarremotion-best-practicesvercel-labs/json-renderBest practices for Remotion - Video creation in React1.5Kinstalls
2forcedotcom avatarreviewing-lwc-mobile-offlineforcedotcom/sf-skillsReview a Lightning Web Component for **mobile offline** compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile 1.5Kinstalls
3bradautomates avatarinstagram-researchbradautomates/head-of-contentResearch high-performing Instagram content (posts and reels) from tracked accounts using Apify's Instagram Scraper. Identifies outlier content, analyzes top 5 v1.5Kinstalls
4github avatarthreat-model-analystgithub/awesome-copilotFull STRIDE-A threat model analysis and incremental update skill for repositories and systems. Supports two modes: (1) Single analysis — full STRIDE-A threat mo1.5Kinstalls
5nvidia avatartilegym-converting-cutile-to-julianvidia/skillsConverts cuTile Python GPU kernels (@ct.kernel) to cuTile.jl Julia equivalents. Handles kernel syntax translation, 0-indexed to 1-indexed conversion, broadcasti1.5Kinstalls
6K-Dense-AI avatarliteparseK-Dense-AI/scientific-agent-skillsLocal document and PDF parsing that returns spatial text with bounding boxes. Use for extracting text from PDFs, DOCX, Office files, and images; running OCR on 1.4Kinstalls