← 返回 Skills 市场
cantonbio-skill

HCP data process assist

作者 cantonbio-skill · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
79
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install hcp-data-process
功能描述
从 HCP 仪器结果文件中提取汇总表。适用于用户提供的 HCP 类 Excel 文件,其中第一个 sheet 或原始文本包含 Sample、QC、Standards 等 Group 分段,并希望按样例格式生成新的汇总 sheet。
使用说明 (SKILL.md)

HCP结果提取

当 HCP 结果文件遵循 hcp_dataextract/ 中样例的导出结构时,使用这个 skill。

功能说明

  • 读取 .xlsx 工作簿,以及 UTF-16 制表符分隔的 .xls 导出文件。
  • 从第一个 sheet 或原始导出文本中解析 Group: 分段。
  • 提取 SampleMeanResultMeanresultCV%CV
  • 按样例布局生成新的汇总 sheet,起始位置为第 C 列、第 4 行。
  • 仅对生成的汇总 sheet 设置背景色:分组行、表头行、分组后的空白行用浅蓝色,数据行用淡绿色。

使用命令

运行内置脚本:

python scripts/extract_hcp.py \x3Cinput-path>

常用参数:

  • --output-dir \x3Cdir>:将处理结果写入指定目录。
  • --sheet-name \x3Cname>:指定生成的汇总 sheet 名称,默认是 Sheet1
  • --overwrite:若输出文件已存在则覆盖。

输入路径既可以是单个文件,也可以是目录。若传入目录,脚本会扫描其中的 .xlsx.xlsm.xls 文件。

输出行为

  • .xlsx.xlsm 文件,脚本会复制原工作簿,替换或创建汇总 sheet,并另存为以 _extracted.xlsx 结尾的新文件。
  • 对 UTF-16 文本形式的 .xls 导出文件,脚本会生成新的 .xlsx 工作簿,其中:
    • 第 1 个 sheet:导入后的原始数据
    • 第 2 个 sheet:提取后的汇总表
  • 第一个 sheet 的原始数据不设置颜色,只有第二个 sheet 的汇总表会应用背景色。

说明

  • 解析逻辑基于表头名称而不是固定列号,因此兼容 MeanResult / Meanresult 以及 CV% / CV
  • 会忽略空白续行,只提取每个样本的主记录行。
  • 只有汇总 sheet 会设置样式,原始数据的第一个 sheet 不做颜色处理。
  • 汇总 sheet 的样式与样例保持一致:分组行、表头行、分组后的空白行使用浅蓝色,数据行使用淡绿色。
安全使用建议
This skill appears to do what it says: parse HCP-style Excel/TSV exports and generate a formatted summary sheet. Before installing or running it: (1) ensure you have Python 3 and the openpyxl package available (pip install openpyxl) because the registry metadata doesn't declare these; (2) run the script on copies of your files first (it writes new _extracted.xlsx files and can overwrite with --overwrite); (3) inspect the included script yourself (scripts/extract_hcp.py) if you have any security concerns—it performs only local file parsing and Excel writes and contains no network calls; (4) run it in a restricted environment or sandbox if the input files are sensitive until you are comfortable with its behavior.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the included Python script all describe the same operation: parsing HCP-style Excel/UTF-16 TSV exports and producing a formatted summary sheet. The required behavior is coherent with the stated purpose.
Instruction Scope
SKILL.md instructs the agent to run the included script on user-provided files and explains input/output behavior. The instructions only reference local file reads/writes and do not direct the agent to read unrelated system files or send data to external endpoints.
Install Mechanism
There is no install spec (instruction-only), which is low-risk. However, the script requires a Python runtime and the openpyxl package; these dependencies are not declared in the registry metadata or SKILL.md 'requirements' section. Users must ensure their environment has Python and openpyxl available.
Credentials
The skill requests no environment variables, credentials, or config paths. The script operates purely on files provided by the user and writes local output files—this is proportionate to the stated task.
Persistence & Privilege
always is false and the skill does not request persistent agent-level privileges. It does not modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hcp-data-process
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hcp-data-process 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
ad-data-assist 1.0.0 - 新增 hcp-data-process:支持从 HCP 仪器结果文件批量提取汇总表。 - 兼容 `.xlsx`、`.xlsm` 工作簿及 UTF-16 `.xls` 文本文件,自动解析 Group 分段及相关指标。 - 输出标准化汇总 sheet,自动设定分组/数据行背景色,样式与 HCP 样例一致。 - 提供灵活命令行参数,包括输出路径、sheet 命名和覆盖方式。 - 输入可为文件或目录,自动批量处理并保存结果。
元数据
Slug hcp-data-process
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

HCP data process assist 是什么?

从 HCP 仪器结果文件中提取汇总表。适用于用户提供的 HCP 类 Excel 文件,其中第一个 sheet 或原始文本包含 Sample、QC、Standards 等 Group 分段,并希望按样例格式生成新的汇总 sheet。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 79 次。

如何安装 HCP data process assist?

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

HCP data process assist 是免费的吗?

是的,HCP data process assist 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

HCP data process assist 支持哪些平台?

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

谁开发了 HCP data process assist?

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

💬 留言讨论