pptx
Create and edit slide decks, generate slides from templates, and extract text.
ANanthropics/skills203k3,265 new stars in the last 7 days
跨字段比较校验工具。读取结构化数据文件(CSV、TSV、Excel等),检查两个字段之间的逻辑约束关系 是否满足(如 start < end、min ≤ max、price >= cost),支持六种比较运算符,多约束可组合使用。 当用户提到跨字段校验、字段间比较、逻辑约束检查、大小关系验证等需求时使用此skill。 即使用户没有明确说出"跨字段",只要任务涉及验证两个字段值之间的逻辑关系,就应该使用此skill。
本skill用于逐行验证两个字段值之间的逻辑关系是否成立。典型应用场景:
start_time < end_timemin_value <= max_valuecost < pricesold <= total| 运算符 | 含义 | 示例 |
|---|---|---|
< | 小于 | start,<,end |
<= | 小于等于 | min,<=,max |
> | 大于 | end,>,start |
>= | 大于等于 | current,>=,baseline |
== | 等于 | computed,==,expected |
!= | 不等于 | status,!=,deleted |
左字段,运算符,右字段| 分隔start,<,end|min,<=,max 表示同时满足 start<end 且 min≤max当用户请求以下任务时,应使用此skill:
| 分割)qc_mark向用户确认:
在 scripts/ 目录下找到 cross_field_comparison_check.py,使用Python执行:
单约束(时间区间):
python scripts/cross_field_comparison_check.py \
--input_path data.csv \
--output_path checked.csv \
--constraints "start_time,<,end_time" \
--qc_mark QCFLAG
多约束(范围+价格):
python scripts/cross_field_comparison_check.py \
--input_path data.csv \
--output_path checked.csv \
--constraints "start,<,end|min,<=,max|cost,<=,price" \
--qc_mark QCFLAG
脚本执行完成后,告知用户:
| 参数 | 必填 | 说明 |
|---|---|---|
--input_path | 是 | 输入文件路径(支持CSV/TSV/Excel/SPSS) |
--output_path | 是 | 输出文件路径 |
--constraints | 是 | 约束表达式,` |
--qc_mark | 是 | 质控标识(如QC标识) |
--mark_field_name | 否 | 质控标识字段名(默认QC0000) |
[OK] Using encoding UTF-8 successfully read CSV file
Successfully read file: /path/to/data.csv, shape: (500, 8)
Constraints: start < end | min <= max
[QC FAIL] 跨字段比较校验未通过 (2 项问题):
[start < end] 3 行违反 (示例: 行42 start=100 > end=80)
[min <= max] 5 行违反 (示例: 行126 min=50 > max=30)
已标记 8 行
Successfully written file: /path/to/checked.csv
[OK] Using encoding UTF-8 successfully read CSV file
Successfully read file: /path/to/data.csv, shape: (300, 6)
Constraints: start < end | cost <= price
[QC PASS] 跨字段比较校验通过
Successfully written file: /path/to/checked.csv
, 分隔(左字段,运算符,右字段)| 分隔_checked 后缀Create and edit slide decks, generate slides from templates, and extract text.
ANanthropics/skills203k3,265 new stars in the last 7 days
Create and edit Word docs with TOC, page numbers, headers and more.
ANanthropics/skills203k3,265 new stars in the last 7 days
Read and edit PDFs: extract text and tables, merge, split, rotate, and fill forms.
ANanthropics/skills203k3,265 new stars in the last 7 days
Co-write specs, proposals and decision docs through a structured, iterative workflow.
ANanthropics/skills203k3,265 new stars in the last 7 days
Read and edit spreadsheets: add columns, compute formulas, format, and clean messy data.
ANanthropics/skills203k3,265 new stars in the last 7 days
Create posters and visual art as PNG or PDF, guided by a design philosophy.
ANanthropics/skills203k3,265 new stars in the last 7 days