Claude Cursor Skill

flutter-networking

Build or review Flutter remote data and transport boundaries across HTTP, GraphQL, WebSocket, SSE, or Socket.IO. Use for API contracts, authenticated request transport, pagination, retries, reconnection, caching, and error mapping; route sign-in and session semantics to flutter-a

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download thienqo-flutter-skills-skills_flutter-networking-af9552b.zip · 7 KB

Install

skills CLI npx skills add https://github.com/thienqo/flutter-skills/tree/main/skills/flutter-networking
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install thienqo-flutter-skills@llmmart
Git git clone https://github.com/thienqo/flutter-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole thienqo/flutter-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Flutter Networking

Keep transport concerns at the service boundary and expose domain-meaningful results to the rest of the app.

Select the mode

  • Handle ordinary HTTP request-response work with the rules below.
  • For GraphQL operations, generated models, normalized caches, optimistic writes, or subscriptions, read GraphQL clients.
  • For WebSocket, SSE, Socket.IO, connection recovery, or live event delivery, read Realtime transports.
  • For REST or HTTP response debugging, undocumented fields, decoding drift, or comparing Swagger/OpenAPI with deployed behavior, read HTTP response evidence.
  • Read both references for GraphQL subscriptions. Route stream races or subscription leaks to dart-concurrency, durable offline queues to flutter-persistence, and terminated-app alerts to flutter-notifications.
  • Audio/video capture, media tracks, playback, and call sessions belong to flutter-media; keep text/data transport and upload behavior here.

Inspect

Read current client, generated API code, interceptors, model generation, authentication, environment configuration, and tests. Preserve http, Dio, generated clients, or another established choice when it meets the requirement.

Rules

  • Centralize base URLs, headers, timeouts, and environment selection without committing secrets.
  • Decode untrusted responses and messages defensively and distinguish transport, protocol, decoding, authentication, and domain failures.
  • Map wire models to domain models at an explicit boundary.
  • Retry or reconnect only when the operation and protocol make recovery safe; bound backoff, queues, and cancellation.
  • Refresh credentials through one coordinated path to avoid request storms.
  • Define pagination identity, ordering, duplicate handling, terminal conditions, and refresh behavior.
  • Apply cache policy deliberately; do not silently return stale data as fresh.
  • Avoid logging tokens, personal data, or full sensitive payloads.
  • Keep documented schema, documentation examples, controlled fixtures, and observed server responses as separate evidence. Do not present one observed payload as the complete contract or a mock as proof of deployed behavior.

Verification

Use deterministic fake servers or mock transports to cover success, malformed data, timeouts, cancellation, unauthorized refresh, retry exhaustion, pagination boundaries, reconnect and resume behavior, and offline behavior. Run integration tests against a real service only when credentials and environment are explicitly in scope. Report the execution surface and data source separately.

Sources

Files (flutter-skills)
  • references
    • graphql.md 4.7 KB
      Loading…
    • http-response-evidence.md 2.3 KB
      Loading…
    • realtime-transports.md 5 KB
      Loading…
  • SKILL.md 3.2 KB
    ---
    name: flutter-networking
    description: Build or review Flutter remote data and transport boundaries across HTTP, GraphQL, WebSocket, SSE, or Socket.IO. Use for API contracts, authenticated request transport, pagination, retries, reconnection, caching, and error mapping; route sign-in and session semantics to flutter-authentication and local storage ownership to flutter-persistence.
    ---
    
    # Flutter Networking
    
    Keep transport concerns at the service boundary and expose domain-meaningful results to the rest of the app.
    
    ## Select the mode
    
    - Handle ordinary HTTP request-response work with the rules below.
    - For GraphQL operations, generated models, normalized caches, optimistic writes, or subscriptions, read [GraphQL clients](references/graphql.md).
    - For WebSocket, SSE, Socket.IO, connection recovery, or live event delivery, read [Realtime transports](references/realtime-transports.md).
    - For REST or HTTP response debugging, undocumented fields, decoding drift, or comparing Swagger/OpenAPI with deployed behavior, read [HTTP response evidence](references/http-response-evidence.md).
    - Read both references for GraphQL subscriptions. Route stream races or subscription leaks to `dart-concurrency`, durable offline queues to `flutter-persistence`, and terminated-app alerts to `flutter-notifications`.
    - Audio/video capture, media tracks, playback, and call sessions belong to `flutter-media`; keep text/data transport and upload behavior here.
    
    ## Inspect
    
    Read current client, generated API code, interceptors, model generation, authentication, environment configuration, and tests. Preserve `http`, Dio, generated clients, or another established choice when it meets the requirement.
    
    ## Rules
    
    - Centralize base URLs, headers, timeouts, and environment selection without committing secrets.
    - Decode untrusted responses and messages defensively and distinguish transport, protocol, decoding, authentication, and domain failures.
    - Map wire models to domain models at an explicit boundary.
    - Retry or reconnect only when the operation and protocol make recovery safe; bound backoff, queues, and cancellation.
    - Refresh credentials through one coordinated path to avoid request storms.
    - Define pagination identity, ordering, duplicate handling, terminal conditions, and refresh behavior.
    - Apply cache policy deliberately; do not silently return stale data as fresh.
    - Avoid logging tokens, personal data, or full sensitive payloads.
    - Keep documented schema, documentation examples, controlled fixtures, and observed server responses as separate evidence. Do not present one observed payload as the complete contract or a mock as proof of deployed behavior.
    
    ## Verification
    
    Use deterministic fake servers or mock transports to cover success, malformed data, timeouts, cancellation, unauthorized refresh, retry exhaustion, pagination boundaries, reconnect and resume behavior, and offline behavior. Run integration tests against a real service only when credentials and environment are explicitly in scope. Report the execution surface and data source separately.
    
    ## Sources
    
    - [Flutter networking](https://docs.flutter.dev/data-and-backend/networking)
    - [JSON serialization](https://docs.flutter.dev/data-and-backend/serialization/json)
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.