← 返回 Skills 市场
hellohushuai

Get Resource Element

作者 hellohushuai · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
142
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install get-resource-element
功能描述
根据产品名称查询对应标准硬件资源评估要点,智能对比用户提供内容是否完整并返回缺失项或确认完整。
使用说明 (SKILL.md)

Get Resource Element - 评估要点对比技能

本技能用于根据产品名称查询对应的标准评估要点,并对比已提供的评估要点是否完整。

核心功能

  1. 解析需求 - 从输入中提取产品名称和已提供的评估要点
  2. 查询知识库 - 根据产品名称定位 kb/\x3C产品目录>/\x3C产品>-标准单产品硬件资源测算.md 文件
  3. 提取评估要点 - 从文件中提取"服务器资源评估输入项"部分的所有要点
  4. 对比分析 - 将已提供的评估要点与所需要点进行智能匹配对比
  5. 返回结果 - 满足则返回 ok,不满足则返回缺少的评估要点列表

使用流程

步骤 1: 解析输入

从用户输入中提取:

  • 产品名称: 如"病历质控系统"、"CDSS 系统"等
  • 已提供的评估要点: 用户已经提供的评估要点列表

示例输入:

产品:病历质控系统
已提供评估要点:
- 年门诊人次 10 万
- 年出院人次 5000

步骤 2: 查询产品文件

根据产品名称在知识库中查找对应文件:

  • 遍历 kb/ 目录下的所有子目录
  • 查找包含产品名称的目录
  • 定位该目录下的 *标准单产品硬件资源测算.md 文件

文件命名规则:\x3C产品简称>-标准单产品硬件资源测算.md

步骤 3: 提取评估要点

从文件中提取"服务器资源评估输入项"章节的所有编号列表项。

示例(病历质控系统):

  1. 年门诊人次
  2. 年出院人次
  3. 医护人员总数

步骤 4: 对比评估要点

使用 scripts/compare_elements.py 脚本进行对比:

  • 标准化处理(去除空格、统一大小写)
  • 支持部分匹配(如"年门诊人次"匹配"年门诊人次 10 万")
  • 识别满足和缺失的要点

步骤 5: 返回结果

满足时:

ok

不满足时:

缺少的评估要点:医护人员总数

脚本使用

compare_elements.py

位置: scripts/compare_elements.py

输入 (JSON 格式):

{
  "product": "病历质控系统",
  "provided_elements": ["年门诊人次 10 万", "年出院人次 5000"],
  "kb_dir": "/Users/hushuai/.openclaw/workspace-ClinicalManager/kb"
}

输出 (JSON 格式):

满足时:

{
  "status": "ok",
  "message": "ok",
  "details": {
    "satisfied": ["年门诊人次", "年出院人次"],
    "missing": [],
    "is_complete": true
  }
}

不满足时:

{
  "status": "missing",
  "message": "缺少的评估要点:医护人员总数",
  "details": {
    "satisfied": ["年门诊人次", "年出院人次"],
    "missing": ["医护人员总数"],
    "is_complete": false
  }
}

执行方式:

python3 scripts/compare_elements.py '\x3Cinput_json>'

支持的产品线

  • CDSS 系统
  • VTE 系统
  • 病历质控系统
  • 单病种系统
  • 智医助理 - 基层人工智能辅助诊疗系统

示例

示例 1: 评估要点完整

用户输入:

帮我检查一下病历质控系统的评估要点是否完整:
- 年门诊人次:10 万
- 年出院人次:5000
- 医护人员总数:200 人

处理流程:

  1. 解析出产品:病历质控系统
  2. 解析出已提供要点:年门诊人次、年出院人次、医护人员总数
  3. 查询文件:kb/病历质控系统/病历质控 - 标准单产品硬件资源测算.md
  4. 提取所需要点:年门诊人次、年出院人次、医护人员总数
  5. 对比结果:全部满足

输出:

ok

示例 2: 评估要点缺失

用户输入:

检查 CDSS 系统的评估要点,目前有:
- 年门诊人次 15 万

处理流程:

  1. 解析出产品:CDSS 系统
  2. 解析出已提供要点:年门诊人次
  3. 查询文件:kb/CDSS 系统/CDSS-标准单产品硬件资源测算.md
  4. 提取所需要点:年门诊人次、年出院人次、医护人员总数
  5. 对比结果:缺少 2 项

输出:

缺少的评估要点:年出院人次、医护人员总数

注意事项

  1. 产品名称匹配: 支持模糊匹配,如"病历质控"可匹配"病历质控系统"
  2. 评估要点匹配: 支持部分匹配,如"年门诊人次"可匹配"年门诊人次 10 万"
  3. 知识库路径: 默认为 /Users/hushuai/.openclaw/workspace-ClinicalManager/kb,可通过 kb_dir 参数自定义
  4. 文件格式: 产品文件必须是 Markdown 格式,且包含"## 服务器资源评估输入项"章节
安全使用建议
This skill reads Markdown files from a local knowledge-base directory and compares required assessment items to those you provide — it does not use network calls or request credentials. Before installing or running it: (1) ensure the kb_dir path points to the correct directory (override the default /Users/hushuai/… path to your KB location), (2) verify files in that KB do not contain sensitive data you don't want read by the agent, and (3) you can review/execute scripts locally (python3 scripts/compare_elements.py '<json>') to confirm behavior. If you do not want the agent to read local files, do not install or invoke this skill.
功能分析
Type: OpenClaw Skill Name: get-resource-element Version: 1.0.0 The skill bundle is designed to validate hardware resource requirements by comparing user input against standard Markdown documents in a knowledge base. While it contains a hardcoded absolute path to a specific user's directory (/Users/hushuai/...) in both SKILL.md and scripts/compare_elements.py, this appears to be a configuration oversight from the development environment rather than a malicious indicator. The Python script performs localized file reading and string comparison without any network activity, shell execution, or data exfiltration logic.
能力评估
Purpose & Capability
Name/description say it will locate standard product hardware assessment items and compare them to user-provided items; the included script implements exactly that (search kb_dir, open a matching '*标准单产品硬件资源测算.md', extract '## 服务器资源评估输入项', and compare). No unrelated capabilities are requested.
Instruction Scope
SKILL.md directs the agent to parse product name and provided items, search a local kb/ directory, extract a specific Markdown section, and run the included compare_elements.py. The script only reads files under the specified kb_dir and does not access other system state, network endpoints, or environment secrets.
Install Mechanism
No install spec; instruction-only skill with one local Python script. Nothing is downloaded or written to disk by an installer. The script is plain Python and has no external install actions.
Credentials
No environment variables, credentials, or config paths are required. However the default kb_dir in SKILL.md/script points to a specific user path (/Users/hushuai/.openclaw/...); this is local file access (expected for the purpose) but users should be aware the skill reads files from that directory if not overridden.
Persistence & Privilege
always is false and the skill does not request persistent presence or modify other skills/config. It can be invoked autonomously (platform default), which is normal; this combined with the skill's limited local-read behavior does not raise extra privilege concerns.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install get-resource-element
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /get-resource-element 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the get-resource-element skill. - Supports querying and comparing required hardware resource assessment elements for specified products. - Automatically extracts product name and provided elements, locates the standard reference file, and performs element completeness checks. - Returns "ok" if requirements are fully met; otherwise, lists missing assessment elements. - Supports CDSS 系统, VTE 系统, 病历质控系统, 单病种系统, and 智医助理 - 基层人工智能辅助诊疗系统.
元数据
Slug get-resource-element
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Get Resource Element 是什么?

根据产品名称查询对应标准硬件资源评估要点,智能对比用户提供内容是否完整并返回缺失项或确认完整。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。

如何安装 Get Resource Element?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install get-resource-element」即可一键安装,无需额外配置。

Get Resource Element 是免费的吗?

是的,Get Resource Element 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Get Resource Element 支持哪些平台?

Get Resource Element 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Get Resource Element?

由 hellohushuai(@hellohushuai)开发并维护,当前版本 v1.0.0。

💬 留言讨论