Skip to content
Back to skills

Offline Sync

ASecurity

Expert in data persistence, local-first architectures, and synchronization strategies for Capacitor/Android applications.

  • 225 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
databasesjavasqlreactdatabase

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill offline-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Offline Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Offline Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-offline-sync/badge)](https://www.skillsdirectory.com/skills/neversight-offline-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: offline-sync
description: Expert in data persistence, local-first architectures, and synchronization strategies for Capacitor/Android applications.
---

# Offline-First & Data Sync Specialist Skill

This skill enables the assistant to design and implement a robust synchronization system to solve the "No Offline Queue" issue (P0).

## Knowledge Areas

### 1. Local Storage (Native)
- **Room Database:** Implementing a local SQLite storage on the Android side to buffer location updates.
- **Data Entities:** Defining schema for `OfflineLocation` that matches the Supabase `registros_reten` structure.

### 2. Synchronization Strategies
- **Background Sync:** Using `WorkManager` for reliable data upload when connectivity returns.
- **Conflict Resolution:** Simple timestamp-based resolution for location data.
- **Batched Uploads:** Strategies for sending multiple records in a single HTTP request to Supabase to save battery.

### 3. Connection Monitoring
- **Network State:** Reacting to connectivity changes on both the Web (React) and Native (Java) sides.
- **Failover Logic:** Gracefully switching between direct-to-Supabase and local-first modes.

### 4. Data Integrity
- **De-duplication:** Ensuring the same location point isn't sent twice.
- **Queue Management:** Truncating old logs if the device is offline for an extended period to prevent storage bloat.

## Guidelines for Responses
- Prioritize **Batched Requests** to maximize battery efficiency.
- Always include **Error Handling** for network failures in sync logic.
- Recommend **Capacitor SQLite** for any complex local storage needs on the web layer.
- Ensure **Data Retention** is respected (deleting synced records).

Files in this skill

  • SKILL.md1.7 KB
  • description_ar.txt167 B
  • description_cn.txt103 B
  • description_de.txt125 B
  • description_en.txt122 B
  • description_es.txt126 B
  • description_fr.txt133 B
  • description_it.txt129 B
  • description_ja.txt145 B
  • description_ko.txt146 B
  • description_ru.txt204 B
  • description_tw.txt103 B
  • stats.json66 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.