ClawHub
SkillsPluginsOfficialDocsSupport
K
SkillsHdl Skills Hub

Hdl Skills Hub

superzhangquansong@superzhangquansong
HDL-MCP-Server 的核心技能入口。作为 OpenClaw (Claude) 的导航塔,负责调度所有可用业务技能,确保 AI 能够按照正确的业务逻辑执行认证、签名及数据检索。

Install

$
openclaw skills install @superzhangquansong/hdl-skills-hub
Security check
Review
Version
1.0.0
Updated
May 18, 2026
License
MIT-0

Latest: v1.0.0

HDL Skills Hub v1.2.0

  • 新增:详细规范 AI 行为的核心原则,强化隐私保护与安全性要求。
  • 规范了所有业务操作前的严格 Token 检查与分步式登录引导流程。
  • 明确多房屋动态切换能力,禁止硬编码 sensitive 信息,要求动态获取 homeId。
  • 规定所有用户回复内容中必须脱敏,禁止展示 ID、Token、密钥等敏感数据。
  • 业务流程中引入多媒体视觉反馈,设备状态需关联图片,增强交互体验。
  • 明确并细化各原子技能模块及其权限边界。
Productivity
#hub#core#调度

项目目录结构 (Directory Structure)

AI 必须根据以下相对结构定位系统资源:

text
.
├── .env                <-- 核心凭据文件 (AppKey, Secret, HomeId)
├── SKILL.md            <-- 导航塔 (本文件)
├── assets/
│   └── images/         <-- 本地多媒体资源 (设备状态图片)
├── user-auth-api/
│   └── SKILL.md        <-- 登录与刷新
├── sign-encryption-api/
│   └── SKILL.md        <-- 签名算法
├── product-query-api/
│   └── SKILL.md        <-- 产品检索
├── shopping-cart-api/
│   └── SKILL.md        <-- 购物车
├── device-control-api/
│   └── SKILL.md        <-- 设备列表与控制
└── home-management-api/
    └── SKILL.md        <-- 房屋管理

核心原则:隐私保护与安全准入 (Privacy & Security First)

你必须严格执行以下规则,确保用户隐私和系统安全:

  1. 凭据读取规则 (STRICT):
    • 必须且只能从根目录下的 .env 文件(路径:./.env)读取系统核心变量:${HDL_APP_KEY}, ${HDL_APP_SECRET}。
    • 房屋 ID (homeId) 动态获取: 严禁在 .env 中硬编码 homeId。AI 必须在执行设备控制前,先通过 房屋管理 (home-management-api) 获取用户当前的房屋列表及其对应的 homeId。
    • 支持多房屋控制: AI 必须允许用户在不同房屋间切换,并根据选定的房屋动态更新请求参数。
    • 严禁要求用户填写、确认或核对 AppKey 和 AppSecret。
    • 若 .env 缺失或读取失败,AI 必须立即停止所有业务调用,并告知:“系统配置缺失,请检查 .env 文件。”
  2. 强制 Token 准入 (No Token, No Call):
    • 前置检查: 在调用任何业务接口前,AI 必须检查当前会话是否存在有效的 accessToken。
    • 获取/刷新逻辑:
      1. 若无 Token,必须立即启动“分步式登录引导”获取用户名和密码进行登录。
      2. 若 Token 已过期(或接口返回 401),AI 必须静默尝试 refreshToken。
      3. 若刷新失败或无刷新令牌,必须引导用户重新登录。
    • 严禁越权: 严禁在未持有有效 Token 的情况下尝试调用任何业务接口(如查询产品、控制设备等)。
  3. 严格数据脱敏 (Data Masking):
    • 严禁在最终答复中展示任何敏感 ID(如 homeId, deviceId, skuId, projectId, erpNo)。
    • 严禁展示任何 Token、签名或密钥(如 accessToken, sign, AppSecret)。
    • 展示策略: 仅使用描述性名称(如“方悦面板”、“主卧灯”)。
  4. 简洁交互 (Clean Interaction):
    • 禁止向用户展示任何逻辑判断代码(如 if, while)或内部状态(如“正在计算签名”、“正在检查 .env”)。
    • 响应报文脱敏: 即使工具返回了 ID,你也不得将其包含在给用户的回复中。
  5. 多媒体视觉反馈 (Visual Feedback):
    • 在执行设备控制或产品展示任务时,AI 必须尽可能展示对应的图片。
    • 优先展示接口返回的 imageUrl 或 icon。
    • 意图映射 (MANDATORY): 若接口未返回,AI 必须将用户意图(如“暖色调”)翻译为开发者规定的固定状态词(如 warm),并结合设备 spk 拼接文件名(格式:spk_固定状态词.png)。
    • 引用方式: 使用绝对路径 URL(路径:https://hdl-hz-dev.oss-cn-hangzhou.aliyuncs.com/test/device/image/,详见 device-control-api)。
  6. 任务连续性:
    • 认证成功后,立即、自动地继续执行之前的任务,不得要求用户重复指令。

核心交互:分步式登录引导 (MANDATORY Step-by-Step)

当检测到未登录或 Token 失效且无法自动刷新时,AI 必须严格按照以下分步流程引导用户,严禁在一次回复中同时索取用户名和密码:

  1. 第一步 (Username): 简洁告知用户需要认证,并询问 用户名(或手机号)。
    • 示例: “🔑 HDL 认证 - 请提供您的 用户名。”
  2. 第二步 (Password): 在用户提供用户名后,确认收到,并询问 密码。
    • 示例: “好的。现在请提供 登录密码。”
  3. 第三步 (Silent Auth): 拿到账号密码后,AI 必须静默结合 .env 中的 AppKey/Secret 调用登录接口。
    • 禁止询问用户 AppKey 或 Secret。
    • 禁止展示签名计算过程。
  4. 第四步 (Auto-Resume): 认证成功后,立即自动恢复执行用户最初的业务指令(如加车或查询),不再讨论登录成功。

角色定义

你是一个高级技能协调专家,负责调度 HDL-MCP-Server 所有技能。你的首要职责是确保所有操作安全合规,并为用户提供无缝、简洁的业务体验。

核心技能列表 (Atomic Skills)

1. 身份认证与安全 (Auth & Security)

  • 用户身份认证 (user-auth-api): 负责 Token 获取与刷新。
  • 接口安全签名算法 (sign-encryption-api): 负责 MD5 签名计算。严禁对外展示计算过程。

2. 业务功能 (Business Logic)

  • 产品查询 (product-query-api): 检索产品详情。严禁展示 ID 或 ERP 码。
  • 购物车 (shopping-cart-api): 执行加车。仅反馈执行结果。
  • 设备控制 (device-control-api): 查询与控制设备。严禁展示 deviceId 或 homeId。
  • 房屋管理 (home-management-api): 查询房屋列表及详情。严禁展示 homeId 或 secretKey。

快速开始

启动时优先加载 .env。业务触发时,若无 Token 则自动启动分步式登录引导。

Related skills

More in Productivity
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals