Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildAI reviewed Jul 21, 2026

flutter-networking

Implement, fix, debug, review, or refactor Flutter networking code for HTTP/REST APIs, WebSocket realtime flows, authentication and token refresh, request headers, timeouts, retries, JSON parsing, caching, background isolates, repositories, services, and adaptation to existing http, Dio, Retrofit, Chopper, or custom API clients. Use when asked to add network requests, investigate network errors, harden API clients, handle auth, or validate Flutter network behavior.

v1.0.14 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install flutter-dart-skills-flutter-networking
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/flutter-dart-skills-flutter-networking/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Flutter Networking

You are a networking agent for Flutter apps. Turn existing project facts into
concrete API calls, clients, services, repositories, error handling, auth flows,
and validation steps. Do not treat this skill as a tutorial: inspect, adapt,
implement or review, and verify.

Core Contract

  1. Confirm the target is a Flutter or Dart package by inspecting pubspec.yaml,
    lib/, and existing networking, architecture, state-management, DI, auth,
    persistence, and test conventions.
  2. Preserve the project's current client stack unless there is no networking
    stack yet or the user explicitly asks to migrate. Adapt this skill's http
    examples to existing Dio, Retrofit, Chopper, generated clients, or custom
    wrappers instead of adding a parallel client.
  3. For implementation tasks, prefer small injectable clients/services with
    typed decode functions, clear timeouts, explicit status handling, cancellable
    or disposable resources where available, and testable boundaries.
  4. For review and debugging tasks, report broken status handling, leaked
    clients or subscriptions, unsafe token storage, missing timeouts, generic
    exceptions, UI-thread parsing of large responses, duplicate in-flight
    requests, and missing tests before broad style advice.
  5. Keep UI networking thin. Widgets may trigger commands or observe state, but
    services own endpoint calls, repositories own data policies, and state
    objects/ViewModels own UI state transitions.
  6. Validate with the repo's normal commands. Prefer flutter analyze, focused
    flutter test, and template-only dart format --output=none --set-exit-if-changed checks for copied Dart assets. Explain skipped checks.

Clarification Rules

Ask the user only when a high-impact decision cannot be inferred from the
project:

  • API contract, endpoint base URL, auth mechanism, or token lifecycle is absent;
  • realtime behavior needs product semantics such as reconnect policy, ordering,
    delivery guarantees, or offline behavior;
  • cache freshness, optimistic updates, pagination, or retry policy would change
    user-visible data correctness;
  • the project already has multiple networking stacks and the intended target is
    ambiguous.

If the project is unavailable or is not a Flutter project, give an implementation
plan or review based on the provided context, do not invent repository facts, and
state that code validation could not be performed.

Resource Routing

Read only the references and assets needed for the current task:

NeedReadUse for
Basic HTTP CRUD or JSON modelshttp-basics.mdGET/POST/PUT/DELETE, query parameters, typed parsing, FutureBuilder examples
Auth headers, token storage, login, refresh, OAuthauthentication.mdBearer/basic/API key auth, secure token handling, refresh flow, auth retry
Status codes, exceptions, timeouts, retries, UI errorserror-handling.mdAPI exception model, timeout/connection handling, retry policy, user-facing errors
Large JSON, caching, pagination, dedupe, timingperformance.mdcompute(), cache TTLs, request deduplication, pagination, instrumentation
WebSocket connection, JSON messages, reconnect, authwebsockets.mdChannels, stream subscriptions, connection status, reconnection, secure sockets
Reusable HTTP service templatehttp_service.dartCopy only after adapting base URL, decode functions, timeout, auth, and DI fit
Repository/cache templaterepository_template.dartCopy only when the app lacks an equivalent repository/cache boundary
Standalone examplesexamplesUse as illustrative snippets, then adapt imports, state management, disposal, and errors

Every copied asset must be adapted to the target app's package name, lints,
client stack, state-management style, and architecture before validation.

Networking Defaults

  • Use http: ^1.6.0 and web_socket_channel: ^3.0.3 only for new simple
    clients. For existing Dio, Retrofit, Chopper, or generated clients, follow the
    established stack.
  • Inject clients instead of constructing them deep inside services. Close owned
    http.Client, WebSocket channels, stream subscriptions, timers, and text
    controllers.
  • Treat 200..299 as success only when the endpoint contract allows it. Handle
    204 as empty and model methods as nullable or void instead of using
    unsafe casts.
  • Decode JSON into typed models at service/repository boundaries. Use
    background isolates for large responses, but avoid isolate overhead for small
    payloads.
  • Add request timeouts and retry only transient failures. Do not retry unsafe
    mutations unless the API is idempotent or the user confirms the product policy.
  • Store sensitive tokens with flutter_secure_storage: ^10.0.0 or the app's
    existing secure storage. Do not store access tokens in source code,
    shared_preferences, logs, or crash reports.
  • Use wss:// for WebSockets. Custom WebSocket headers via
    IOWebSocketChannel are IO-only; provide a browser-compatible alternative for
    Flutter web.
  • Do not manually set Accept-Encoding as a default with package:http; let the
    platform/client negotiate compression unless the project has a measured need.

Validation

Before finishing an implementation or review:

  1. Check that endpoint calls are behind testable services or repositories and
    that UI code does not own raw HTTP/WebSocket details.
  2. Check that every request has status handling, timeout/error handling, and
    typed parsing or an explicitly raw response contract.
  3. Check that auth secrets are stored and refreshed according to the app's
    existing secure storage and lifecycle rules.
  4. Check that clients, channels, subscriptions, controllers, and timers are
    disposed when owned by the code being changed.
  5. Run the closest available validation:
    • flutter analyze
    • focused flutter test suites for changed network/auth/repository code
    • dart format --output=none --set-exit-if-changed for copied Dart assets
    • this skill's scripts/verify-examples.sh when changing bundled examples or
      templates
  6. Report commands run, failures, skipped checks, and residual networking risks.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
flutter-testingWrite, fix, review, debug, and validate Flutter tests for apps, packages, and plugins. Use when adding unit tests, widget tests, integration tests, MethodChannel or plugin mocks, Mockito or mocktail test doubles, golden or accessibility checks, CI test commands, test failures, MissingPluginException, pump or pumpAndSettle problems, finder errors, build_runner mock generation, device integration testing, web integration testing, or flaky Flutter tests.3 installsdart-driftBuild, fix, audit, and migrate Drift persistence in Dart CLI, server-side, and non-Flutter desktop apps. Use when adding SQLite with package:drift/native.dart, configuring PostgreSQL with drift_postgres and package:postgres, writing type-safe tables, queries, writes, streams, and migrations, resolving build_runner or drift_dev failures, or validating Dart database code with code generation, analysis, tests, and migration checks.2 installsflutter-driftImplement, fix, review, migrate, test, or debug Drift persistence in Flutter apps using SQLite, drift_flutter, type-safe Dart queries, generated tables, StreamBuilder or Riverpod StreamProvider UI, write operations, transactions, schema migrations, web assets, isolate sharing, and local database testing. Use when a Flutter task mentions drift, local database storage, SQLite, reactive database streams, CRUD, schemaVersion, build_runner, drift_dev make-migrations, migration tests, or Flutter-specific database setup across mobile, web, or desktop.2 installsflutter-duit-bduiIntegrate, fix, review, migrate, test, or debug Duit / flutter_duit backend-driven UI in Flutter applications. Use when a task mentions DUIT, flutter_duit, backend-driven UI, BDUI, server-driven UI, XDriver, DuitViewHost, DuitRegistry, HTTP or WebSocket transports, custom Duit widgets, components, capability delegates, compile-time DUIT flags, or rendering JSON layouts from a backend.1 installs

More from Flutter/Dart Skills

View source →
flutter-adaptive-uiBuild, fix, review, and validate adaptive or responsive Flutter UIs for mobile, tablet, desktop, web, large screens, foldables, and mixed input devices. Use when creating breakpoint-driven layouts, responsive navigation, adaptive dialogs/lists/grids, keyboard/mouse/touch behavior, window-size decisions with MediaQuery or LayoutBuilder, or Capability and Policy patterns for platform-specific behavior.10 installsflutter-architectureDesign, refactor, review, or implement Flutter app architecture using MVVM, layered UI/Data/optional Domain boundaries, feature-first or layer-first project structure, repositories, services, dependency injection, Result and Command patterns, offline-first or optimistic UI flows. Use when asked to add a Flutter feature, audit layer dependencies, fix cross-feature imports, migrate to feature-first, choose architecture for a Flutter project, or create scalable maintainable Flutter code organization.8 installsflutter-animationsAdd, fix, refactor, debug, test, or explain Flutter animations and motion effects. Use when working with implicit animations such as AnimatedContainer, AnimatedOpacity, AnimatedSwitcher, and TweenAnimationBuilder; explicit animations using AnimationController, Tween, CurvedAnimation, AnimatedWidget, AnimatedBuilder, and built-in transitions; Hero/shared-element route transitions; staggered or sequenced animations; physics-based motion, gestures, springs, flings, scroll physics, curves, performance, accessibility, reduced motion, and animation lifecycle bugs.7 installsagents-md-generatorCreate, generate, update, repair, trim, or split minimal AGENTS.md files for repository roots and confirmed nested modules using progressive disclosure. Use for missing, bloated, contradictory, or outdated agent instructions, monorepos, services, packages, module context, and portable agent guidance without assuming any fixed agent folder structure.7 installsflutter-navigationImplement, fix, refactor, review, migrate, or validate Flutter navigation and routing. Use when working with Navigator, MaterialPageRoute, Router API, go_router, route guards, redirects, ShellRoute or StatefulShellRoute, nested Navigators, passing and returning route data, deep links, Android App Links, iOS Universal Links, custom URI schemes, Flutter web URL strategy, browser history, 404 routing, route tests, or navigation-state bugs.5 installsflutter-internationalizationAdd, fix, audit, and maintain Flutter internationalization with gen-l10n, ARB files, AppLocalizations, flutter_localizations, intl formatting, plural/select messages, RTL support, locale-specific number/date formatting, and localization build errors. Use when asked to add l10n or i18n, translate Flutter UI text, configure l10n.yaml, manage ARB translations, migrate away from package:flutter_gen imports, or troubleshoot generated localization code.4 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.248 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.176 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions145 installs

Frequently asked questions about flutter-networking

What does the flutter-networking skill do?

Implement, fix, debug, review, or refactor Flutter networking code for HTTP/REST APIs, WebSocket realtime flows, authentication and token refresh, request headers, timeouts, retries, JSON parsing, caching, background isolates, repositories, services, and adaptation to existing http, Dio, Retrofit, Chopper, or custom API clients. Use when asked to add network requests, investigate network errors, harden API clients, handle auth, or validate Flutter network behavior. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the flutter-networking skill?

Run `npx @skills-hub-ai/cli install flutter-dart-skills-flutter-networking` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/flutter-dart-skills-flutter-networking/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does flutter-networking work with?

flutter-networking runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the flutter-networking skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use flutter-networking after installing it?

In Claude Code, type `/flutter-dart-skills-flutter-networking` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the flutter-networking skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.