common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Write unit, widget, and integration tests with robot patterns, widget keys, and Patrol in Flutter. Use when implementing test behavior; defer CI-only configuration without test changes.
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill flutter-testing -a windsurf -y
name: flutter-testing
description: Write unit, widget, and integration tests with robot patterns, widget keys, and Patrol in Flutter. Use when implementing test behavior; defer CI-only configuration without test changes.
metadata:
triggers:
files:
- '**/test/**.dart'
- '**/integration_test/**.dart'
- '**/robots/**.dart'
- 'lib/core/keys/**.dart'
keywords:
- flutter integration test
- test
- patrol
- robot
- WidgetKeys
- patrolTest
- blocTest
- mocktailThe Four Pillars provide a qualitative reasoning framework to assess test value:
Avoid calculating or inventing arbitrary numeric scores (e.g. $P \times R \times F \times M$) statically without measured mutation or runtime evidence.
1. **Test Pyramid**: Unit > Widget > Integration. 2. **Naming**: Follow `[MOB-TEST-01]` (`Method_Scenario_ExpectedBehavior`). 3. **AAA**: Arrange, Act, Assert in all tests. 4. **Isolated Builders**: Fluent builders when setup complexity warrants (`OrderBuilder`); avoid brittle shared global mocks. 5. **File Placement**: `_integration_test.dart` ONLY in `integration_test/`. 6. **Robot-First**: All UI assertions/interactions via **Robot pattern** (extending `BaseRobot`) — never raw `find.*`/`expect()` in test body. Use `WidgetKeys` constants from `lib/core/keys/`. 7. **Negative Assertions**: Add `expectXxxNotVisible()` in robot only when absence is part of the business contract (e.g. restricted action hidden), not blanket pairs for unrelated content. 8. **Widget Testing & Mocking**: Setup with `TestWrapper.init()` and `tester.pumpLocalizedWidget(...)`. Register mock BLoCs with `GetIt` in `setUpAll`; stub `state` and `stream` in `setUp` (use `whenListen` and `settle: false` for loading/transition states). Prohibit `any()`. 9. **Integration Testing**: Use `patrolTest` with `IntegrationAuthHelper.loginOrSkip($)` for auth flows and `native interactions` (`$.native.*`) for permissions, alerts, and lifecycle. For permission flows, assert the dialog (`isPermissionDialogVisible`) before granting/denying and assert the approved allowed **and** denied outcomes as separate tests.
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.