python-azure-iot-edge-modules
ما الذي تفعله
تساعد هذه المهارة على بناء وإدارة برامج Python (وحدات) تعمل على الأجهزة المتصلة بالإنترنت (IoT Edge). تضمن أن تعمل هذه البرامج بشكل جيد، وترسل البيانات بشكل صحيح، وأن تكون سهلة التحديث.
متى تستخدمها
- ✓إنشاء برنامج لمعالجة بيانات المستشعرات على الجهاز.
- ✓إرسال البيانات من الجهاز إلى السحابة بموثوقية.
- ✓تحويل بيانات الجهاز إلى صيغة تفهمها السحابة.
رابط المهارة
https://github.com/github/awesome-copilot/blob/main/skills/python-azure-iot-edge-modules/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ وحدة Python لجمع بيانات درجة الحرارة من مستشعر وإرسالها إلى السحابة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تستخدم المهارة أفضل الممارسات في Python وإرشادات Microsoft Azure لبناء الوحدة. وتحدد طريقة تواصل الوحدة، ومعالجة انقطاعات الشبكة، وطريقة نشرها على الأجهزة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
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:
- 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-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.
الأسئلة الشائعة
ما هو IoT Edge؟
هي منصة من Microsoft تتيح تشغيل الذكاء الاصطناعي وخدمات Azure الأخرى مباشرة على الأجهزة الطرفية (Edge)، بدلاً من تشغيلها في السحابة.
ما هي «الوحدات» (modules) في IoT Edge؟
الوحدات هي مكونات البرمجيات التي تعمل على IoT Edge. يمكن أن تكون تطبيقات مخصصة، مثل تلك المبنية بـ Python، أو خدمات من Azure.
لماذا أستخدم Python لـ IoT Edge؟
Python لغة شائعة ومتعددة الاستخدامات، ولديها مكتبات كثيرة لمعالجة البيانات والتعلم الآلي والتواصل، مما يجعلها خياراً ممتازاً لبناء وحدات IoT Edge.
التفاصيل
الوصف الأصلي من المؤلف
Build and operate Python Azure IoT Edge modules with robust messaging, deployment manifests, observability, and production readiness checks.
repo: github/awesome-copilot
الشعبية
- نجوم GitHub
- 40k
- الترتيب
- #7350
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
acquire-codebase-knowledge
40kيساعد وكيلك على فهم مشروع برمجي موجود وتوثيقه. مفيد لتعريف الأشخاص الجدد أو للحصول على نظرة عامة على البنية.
acreadiness-assess
40kيمكّن وكيلك من تقييم جاهزية مشروع للذكاء الاصطناعي وإنشاء تقرير. مفيد لمعرفة مدى استعداد المشروع لاستخدام أدوات الذكاء الاصطناعي.
acreadiness-generate-instructions
40kيساعد وكيلك على إنشاء تعليمات لأدوات الذكاء الاصطناعي بناءً على تقييم. مفيد لتحسين طريقة تفاعل الذكاء الاصطناعي مع الكود وسد الثغرات المحددة.
acreadiness-policy
40kيمكّن وكيلك من تحديد أو تطبيق سياسات لتقييم مشاريع الذكاء الاصطناعي. مفيد لتوحيد طريقة تقييم المشاريع وضمان الالتزام.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.