.cursor/skills/simplemesh/controller/SKILL.md
Controller 专用约束:只做策略 + MQTT 收发,不连 hostapd/system_monitor/backhaul。修改 src/controller.c、controller 策略或 MQTT 订阅/发布时使用。
npx skillsauth add ddb65536/SimpleMesh simplemesh-controllerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
接到与 Controller 相关的修改时,先判断是否符合本 skill 与全局架构(只 MQTT + 策略,不接底层数据源);若有偏离,先简要说明再确认是否执行。
-m both 决定是否启动 agent。src/controller.c、src/controller.h。ctx->controller_al_mac,回复 topology_report 时使用;不引入 backhaul,仅用系统通用接口。transport/mqtt_client.c、transport/mesh_mqtt.c、mqtt_topics.h;订阅 topology_query、topology_report 等;发布 topology_report(含 JOIN 响应)、topology_query 等。主题与报文格式以 doc/1_mqtt_topic.md 为准。controller_mqtt_on_message 中解析 topology_query(JOIN)、topology_report 等;维护 mesh_node 表(如 mesh_node_add_or_update);回复 topology_report。后续 RRM/BTM/STEER 等策略只在此处扩展 MQTT 收发与内存结构,不接 ubus/backhaul。mqtt_topics.h 或 doc/1_mqtt_topic.md 中定义;实现与文档一致。.cursor/skills/simplemesh/SKILL.mdsrc/controller.c 中 controller_init(init_device_info)、controller_mqtt_on_message、mesh_node_add_or_update、mesh_mqtt_send_topology_report_response。src/platform/system_api.c 中 init_device_info(设备 MAC 等)。testing
Agent 专用约束:状态机唯一入口、backhaul 先于 MQTT、both 模式从 UCI、周期任务用 main_task。修改 src/agent_sm.c、agent 状态机、backhaul/MQTT 连接逻辑时使用。
testing
SimpleMesh2 全局框架约束。涉及入口、UCI、MQTT 文档、uloop、角色划分、文件映射时使用。Agent/Controller 具体逻辑见各自 skill。
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------