关于 iot
iot 是用于生成 IoT 架构图的技能,面向设计设备、边缘与云端数据流的用户。它以 AWS 图标模板展示设备、网关、服务和架构分组。
主要功能
- 01提供 AWS IoT 与设备图标模板
- 02展示设备、边缘和云端连接
- 03支持按区域或站点分组
- 04涵盖多种 IoT 架构类型
适用场景
- 01绘制智能工厂监控架构
- 02规划车队遥测数据流
- 03展示边缘计算组件
- 04描述数字孪生或传感器网络
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ markdown-viewer/ skills --skill iot安装后在 Claude Code 中输入/iot确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
examples/device-management.mddigital-twin.mdedge-computing.mdfleet-telemetry.mdrobotics.mdsensor-network.mdsmart-factory.mdsmart-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 | 边缘计算和设备网关 |
| 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 | 车辆和设备群遥测 |
设备和传感器模板
| 类别 | 模板 |
|---|---|
| 传感器 | 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_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 |
评论
支持 Markdown