[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H6C3BVE775FRKT61D5XGQE":3,"skill-same:01M6H6C3BVE775FRKT61D5XGQE":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6H6C3BVE775FRKT61D5XGQE","domain-iot",null,"Use when building IoT apps. Keywords: IoT, Internet of Things, sensor, MQTT, device, edge computing, telemetry, actuator, smart home, gateway, protocol, 物联网, 传感器, 边缘计算, 智能家居","0xharryriddle\u002Fcodex-field-kit","0xharryriddle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100945007?v=4","01M6H686JV0QKZYP2RWG6B2B8T","harryriddle","01M6H686PVZ8JGKWEG7B3GM5PD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-iot\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"iot","domain iot","domain","telemetry","protocol","gateway","edge","计算","use","device","edge computing","false","apps","mqtt","internet","things","2026-11-10 10:12:30",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":36},"main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","archive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-iot",0,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit","https:\u002F\u002Fgithub.com\u002F0xharryriddle","https:\u002F\u002Fharryriddle.vercel.app","2026-04-11 11:49:51",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-iot",{"tool":54,"command":55},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-iot",{"tool":57,"command":58},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-iot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-iot\u002FSKILL.md",true,[],[63,95,114,124,150,177],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":74,"publishedAt":35},"01M6H7ZKE6MR33HC84QZ1TA6MV","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[69],{"categoryNo":70,"categoryName":71,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","triggers","pages","next","performance optimization","refactoring","Next.js","Optimization","code","guidelines","react components","components","performance","writing",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":35},"01M6H7ZGC2WK8SEKYHWDNTMDA9","swarm-planner","[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-planner\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,112,113],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","for","multi","implementation",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":35},"01M6H7ZD93853RZCYQWH1D38TM","super-swarm-spark","Only to be triggered by explicit super-swarm-spark commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fsuper-swarm-spark\u002FSKILL.md",[],[121,102,122,107,123],"super swarm spark","spark","commands",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":35},"01M6H7Z987QBY49JCCPT953EAZ","role-creator","Create and install Codex custom agent roles in ~\u002F.codex\u002Fconfig.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Frole-creator\u002FSKILL.md",[],[131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149],"role","creator","role creator","keys","users","roles","toml","enforce","install","guide","instructions","model","developer","reasoning","generate","create","config","codex","files",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":159,"publishedAt":35},"01M6H7Z5TRPMDQ7YSZQXPN1G60","read-github","Read and search GitHub repository documentation via gitmcp.io MCP service.\n\n**WHEN TO USE:**\n- User provides a GitHub URL\n- User mentions a specific repo in owner\u002Frepo format\n- User asks \"what does this repo do?\", \"read the docs for X repo\", or similar\n- User wants to search code or docs within a repo","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fread-github\u002FSKILL.md",[156],{"categoryNo":157,"categoryName":158,"taxonomyType":72,"taxonomyTypeDesc":73},"01JBSEEDCAT000000000000023","Skill与智能体开发",[160,161,162,89,163,164,165,166,111,167,168,169,170,171,172,27,173,174,175,176],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format","repository",{"skillNo":178,"name":104,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":35},"01M6H7Z215CTKYJ4Y1X6EQWN6M","Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: \"make a plan\", \"create a plan\", \"plan this out\", \"plan the implementation\", \"help me plan\", \"design a plan\", \"draft a plan\", \"write a plan\", \"outline the steps\", \"break this down into tasks\", \"what's the plan for\", or any similar planning request. Also triggers on explicit \"\u002Fplanner\" or \"\u002Fplan\" commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fplanner\u002FSKILL.md",[],[104,183,111,184,185,186,82,109,123,187,188,27,189,190,191,192,193,146,80,194],"outline","atomic","with","sprints","draft","me","write","phased implementation","plan","help","planning","design"]