Python Azure Iot Edge Modules
GitHubOfficialFirst committed by SertxitoDistributed by GitHub
- Skill
- Tool integration
- Cloud and DevOps
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach to building and operating Python modules for Azure IoT Edge. It focuses on defining module contracts, runtime configurations, reliability patterns, and security controls. By utilizing provided templates and official Python best practices, it assists in creating modules for tasks such as protocol translation, telemetry enrichment, and local data processing.
What it does
- Defines module input/output contracts and message schemas.
- Specifies runtime environments, container strategies, and resource profiles.
- Implements reliability patterns like retries, backoff, and idempotent processing.
- Provides security checklists for secret management and least-privilege access.
- Structures deployment manifests and operational rollout strategies.
- Establishes validation matrices for functional and network-resilience testing.
When to use it
- When developing custom Python modules for Azure IoT Edge deployments.
- When defining communication interfaces and message routing for edge devices.
- When designing error-handling and retry logic for intermittent network conditions.
- When preparing deployment manifests and operational plans for edge modules.
Advantages
- Standardizes module architecture using consistent design templates.
- Integrates official Python documentation and coding standards.
- Promotes secure development practices by avoiding hardcoded secrets.
- Facilitates structured testing through defined validation matrices.
Usage examples
- “quiero crear un modulo Python para IoT Edge”
- The agent will guide you through defining the module's purpose, inputs, outputs, and runtime configuration using the provided design template.
- “como despliego modulos edge con manifest”
- The agent will assist in structuring the deployment manifest and defining the rollout strategy, including environment-specific configurations.
- “necesito filtrar/agregar telemetria antes de subirla”
- The agent will help design the module's processing logic, focusing on message schema, enrichment steps, and routing priorities.
- “como manejo desconexiones y reintentos en edge”
- The agent will provide guidance on implementing retry policies with exponential backoff, jitter, and local queueing strategies.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/github/python-azure-iot-edge-modules/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip python-azure-iot-edge-modules.zip -d .agents/skills
Documentation by Sertxito
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:
references/python-official-best-practices.md
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-builderfor platform-level architecture.appinsights-instrumentationfor telemetry instrumentation approaches.azure-resource-visualizerfor 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:
Module design brief (purpose, inputs, outputs).
Deployment model (image, manifest, env settings).
Reliability and error-handling strategy.
Security and operations checklist.
Test matrix (functional, chaos, performance, rollback).
Output Template
Use references/python-edge-module-template.md to structure implementation proposals and reviews.
Context and assumptions
Module architecture
Deployment and configuration
Reliability, security, observability
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.
Files
- ATTRIBUTION.mdAdded by AutoGineer891 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.2 KiB
- references/python-edge-module-template.md1.3 KiB
- references/python-official-best-practices.md2.2 KiB
references/python-edge-module-template.md
Python IoT Edge Module Template
Use this template to structure implementation proposals and reviews.
0) Official Python Baseline
Official references reviewed from https://www.python.org/ and https://docs.python.org/3/.
Language and stdlib usage validated against https://docs.python.org/3/reference/ and https://docs.python.org/3/library/.
Best practices reviewed from
references/python-official-best-practices.md.
1) Module Summary
Module name:
Business capability:
Inputs:
Outputs:
Trigger conditions:
2) Message Contract
Schema version:
Required fields:
Optional fields:
Error payload contract:
3) Runtime Configuration
Python version:
Base image:
Environment variables:
Desired properties:
Resource limits:
4) Resilience
Retry policy:
Backoff policy:
Queueing strategy:
Idempotency approach:
Timeout and circuit-breaker behavior:
5) Security
Secret source (never inline):
Identity and permissions:
Command authorization model:
Audit log requirements:
6) Observability
Health signals:
Business metrics:
Error metrics:
Correlation/trace requirements:
Alert thresholds:
7) Validation Matrix
Happy path tests:
Malformed payload tests:
Network interruption tests:
Throughput and latency tests:
Rollback validation:
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
Sertxito
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/python-azure-iot-edge-modules · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- Sertxito, stbenjam
AutoGineer is not affiliated with or endorsed by Sertxito or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download python-azure-iot-edge-modules.zip