agentleFS
jscott3201jscott3201/yet-more-skills/skills/edge-cloud-sync/SKILL.md

edge-cloud-sync

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Design or review offline edge/cloud telemetry and configuration synchronization: replay, ordering, acknowledgment, backpressure, and recovery. Not local WAL internals or a mandate to add a broker.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the current contract for event identity, device/site/tenant scope, ordering, and deduplication.

    line 13
  2. Distinctive:

    Use the existing protocol, storage, and deployment model.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Edge and Cloud Synchronization

Trace one record or operation from its origin through local persistence, transport, cloud admission, durable processing, and acknowledgment. Determine which guarantee the application actually promises at each boundary.

Define identity and ownership

Use the current contract for event identity, device/site/tenant scope, ordering, and deduplication. Keep observation time, receive time, and ordering metadata distinct. Clock time alone is not a reliable unique identifier or total order across reconnects and device restarts.

Establish who owns configuration and how conflicts are reconciled. Telemetry upload, configuration delivery, and physical command execution have different risks; do not reuse a data replay mechanism as command authorization. Preserve unknown or ambiguous command outcomes until reconciled.

Follow interruption and replay

Examine disconnects before and after local persistence, sending, server commit, and acknowledgment. A retry may deliver an already processed record. Deduplicate at the durable boundary required by the promised behavior, and define retention/expiry of deduplication state. Do not claim exactly-once behavior merely because the transport has acknowledgments.

Handle partial batches, reordered responses, checkpoint advancement, client or server restarts, and schema evolution. Advance a checkpoint only past work whose required acknowledgment has been established; do not discard unacknowledged data to make the queue look healthy.

Bound offline operation

State queue and disk limits, backpressure, overflow policy, retry pacing, and fairness across sites or streams. Preserve data quality and loss visibility when the configured capacity is exhausted. Test sustained offline behavior rather than only a brief network outage.

Use the existing protocol, storage, and deployment model. Do not add a broker, conflict framework, hosted service, or new persistence format without a demonstrated need and the relevant scope.

Verify end-to-end behavior

Use deterministic disconnect/restart seams and compare source records with durable downstream results. Cover duplicate delivery, lost acknowledgments, reordering, clock jumps, stale configuration, partial failure, quota exhaustion, and reconnect storms. A local queue test is not cloud durability evidence; a process-kill test is not a power-loss proof.

Report the tested guarantee, loss/duplication window if any, relevant resource bounds, and unrun platform or failure modes. Use language-specific storage and concurrency specialists for implementation details rather than duplicating them here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.