QC3 NumericDataThresholdCheck logo

QC3 NumericDataThresholdCheck

Organization
cas-bigdatalab
QC3_NumericDataThresholdCheck

数值数据阈值检验工具。读取结构化数据文件(CSV、TSV、Excel等),检查数值字段是否在指定的门限范围内,不允许超出门限值之外,最后输出为同格式的文件。当用户需要对数据进行阈值检验、数值范围检查、数据质量控制等操作时使用此skill。

Overview

Publishercas-bigdatalab
Repositorypiflow
Skill nameQC3_NumericDataThresholdCheck
Stars
541
Forks
172
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cas-bigdatalab on GitHub. Read the source before you install it.

Installation

Install the QC3 NumericDataThresholdCheck AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cas-bigdatalab/piflow/tree/master/workspace/skills/QC3_NumericDataThresholdCheck
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cas-bigdatalab/piflow.git /tmp/piflow
mkdir -p .claude/skills
cp -r /tmp/piflow/workspace/skills/QC3_NumericDataThresholdCheck .claude/skills/QC3_NumericDataThresholdCheck
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable QC3 NumericDataThresholdCheck in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads QC3 NumericDataThresholdCheck on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so QC3 NumericDataThresholdCheck is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

QC3_NumericDataThresholdCheck

功能说明

该skill提供数值数据阈值检验的能力,具体包括:

  1. 读取结构化文件:支持 CSV、TSV、Excel 等多种格式的结构化数据文件
  2. 数值阈值检验:将被检验表中的属性项值与门限比对,检查是否在门限范围
  3. 输出结果:将检验后的数据输出为同格式的文件

核心功能

1. 数值数据阈值检验

通过执行 QC3_NumericDataThresholdCheck.py 脚本,读取输入文件,检查数值字段是否在指定的阈值范围内,并输出处理后的文件。

调用方式:

bash
python scripts/QC3_NumericDataThresholdCheck.py --input_path <输入文件路径> --origin_output_path <输出文件路径> --field_name <字段名> --max_value <最大值> --min_value <最小值> --qc_mark <QC标记>

参数说明:

  • --input_path:必填,输入文件路径(支持 CSV、TSV、Excel 等格式)
  • --origin_output_path:必填,输出文件路径(与输入文件格式相同)
  • --error_output_path:可选,错误数据输出文件路径
  • --field_name:必填,要检查的字段名
  • --max_value:必填,最大值
  • --min_value:必填,最小值
  • --additional_condition:可选,额外条件
  • --qc_mark:必填,QC标记
  • --mark_field_name:可选,标记字段名
  • --id_field_name:可选,ID字段名

使用示例:

bash
# 检查 DBH 字段在 0-100 之间
python scripts/QC3_NumericDataThresholdCheck.py --input_path data.csv --origin_output_path output.csv --field_name DBH --max_value 100 --min_value 0 --qc_mark "DBH阈值检验"

脚本说明

QC3_NumericDataThresholdCheck.py

  • 功能:数值数据阈值检验的核心逻辑
  • 调用接口:通过命令行参数接收输入输出路径和阈值配置
  • 特性:
    • 支持多种结构化文件格式
    • 灵活的阈值配置
    • 保留原始数据格式
    • 详细的检验结果输出

data_io.py

  • 功能:结构化文件读写工具
  • 支持格式:CSV、TSV、Excel、SPSS
  • 特性:
    • 自动检测文件编码
    • 多编码重试机制
    • 智能处理不同文件格式

注意事项

  1. 确保输入文件存在且格式正确
  2. 阈值配置格式必须为 字段名:最小值-最大值,多个字段用逗号分隔
  3. 输出路径需要有写入权限
  4. 脚本在用户本地执行,依赖 Python 环境
  5. 支持 Windows 和 Linux 系统

依赖

  • Python 3.x
  • pandas 库
  • chardet 库(用于自动检测文件编码)
  • openpyxl 库(用于 Excel 文件处理)
  • xlrd 库(用于旧版 Excel 文件处理)
  • pyreadstat 库(用于 SPSS 文件处理)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the QC3 NumericDataThresholdCheck AI skill do?

数值数据阈值检验工具。读取结构化数据文件(CSV、TSV、Excel等),检查数值字段是否在指定的门限范围内,不允许超出门限值之外,最后输出为同格式的文件。当用户需要对数据进行阈值检验、数值范围检查、数据质量控制等操作时使用此skill。

Why use QC3 NumericDataThresholdCheck on TypingMind?

Because you install it once and use it with any model. QC3 NumericDataThresholdCheck is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install QC3 NumericDataThresholdCheck in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cas-bigdatalab/piflow/tree/master/workspace/skills/QC3_NumericDataThresholdCheck. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use QC3 NumericDataThresholdCheck?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with QC3 NumericDataThresholdCheck?

As many as you like. As long as a model supports skills, you can use QC3 NumericDataThresholdCheck with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the QC3 NumericDataThresholdCheck AI skill free?

It is published on GitHub by cas-bigdatalab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇