Build and operate Python Azure IoT Edge modules with reliable messaging, deployment manifests, observability, security, and production readiness checks. Use when creating Python IoT Edge modules, deploying edge manifests, processing telemetry at the edge, handling disconnected operation, or validating IoT Edge readiness.
If documentation cannot be fetched, proceed with explicit assumptions and flag them clearly.
Procedure
Define the contract: module inputs, outputs, message schema, schema versioning, routes, priorities, and desired properties.
Specify runtime and packaging: Python version target, base image, container footprint, CVE hygiene, CPU and memory bounds, startup checks, and health checks.
Design reliability: retries with exponential backoff and jitter, graceful degradation, bounded local queueing, and idempotent replay handling.
Define security controls: no plaintext secrets, least-privilege behavior, secure transport, trusted certificate chain handling, and command traceability.
Describe deployment and operations: environment-specific manifests, pilot/staged/broad rollout, rollback criteria, SLOs, alerts, and observability.
Validate with a test matrix covering functional, chaos, performance, and rollback scenarios.
Module design areas
Area
Required decisions
Use case
Protocol adapter for serial/Modbus/OPC-UA, telemetry enrichment, local anomaly detection or inference, command orchestration, or local actuator control.
Inputs and outputs
Named inputs, output routes, schema version, critical telemetry priority, and normal telemetry route.
Configuration
Desired properties for dynamic config; reported properties for status and current config.
Packaging
Python runtime, image base, dependency pinning, startup command, health probe, and restart behavior.
Resources
CPU and memory bounds that match the edge device.
Operations
SLOs, alert conditions, logs, metrics, and rollout/rollback stages.
Reliability and security rules
Concern
Rule
Network variability
Use exponential backoff with jitter; avoid tight retry loops.
Offline mode
Buffer locally only with a bounded queue and clear drop policy.
Replay
Make processing idempotent for repeated messages.
Upstream failure
Degrade gracefully and preserve local control paths when required.
Secrets
Never embed secrets in Dockerfiles, source, or deployment manifests.
Transport
Use secure transport and validate the trusted cert chain.
Commands
Authorize and trace command handling and state changes.
Rollout
Never recommend direct production rollout without a pilot stage.
Progressive disclosure and bundled resources
references/python-edge-module-template.md: output structure for implementation proposals and reviews.
1---2name: python-azure-iot-edge-modules3description: Build and operate Python Azure IoT Edge modules with reliable messaging, deployment manifests, observability, security, and production readiness checks. Use when creating Python IoT Edge modules, deploying edge manifests, processing telemetry at the edge, handling disconnected operation, or validating IoT Edge readiness.4---56<!-- Generated from harness/github-copilot/skills/python-azure-iot-edge-modules/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Python Azure IoT Edge modules910Designs, implements, and validates Python-based Azure IoT Edge modules for telemetry processing, local inference, protocol translation, command orchestration, and edge-to-cloud integration.1112## When to invoke1314- "quiero crear un modulo Python para IoT Edge"15- "como despliego modulos edge con manifest"16- "necesito filtrar/agregar telemetria antes de subirla"17- "como manejo desconexiones y reintentos en edge"18- "Validate this Python IoT Edge module for production readiness."1920## Prerequisites and context2122Before recommending runtime behavior or deployment decisions, review current Azure IoT Edge documentation:2324- https://learn.microsoft.com/azure/iot-edge/25- https://learn.microsoft.com/es-es/azure/iot-edge/2627Before proposing Python implementation details, consult official Python sources:2829- https://www.python.org/30- https://docs.python.org/3/31- https://docs.python.org/3/reference/32- https://docs.python.org/3/harness/github-copilot/33- `references/python-official-best-practices.md`3435If documentation cannot be fetched, proceed with explicit assumptions and flag them clearly.3637## Procedure38391. Define the contract: module inputs, outputs, message schema, schema versioning, routes, priorities, and desired properties.402. Specify runtime and packaging: Python version target, base image, container footprint, CVE hygiene, CPU and memory bounds, startup checks, and health checks.413. Design reliability: retries with exponential backoff and jitter, graceful degradation, bounded local queueing, and idempotent replay handling.424. Define security controls: no plaintext secrets, least-privilege behavior, secure transport, trusted certificate chain handling, and command traceability.435. Describe deployment and operations: environment-specific manifests, pilot/staged/broad rollout, rollback criteria, SLOs, alerts, and observability.446. Validate with a test matrix covering functional, chaos, performance, and rollback scenarios.4546## Module design areas4748| Area | Required decisions |49| --- | --- |50| Use case | Protocol adapter for serial/Modbus/OPC-UA, telemetry enrichment, local anomaly detection or inference, command orchestration, or local actuator control. |51| Inputs and outputs | Named inputs, output routes, schema version, critical telemetry priority, and normal telemetry route. |52| Configuration | Desired properties for dynamic config; reported properties for status and current config. |53| Packaging | Python runtime, image base, dependency pinning, startup command, health probe, and restart behavior. |54| Resources | CPU and memory bounds that match the edge device. |55| Operations | SLOs, alert conditions, logs, metrics, and rollout/rollback stages. |5657## Reliability and security rules5859| Concern | Rule |60| --- | --- |61| Network variability | Use exponential backoff with jitter; avoid tight retry loops. |62| Offline mode | Buffer locally only with a bounded queue and clear drop policy. |63| Replay | Make processing idempotent for repeated messages. |64| Upstream failure | Degrade gracefully and preserve local control paths when required. |65| Secrets | Never embed secrets in Dockerfiles, source, or deployment manifests. |66| Transport | Use secure transport and validate the trusted cert chain. |67| Commands | Authorize and trace command handling and state changes. |68| Rollout | Never recommend direct production rollout without a pilot stage. |6970## Progressive disclosure and bundled resources7172- `references/python-edge-module-template.md`: output structure for implementation proposals and reviews.73- `references/python-official-best-practices.md`: baseline Python quality criteria.7475## Related primitives7677| Name | Type | Use it when |78| --- | --- | --- |79| `azure-smart-city-iot-solution-builder` | skill | The request is platform-level smart city IoT architecture and phased rollout. |80| `appinsights-instrumentation` | skill | The request focuses on telemetry instrumentation patterns. |81| `azure-resource-visualizer` | skill | The request needs architecture diagrams or dependency mapping. |8283## Edge module quality vocabulary8485Keep designs `production-focused`, include `error-handling`, and check current `release/version` guidance before making runtime recommendations.8687## Output template8889```markdown90### Python Azure IoT Edge module result9192**Status:** design ready | implementation plan | review findings | blocked93**Context and assumptions:** <runtime, device, connectivity, documentation assumptions>9495## 1. Module design brief96- Purpose: <module purpose>97- Inputs: <module inputs>98- Outputs: <module outputs>99- Message schema/version: <schema and versioning policy>100101## 2. Deployment model102- Image: <base image and tag policy>103- Manifest settings: <routes, env, desired properties>104- Resource limits: <CPU/memory>105106## 3. Reliability and error handling107- Retries: <backoff and jitter>108- Offline behavior: <queue, bounds, drop policy>109- Idempotency: <replay handling>110111## 4. Security and operations checklist112- <identity, secrets, cert chain, command audit, health, SLOs>113114## 5. Test matrix115| Test | Method | Expected result |116| --- | --- | --- |117| Functional | <case> | <result> |118| Chaos | <disconnect/restart> | <result> |119| Performance | <load> | <result> |120| Rollback | <rollback condition> | <result> |121```122123## Quality gate124125- [ ] Azure IoT Edge and Python official documentation were reviewed or assumptions were stated.126- [ ] Module inputs, outputs, message schema, routes, and desired properties are defined.127- [ ] Deployment model covers image, manifest, env settings, health probes, and restart behavior.128- [ ] Reliability strategy includes backoff with jitter, bounded buffering, and idempotency.129- [ ] No plaintext secrets are placed in Dockerfiles, source, or manifests.130- [ ] Rollout includes pilot, staged, broad, and rollback criteria.131- [ ] Test matrix covers functional, chaos, performance, and rollback tests.132133## References134135- [Azure IoT Edge](https://learn.microsoft.com/azure/iot-edge/)136- [Azure IoT Edge Spanish documentation](https://learn.microsoft.com/es-es/azure/iot-edge/)137- [Python](https://www.python.org/)138- [Python 3 documentation](https://docs.python.org/3/)139- [Python language reference](https://docs.python.org/3/reference/)140- [Python standard library](https://docs.python.org/3/harness/github-copilot/)
Run npx skillmds@latest add paulasilvatech/python-azure-iot-edge-modules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Build and operate Python Azure IoT Edge modules with reliable messaging, deployment manifests, observability, security, and production readiness checks. Use when creating Python IoT Edge modules, deploying edge manifests, processing telemetry at the edge, handling disconnected operation, or validating IoT Edge readiness. It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
paulasilvatech (@paulasilvatech) published this skill. Their other Agent Skills are listed on their SkillMD profile.