network-connectivity

A Flutter app feature that watches whether the device can reach the network and shows a shared offline banner when it cannot. It combines connection status with real API results to avoid misleading warnings.

In plain words
What is it for?
Use it when adding network monitoring, offline indicators, or features that need to respond to connectivity changes.
Why use it?
It helps distinguish a usable internet connection from cases such as captive portals or blocked services that can make basic connection checks unreliable.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/launch52-ai/flutter-template/network-connectivity
Any agent
npx skills add launch52-ai/flutter-template --skill network-connectivity
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code, Codex.

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,381 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.01381
Opus 5 $0.00019 $0.00691
Sonnet 5 $0.00008 $0.00276
Haiku 4.5 $0.00004 $0.00138

Measured 2d ago against content hash 78888c7ba31a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

network-connectivity 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 2d 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.

.claude/skills/network-connectivity/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Network Connectivity

Global network connectivity monitoring with automatic offline banner display. Uses smart detection that combines connectivity_plus status with actual API request success to avoid false negatives from government blocks or captive portals.

When to Use This Skill

  • Adding network connectivity monitoring to an app
  • Implementing a global offline banner/indicator
  • Setting up connectivity-aware features
  • User asks "offline banner", "network status", "connectivity monitoring"

When NOT to Use This Skill

  • Error handling for failed API calls - Use /data which has NetworkFailure types
  • Retry logic - Handled in repository layer via /data patterns
  • Offline data caching - Use /data caching patterns
  • NetworkFailure types - Already in /core errors/failures.dart

Quick Reference

Dependencies

dependencies:
  connectivity_plus: ^6.0.0

Core Components

Component Purpose
ConnectivityService Wraps connectivity_plus, provides stream
ActualConnectivity Smart notifier combining library + API success
ConnectivityInterceptor Dio interceptor reporting request success
ConnectivityBanner Global overlay widget for offline banner
ConnectivityWrapper Root widget that manages banner display

Smart Detection

The connectivity_plus library can report false negatives when:

  • Government blocks connectivity check endpoints
  • Captive portals intercept requests
  • DNS issues affect only certain domains

Solution: If any real API request succeeds, override "offline" status.

Scenario Library Says API Result Actual Status
Normal online online success online
Normal offline offline fails offline
Blocked endpoints offline success online
Captive portal online fails online (until timeout)

Connectivity States

State Meaning UI Action
wifi Connected via WiFi Hide banner
mobile Connected via mobile data Hide banner
ethernet Connected via ethernet Hide banner
none No connectivity Show banner

Read the full file on GitHub · 200 lines

Files

What ships with it

7 files 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.

Changes

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.

  1. 2d ago First seen · 200 lines · 38 tokens per session scan A 78888c7ba31a

Subscribe to this mod's changes

network-connectivity is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 6mo ago), licensed MIT. It adds 38 tokens to every session and 1,381 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

merge-seed

Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.

kriasoft/react-starter-kit · 49 tokens

django-celery-expert

Expert Django Celery guidance for asynchronous task processing. Use when designing background tasks, configuring Celery workers, handling task retries and errors, optimizing Celery performance, implementing periodic tasks with Celery Beat, or setting up production monitoring for Celery. Do not use for general Django…

wilfredinni/django-starter-template · 115 tokens

django-expert

Expert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing database performance; implementing authentication; writing tests; or working with Django REST Framework. Follows Django best practices and modern patterns.

wilfredinni/django-starter-template · 55 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

kriasoft/react-starter-kit · 94 tokens

setup

Interactive project setup from the ai-project-template — replaces the static SETUPGUIDE.md with a guided, multi-step workflow.

TheSmuks/ai-project-template · 26 tokens

template-guide

Navigate template conventions, audit compliance, and guide upgrades for ai-project-template repos.

TheSmuks/ai-project-template · 18 tokens