← Back to Skills Marketplace
cantonbio-skill

HCP data process assist

by cantonbio-skill · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
79
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hcp-data-process
Description
从 HCP 仪器结果文件中提取汇总表。适用于用户提供的 HCP 类 Excel 文件,其中第一个 sheet 或原始文本包含 Sample、QC、Standards 等 Group 分段,并希望按样例格式生成新的汇总 sheet。
README (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 的样式与样例保持一致:分组行、表头行、分组后的空白行使用浅蓝色,数据行使用淡绿色。
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hcp-data-process
  3. After installation, invoke the skill by name or use /hcp-data-process
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
ad-data-assist 1.0.0 - 新增 hcp-data-process:支持从 HCP 仪器结果文件批量提取汇总表。 - 兼容 `.xlsx`、`.xlsm` 工作簿及 UTF-16 `.xls` 文本文件,自动解析 Group 分段及相关指标。 - 输出标准化汇总 sheet,自动设定分组/数据行背景色,样式与 HCP 样例一致。 - 提供灵活命令行参数,包括输出路径、sheet 命名和覆盖方式。 - 输入可为文件或目录,自动批量处理并保存结果。
Metadata
Slug hcp-data-process
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is HCP data process assist?

从 HCP 仪器结果文件中提取汇总表。适用于用户提供的 HCP 类 Excel 文件,其中第一个 sheet 或原始文本包含 Sample、QC、Standards 等 Group 分段,并希望按样例格式生成新的汇总 sheet。 It is an AI Agent Skill for Claude Code / OpenClaw, with 79 downloads so far.

How do I install HCP data process assist?

Run "/install hcp-data-process" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is HCP data process assist free?

Yes, HCP data process assist is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does HCP data process assist support?

HCP data process assist is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created HCP data process assist?

It is built and maintained by cantonbio-skill (@cantonbio-skill); the current version is v1.0.0.

💬 Comments