Best use case
技能名称:hipc_config_manager HIPC 配置管理 is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
## 技能描述
Teams using 技能名称:hipc_config_manager HIPC 配置管理 should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/hipc-config-manager/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How 技能名称:hipc_config_manager HIPC 配置管理 Compares
| Feature / Agent | 技能名称:hipc_config_manager HIPC 配置管理 | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
## 技能描述
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# 技能名称:hipc_config_manager HIPC 配置管理
## 技能描述
此技能是 HIPC 系列技能的**核心前置组件**,用于管理 API 密钥(`hipc_secret`)的生命周期。
它具备**检查**、**设置**和**格式校验**三种能力,确保在执行任何业务查询前,系统拥有合法且格式正确的访问凭证。
## ⚠️ 强制前置检查 (Critical Pre-check)
**在调用任何 HIPC 业务技能(如查询电脑列表、统计数据)之前,你必须先调用本技能!**
1. **第一步**:调用 `hipc_config_manager`,设置参数 `action="check"`。
2. **判断**:
- 如果返回 `status: "error"`(即密钥缺失),**立即停止**后续业务操作,**直接向用户发送一条消息**,提示需要配置密钥。
- **严禁**在密钥缺失的情况下调用其他 HIPC 技能。
- **严禁**陷入死循环检查,检查失败一次后必须反馈给用户。
- 只有当返回 `status: "success"` 时,才允许继续执行用户请求的业务逻辑。
## 核心逻辑与依赖
本技能通过读写本地文件 `hipc_config.json` 来持久化存储密钥。
1. **检查模式 (`check`)**:
- 读取 `hipc_config.json` 文件。
- 验证 `hipc_secret` 字段是否存在且非空。
2. **设置模式 (`set`)**:
- 接收用户提供的 `secret` 和 `env`。
- **格式校验**:在保存前,脚本会自动校验密钥格式(必须符合 `数字_字符串` 的格式,例如 `35097_y2GX...`)。
- 如果格式错误,脚本将返回错误信息,**不会**写入文件。
- 如果格式正确,将其写入 `hipc_config.json` 文件,覆盖旧值。
## 参数定义
- **action** (String, 必填):
- 操作类型,决定脚本的行为。
- 可选值:`"check"`(检查配置)或 `"set"`(保存配置)。
- **secret** (String, 可选):
- 仅在 `action="set"` 时**必填**。
- 用户提供的 HIPC API 密钥字符串。
- **env** (String, 可选):
- 环境,决定脚本用哪个环境
- 仅在 `action="set"` 时使用,指定要配置的环境。
- 默认值为 "prod"。
- 可选值:"prod"(生产环境)或 "dev"(开发环境/测试环境)。
## 调用示例
**场景 A:业务前置检查(配置存在)**
- 用户:“查一下电脑列表”
- AI 思考:先检查环境配置是否就绪。
- 动作:调用 `hipc_config_manager`,参数 `action="check"`。
- 结果:返回 `status: "success"`。
- 后续:AI 继续调用 `hipc_computer_list` 技能。
**场景 B:业务前置检查(配置缺失)**
- 用户:“昨天的运行时长是多少”
- AI 思考:先检查环境配置。
- 动作:调用 `hipc_config_manager`,参数 `action="check"`。
- 结果:返回 `status: "error"`。
- 后续:AI **不调用**统计技能,**直接回复用户**:“检测到您尚未配置 HIPC 密钥,无法查询数据。请提供您的密钥。”
**场景 C:用户主动配置密钥(格式正确)**
- 用户:“我的密钥是 35097_y2GX52eDGNdgaM,帮我保存一下”
- AI 思考:用户提供了密钥,需要调用设置模式。
- 动作:调用 `hipc_config_manager`,参数 `action="set"`, `secret="35097_y2GX52eDGNdgaM"`, `env="prod"`。
- 结果:密钥被写入文件,返回 `status: "success"`。
- 后续:AI 回复用户:“密钥已保存!现在可以开始查询了。”
**场景 D:用户配置密钥(格式错误)**
- 用户:“帮我保存密钥,是 sk-123456”
- AI 思考:用户提供了密钥,调用设置模式。
- 动作:调用 `hipc_config_manager`,参数 `action="set"`, `secret="35097_y2GX52eDGNdgaM"`, `env="prod"`。
- 结果:脚本检测到格式错误(缺少 `数字_` 前缀),返回 `status: "error"`。
- 后续:AI 回复用户:“您提供的密钥格式不正确。HIPC 密钥通常以 `数字_` 开头(例如 `35097_xxxxx`),请检查后重新提供。”
## 执行命令
```bash
python scripts/main.py --action={{action}}{{#if secret}} --secret={{secret}}{{/if}}{{#if env}} --env={{env}}{{/if}}
```Related Skills
CRM Manager
Manages a local CSV-based CRM with pipeline tracking
Procurement Manager
You are a procurement specialist agent. Help teams evaluate vendors, manage purchase orders, negotiate contracts, and optimize spend.
Employee Offboarding Manager
Generate complete offboarding checklists and transition plans when an employee leaves.
Software License Manager
Audit, track, and optimize your organization's software licenses. Finds waste, flags compliance risks, and builds a renewal calendar.
Inventory & Supply Chain Manager
Complete inventory management, demand forecasting, supplier evaluation, and supply chain optimization for businesses of any size. From stockroom to strategy.
Environmental Compliance Manager
Assess, track, and maintain environmental regulatory compliance across EPA, state agencies, and industry-specific requirements. Built for manufacturing, construction, energy, logistics, and any business with environmental obligations.
Engineering Manager OS
Complete engineering management system — team building, 1:1s, performance, hiring, architecture decisions, incident management, and scaling. From IC-to-manager transition through director-level operations.
AI Agent Manager Playbook
Your company deployed AI agents. Now what? This skill turns you into the person who actually makes them productive — the Agent Manager.
Accounts Receivable Manager
Automate AR workflows: aging analysis, collection prioritization, payment follow-ups, cash application, and bad debt forecasting.
node-red-manager
Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".
cloudflare-manager
Manage Cloudflare DNS records, Tunnels (cloudflared), and Zero Trust policies. Use for pointing domains, exposing local services via tunnels, and updating ingress rules.
nvidia-model-config
Add the NVIDIA provider to OpenClaw with SecretRef apiKey (no plaintext in openclaw.json). Documents shell vs systemd gateway env so the key actually resolves. Includes Mixtral, Kimi, Nemotron Super, Nemotron Ultra, and MiniMax M2.5 model entries.