本文へスキップ
Skillpedia
APIとサーバー(バックエンド)40k · #7350

python-azure-iot-edge-modules

できること

このツールは、インターネットに接続されたデバイス(IoT Edge)上で動作する、Pythonのプログラム(モジュール)を作成・管理するのに役立ちます。これらのプログラムが正しく動作し、データを確実に送信でき、更新も簡単に行えるようにします。

使う場面

  • ✓デバイスでセンサーデータを処理するプログラムを作成するとき。
  • ✓デバイスからクラウドへデータを確実に送信したいとき。
  • ✓デバイスのデータを、クラウドが理解できる形式に変換したいとき。

スキルのリンク

https://github.com/github/awesome-copilot/blob/main/skills/python-azure-iot-edge-modules/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/github/awesome-copilot/blob/main/skills/python-azure-iot-edge-modules/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“温度センサーからデータを収集して、クラウドに送信するPythonモジュールを作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、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:

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

Use references/python-edge-module-template.md to structure implementation proposals and reviews.

  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.
よくある質問

IoT Edgeとは何ですか?

AIやその他のAzureサービスを、クラウドではなくエッジデバイス上で直接実行できるようにする、Microsoftのプラットフォームです。

IoT Edgeのモジュールとは何ですか?

IoT Edge上で動作するソフトウェアの部品です。Pythonで作ったようなカスタムアプリケーションや、Azureのサービスなどがあります。

IoT EdgeでPythonを使うのはなぜですか?

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
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル