mcpField
I
iot

iot

github.com/markdown-viewer云与 DevOps3.4k3.0k 次安装3 周前更新
代码仓库

关于 iot

iot 是用于生成 IoT 架构图的技能,面向设计设备、边缘与云端数据流的用户。它以 AWS 图标模板展示设备、网关、服务和架构分组。

主要功能

  1. 01提供 AWS IoT 与设备图标模板
  2. 02展示设备、边缘和云端连接
  3. 03支持按区域或站点分组
  4. 04涵盖多种 IoT 架构类型

适用场景

  1. 01绘制智能工厂监控架构
  2. 02规划车队遥测数据流
  3. 03展示边缘计算组件
  4. 04描述数字孪生或传感器网络

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/markdown-viewer/skills --skill iot

安装后在 Claude Code 中输入/iot确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

examples/
device-management.md
digital-twin.md
edge-computing.md
fleet-telemetry.md
robotics.md
sensor-network.md
smart-factory.md
smart-home.md

详细介绍

IoT 架构图生成器

**快速开始:**选择设备/传感器图标 → 放置边缘网关 → 连接云服务 → 按区域分组 → 用 ```plantuml 围栏包裹。

⚠️ **IMPORTANT:**始终使用 ```plantuml 或 ```puml 代码围栏。切勿使用 ```text——它不会渲染为图表。

关键规则

  • 每张图都以 @startuml 开始,并以 @enduml 结束
  • 对于典型的 IoT 数据流(设备 → 边缘 → 云端),使用 left to right direction
  • IoT 服务和设备图标使用 mxgraph.aws4.* 模板语法
  • 默认颜色会自动应用——无需指定 fillColor 或 strokeColor
  • 使用 rectangle "Zone" { ... } 或 package "Site" { ... } 进行分组
  • 有向数据流使用 -->,异步/事件驱动的数据流使用 ..>(虚线)

**完整模板参考:**请参阅 stencils/README.md,其中提供了 9500 多个可用图标。

Mxgraph 模板语法

mxgraph.aws4.<icon> "Label" as <alias>
IoT 核心模板
类别模板用途
IoT 平台iot_core、internet_of_things、iot_1click中央 IoT 集线器/消息代理
边缘/网关greengrass、iot_device_gateway、freertos、iot_expresslink边缘计算和设备网关
Greengrassiot_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_storeIoT 数据处理管道
事件/规则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车辆和设备群遥测
设备和传感器模板
类别模板
传感器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 架构类型

类型用途关键模板示例
智能工厂工业物联网监控sensor、iot_thing_plc、greengrass、iot_sitewisesmart-factory.md
智能家居家庭自动化thermostat、alexa_enabled_device、camera、iot_coresmart-home.md
车队遥测车辆车队跟踪iot_fleetwise、iot_core、iot_analyticsfleet-telemetry.md
边缘计算在边缘侧进行本地处理greengrass、freertos、iot_greengrass_componentedge-computing.md
数字孪生资产建模与仿真iot_twinmaker、iot_sitewise_asset_model、iot_sitewisedigital-twin.md
传感器网络分布式传感器网格sensor、iot_lorawan_protocol、iot_device_gatewaysensor-network.md
设备管理车队配置与 OTAiot_device_management、iot_device_defender、iot_over_the_air_updatedevice-management.md
机器人机器人车队编排robomaker、iot_roborunner、greengrassrobotics.md

评论

支持 Markdown