MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Python-Azure-Iot-Edge-Modules

Python-Azure-Iot-Edge-Modules是一款code方向的AI技能,核心价值是Build and operate Python Azure IoT Edge modules with robust messaging, deployment manifests, observability, and production readiness checks,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

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

Last verified on: 2026-05-30
mkdir -p ./skills/python-azure-iot-edge-modules && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/python-azure-iot-edge-modules/SKILL.md -o ./skills/python-azure-iot-edge-modules/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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:


- https://learn.microsoft.com/azure/iot-edge/

- https://learn.microsoft.com/es-es/azure/iot-edge/


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:


- https://www.python.org/

- https://docs.python.org/3/

- https://docs.python.org/3/reference/

- https://docs.python.org/3/library/

- 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-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.

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Python code quality enforcement
  • Dependency management

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Python-Azure-Iot-Edge-Modules to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Python-Azure-Iot-Edge-Modules compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Python-Azure-Iot-Edge-Modules?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Python-Azure-Iot-Edge-Modules?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/python-azure-iot-edge-modules/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills