Catalog
github/python-azure-iot-edge-modules

github

python-azure-iot-edge-modules

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

v1.0Latest
New~1.0kUpdated Jun 26, 2026

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

  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.
Files3
3 files · 4.5 KB

Select a file to preview

Overall Score

87/100

Grade

A

Excellent

Safety

92

Quality

85

Clarity

86

Completeness

82

Summary

This skill guides agents to design, implement, and validate Python-based Azure IoT Edge modules for production deployment. It emphasizes structured workflow (contract definition, runtime packaging, reliability design, security controls, deployment/operations), references official Python and Microsoft Azure documentation, and requires comprehensive validation artifacts before rollout.

Detected Capabilities

documentation reviewarchitecture designdeployment manifest generationsecurity checklist creationobservability planningtest matrix definition

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

iot edge modulesazure iot developmentedge telemetry processingprotocol adapter designedge-to-cloud integration

Risk Signals

INFO

References external domains (docs.python.org, learn.microsoft.com, packaging.python.org, peps.python.org, www.python.org) for up-to-date guidance

SKILL.md: Mandatory Docs Review section and references/python-official-best-practices.md
INFO

Requires secrets to never be embedded in code, Dockerfiles, or manifests; designates secret source as 'never inline'

SKILL.md: Security Controls guardrail and references/python-edge-module-template.md section 5
INFO

Mandates pilot stage before production rollout; no direct production deployment recommended

SKILL.md: Guardrails section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

docs.python.orglearn.microsoft.compackaging.python.orgpeps.python.orgwww.python.org

Use Cases

  • Design protocol adapters for serial/Modbus/OPC-UA to IoT message conversion
  • Implement telemetry enrichment and normalization at the edge
  • Build local anomaly detection or ML inference modules
  • Orchestrate commands and control local actuators from cloud
  • Handle network resilience and graceful degradation in disconnected scenarios

Quality Notes

  • Excellent security posture: explicit guardrails against embedding secrets, clear directive that secret sources must be external
  • Strong structure: five-phase delivery workflow with clear checkpoints (contract, runtime, reliability, security, operations)
  • Comprehensive validation framework: requires functional, chaos, performance, and rollback testing
  • Good reuse integration: references complementary skills and external knowledge bases (azure-smart-city-iot-solution-builder, appinsights-instrumentation, python-official-best-practices.md)
  • Template is well-organized with 7 major sections covering all critical IoT Edge concerns (message contract, runtime config, resilience, security, observability, validation)
  • Best practices document provides actionable coding and deployment guidance aligned with Python and PyPA standards
  • Instructions include Spanish language examples in 'When To Use' section, showing multilingual awareness
  • Clear accountability: each output section has defined ownership and mandatory completeness checks
  • Minor: no explicit error handling guidance for edge cases during design phase (e.g., malformed schemas, conflicting manifests)
Model: claude-haiku-4-5-20251001Analyzed: Jun 26, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use github/python-azure-iot-edge-modules in your dev environment

Command Palette

Search for a command to run...