[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWSHXPTPA67B9NX29E6ZB6":3,"skill-same:01M7AWSHXPTPA67B9NX29E6ZB6":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AWSHXPTPA67B9NX29E6ZB6","domain-iot",null,"Use when building IoT apps. Keywords: IoT, Internet of Things, sensor, MQTT, device, edge computing, telemetry, actuator, smart home, gateway, protocol, 物联网, 传感器, 边缘计算, 智能家居","wxxb789\u002Fmarkturbo","wxxb789","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49564443?v=4","01M7AWR3AB19SNE4ATARY9KV3W","01M7AWR3AZ5Y5ADAY47KF3RBRJ",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomain-iot\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: domain-iot\ndescription: \"Use when building IoT apps. Keywords: IoT, Internet of Things, sensor, MQTT, device, edge computing, telemetry, actuator, smart home, gateway, protocol, 物联网, 传感器, 边缘计算, 智能家居\"\nuser-invocable: false\n---\n\n# IoT Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| Unreliable network | Offline-first | Local buffering |\n| Power constraints | Efficient code | Sleep modes, minimal alloc |\n| Resource limits | Small footprint | no_std where needed |\n| Security | Encrypted comms | TLS, signed firmware |\n| Reliability | Self-recovery | Watchdog, error handling |\n| OTA updates | Safe upgrades | Rollback capability |\n\n---\n\n## Critical Constraints\n\n### Network Unreliability\n\n```\nRULE: Network can fail at any time\nWHY: Wireless, remote locations\nRUST: Local queue, retry with backoff\n```\n\n### Power Management\n\n```\nRULE: Minimize power consumption\nWHY: Battery life, energy costs\nRUST: Sleep modes, efficient algorithms\n```\n\n### Device Security\n\n```\nRULE: All communication encrypted\nWHY: Physical access possible\nRUST: TLS, signed messages\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need offline-first design\"\n    ↓ m12-lifecycle: Local buffer with persistence\n    ↓ m13-domain-error: Retry with backoff\n\n\"Need power efficiency\"\n    ↓ domain-embedded: no_std patterns\n    ↓ m10-performance: Minimal allocations\n\n\"Need reliable messaging\"\n    ↓ m07-concurrency: Async with timeout\n    ↓ MQTT: QoS levels\n```\n\n---\n\n## Environment Comparison\n\n| Environment | Stack | Crates |\n|-------------|-------|--------|\n| Linux gateway | tokio + std | rumqttc, reqwest |\n| MCU device | embassy + no_std | embedded-hal |\n| Hybrid | Split workloads | Both |\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| MQTT (std) | rumqttc, paho-mqtt |\n| Embedded | embedded-hal, embassy |\n| Async (std) | tokio |\n| Async (no_std) | embassy |\n| Logging (no_std) | defmt |\n| Logging (std) | tracing |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Pub\u002FSub | Device comms | MQTT topics |\n| Edge compute | Local processing | Filter before upload |\n| OTA updates | Firmware upgrade | Signed + rollback |\n| Power mgmt | Battery life | Sleep + wake events |\n| Store & forward | Network reliability | Local queue |\n\n## Code Pattern: MQTT Client\n\n```rust\nuse rumqttc::{AsyncClient, MqttOptions, QoS};\n\nasync fn run_mqtt() -> anyhow::Result\u003C()> {\n    let mut options = MqttOptions::new(\"device-1\", \"broker.example.com\", 1883);\n    options.set_keep_alive(Duration::from_secs(30));\n\n    let (client, mut eventloop) = AsyncClient::new(options, 10);\n\n    \u002F\u002F Subscribe to commands\n    client.subscribe(\"devices\u002Fdevice-1\u002Fcommands\", QoS::AtLeastOnce).await?;\n\n    \u002F\u002F Publish telemetry\n    tokio::spawn(async move {\n        loop {\n            let data = read_sensor().await;\n            client.publish(\"devices\u002Fdevice-1\u002Ftelemetry\", QoS::AtLeastOnce, false, data).await.ok();\n            tokio::time::sleep(Duration::from_secs(60)).await;\n        }\n    });\n\n    \u002F\u002F Process events\n    loop {\n        match eventloop.poll().await {\n            Ok(event) => handle_event(event).await,\n            Err(e) => {\n                tracing::error!(\"MQTT error: {}\", e);\n                tokio::time::sleep(Duration::from_secs(5)).await;\n            }\n        }\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| No retry logic | Lost data | Exponential backoff |\n| Always-on radio | Battery drain | Sleep between sends |\n| Unencrypted MQTT | Security risk | TLS |\n| No local buffer | Network outage = data loss | Persist locally |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Offline-first | Store & forward | Local queue + flush |\n| Power efficiency | Sleep patterns | Timer-based wake |\n| Network reliability | Retry | tokio-retry, backoff |\n| Security | TLS | rustls, native-tls |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Embedded patterns | domain-embedded |\n| Async patterns | m07-concurrency |\n| Error recovery | m13-domain-error |\n| Performance | m10-performance |\n","# IoT Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| Unreliable network | Offline-first | Local buffering |\n| Power constraints | Efficient code | Sleep modes, minimal alloc |\n| Resource limits | Small footprint | no_std where needed |\n| Security | Encrypted comms | TLS, signed firmware |\n| Reliability | Self-recovery | Watchdog, error handling |\n| OTA updates | Safe upgrades | Rollback capability |\n\n---\n\n## Critical Constraints\n\n### Network Unreliability\n\n```\nRULE: Network can fail at any time\nWHY: Wireless, remote locations\nRUST: Local queue, retry with backoff\n```\n\n### Power Management\n\n```\nRULE: Minimize power consumption\nWHY: Battery life, energy costs\nRUST: Sleep modes, efficient algorithms\n```\n\n### Device Security\n\n```\nRULE: All communication encrypted\nWHY: Physical access possible\nRUST: TLS, signed messages\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need offline-first design\"\n    ↓ m12-lifecycle: Local buffer with persistence\n    ↓ m13-domain-error: Retry with backoff\n\n\"Need power efficiency\"\n    ↓ domain-embedded: no_std patterns\n    ↓ m10-performance: Minimal allocations\n\n\"Need reliable messaging\"\n    ↓ m07-concurrency: Async with timeout\n    ↓ MQTT: QoS levels\n```\n\n---\n\n## Environment Comparison\n\n| Environment | Stack | Crates |\n|-------------|-------|--------|\n| Linux gateway | tokio + std | rumqttc, reqwest |\n| MCU device | embassy + no_std | embedded-hal |\n| Hybrid | Split workloads | Both |\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| MQTT (std) | rumqttc, paho-mqtt |\n| Embedded | embedded-hal, embassy |\n| Async (std) | tokio |\n| Async (no_std) | embassy |\n| Logging (no_std) | defmt |\n| Logging (std) | tracing |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Pub\u002FSub | Device comms | MQTT topics |\n| Edge compute | Local processing | Filter before upload |\n| OTA updates | Firmware upgrade | Signed + rollback |\n| Power mgmt | Battery life | Sleep + wake events |\n| Store & forward | Network reliability | Local queue |\n\n## Code Pattern: MQTT Client\n\n```rust\nuse rumqttc::{AsyncClient, MqttOptions, QoS};\n\nasync fn run_mqtt() -> anyhow::Result\u003C()> {\n    let mut options = MqttOptions::new(\"device-1\", \"broker.example.com\", 1883);\n    options.set_keep_alive(Duration::from_secs(30));\n\n    let (client, mut eventloop) = AsyncClient::new(options, 10);\n\n    \u002F\u002F Subscribe to commands\n    client.subscribe(\"devices\u002Fdevice-1\u002Fcommands\", QoS::AtLeastOnce).await?;\n\n    \u002F\u002F Publish telemetry\n    tokio::spawn(async move {\n        loop {\n            let data = read_sensor().await;\n            client.publish(\"devices\u002Fdevice-1\u002Ftelemetry\", QoS::AtLeastOnce, false, data).await.ok();\n            tokio::time::sleep(Duration::from_secs(60)).await;\n        }\n    });\n\n    \u002F\u002F Process events\n    loop {\n        match eventloop.poll().await {\n            Ok(event) => handle_event(event).await,\n            Err(e) => {\n                tracing::error!(\"MQTT error: {}\", e);\n                tokio::time::sleep(Duration::from_secs(5)).await;\n            }\n        }\n    }\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| No retry logic | Lost data | Exponential backoff |\n| Always-on radio | Battery drain | Sleep between sends |\n| Unencrypted MQTT | Security risk | TLS |\n| No local buffer | Network outage = data loss | Persist locally |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Offline-first | Store & forward | Local queue + flush |\n| Power efficiency | Sleep patterns | Timer-based wake |\n| Network reliability | Retry | tokio-retry, backoff |\n| Security | TLS | rustls, native-tls |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Embedded patterns | domain-embedded |\n| Async patterns | m07-concurrency |\n| Error recovery | m13-domain-error |\n| Performance | m10-performance |\n",{"name":5,"description":7,"user-invocable":19},"main","0f3f41ed51c357d4f79561a132514089c1aaa97d",".agents\u002Fskills\u002Fdomain-iot",0,"https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo","https:\u002F\u002Fgithub.com\u002Fwxxb789","2026-11-15 04:06:53",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add wxxb789\u002Fmarkturbo --skill domain-iot",{"tool":36,"command":37},"bunx","bunx skills add wxxb789\u002Fmarkturbo --skill domain-iot",{"tool":39,"command":40},"pnpm","pnpm dlx skills add wxxb789\u002Fmarkturbo --skill domain-iot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdomain-iot\u002FSKILL.md",true,[],[45,52,58,65,72,78],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7AWXVVZ6JEJVFGGT2WBSEN0","hello-diagrams","A valid, fully-populated Agent Skill, shown here so the Skills inspector has something correct to display.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fhello-diagrams\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7AWXTNG6ZV6WW5CHJZXJYEC","Broken-Example","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Fsample\u002F.claude\u002Fskills\u002Fbroken-example\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7AWXS5WN306ENF2MYJYP7VM","valid-skill","A fully conformant skill with every optional field populated.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7AWXR0NY08YVHE0G8VTJJ97","a-different-name","The name does not match the directory, which is a conformance warning.","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fname-mismatch\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7AWXQ5EV9JCA0WG9Q1WB13Y","missing-metadata","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmissing-metadata\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M7AWXP8GT7FATM53B914ZN50","malformed-yaml","https:\u002F\u002Fgithub.com\u002Fwxxb789\u002Fmarkturbo\u002Fblob\u002Fmain\u002Ffixtures\u002Fskills\u002Fskills\u002Fmalformed-yaml\u002FSKILL.md",[],[]]