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.
npx skills add anoopsg/agent_rules --skill flutter-golden-testinggit clone --depth 1 https://github.com/anoopsg/agent_rulesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/anoopsg/agent_rules/flutter-golden-testing)<a href="https://agentmods.dev/skills/anoopsg/agent_rules/flutter-golden-testing"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/flutter-golden-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/anoopsg/agent_rules/flutter-golden-testing"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/flutter-golden-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00835 |
| Opus 5.5 | $0.00016 | $0.00334 |
| Sonnet 5.5 | $0.00008 | $0.00167 |
| Haiku 4.5 | $0.00004 | $0.00084 |
Grade A, and why
flutter-golden-testing 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flutter Golden Testing Skill
This skill outlines the step-by-step process for implementing and updating golden tests for Flutter widgets.
Step 1: Validation & Setup
Run these steps in the package that owns the widget (usually packages/app_ui/).
- Check Dependencies: Ensure
alchemistis present in thedev_dependenciesofpubspec.yaml. If it is missing, install it:flutter pub add --dev alchemist - Test Config: Ensure
<package>/test/flutter_test_config.dartsets the globalAlchemistConfig, including the app theme — see references/alchemist-setup.md. If the file already exists (the app roottest/flutter_test_config.dartregisters mappers), never replace it: keep its setup first and wrap onlytestMain. - Directory Structure: Do not create golden folders by hand. Alchemist writes
goldens/ci/andgoldens/<platform>/next to the test file itself.
Step 2: Test Scaffolding
Create the test file named [widget_name]_golden_test.dart, mirroring the widget's path (e.g. under packages/app_ui/test/src/widgets/).
- Imports: Import the necessary packages (
package:flutter_test/flutter_test.dartandpackage:alchemist/alchemist.dart). - Fonts:
goldenTestloads the app fonts itself; no separate font-loading call (as ingolden_toolkit) is needed.
Step 3: Implementation
Implement the test using alchemist APIs instead of the standard testWidgets.
- Use
goldenTest: Define your test using thegoldenTestfunction. - Theme:
goldenTesthas notheme:parameter, and wrapping the builder inThemedoes not reach Alchemist'sMaterialApp. Set the theme throughAlchemistConfig(theme: …), built from theapp_uitheme classes the same waypackages/app_ui/test/helpers.dartdoes; otherwisecontext.$.colorsthrows. For a dark variant, wrap that test inAlchemistConfig.runWithConfig(config: AlchemistConfig.current().copyWith(theme: …), run: …). - Mock Externalities:
- Disable or replace infinite animations (e.g.,
CircularProgressIndicator). - Mock network image requests (e.g., using
mocktail_image_networkornetwork_image_mock).
- Disable or replace infinite animations (e.g.,
- Matrix Testing: Use
GoldenTestGroupandGoldenTestScenarioto lay out all possible widget states (e.g., loading, success, error) within a single test execution. Cover light and dark mode at minimum (see Theme), and text scaling with thetextScaleFactor:parameter ofgoldenTest.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 22d ago Changed · +4 lines · +14 tokens per session 63dba71792ba
- 3mo ago First seen · 42 lines · 25 tokens per session scan A e8f8241f2a67
flutter-golden-testing is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 23d ago), licensed MIT. It adds 39 tokens to every session and 835 once invoked, about $0.0002 per session on Opus 5.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-31.
flutter-golden-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| flutter-golden-testinganoopsg/agent_rules | Skill | 2 | 23d ago | MIT | A | 39 | Claude Code, Codex |
| git-workflowAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-inertia-reactAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 59 | Claude Code, Codex |
| laravel-owasp-securityAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 87 | Claude Code |
| seo-best-practicesAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 78 | Claude Code |
| state-managementAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 47 | Claude Code, Codex |
| technical-debtAsyrafHussin/agent-skills | Skill | 111 | today | MIT | A | 109 | Claude Code |