agentleFS
dtsongdtsong/agentic-council/skills/sentinel-fleet-management/SKILL.md

fleet-management

Skill0 starsChanged 6 months agoApache-2.0View on GitHub

Use when designing fleet management infrastructure for IoT device fleets. Covers device provisioning, OTA firmware update strategy, telemetry pipeline design, fleet monitoring, remote management, and scaling projections. Do not use for firmware architecture (use embedded-architecture) or wireless protocol selection (use protocol-design).

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No user-provided values are used in commands or file paths.

    line 38

≈ “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

Fleet Management

Purpose

Design the fleet management infrastructure for an IoT device fleet, including device provisioning, OTA firmware update strategy, telemetry aggregation, and fleet-scale monitoring.

Scope Constraints

Produces fleet architecture recommendations covering provisioning, OTA, telemetry, and monitoring. Does not provision actual devices, deploy cloud infrastructure, or manage live certificates. Does not execute firmware builds or signing operations.

Inputs

  • Expected fleet size (current and projected)
  • Device hardware capabilities (storage, connectivity, compute)
  • Update frequency requirements
  • Monitoring and alerting requirements
  • Regulatory requirements (safety-critical updates, rollback mandates)

Input Sanitization

No user-provided values are used in commands or file paths. All inputs are treated as read-only analysis targets.

Procedure

Step 1: Design Device Provisioning

Plan how devices go from factory to operational:

  • Identity: Unique device ID (hardware serial, provisioned certificate)
  • Authentication: Device certificates (X.509), pre-shared keys, or cloud-provisioned tokens
  • Registration flow: First-boot sequence, cloud registration, owner assignment
  • Zero-touch: Can a device self-provision without manual intervention?
  • Factory integration: What happens on the manufacturing line?

Step 2: Design OTA Update System

Plan the firmware update lifecycle:

  • Partition scheme: A/B (dual partition for atomic swap), single with rollback region
  • Update delivery: Pull (device checks periodically) vs push (server initiates)
  • Delta updates: Full firmware image vs binary diff (saves bandwidth)
  • Integrity verification: Cryptographic signature verification before applying
  • Rollback mechanism: Automatic rollback if new firmware fails health check
  • Staged rollout: Canary (1%) → early (10%) → general (100%) with hold gates

Step 3: Design Telemetry Pipeline

Plan how device data reaches the cloud:

  • Data types: Health metrics (battery, signal, temperature), application data, error reports
  • Aggregation: On-device pre-aggregation to reduce bandwidth (send averages, not raw samples)
  • Transport: MQTT topics, HTTP batch uploads, or store-and-forward
  • Cloud ingestion: Message broker → stream processing → storage
  • Retention: Hot (real-time queries), warm (weekly), cold (archive)

Step 4: Design Monitoring and Alerting

Plan fleet-scale observability:

  • Health dashboards: Fleet-wide metrics (online %, firmware version distribution, battery levels)
  • Anomaly detection: Devices reporting unusual values, sudden offline clusters
  • Alert thresholds: Battery < 10%, signal < -90dBm, error rate > 1%, offline > 24h
  • Group operations: Query and act on device groups (by firmware version, region, owner)

Step 5: Design Remote Management

Plan remote device operations:

  • Configuration updates: Push configuration changes without firmware update
  • Remote diagnostics: Request debug logs, trigger self-test, read sensor state
  • Remote actions: Reboot, factory reset, enter recovery mode
  • Access control: Who can perform which operations on which devices

Step 6: Plan Scaling Strategy

Design for fleet growth:

  • Connection management: Connection limits per broker, load balancing
  • Update infrastructure: CDN for firmware binaries, rate limiting downloads
  • Database design: Time-series storage for telemetry, device registry scaling
  • Cost modeling: Per-device cloud cost at 1K, 10K, 100K, 1M devices

Progress Checklist

  • Step 1: Device provisioning flow designed
  • Step 2: OTA update system with rollback and staged rollout
  • Step 3: Telemetry pipeline with aggregation and retention
  • Step 4: Monitoring dashboards and alert thresholds defined
  • Step 5: Remote management operations and access control
  • Step 6: Scaling strategy with cost projections

Compaction resilience: If context was lost during a long session, re-read the Inputs section to reconstruct what fleet is being designed, check the Progress Checklist for completed steps, then resume from the earliest incomplete step.

Output Format

# Fleet Management Architecture

## Provisioning Flow

[Factory] → [Flash firmware + certificate] → [First boot] → [Cloud registration] → [Owner assignment] → [Operational]


| Step | Method | Duration | Manual? |
|------|--------|----------|---------|
| Identity | X.509 certificate | Factory | No |
| Registration | MQTT first-connect | <30s | No |
| Owner assignment | QR code scan | User-initiated | Yes |

## OTA Update Strategy
| Aspect | Approach |
|--------|----------|
| Partition scheme | A/B dual-partition |
| Delivery | Pull, 6-hour check interval |
| Format | Delta updates (bsdiff) |
| Verification | Ed25519 signature |
| Rollback | Automatic on 3 failed health checks |
| Staged rollout | 1% → 10% → 50% → 100% with 24h holds |

## Telemetry Pipeline

[Device] → [MQTT] → [Message Broker] → [Stream Processor] → [Time-Series DB] → [Dashboard]


| Data Type | Frequency | Aggregation | Retention |
|-----------|-----------|-------------|-----------|
| Health | 5 min | On-device avg | 90 days |
| Errors | Event-driven | None | 1 year |
| Application | 30 sec | 1-min rollups | 30 days |

## Monitoring Dashboard
| Metric | Threshold | Alert |
|--------|-----------|-------|
| Fleet online % | < 95% | Warning |
| Firmware current % | < 80% | Info |
| Battery critical | < 5% | Critical |
| Error rate | > 1% | Warning |

## Scaling Projections
| Fleet Size | Monthly Cost | Key Bottleneck |
|-----------|-------------|----------------|
| 1,000 | $X | None |
| 10,000 | $X | MQTT connections |
| 100,000 | $X | Telemetry storage |

Handoff

  • Hand off to embedded-architecture if firmware-level OTA partition or recovery mode design decisions arise during fleet planning.
  • Hand off to operator/observability-design if cloud-side observability infrastructure needs deeper design beyond fleet dashboards.

Quality Checks

  • Provisioning flow is zero-touch (no manual steps per device)
  • OTA updates are cryptographically signed and verified
  • Rollback is automatic — a bad update doesn't brick the fleet
  • Staged rollout has hold gates between stages
  • Telemetry pipeline handles device-side aggregation to reduce bandwidth
  • Monitoring has defined thresholds and alert escalation paths
  • Cost model scales linearly (not exponentially) with fleet size

Evolution Notes

<!-- Observations appended after each use -->

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.