All skills
github avatar

/python-azure-iot-edge-modules

@4214189 official
by githubgithub/awesome-copilot40k stars
5,040

Build and operate Python Azure IoT Edge modules with robust messaging, deployment manifests, observability, and production readiness checks.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/python-azure-iot-edge-modules

This session only. Nothing lands on disk.

SKILL.md

≈43 tokens always: the name and description. ≈1k when used: this file. ≈891 more on demand in 2 files.

Python Azure IoT Edge Modules

Use this skill to design, implement, and validate Python-based IoT Edge modules for telemetry processing, local inference, protocol translation, and edge-to-cloud integration.

When To Use

Use this skill for requests like:

  • "quiero crear un modulo Python para IoT Edge"
  • "como despliego modulos edge con manifest"
  • "necesito filtrar/agregar telemetria antes de subirla"
  • "como manejo desconexiones y reintentos en edge"

Mandatory Docs Review

Before recommending runtime behavior or deployment decisions, review:

Minimum checks:

  • Runtime architecture and module lifecycle.
  • Supported host OS and versions.
  • Deployment model and configuration flow.
  • Current release/version guidance.

If documentation cannot be fetched, proceed with explicit assumptions and flag them clearly.

Python Official References and Best Practices (Required)

Before proposing Python implementation details, consult official Python sources:

Prefer official docs over community snippets unless there is a specific compatibility reason to deviate.

Goals

  • Deliver module architecture and implementation plan that is production-focused.
  • Ensure reliable edge messaging under network variability.
  • Provide deployment, observability, and validation artifacts.

Module Use Cases

  • Protocol adapter (serial/Modbus/OPC-UA to IoT message format).
  • Telemetry enrichment and normalization.
  • Local anomaly detection or inference.
  • Command orchestration and local actuator control.

Delivery Workflow

1) Contract and Interfaces

Define:

  • Module inputs and outputs.
  • Message schema and versioning policy.
  • Routes and priorities for normal vs critical telemetry.
  • Desired properties used for dynamic configuration.

2) Runtime and Packaging

Specify:

  • Python runtime version target.
  • Container image strategy (base image, slim footprint, CVE hygiene).
  • Resource profile (CPU/memory bounds).
  • Startup and health checks.

3) Reliability Design

Implement and validate:

  • Retries with exponential backoff and jitter.
  • Graceful degradation on upstream failures.
  • Local queueing strategy where needed.
  • Idempotent processing for replayed messages.

4) Security Controls

Require:

  • No plaintext secrets in code or manifest.
  • Least-privilege module behavior.
  • Secure transport and trusted cert chain handling.
  • Traceability for command handling and state changes.

5) Deployment and Operations

Define:

  • Environment-specific deployment manifests.
  • Rollout strategy (pilot, staged, broad).
  • Rollback criteria.
  • SLOs and alerting conditions.

Reuse Other Skills

When relevant, combine with:

  • azure-smart-city-iot-solution-builder for platform-level architecture.
  • appinsights-instrumentation for telemetry instrumentation approaches.
  • azure-resource-visualizer for architecture diagrams and dependency mapping.

Also use references/python-official-best-practices.md as baseline quality criteria for module design and implementation guidance.

Required Output

Always provide:

  1. Module design brief (purpose, inputs, outputs).
  2. Deployment model (image, manifest, env settings).
  3. Reliability and error-handling strategy.
  4. Security and operations checklist.
  5. Test matrix (functional, chaos, performance, rollback).

Output Template

Use references/python-edge-module-template.md to structure implementation proposals and reviews.

  1. Context and assumptions
  2. Module architecture
  3. Deployment and configuration
  4. Reliability, security, observability
  5. Validation and rollout plan

Guardrails

  • Do not recommend direct production rollout without pilot stage.
  • Do not embed secrets in Dockerfiles, source, or manifests.
  • Do not omit health probes, restart behavior, and rollback criteria.

Source: SKILL.md on GitHub

No alerts10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    The skill provides comprehensive guidelines and templates for developing Azure IoT Edge modules following security and reliability best practices. It includes instructions to avoid hardcoded secrets, implement least-privilege access, and validate external inputs.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: LOW · No issues

Signed by skilld at 4214189. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated 2 months ago
  • Python
  • azure-iot-edge
  • iot
  • modules
  • messaging
  • deployment
  • edge-computing
  • telemetry
  • containerization

README badge

README badge for github/awesome-copilot/python-azure-iot-edge-modules

Builds and deploys Python modules for Azure IoT Edge with messaging, deployment manifests, reliability patterns (retries, local queuing, graceful degradation), and production readiness validation. Targets protocol adapters, telemetry enrichment, local inference, and edge-to-cloud integration on IoT Edge runtime.

Generated from the current SKILL.md.

What Python versions does this skill support?
The skill targets Python runtime versions compatible with Azure IoT Edge. Consult https://docs.python.org/3/ and Azure IoT Edge official documentation for supported versions before implementation.
Can I use this skill for protocol translation (Modbus, OPC-UA, serial)?
Yes. The skill explicitly covers protocol adapters that translate serial, Modbus, or OPC-UA data into IoT message format for edge modules.
Does this skill include deployment manifests?
Yes. The skill requires environment-specific deployment manifests, resource profiles, health checks, and rollout strategies as part of the delivery.
What does this skill do about network failures and retries?
The skill mandates reliability design including retries with exponential backoff and jitter, graceful degradation, local queueing, and idempotent message processing under network variability.
Does this skill handle secrets and security?
Yes. The skill requires no plaintext secrets in code or manifests, least-privilege behavior, secure transport, trusted certificate chains, and audit trails for commands and state changes.

Generated from the current SKILL.md. These answers refresh after source changes.