Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

mobile-networking

/mobile-networking

Implementuje i recenzuje integrację API w aplikacjach mobilnych na Flutter, Androidzie, iOS, React Native i Kotlin Multiplatform: klienty HTTP, paginację, anulowanie żądań, odświeżanie tokenów, wznawialne wysyłanie i cykl życia WebSocket.

Repozytorium
reis-mobile ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Implementuje i recenzuje integrację API w aplikacjach mobilnych na Flutter, Androidzie, iOS, React Native i Kotlin Multiplatform: klienty HTTP, paginację, anulowanie żądań, odświeżanie tokenów, wznawialne wysyłanie i cykl życia WebSocket.

Oryginalny opis (EN)

Implements and reviews mobile API integration across Flutter, Android, iOS, React Native and Kotlin Multiplatform. Use for HTTP clients, pagination, request cancellation, concurrent token refresh, resumable uploads and WebSocket lifecycle. Durable offline mutation queues belong to mobile-offline-sync.

Jak działa

  1. Pick the reference
  2. Define the request contract
  3. Recover without duplicating work
  4. Pagination, transfers and real time
  5. Verify and deliver
Sekcje z nagłówków SKILL.md, w oryginale · 45 linii, 549 słów
Podgląd SKILL.md
---
name: mobile-networking
description: Implements and reviews mobile API integration across Flutter, Android, iOS, React Native and Kotlin Multiplatform. Use for HTTP clients, pagination, request cancellation, concurrent token refresh, resumable uploads and WebSocket lifecycle. Durable offline mutation queues belong to mobile-offline-sync.
intents: [networking]
stacks: ["*"]
---

# Mobile Networking

Start from the [project brief](../../docs/agent-context.md). Locate the actual client, request/response models, repository, session owner and nearest tests. Read the server contract or observed sanitized responses before designing pagination, retries or upload recovery. Preserve the requested audit/implementation scope.

## Pick the reference

| Project | Read |
|---|---|
| Flutter | [references/flutter.md](references/flutter.md) |
| Android | [references/android.md](references/android.md) |
| iOS | [references/ios.md](references/ios.md) |
| React Native / Expo | [references/react-native.md](references/react-native.md) |
| Kotlin Multiplatform | [references/kotlin-multiplatform.md](references/kotlin-multiplatform.md) |

## Define the request contract

- Record endpoint, method, identity, input bounds, response mapping, timeout/deadline, cancellation owner and observable failure. Keep transport details out of UI components.
- Validate untrusted responses at the boundary. Distinguish transport, HTTP, decoding and domain failures without exposing bodies or credentials in user messages/logs.
- Scope cache keys and in-flight results to the account, query and filters. An account change invalidates the old generation; late responses cannot write into the new account's store.
- Propagate cancellation to the transport when supported and fence late completions regardless. Leaving a screen is not evidence that a mutation was rolled back on the server.

## Recover without duplicating work

- Treat a connection indicator as a hint; still handle request failure. Bound retries by attempt count/deadline, use backoff and honor applicable server retry instructions.
- Retry reads when their semantics permit it. Replay a mutation only when its server contract makes replay safe, for example an idempotency key retained for the same logical operation. A timed-out purchase/upload may already have succeeded.
- Coalesce refresh work for one active session. Waiting requests share its result, retry with a fresh credential at most within the declared budget, and do not recursively refresh a failing refresh endpoint.
- Check session generation before persisting refreshed credentials or replaying requests. Logout/account switch cancels or invalidates the old refresh; do not resurrect that session. Distinguish invalid credentials from temporary network failure.
- Use [offline sync](../mobile-offline-sync/SKILL.md) for durable queues, reconciliation and conflict resolution; use [security auth guidance](../mobile-security/references/auth.md) for the login protocol.

## Pagination, transfers and real time

- Follow the server's cursor/offset contract. Reset pagination on account/filter change, prevent overlapping page loads and handle an exhausted cursor explicitly. Do not infer the next cursor from item count unless the API specifies it.
- Avoid buffering large files entirely in memory. Report progress from transferred bytes where available; cancellation and failure must release file/stream resources.
- Resume only if the server protocol supports it. Persist the upload identity securely, query acknowledged state after interruption, handle expiry, and validate completion before publishing the resulting object. Background continuation depends on native OS APIs, not a timer.
- Give a WebSocket one owner. Bound reconnection, refresh authentication appropriately, and specify missed-event recovery with the server (cursor/replay/snapshot). Reconnect alone does not recover events lost while suspended.

## Verify and deliver

Test concurrent 401s, refresh failure, logout during refresh, late responses after account switch, timeout after server acceptance, malformed response, cancelled pagination, upload interruption and reconnect with missed events. Use a fake transport or local test server and virtual time for deterministic retries; test native background behavior separately.

Return the actual request/state contract, changed symbols, failure-to-UI mapping, tests run and unknown server guarantees. Reference [background execution](../mobile-performance/references/background.md) for scheduling and [observability](../mobile-observability/SKILL.md) for sanitized diagnostics.

Official source: [HTTP semantics, including idempotence and Retry-After](https://www.rfc-editor.org/rfc/rfc9110.html).
Pliki w paczce (6)
  • SKILL.md 5 KB
  • references/android.md 1 KB
  • references/flutter.md 1 KB
  • references/ios.md 1 KB
  • references/kotlin-multiplatform.md 1 KB
  • references/react-native.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · wrsilva/reis-mobile100MIT
j4flmao/agent-skills90MIT

Migawka bazy z 13.11.2026 · wersja paczki 0ca6c1296e72 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mobile-code-review
    Recenzuje kod mobilny pod kątem błędów produkcyjnych we Flutter, natywnym Androidzie i iOS, React Native oraz Kotlin Multiplatform: cykl życia, współbieżność, stan interfejsu i granice natywne, z dowodami file:line.
  • 100mobile-architecture
    Projektuje i recenzuje architekturę mobilną we Flutter, natywnym Androidzie i iOS, React Native oraz Kotlin Multiplatform: własność stanu, przepływ danych, moduły, nawigację i dane offline.
  • 85mobile-engineering
    Projektuje, wdraża i przegląda aplikacje mobilne Flutter, React Native, iOS i Android, z trybem offline, wydajnością i publikacją w sklepach.
  • 100senior-mobile
    Wspiera tworzenie aplikacji mobilnych na iOS (Swift, SwiftUI), Android (Kotlin, Compose), React Native i Flutter: scaffolding, nawigacja Expo Router, offline-first, wydajność i publikacja w App Store.
  • 100sota-mobile
    Wspiera tworzenie i audyt aplikacji mobilnych iOS i Android w Swift, Kotlin, React Native i Flutter, w tym publikację w sklepach, powiadomienia push, tryb offline i bezpieczeństwo.
  • 100mobile-dev
    Wspiera pracę nad aplikacją mobilną we Flutter, React Native, Androidzie (Kotlin) lub iOS: architektura, zarządzanie stanem, nawigacja, kanały platformowe, testy widżetów i urządzeń oraz gotowość do sklepów z aplikacjami.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.