Token导航 LogoToken导航

Agent Skill · 开发

aqara-open-api-local(aqara open API 本地)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

aqara-open-api-local 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 9,498。

总安装 2,670周安装 108GitHub Stars 1下载 838核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.3

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aqara-open-api-local(aqara open API 本地)
来源仓库:https://github.com/aqara/aqara-open-api-local
安装命令:
openclaw skills install aqara-open-api-local
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install aqara-open-api-local

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

路由 Aqara Open API 请求跨设备、空间与自动化技能协同工作。提供关系优先路由器与结构化切换控制增强系统集成度。适用于构建复杂智能家居场景的多设备联动逻辑。aqara-open-api-local 属于开发类 Skill,可作为该场景下的辅助能力补充。接口定义遵循 OpenAPI 标准便于前后端分离开发。

鉴权方式采用 OAuth2.0 确保通信安全性。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install aqara-open-api-local;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

aqara-open-api-local 怎么安装?

在终端执行 openclaw skills install aqara-open-api-local。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

aqara-open-api-local 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

aqara-open-api-local 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

aqara-open-api-local 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

aqara-open-api-local 用的人多吗?

公开数据是累计安装 2,670 次,近一周安装 108 次,下载 838 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

aqara-open-api-local 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
aqara-open-api-local

aqara open API 本地 · 本页

2,6701接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
aqara-open-api-local
description
Route Aqara Open API requests across device, space, and automation skills with a relationship-first router, shared CLI contract, and structured handoff contract. Supports AQARA_OPEN_API_TOKEN and AQARA_ENDPOINT_URL through environment variables or AQARA CLI config.
author
aqara
metadata
{"clawdbot":{"emoji":"🏠","requires":{"bins":["node"],"env":["AQARA_ENDPOINT_URL","AQARA_OPEN_API_TOKEN"]}}}

Aqara Open API Skill

This file is the single entry router for the Aqara Open Platform HTTP API skill package.

Read this file first. Use it to do four things:

  1. Classify whether the user request lands in device, space, or automation.
  2. Preserve the shared request envelope, credential rules, and non-guessing rules.
  3. Build a structured handoff contract instead of forwarding raw user prose.
  4. Decide whether the next step may use cache-first execution or must upgrade to stricter validation.

Child skills:

  • aqara-open-api-local/device/SKILL.md
  • aqara-open-api-local/space/SKILL.md
  • aqara-open-api-local/automation/SKILL.md

Quick Route Table

Use this table before reading any child skill in depth.

User asks forFinal intentNext file
list devices, count devices, read state, control a devicedeviceaqara-open-api-local/device/SKILL.md
list spaces, create or rename spaces, move devices between spacesspaceaqara-open-api-local/space/SKILL.md
create automation, inspect automation, update automation config, enable or disable automation, delete automationautomationaqara-open-api-local/automation/SKILL.md
room-scoped device query such as "what lights are in the living room"deviceconfirm room identity, then query devices from data/devices.json
room-related automation such as "turn on the light when someone is in the living room"automationresolve room and device evidence first, then enter automation

Language Policy

  • user-facing explanations, routing notes, and clarification questions should use Chinese Simplified
  • Open API request types, field names, file paths, enums, and code examples must keep exact English identifiers
  • do not mix Chinese and English in one rule sentence unless an exact identifier must be quoted

Package Model

Treat the three business entities as related, not isolated:

  • space is the container and grouping scope for devices
  • device is the concrete instance that can be queried, counted, and controlled
  • automation is the orchestration layer that references rooms, devices, and device traits

Route by the final action target, not by keyword count alone.

Important relationship rule:

  • for room-scoped device queries, space is the filter key and device is the answer source
  • GetSpacesRequest confirms that a room exists or resolves spaceId; it does not answer which devices are inside the room
  • the actual room-to-device result must come from data/devices.json by filtering devices whose room membership matches the resolved room

Examples:

  • "what devices are in the living room" -> final intent is device
  • "move all lights from the master bedroom to the second bedroom" -> final intent is space
  • "create an automation that turns on the light when someone is in the living room" -> final intent is automation

Shared Runtime Contract

Runtime configuration may come from:

  • AQARA_ENDPOINT_URL
  • AQARA_OPEN_API_TOKEN
  • aqara config

Credential resolution order:

  1. Use the current shell environment if AQARA_ENDPOINT_URL and AQARA_OPEN_API_TOKEN are already set.
  2. Otherwise read the AQARA CLI config file from ~/.aqa/config.json.
  3. Use aqara config set-endpoint <url> and aqara config set-token <token> when the values are not already configured.

Hard credential rules:

  • never guess or hardcode real credentials
  • never print the real token in chat, logs, or generated files
  • never write secrets into persistent shell startup files
  • if the config file is missing or unreadable, stop and report the configuration problem without dumping file contents

Shared API Contract

Global execution rules:

  1. All execution should go through the aqara CLI instead of handwritten curl.
  2. aqara devices cache refresh is the only allowed route for GetAllDevicesWithSpaceRequest.
  3. Every other documented API request should use the matching aqara command group.
  4. The underlying request body may contain only type, version, msgId, and data.
  5. version must always be "v1".
  6. type is whitelist-only. Never guess nearby request names.
  7. Never guess deviceId, endpointId, functionCode, traitCode, spaceId, or automationId.
  8. Command examples assume the current working directory is the aqara-open-api-local package root or that aqara is installed globally.
  9. For queries such as "what devices are in the living room", never answer from GetSpacesRequest alone. Resolve the room first, then filter data/devices.json to produce the device list.

Shared request envelope:

{
  "type": "<RequestType>",
  "version": "v1",
  "msgId": "<unique-id>",
  "data": {}
}

CLI execution note:

  • aqara encapsulates the request envelope and headers
  • do not hand-build headers in normal skill execution

Request type whitelist:

  • GetAllDevicesWithSpaceRequest
  • GetDeviceTypeInfosRequest
  • ExecuteTraitRequest
  • GetSpacesRequest
  • CreateSpaceRequest
  • UpdateSpaceRequest
  • AssociateDevicesToSpaceRequest
  • QueryAutomationCapabilitiesRequest
  • CreateAutomationRequest
  • UpdateAutomationRequest
  • UpdateAutomationStatusRequest
  • GetAutomationListRequest
  • GetAutomationDetailsRequest
  • DeleteAutomationRequest

Capability Validation Strategy

This package uses two validation modes for automation work:

  • cache_first_generate: default path for creation. Use resolved room and device context plus data/devices.json to build an automation-instance style config.
  • query_capabilities_required: stricter path for risky or ambiguous automation work. Upgrade to QueryAutomationCapabilitiesRequest before finalizing the config.

Upgrade from cache_first_generate to query_capabilities_required when any of the following is true:

  • the needed starter, condition, or action trait cannot be copied safely from data/devices.json
  • the request depends on uncertain enum or event values
  • the request is cross-space and the source or target mapping is still ambiguous
  • the action is high risk, unusual, or not covered by the package's safe defaults
  • the user explicitly asks for capability confirmation

Important rule:

  • data/devices.json is the default creation evidence source
  • QueryAutomationCapabilitiesRequest is the escalation path, not the default first step

Handoff Contract

Before entering a child skill, build this structured handoff contract in reasoning. These are semantic routing fields only, not new Open API request fields.

Required handoff fields

{
  "finalIntentType": "device | space | automation",
  "resolvedSpace": {
    "name": "<spaceName or null>",
    "spaceId": "<spaceId or null>",
    "resolutionSource": "route | get_spaces | device_cache | unresolved"
  },
  "resolvedDevices": [
    {
      "deviceId": "<deviceId>",
      "deviceName": "<display name>",
      "spaceName": "<space name or null>",
      "spaceId": "<spaceId or null>",
      "matchReason": "exact_name | room_plus_name | type_match | parent_context"
    }
  ],
  "resolvedAutomation": {
    "automationId": "<automationId or null>"
  },
  "ambiguityState": {
    "status": "none | room | device | automation | event_enum",
    "questionNeeded": true
  },
  "operationContext": {
    "operation": "query | control | create | update | rename | status | delete",
    "cacheFreshness": "fresh | stale | unknown",
    "detailsLoaded": false
  },
  "capabilityValidationMode": "cache_first_generate | query_capabilities_required",
  "branchingIntent": {
    "needsSplit": false,
    "reason": "<optional reason>"
  }
}

Handoff rules

  • do not hand off the raw user sentence alone
  • if room scope is already resolved, pass it as resolvedSpace instead of forcing the child skill to rediscover it
  • if several candidate devices remain, preserve them in resolvedDevices and ask for clarification before mutation
  • if the request is an automation update, pass whether current automation details have already been loaded
  • if a preceding space mutation may have changed room membership, mark cacheFreshness as stale

Router SOP

Follow this order. Do not skip steps.

  1. Parse which entities are mentioned: space, device, automation.
  2. Classify the final action target.
  3. Resolve the anchor entity first: room-first, device-first, or automation-first.
  4. If the task is a room-scoped device query, use GetSpacesRequest only to confirm the room identity when needed, then use data/devices.json to reverse lookup the devices in that room.
  5. Build the handoff contract.
  6. If ambiguity remains, ask before entering a mutating child workflow.
  7. Enter the child skill whose domain matches finalIntentType.

Shared Recovery And Reliability Rules

Response code reminders:

  • code: 0 means success
  • 400 usually means invalid request data
  • 1001 usually means token expired or invalid
  • 2030 usually means device not found

Recovery rules:

  • device not found during device or space work: refresh data/devices.json once, then re-resolve the device
  • invalid space update: re-check spaceId, mutation scope, and device membership
  • invalid automation request: move to the automation child skill, re-check schema shape, and upgrade validation mode if needed
  • network timeout: retry once, then report the failure
  • space mutation before automation generation: refresh data/devices.json or mark cacheFreshness: "stale" and stop before create

Platform note:

  • the package uses aqara devices cache refresh for the full device cache
  • if Node.js or the CLI entry cannot run in the current runtime, stop and explain that the CLI path is unavailable instead of inventing ad hoc shell replacements

Forbidden Behavior

Never do any of the following:

  • call Aqara APIs directly with curl when an aqara command exists
  • guess request types or identifiers
  • use stale prose memory or trait glossaries as authority for live state
  • use data/devices.json as if it were an unconditional automation capability whitelist
  • place automation name, starters, condition, or actions directly under top-level data
  • describe impossible state such as "light is off and brightness is 100%"

Reference Index

  • aqara-open-api-local/device/SKILL.md — device cache-first query and control
  • aqara-open-api-local/space/SKILL.md — space listing and mutation
  • aqara-open-api-local/automation/SKILL.md — automation creation and CRUD
  • aqara-open-api-local/docs/commands.md — CLI command catalog
  • aqara-open-api-local/data/devices.json — device cache
  • aqara-open-api-local/references/examples.md — intent-based example index
  • aqara-open-api-local/references/automation-http-examples.md — automation HTTP lifecycle examples

平台分布

OpenClaw

92.93%
按下载量换算779

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills