network-resilience

network-resilience is a skill for Claude Code from Kaguara/emerging-market-skills. It costs 105 tokens per session (2,726 once invoked), scanned A, original, MIT.

A design and review guide for features that depend on unreliable, slow, expensive, or metered internet connections. It covers what happens when requests are interrupted or appear to succeed without clear confirmation.

In plain words
What is it for?
Use it for offline behavior, queued actions, retries, synchronization, conflict handling, timeouts, and data-saving modes. It helps apps show pending or failed work honestly.
Why use it?
It prevents lost updates, duplicate actions, confusing error states, and unnecessary data costs when a connection drops or changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the emerging-market-skills plugin — 7 skills shipped together

Good fit Use it for offline behavior, queued actions, retries, synchronization, conflict handling, timeouts, and data-saving modes. It helps apps show pending or failed work honestly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kaguara/emerging-market-skills/network-resilience
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.

Any agent
npx skills add Kaguara/emerging-market-skills --skill network-resilience
Clone the repo
git clone --depth 1 https://github.com/Kaguara/emerging-market-skills

Made for: Claude Code.

Or install emerging-market-skills, the plugin that ships this one along with the rest of its 7 skills.

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

agentmods badge for network-resilience

README.md
[![agentmods](https://agentmods.dev/badge/skills/kaguara/emerging-market-skills/network-resilience/github.svg)](https://agentmods.dev/skills/kaguara/emerging-market-skills/network-resilience)
Your own site
<a href="https://agentmods.dev/skills/kaguara/emerging-market-skills/network-resilience"><img src="https://agentmods.dev/badge/skills/kaguara/emerging-market-skills/network-resilience/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.

agentmods 80×15 button for network-resilience

Your own site · 80×15
<a href="https://agentmods.dev/skills/kaguara/emerging-market-skills/network-resilience"><img src="https://agentmods.dev/badge/skills/kaguara/emerging-market-skills/network-resilience.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00105 $0.02726
Opus 5 $0.00053 $0.01363
Sonnet 5 $0.00021 $0.00545
Haiku 4.5 $0.00011 $0.00273

Measured 12d ago against content hash 8a3b03639ecd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

network-resilience scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit_handlers.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const res = await fetch(intent.url, {
skills/network-resilience/SKILL.md · 260 lines

How it starts

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

Network resilience

The constraint

The connection is not slow. It is intermittent, asymmetric, and dishonest — it disappears mid-request, reports itself as live while carrying no traffic to your origin, and costs the user money per megabyte from a prepaid bundle they top up in fifty-cent increments. Latency to your origin is 300–800ms before congestion. The device changes network three times on a matatu ride to work.

Design for a connection that fails ambiguously. Total failure is easy: you show an error. The expensive case is the request that neither succeeds nor fails, and the user who taps again.

Hard rules

ID Rule Severity
NET-001 Render from local state first; never block first paint on a network call. critical
NET-002 Queue every state-changing request durably before attempting it. critical
NET-003 Every state-changing request carries a client-generated idempotency key. critical
NET-004 Pending, queued, and failed states are visible and honest in the UI. critical
NET-005 Set explicit request timeouts sized for the target network, not the default. warning
NET-006 Retry with capped exponential backoff and jitter; never tight-loop. warning
NET-007 Treat the connectivity flag as a hint, not a fact. warning
NET-008 Honour metered-connection and data-saver signals. warning
NET-009 Declare a conflict-resolution policy for every entity that syncs. warning
NET-010 Batch and compress; minimise round trips over payload elegance. advisory
NET-011 Size a partner integration for their slowest component, not for their API's stated limits. critical

Full detection criteria and remedies in rules.yml.

Judgment

Offline-first is not free, and it is not always right. A durable queue costs storage, a sync engine, and install size — and install size costs you installs (see payload-budgets). The test is whether the user's intent survives the app being killed. A "like" does not need to; a loan repayment does. Apply NET-002 to actions where losing the intent costs the user money, time, or a trip, and let the rest fail loudly and cheaply.

Read the full file on GitHub · 260 lines

Files

What ships with it

2 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. 12d ago First seen · 260 lines · 105 tokens per session scan A 8a3b03639ecd

Subscribe to this mod's changes

network-resilience is a skill published in the GitHub repository Kaguara/emerging-market-skills (7 stars, last pushed 17d ago), licensed MIT. It adds 105 tokens to every session and 2,726 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

powersync

Best practices for building and maintaining applications with PowerSync: Cloud and self-hosted setup, sync configuration, client SDK usage, backend integration (Supabase, custom Postgres, MongoDB, Azure DocumentDB, MySQL, MSSQL), schema changes, watch and reactive queries (useQuery), attachments, the upload queue, and…

powersync-ja/agent-skills · 197 tokens

add-matrix

Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.

nanocoai/nanoclaw · 19 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens

voiden

Create and edit Voiden .void files for API testing. Covers the .void file format and all enabled extension block types.

VoidenHQ/voiden · 28 tokens

cognito

AWS Cognito user authentication and authorization service. Use when setting up user pools, configuring identity pools, implementing OAuth flows, managing user attributes, or integrating with social identity providers.

itsmostafa/aws-agent-skills · 38 tokens