Helps integrate DJI Cloud API 2 device management into a Spring Boot skeleton backend: device listing, status subscriptions, HMS alerts, firmware upgrades, dock control, debugging, logs, and custom feature modules.
Ships in cloudapi2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
帮集成商开发者在 skeleton 后端项目(Spring Boot 3.2.5 + Java 17)中正确扩展设备管理功能:新建 feature 模块、接入 SDK 事件、暴露 REST API、处理 OSD/HMS 数据。
不触发:前端组件问题(用 cloudapi2-frontend-component Skill)、MCP Tool 开发(用 cloudapi2-sdk-core Skill)、纯 SDK API 查询。
本 Skill 遵循 skills/_shared/sop-template.md 定义的 7 章节 SOP。
根据用户请求自动选择执行深度(L1/L2/L3)。
以下为本 Skill 的特化规则:
当用户意图不明确时,从以下维度澄清:
参见 constraints.yaml,所有 critical 规则在生成代码时必须满足。
核心铁律:
@EventListener 对应的底层 SDK 订阅,在 @PreDestroy 中释放getDroneInstance(sn) / getDockInstance(sn) 返回值必须 null 检查error.getErrorCode() == SUCCESS@EventListener 消费 KernelEvent,不可直接操作底层 SDK除通用验证外,必须检查:
@EventListener 方法对应的事件类型正确spring.factories 或 AutoConfiguration.imports 已注册用户要做什么?
├── 查设备列表
│ └── 使用 DeviceStatusService.listAll() + REST endpoint
├── 订阅 OSD 状态
│ └── @EventListener + OsdUpdateEvent → 更新内存状态
├── 处理 HMS 告警
│ └── @EventListener + HmsAlertEvent → bounded deque + 分级处理
├── 设备控制指令
│ └── 需要 acquireFlightControlAuthority → 指令 → release
├── 固件升级 / OTA 进度
│ └── 加载 references/firmware-management.md(工作空间级 FirmwareManageModule,非设备级)
├── 机场辅助设备控制(摄像头切换/空调/补光灯/充电/舱盖)
│ └── 加载 references/device-lifecycle.md 的 DockControlModule 节(挂在 Dock 上)
├── 设备调试类控制(调试模式/舱盖开关/重启格式化/限飞限高/eSIM切换/Geo Caging)
│ └── 加载 references/device-debug.md(DeviceDebugModule,59 方法,设备级)
├── 运维长尾能力(日志管理/维修工单/设备自诊断/RTK 标定/网络测试)
│ └── 加载 references/ops-reporting.md
├── 新建 feature 模块
│ └── 按 playbooks/add-device-feature.yaml 步骤执行
└── 其他 SDK 调用
└── 转交 cloudapi2-sdk-core Skill
skeleton/
├── kernel/
│ ├── kernel-spi/ ← 接口定义(KernelEvent、SdkEventBus)
│ ├── kernel-impl/ ← Spring 实现(ApplicationEventPublisher)
│ ├── kernel-mock-sdk/ ← 模拟 SDK(本地开发用)
│ └── kernel-real-sdk/ ← 真实 SDK(生产用)
├── feature/
│ ├── feature-device/ ← 设备管理(已实现,参考模板)
│ ├── feature-user/ ← 用户管理
│ └── feature-chat/ ← AI 对话
└── app/
└── fh-skeleton-app/ ← 启动入口,聚合所有模块
集成商扩展方式:在 feature/ 下新建模块,通过 @EventListener 消费 kernel-spi 中定义的事件。
references/skeleton-map.md — ★ skeleton 完整架构地图(新建模块前必读)references/device-lifecycle.md — 设备上下线生命周期references/osd-subscription.md — OSD 数据订阅模式references/hms-alert-handling.md — HMS 告警分级处理references/firmware-management.md — 固件升级(FirmwareManageModule,工作空间级)references/device-debug.md — 设备调试与运维控制(DeviceDebugModule,59 方法)references/ops-reporting.md — 长尾运维模块(LogManagementModule/MaintenanceManagementModule/DiagnosisManagementModule/RtkCalibrationModule/NetworkTestModule)playbooks/add-device-feature.yaml — 新建 feature 模块步骤snippets/ — 代码模板本 Skill 的 constraints.yaml 仅包含领域特有规则;通用 SDK 约束见
skills/_shared/constraints-common.yaml(生成代码时需同时遵守)。 跨 Skill 路由规则见skills/_shared/skill-routing.md。当发现用户意图属于其他 Skill 职责时,按转交协议切换。 输出格式见skills/_shared/output-format.md。Reference 按需懒加载,不要一次性读取所有 references/。
README.md (opens in a new tab)constraints.yaml (opens in a new tab)playbooks/add-device-feature.yaml (opens in a new tab)references/device-debug.md (opens in a new tab)references/device-lifecycle.md (opens in a new tab)references/firmware-management.md (opens in a new tab)references/hms-alert-handling.md (opens in a new tab)references/ops-reporting.md (opens in a new tab)references/osd-subscription.md (opens in a new tab)references/skeleton-map.md (opens in a new tab)snippets/auto-configuration.java (opens in a new tab)snippets/event-listener-service.java (opens in a new tab)snippets/feature-module-pom.xml (opens in a new tab)snippets/rest-controller.java (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/cloudapi2:cloudapi2-device-managementfrom cloudapi2
npx claudepluginhub dji-sdk/cloud-api-2 --plugin cloudapi213 skills in this plugin
/cloudapi2-aiDJI Cloud API 2 AI 域 SDK 接入助手。当用户要编写 Java 代码管理 AI Box 应用、机载 AI 识别/跟踪/告警、
AI Inside 机载算法生命周期、或 AI 目标检测告警配置与查询时调用。
触发词:AIBoxModule、OnboardAiModule、AIInsideManageModule、AiAlertModule、AI Box、机载 AI、
AI 识别、AIIdentifySet、AIModelSelect、DrcAISpotlightZoom、AI 跟踪、DrcAIAlarm、AI 主动告警、
AI Inside、机载算法、algorithmType、operateAIInsideModel、uploadAlgorithmFile、
AI 告警配置、postDeviceSetting、postAlgorithmSetting、getAiAlertFlights、getAiAlertRecords、
目标检测告警、fetchAIBoxInfo、installApp、operateApp。
不触发:调用 MCP Server 的 fh_* 工具做运维操作(→ cloudapi2-mcp-guide)、
通用 SDK 规则/飞行控制/航线任务(→ cloudapi2-sdk-core)、地图域(→ cloudapi2-map)、
PSDK 负载控制(探照灯/喊话器/Widget,→ cloudapi2-payload)、
设备生命周期与固件升级(→ cloudapi2-device-management)、SEI/OSD 遥测(→ cloudapi2-sei-osd)。
/cloudapi2-feedbackDJI Cloud API 2 SDK 问题反馈助手。把用户的口语问题变成结构化 GitHub issue,走完「采集→脱敏→确认→提交」闭环。支持 4 类反馈:问题(Bug)、需求、咨询、其他。
触发词:反馈、我要反馈、反馈问题、反馈一下、提个 issue、报个问题、提交问题、issue 提交、提交 GitHub、report a bug、file an issue、submit feedback、提个需求、有个建议、想咨询一下。
不触发:有明确错误码的排障(走 troubleshooting)、新功能开发(走对应业务 Skill)、Jira issue 分析(走 issue-analyzer)。
/cloudapi2-frontend-componentDJI Cloud API 2 前端组件(DJI Cloud API 2 / paas.js / FH2)前端组件接入助手。当用户要在 skeleton/web(Vue 3)项目或独立 HTML 页面中接入 7 大前端组件——WaylineEditor(航线创建/编辑/拼接)、WaylineView(航线预览)、UranusDeviceManagerApp(设备管理)、FH2.loadCockpit(驾驶舱)、FlyDataReplay(飞行记录回放)、DJILivePlayer(直播大屏)、FH2.loadDeviceWindow(设备小窗)任一组件,或问 initConfig/auth/销毁/事件订阅/错误码/cockpitConfig/主题定制/跨域(Mixed Content)/Whistle 代理调试时调用。触发词:DJI Cloud API 2、paas.js、FH2、WaylineEditor、WaylineView、FlyDataReplay、UranusDeviceManagerApp、DJILivePlayer、DjiLivePlayer、loadCockpit、loadDevice、loadDeviceWindow、loadFlightPath、initConfig、initLivePlayer、setupDeviceManager、mountDeviceList、concatWayline、cockpitConfig、setCockpitConfig、setCockpitTheme、setCockpitPreset、runtimeDepsBasePath、frontHost/serverHost/wssHost、useFH2、ensureFH2Init、CockpitView、useSDKLoader、航线编辑器、航线预览、航线规划、航线拼接、航点编辑、画航线、wayline editor、wayline view、route planner、航线页面、飞行路径编辑、驾驶舱页面、设备管理页面、飞行回放、直播大屏、设备小窗、多路直播、地图组件、嵌入地图、设备拓扑。Other plugins' skills for the same job