← Back to Skills Marketplace
101
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hipc-config-manager
Description
管理和校验 HIPC API 密钥的设置和检查,确保业务调用前密钥存在且格式正确。
README (SKILL.md)
技能名称:hipc_config_manager HIPC 配置管理\r
\r
技能描述\r
此技能是 HIPC 系列技能的核心前置组件,用于管理 API 密钥(hipc_secret)的生命周期。\r
它具备检查、设置和格式校验三种能力,确保在执行任何业务查询前,系统拥有合法且格式正确的访问凭证。\r
\r
⚠️ 强制前置检查 (Critical Pre-check)\r
在调用任何 HIPC 业务技能(如查询电脑列表、统计数据)之前,你必须先调用本技能!\r
- 第一步:调用
hipc_config_manager,设置参数action="check"。\r - 判断:\r
- 如果返回
status: "error"(即密钥缺失),立即停止后续业务操作,直接向用户发送一条消息,提示需要配置密钥。\r - 严禁在密钥缺失的情况下调用其他 HIPC 技能。\r
- 严禁陷入死循环检查,检查失败一次后必须反馈给用户。\r
- 只有当返回
status: "success"时,才允许继续执行用户请求的业务逻辑。\r \r
- 如果返回
核心逻辑与依赖\r
本技能通过读写本地文件 hipc_config.json 来持久化存储密钥。\r
- 检查模式 (
check):\r- 读取
hipc_config.json文件。\r - 验证
hipc_secret字段是否存在且非空。\r
- 读取
- 设置模式 (
set):\r- 接收用户提供的
secret和env。\r - 格式校验:在保存前,脚本会自动校验密钥格式(必须符合
数字_字符串的格式,例如35097_y2GX...)。\r - 如果格式错误,脚本将返回错误信息,不会写入文件。\r
- 如果格式正确,将其写入
hipc_config.json文件,覆盖旧值。\r \r
- 接收用户提供的
参数定义\r
- action (String, 必填): \r
- 操作类型,决定脚本的行为。\r
- 可选值:
"check"(检查配置)或"set"(保存配置)。\r
- secret (String, 可选): \r
- 仅在
action="set"时必填。\r - 用户提供的 HIPC API 密钥字符串。\r
- 仅在
- env (String, 可选):\r
- 环境,决定脚本用哪个环境 \r
- 仅在
action="set"时使用,指定要配置的环境。\r - 默认值为 "prod"。\r
- 可选值:"prod"(生产环境)或 "dev"(开发环境/测试环境)。\r \r
调用示例\r
\r 场景 A:业务前置检查(配置存在)\r
- 用户:“查一下电脑列表”\r
- AI 思考:先检查环境配置是否就绪。\r
- 动作:调用
hipc_config_manager,参数action="check"。\r - 结果:返回
status: "success"。\r - 后续:AI 继续调用
hipc_computer_list技能。\r \r 场景 B:业务前置检查(配置缺失)\r - 用户:“昨天的运行时长是多少”\r
- AI 思考:先检查环境配置。\r
- 动作:调用
hipc_config_manager,参数action="check"。\r - 结果:返回
status: "error"。\r - 后续:AI 不调用统计技能,直接回复用户:“检测到您尚未配置 HIPC 密钥,无法查询数据。请提供您的密钥。”\r \r 场景 C:用户主动配置密钥(格式正确)\r
- 用户:“我的密钥是 35097_y2GX52eDGNdgaM,帮我保存一下”\r
- AI 思考:用户提供了密钥,需要调用设置模式。\r
- 动作:调用
hipc_config_manager,参数action="set",secret="35097_y2GX52eDGNdgaM",env="prod"。\r - 结果:密钥被写入文件,返回
status: "success"。\r - 后续:AI 回复用户:“密钥已保存!现在可以开始查询了。”\r \r 场景 D:用户配置密钥(格式错误)\r
- 用户:“帮我保存密钥,是 sk-123456”\r
- AI 思考:用户提供了密钥,调用设置模式。\r
- 动作:调用
hipc_config_manager,参数action="set",secret="35097_y2GX52eDGNdgaM",env="prod"。\r - 结果:脚本检测到格式错误(缺少
数字_前缀),返回status: "error"。\r - 后续:AI 回复用户:“您提供的密钥格式不正确。HIPC 密钥通常以
数字_开头(例如35097_xxxxx),请检查后重新提供。”\r \r
执行命令\r
python scripts/main.py --action={{action}}{{#if secret}} --secret={{secret}}{{/if}}{{#if env}} --env={{env}}{{/if}}\r
Usage Guidance
总体上该技能内部一致且不含数据外泄行为,但在安装/使用前请注意:
- 它会在您的主目录 (~) 写入/覆盖 hipc_config.json,并以明文保存 hipc_secret;建议在保存前备份可能存在的同名文件并检查文件权限(仅限用户可读写)。
- 确认 hipc_host(api.hipcapi.com / api-beta.hipcapi.com) 与您预期的服务域名一致;技能不会对外验证或上报密钥。
- 若您更希望使用更安全的凭据存储(系统密钥链、环境隔离或加密存储),考虑拒绝保存到明文文件并改用更安全流程。
- 注意 SKILL.md 要求“在调用任何 HIPC 业务技能前先检查密钥”,这会阻止代理在密钥未配置时继续其他 HIPC 操作;确保这种行为符合您的工作流。
Capability Analysis
Type: OpenClaw Skill
Name: hipc-config-manager
Version: 1.0.0
The hipc-config-manager skill is a standard configuration utility designed to manage API credentials for the HIPC service. It performs local file operations to read and write a secret key to '~/hipc_config.json' and includes basic regex validation for the key format. The code in 'scripts/main.py' is transparent, contains no obfuscation, and does not perform any network requests or unauthorized data exfiltration.
Capability Assessment
Purpose & Capability
技能名和描述说明为 HIPC API 密钥的检查与设置;所包含的脚本只读写名为 hipc_config.json 的本地配置、校验密钥格式并设置 host 字段,均符合其宣称目的。没有请求与 HIPC 无关的凭据或外部依赖。
Instruction Scope
SKILL.md 指示调用脚本的两种操作(check/set),并明确只用于密钥检查和保存;脚本实现与说明一致。唯一的额外行为是强制要求在调用其他 HIPC 业务技能前先做检查(这是设计决策,而非越权读取其他系统信息)。
Install Mechanism
无安装规范(instruction-only + 附带脚本),没有下载外部二进制或依赖。运行时只执行本地 Python 脚本,没有网络请求或从不可信 URL 拉取代码。
Credentials
技能不需要环境变量或额外凭据;它持久化密钥到用户主目录下的 hipc_config.json。请求的权限与功能相称,但要求保存敏感密钥到明文文件应被视为隐私/安全考量。
Persistence & Privilege
技能会在用户主目录创建/覆盖 hipc_config.json(持久化)。always=false,未请求额外系统权限或修改其他技能配置,但写入明文配置文件是持久化行为,用户应注意文件权限与存放位置。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install hipc-config-manager - After installation, invoke the skill by name or use
/hipc-config-manager - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
hipc_config_manager
Metadata
Frequently Asked Questions
What is hipc秘钥设置?
管理和校验 HIPC API 密钥的设置和检查,确保业务调用前密钥存在且格式正确。 It is an AI Agent Skill for Claude Code / OpenClaw, with 101 downloads so far.
How do I install hipc秘钥设置?
Run "/install hipc-config-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is hipc秘钥设置 free?
Yes, hipc秘钥设置 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does hipc秘钥设置 support?
hipc秘钥设置 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created hipc秘钥设置?
It is built and maintained by 377739442 (@377739442); the current version is v1.0.0.
More Skills