SKILL.md
唯讀
名稱
iot
描述
使用 PlantUML 語法以及裝置與感測器 Stencil 圖示繪製物聯網(IoT)架構圖。最適合用於智慧家庭、工業物聯網(IIoT)、車隊管理、邊緣運算及感測器網路配置。
IoT 架構圖產生器
快速入門: 選擇裝置/感測器圖示 → 放置邊緣閘道器 → 連接至雲端服務 → 分組為不同區域 → 包裹在 ```plantuml 程式碼圍欄中。
⚠️ 重要: 請務必使用
```plantuml或```puml程式碼圍欄。切勿使用```text,否則將無法轉譯為圖表。
關鍵規則
- 每張圖表皆以
@startuml開頭並以@enduml結尾 - 典型的 IoT 資料流(裝置 → 邊緣 → 雲端)請使用
left to right direction - IoT 服務與裝置圖示請使用
mxgraph.aws4.*Stencil 語法 - 系統會自動套用預設顏色 — 您不需要手動指定
fillColor或strokeColor - 使用
rectangle "區域" { ... }或package "據點" { ... }進行分組 - 有向資料流使用
-->,非同步/事件驅動流使用..>(虛線)
完整 Stencil 參考: 請參閱 stencils/README.md 取得 9500+ 個可用圖示。
Mxgraph Stencil 語法
mxgraph.aws4.<icon> "Label" as <alias>
核心 IoT Stencils
| 類別 | Stencils | 用途 |
|---|---|---|
| IoT 平台 | iot_core, internet_of_things, iot_1click |
中央 IoT 中樞/訊息中介軟體(Message Broker) |
| 邊緣/閘道器 | greengrass, iot_device_gateway, freertos, iot_expresslink |
邊緣運算與裝置閘道器 |
| Greengrass | iot_greengrass_component, iot_greengrass_nucleus, iot_greengrass_stream_manager |
邊緣執行階段元件 |
| 裝置管理 | iot_device_management, iot_device_defender, iot_device_tester, iot_over_the_air_update |
裝置佈署、資安防禦與 OTA 更新 |
| 數據分析 | iot_analytics, iot_analytics_channel, iot_analytics_pipeline, iot_analytics_dataset, iot_analytics_data_store |
IoT 資料處理管道 |
| 事件/規則 | iot_events, iot_device_defender_iot_device_jobs |
事件偵測與工作執行 |
| 數位分身 | iot_twinmaker, iot_sitewise, iot_sitewise_asset, iot_sitewise_asset_model |
資產建模與視覺化 |
| 車隊/裝置群 | iot_fleetwise, iot_device_management_fleet |
車輛與裝置群遙測資料 |
裝置與感測器 Stencils
| 類別 | Stencils |
|---|---|
| 感測器 | sensor, iot_thing_temperature_sensor, iot_thing_humidity_sensor, iot_thing_vibration_sensor, iot_thing_temperature_humidity_sensor, iot_thing_temperature_vibration_sensor |
| 致動器 | actuator, iot_thing_relay, iot_thing_stacklight |
| 工業 | factory, iot_thing_industrial_pc, iot_thing_plc |
| 智慧家庭 | thermostat, alexa_enabled_device, alexa_smart_home_skill, camera, camera2 |
| 傳輸協定 | mqtt_protocol, iot_lorawan_protocol, iot_greengrass_protocol |
| 船隻/車輛 | iot_sailboat, iot_fleetwise |
| 機器人 | robomaker, iot_roborunner |
連線類型
| 語法 | 意義 | 使用情境 |
|---|---|---|
A --> B |
實線箭頭 | 同步 API/資料流 |
A ..> B |
虛線箭頭 | 非同步遙測/MQTT 發布 |
A -- B |
實線 | 實體/雙向連結 |
A --> B : "label" |
附標籤的連線 | 描述傳輸協定或資料 |
快速範例
@startuml
left to right direction
rectangle "Factory Floor" {
mxgraph.aws4.sensor "Temp\nSensor" as s1
mxgraph.aws4.iot_thing_plc "PLC" as plc
}
mxgraph.aws4.greengrass "Greengrass\nEdge" as gg
mxgraph.aws4.iot_core "IoT Core" as core
mxgraph.aws4.iot_analytics "IoT\nAnalytics" as analytics
s1 --> gg : MQTT
plc --> gg
gg --> core
core --> analytics
@enduml
IoT 架構類型
| 類型 | 用途 | 關鍵 Stencils | 範例 |
|---|---|---|---|
| 智慧工廠 | 工業物聯網監控 | sensor, iot_thing_plc, greengrass, iot_sitewise |
smart-factory.md |
| 智慧家庭 | 居家自動化 | thermostat, alexa_enabled_device, camera, iot_core |
smart-home.md |
| 車隊遙測 | 車輛車隊追蹤 | iot_fleetwise, iot_core, iot_analytics |
fleet-telemetry.md |
| 邊緣運算 | 邊緣端在地處理 | greengrass, freertos, iot_greengrass_component |
edge-computing.md |
| 數位分身 | 資產建模與模擬 | iot_twinmaker, iot_sitewise_asset_model, iot_sitewise |
digital-twin.md |
| 感測器網路 | 分散式感測器網狀網路 | sensor, iot_lorawan_protocol, iot_device_gateway |
sensor-network.md |
| 裝置管理 | 裝置群佈署與 OTA | iot_device_management, iot_device_defender, iot_over_the_air_update |
device-management.md |
| 機器人技術 | 機器人群編排管理 | robomaker, iot_roborunner, greengrass |
robotics.md |






