python-azure-iot-edge-modules

โดย github

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

npx skills add https://github.com/github/awesome-copilot --skill python-azure-iot-edge-modules

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.

Skills เพิ่มเติมจาก github

console-rendering
github
คำแนะนำสำหรับการใช้ระบบเรนเดอร์คอนโซลที่ใช้ struct tag ใน Go
official
acquire-codebase-knowledge
github
ใช้ทักษะนี้เมื่อผู้ใช้ขอให้ทำแผนที่ จัดทำเอกสาร หรือเริ่มต้นใช้งานในโค้ดเบสที่มีอยู่จริง โดยจะเริ่มทำงานเมื่อมีข้อความแจ้งเช่น "ทำแผนที่โค้ดเบสนี้" "จัดทำเอกสาร…
official
acreadiness-assess
github
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
official
acreadiness-generate-instructions
github
สร้างไฟล์คำแนะนำ AI agent ที่ปรับแต่งตามคำสั่ง AgentRC instructions สร้างไฟล์ .github/copilot-instructions.md (ค่าเริ่มต้น แนะนำสำหรับ Copilot ใน VS…)
official
acreadiness-policy
github
ช่วยผู้ใช้เลือก เขียน หรือใช้ AgentRC policy นโยบายปรับแต่งการให้คะแนนความพร้อมโดยปิดการตรวจสอบที่ไม่เกี่ยวข้อง เปลี่ยนระดับผลกระทบ/ระดับ การตั้งค่า…
official
add-educational-comments
github
เพิ่มความคิดเห็นเชิงการศึกษาให้กับไฟล์โค้ดเพื่อเปลี่ยนให้เป็นแหล่งเรียนรู้ที่มีประสิทธิภาพ ปรับระดับความลึกและน้ำเสียงของคำอธิบายตามระดับความรู้ที่กำหนดได้สามระดับ: ผู้เริ่มต้น ระดับกลาง และระดับสูง ขอไฟล์โดยอัตโนมัติหากไม่มีไฟล์ที่ให้ไว้ พร้อมการจับคู่รายการแบบมีหมายเลขเพื่อการเลือกที่รวดเร็ว ขยายไฟล์ได้สูงสุด 125% โดยใช้เฉพาะความคิดเห็นเชิงการศึกษา (ขีดจำกัดสูงสุด: 400 บรรทัดใหม่; 300 บรรทัดสำหรับไฟล์ที่มีมากกว่า 1,000 บรรทัด) รักษาการเข้ารหัสไฟล์ รูปแบบการเยื้อง ความถูกต้องของไวยากรณ์ และ...
official
adobe-illustrator-scripting
github
เขียน ดีบัก และปรับสคริปต์อัตโนมัติของ Adobe Illustrator ให้เหมาะสมโดยใช้ ExtendScript (JavaScript/JSX) ใช้เมื่อสร้างหรือแก้ไขสคริปต์ที่จัดการ...
official
agent-governance
github
นโยบายเชิงประกาศ การจำแนกเจตนา และเส้นทางการตรวจสอบสำหรับควบคุมการเข้าถึงเครื่องมือและพฤติกรรมของเอเจนต์ AI นโยบายการกำกับดูแลที่ประกอบได้กำหนดเครื่องมือที่อนุญาต/บล็อก ตัวกรองเนื้อหา การจำกัดอัตรา และข้อกำหนดการอนุมัติ — จัดเก็บเป็นคอนฟิกูเรชัน ไม่ใช่โค้ด การจำแนกเจตนาเชิงความหมายตรวจจับพรอมต์อันตราย (การขโมยข้อมูล การยกระดับสิทธิ์ การฉีดพรอมต์) ก่อนการดำเนินการเครื่องมือโดยใช้สัญญาณตามรูปแบบ ตัวตกแต่งการกำกับดูแลระดับเครื่องมือบังคับใช้นโยบายที่ฟังก์ชัน...
official