agentleFS
thiennc-tesoglobalthiennc-tesoglobal/flutter-skills/skills/flutter-ai-integration/SKILL.md

flutter-ai-integration

Skill16 starsChanged 3 months agoBSD-3-ClauseView on GitHub

Build or review provider-neutral AI features in Flutter, including streaming responses, conversation state, structured output, tool calls, attachments, cancellation, and safe service boundaries. Use when model behavior is part of the product; do not use for ordinary APIs, product analytics, or generic chat between people.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Do not add a provider SDK, account setup, credential, or backend merely because this skill was selected.

    line 10
  2. Very specific:

    Read pubspec.yaml, SDK constraints, existing AI or API adapters, backend boundary, authentication, model configuration, state ownership, …

    line 14
  3. Distinctive:

    Keep model and provider details behind a narrow application-owned interface.

    line 16
  4. Distinctive:

    Read service boundary and secrets when selecting client versus backend responsibilities, credentials, provider abstraction, safety, …

    line 20
  5. Distinctive:

    Read streaming, tools, and state when implementing streamed output, conversations, attachments, structured responses, or tool/function …

    line 21
  6. Distinctive:

    Read Flutter AI Toolkit and GenUI only when the project uses or is considering those Flutter packages.

    line 22
  7. Distinctive:

    Verify the visible stream and state transitions on affected platforms, including restart or restoration when required.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Flutter AI Integration

Integrate model behavior as an unreliable, asynchronous external capability with an explicit product contract. Preserve the project's provider, backend, networking client, state management, persistence, and UI architecture unless the user requests a migration.

Do not add a provider SDK, account setup, credential, or backend merely because this skill was selected.

Preflight

Read pubspec.yaml, SDK constraints, existing AI or API adapters, backend boundary, authentication, model configuration, state ownership, persistence, privacy requirements, tests, and platform targets. Clarify the intended capability and failure behavior before choosing a model, provider, SDK, or UI toolkit.

Keep model and provider details behind a narrow application-owned interface. Treat output, tool arguments, citations, and structured data as untrusted input. Define cancellation, timeout, retry, partial-result, quota, offline, and unsupported-capability behavior.

Load references conditionally

  • Read service boundary and secrets when selecting client versus backend responsibilities, credentials, provider abstraction, safety, privacy, or model configuration.
  • Read streaming, tools, and state when implementing streamed output, conversations, attachments, structured responses, or tool/function calls.
  • Read Flutter AI Toolkit and GenUI only when the project uses or is considering those Flutter packages. Do not introduce them by default.

Boundaries

  • flutter-networking owns generic HTTP, WebSocket, SSE, authentication refresh, and transport reliability; this skill owns model-specific semantics on top.
  • dart-concurrency owns general stream races, cancellation primitives, and isolate behavior.
  • flutter-persistence owns durable storage and offline synchronization; this skill defines what conversation or model state may be retained.
  • flutter-security owns a broad threat review; this skill enforces the model boundary, credential placement, untrusted output handling, and least-privilege tools.
  • flutter-ui-patterns and flutter-accessibility own general interface composition and accessibility.

Verification

Use a deterministic fake model or recorded adapter for ordinary automated tests. Cover partial chunks, cancellation, timeout, malformed structured output, tool denial and failure, repeated or reordered events, quota errors, and provider unavailability. Use a real provider only when credentials, cost, network access, and environment are explicitly in scope; keep such tests separate and non-destructive.

Verify the visible stream and state transitions on affected platforms, including restart or restoration when required. Report which behavior was fake-tested, which was exercised end to end, the exact provider/model configuration when relevant, and any cost, safety, or backend boundary not verified.

Sources

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.