Get Resource Element

v1.0.0

根据产品名称查询对应标准硬件资源评估要点,智能对比用户提供内容是否完整并返回缺失项或确认完整。

0· 137·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for hellohushuai/get-resource-element.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Get Resource Element" (hellohushuai/get-resource-element) from ClawHub.
Skill page: https://clawhub.ai/hellohushuai/get-resource-element
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install get-resource-element

ClawHub CLI

Package manager switcher

npx clawhub@latest install get-resource-element
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk97e2svmp8z1a92w323jg6jnwn839j5a
137downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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

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

核心功能

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

使用流程

步骤 1: 解析输入

从用户输入中提取:

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

示例输入:

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

步骤 2: 查询产品文件

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

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

文件命名规则:<产品简称>-标准单产品硬件资源测算.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 '<input_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 格式,且包含"## 服务器资源评估输入项"章节

Comments

Loading comments...