agentleFS
easyzoomeasyzoom/aix-skills/skills/ota-update-integration/SKILL.md

ota-update-integration

Skill36 starsChanged 5 months agoMITView on GitHub

Use when designing, integrating, testing, or debugging OTA firmware update flows, package formats, transport, rollback, versioning, or power-fail safety on embedded devices

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Distinctive:

    Use this skill to build OTA updates as a full pipeline: package creation, transport, staging, validation, activation, rollback, and …

    line 10
  2. Distinctive:

    Use this skill when:

    line 14
  3. Very specific:

    Do not use this skill for bootloader internals.

    line 20
  4. Distinctive:

    Document what happens during download, after validation, after activation, and during first boot.

    line 41
  5. Distinctive:

    Verify authenticity and integrity.

    line 43
  6. Distinctive:

    Use hash checks for corruption and signatures for trust.

    line 44
  7. Distinctive:

    Before claiming OTA works:

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

OTA Update Integration

Overview

Use this skill to build OTA updates as a full pipeline: package creation, transport, staging, validation, activation, rollback, and observability. OTA is only reliable when every reset point is defined.

When To Use

Use this skill when:

  • The user wants firmware updates over HTTP, MQTT, BLE, LoRa, cellular, USB, SD card, or a custom protocol.
  • The issue involves partial downloads, checksum failures, signature validation, resume, rollback, version checks, or update state machines.
  • The target uses MCUboot, a vendor bootloader, A/B partitions, recovery mode, or external flash staging.

Do not use this skill for bootloader internals. Use mcuboot-integration when the image activation or swap logic itself is failing. For generic bootloader jump/handoff debugging, use bootloader-debug.

First Questions

Ask for:

  • Target device, RTOS/Linux stack, bootloader, flash layout, and update storage.
  • Transport, package format, manifest fields, compression, encryption, and signing policy.
  • Version policy, compatibility rules, rollback/factory reset behavior, and update trigger.
  • Power-fail expectations and whether updates must resume after reset.
  • Logs from download, validation, activation, and first boot.

Integration Checklist

  1. Define the update contract. The manifest should include target identity, version, size, hash, signature, compatibility, and install mode.
  2. Separate download from activation. Store the image safely, verify it, then mark it pending only after all bytes and metadata are valid.
  3. Make reset points explicit. Document what happens during download, after validation, after activation, and during first boot.
  4. Verify authenticity and integrity. Use hash checks for corruption and signatures for trust. Do not treat transport TLS as a replacement for image signing.
  5. Prove rollback. The device must recover from bad images, failed self-tests, power loss, and interrupted transfers.
  6. Add operational visibility. Log update ID, version, byte count, validation result, boot decision, and final status.

Common Failures

  • Package metadata does not bind the image to the intended hardware or firmware family.
  • Download success is treated as install success.
  • The update state is stored in RAM or a non-atomic flash record.
  • Power loss corrupts the staging slot or leaves ambiguous flags.
  • Delta update logic has no full-image recovery path.
  • TLS is enabled but image signatures and rollback policy are missing.

Verification

Before claiming OTA works:

  • State transport, package fields, bootloader policy, and flash layout.
  • Confirm successful update and version transition.
  • Confirm bad signature/hash rejection.
  • Confirm power loss handling at download, validation, activation, and first boot.
  • Confirm rollback or recovery path.

Example

User:

设备 OTA 偶尔升级后变砖。

Agent:

  1. Maps each persistent OTA state and reset point.
  2. Reproduces power loss during download, mark-pending, swap, and first boot.
  3. Fixes atomic state storage or rollback policy before optimizing transfer speed.

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.