sheet-process

A general filtering and processing tool for Tencent Docs smart sheets, supporting multi-condition filtering by column. Workflow mode outputs JSON with one click for downstream AI nodes; atomic mode uses guided questions and supports custom output formats. Trigger terms include sheet-process for workflow mode, and sheet filtering, sheet processing, or sheet filtering requests for atomic mode.

Author
liuyi
Listed version
1.2.0
Last updated
Downloads
1,111
Bookmarks
0

Installation

Review the source and dependencies with a prompt. You can also switch to an install command. A package is available to download.

Installation method

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "sheet-process" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8be6bd3f4126c12e9b37ee334265d21d8262ebe0a3b7a968c8d47b235c90348f. Verify the upstream source and version against https://clawhub.ai/liuyi-arch/sheet-process before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Install SkillPi Skill Finder first, then install this skill after the first step succeeds.

Package runner
npx skills add Findskills/skillpi && npx clawhub install sheet-process --version 1.2.0

Source and setup

clawhub.ai

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A general filtering and processing tool for Tencent Docs smart sheets, supporting multi-condition filtering by column. Workflow mode outputs JSON with one click for downstream AI nodes; atomic mode uses guided questions and supports custom output formats. Trigger terms include sheet-process for workflow mode, and sheet filtering, sheet processing, or sheet filtering requests for atomic mode.

0 Downloads

Introduction source: third_party · liuyi-arch · 1.2.0 Reference

SkillPi interpretation

Tasks
A common filter processing tool for smart tables for Query documents. Two modes are supported: Workflow mode (one key output JSON, suitable for input as a downstream AI node) and Atomic mode (lead question and answer, customised output format). Trigger words: sheet-process (workflow), table filtering/table processing/table filtering (atom mode). Use this when the user needs a column-based multi-conditional filter in the Quest Document Smart Table.
Audience
Not specified in the source documentation.
Inputs and outputs
Call `scripts/smartsheet_filter.py` Other Organiser
Software, accounts and paid services
`scripts/smartsheet_filter.py` - Core filter engine (from smartsheet-filter skill) requires WorkBuddy to connect to the Quest Document connection `/Applications/WorkBuddy.app/Contents/Resources/app.asar.unpacked/resources/builtin-plugins/tencent-docs-plugin/skills/tencent-docs/tencentdocs.py`
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: sheet-process
description: 腾讯文档智能表格通用筛选处理工具。支持两种模式:工作流模式(一键输出JSON,适合作为下游AI节点输入)和原子模式(引导式问答,可自定义输出格式)。触发词:sheet-process(工作流)、表格筛选/表格处理/表格过滤(原子模式)。当用户在腾讯文档智能表格中需要按列进行多条件筛选时使用。

sheet-process — 智能表格通用筛选处理 Skill

概述

将腾讯文档智能表格筛选功能抽象为可编排的工作流节点。支持两种模式:

模式 触发词 优先级 输出
工作流模式 sheet-process 最高 自动输出 JSON(供下游 AI 节点消费)
原子模式 表格筛选、表格处理、表格过滤 次高 引导式问答,输出格式由用户决定

若两种模式的触发词同时出现,工作流模式优先。


模式判定规则(执行任何操作前必须先判定)

当 Skill 被触发时,首先读取用户消息中的触发词:

IF 用户消息包含 "sheet-process" →
    模式 = "workflow"
ELSE IF 用户消息包含 "表格筛选" / "表格处理" / "表格过滤" →
    模式 = "atomic"
ELSE →
    模式 = "atomic"(默认)

注意: 即使模式已确定,也可以从对话上下文中获取已有的 file_id。如果用户消息中包含 @tdoc#xxx 引用,提取 file_id 备用。


交互流程(严格按此顺序执行,每步必须等待用户应答后继续)

第 0 步:模式确认

仅在工作流模式下执行。 向用户展示:

🔄 工作流模式已激活

我将通过以下步骤完成智能表格筛选:

  ① 确认腾讯文档连接状态
  ② 选择要筛选的工作表
  ③ 填写筛选参数
  ④ 输出 JSON 结果

现在开始 →

在原子模式下: 直接进入第 1 步,不展示模式说明。


第 1 步:确认连接状态

向用户提问:

📋 第 1 步:确认环境

是否已在 WorkBuddy 中连接好腾讯文档,并导入需要处理的表格?

  · 若已完成 → 回复「是」
  · 若未完成 → 请先在连接器管理中连接「腾讯文档」,在对话中 @ 引用需要处理的表格

等待用户回复。 规则:

  • 用户回复「是」或含义相同的肯定 → 将 input1 记为 "是",进入第 2 步
  • 用户无输入 → 继续等待
  • 其他情况 → 重复第 1 步(提示用户先连接并导入)

第 2 步:选择工作表

前提: 从对话上下文中提取 file_id(来自 @tdoc#xxx 引用,或用户直接提供的表格链接/ID)。

若无法提取 file_id,询问用户:

请提供要处理的腾讯文档链接,或使用 @ 引用该文档。

拿到 file_id 后,调用 smartsheet.list_tables 获取所有工作表列表。

只有一个工作表: 自动选中该工作表,将 input2 记为该 sheet 标题,直接进入第 3 步。向用户提示:

📋 该文档只有一个工作表:「{sheet_title}」,已自动选中。

有多个工作表: 列出所有工作表并询问:

📋 该文档包含以下工作表:

  1. {sheet_1_title}
  2. {sheet_2_title}
  3. {sheet_3_title}
  ...

你想对哪一个 sheet 进行筛选?请回复这个 sheet 的名称(完整标题或序号均可)。

等待用户回复。 规则:

  • 用户回复的工作表名称存在于列表中 → 将 input2 记为该标题,进入第 3 步
  • 用户无输入 → 继续等待
  • 回复名称不存在 → 重复第 2 步(提示用户重新选择)

第 3 步:填写筛选参数

进入本步后,先调用 smartsheet.list_fields 加载该工作表的列信息(含列名和列序号 1-based),然后输出以下内容:

📝 第 3 步:填写筛选参数

请参考示例及说明,在「用户输入」行填写表格,然后发送给我。

┌──────────┬──────────────────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────────────────────────┬──────────────────────────────┐
│          │ 筛选列                           │ 关键词(#分隔)                                   │ 取并集(Y/N)                                    │ 结果输出哪些列               │
├──────────┼──────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────┤
│ 示例     │ [1, 2]                           │ ["关键词1#关键词2", "关键词3#关键词4#关键词5"]     │ [true, false]                                    │ [2, 3, 5]                    │
├──────────┼──────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────┤
│ 说明     │ 要筛选的第一列、第二列           │ 第一列筛选关键词1、关键词2;                      │ 第一列取交集(同时含关键词1和关键词2);         │ 输出原有表格第2、3、5列      │
│          │ (填列序号或列标题)              │ 第二列筛选关键词3、4、5                           │ 第二列取并集(含任一关键词即命中)               │ (填列序号或列标题)         │
├──────────┼──────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────────────────────────┼──────────────────────────────┤
│ 用户输入 │                                  │                                                  │                                                  │                              │
└──────────┴──────────────────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────────────────────────┴──────────────────────────────┘

💡 当前工作表「{sheet_title}」的列信息:

{列出所有列,格式:序号. 列标题 [类型]}

💡 提示:
  · 筛选列支持列序号(如 7)或列标题(如 "招聘岗位")
  · 多个筛选列用逗号分隔,写在 [] 内(如 [7, 3] 或 ["招聘岗位", "城市"])
  · 关键词用 # 分隔同列多个关键词(如 "前端#全栈#开发")
  · 取并集 Y = 命中任一即保留,N = 全部命中才保留
  · 输出列同样支持序号或标题

等待用户回复。 解析规则:

用户需填写「用户输入」行的四列内容。解析方式:

  1. 筛选列:去掉外层 [],按逗号拆分为列表,每项尝试转 int,失败则保留字符串
  2. 关键词:去掉外层 [],按 ", " 拆分为各组,每组去掉引号后按 # 拆分关键词
  3. 取并集:去掉外层 [],按逗号拆分,true/Y/y → True,false/N/n → False
  4. 输出列:去掉外层 [],按逗号拆分为列表,每项尝试转 int,失败则保留字符串

格式校验:

  • 四项都必须填写,不能为空
  • 筛选列数量 = 关键词组数 = 取并集数量(长度必须一致)
  • 若格式不符 → 展示错误提示,重复第 3 步

格式正确后: 回显解析结果确认:

🔍 解析结果确认:

  筛选列:{filter_columns}
  关键词:{keywords}
  列内取并集:{union_mode}
  输出列:{return_columns}

  确认无误?回复「确认」执行筛选。

用户确认后进入第 4 步。


第 4 步:执行筛选并输出

调用 scripts/smartsheet_filter.py 执行筛选:

import sys
sys.path.insert(0, '/Users/liuliu/.workbuddy/skills/sheet-process/scripts')
from smartsheet_filter import SmartsheetFilter

sf = SmartsheetFilter(file_id=file_id, sheet_title=sheet_title)

工作流模式输出(直接输出 JSON)

result = sf.filter_to_json(
    filter_columns=filter_cols,
    keywords=keywords,
    union_mode=union_mode,
    return_columns=return_cols,
    column_combine="intersection",
    output_path=output_json_path,
)

输出 JSON 文件到当前工作区,并展示摘要:

✅ 筛选完成

  工作表:{sheet_title}
  总记录数:{total}
  匹配记录数:{matched}
  筛选条件:{filter_summary}
  输出文件:{json_path}

JSON 结构化输出已就绪,可作为下游节点输入。

原子模式输出(询问用户输出格式)

📋 第 4 步:选择输出格式

是否以 JSON 格式输出最终结果?

  · JSON 格式文件有利于 AI 读取,便于作为下一个工作流节点的输入
  · 也可以选择 HTML 可视表格、Excel 等格式

  若以 JSON 格式输出 → 回复「是」
  若以其他格式输出 → 回复您期望的输出格式(如 HTML、Excel)

等待用户回复。 规则:

  • 用户回复「是」→ 同工作流模式,输出 JSON
  • 用户无输入 → 继续等待
  • 用户回复其他格式(如「HTML」)→ 调用对应的输出方法,使用 sf.filter_to_html() 等方法
  • 无论如���,最终都将输出文件通过 present_files 展示给用户

参数映射速查

用户模板填入的内容与 smartsheet_filter.py 参数的映射关系:

模板字段 用户输入示例 smartsheet_filter.py 参数
筛选列 [7] 或 ["招聘岗位"] filter_columns
关键词 ["前端#全栈#开发#研发#软件"] keywords → [["前端","全栈","开发","研发","软件"]]
取并集 [true] 或 [Y] union_mode
输出列 [1, 2] 或 ["招聘企业","投递链接"] return_columns

说明: 本 Skill 暂不支持跨列组合方式配置,固定使用 column_combine="intersection"(所有筛选列都满足才保留)。如需更灵活的组合,请使用 smartsheet-filter Skill。


自然语言快速模式

如果用户在第 3 步直接用自然语言描述筛选需求(而非填写模板表格),按以下映射自动转换:

用户表述 映射
「筛选 A 列含 X 或 Y 或 Z」 filter_columns=[A],keywords=[[X,Y,Z]],union_mode=[True]
「筛选 A 列同时含 X 和 Y」 filter_columns=[A],keywords=[[X,Y]],union_mode=[False]
「返回 B 列和 C 列」 return_columns=[B, C]
列用标题描述(如「招聘岗位」) 直接使用列标题字符串
列用序号描述(如「第7列」) 使用整数索引

快速模式下仍需在第 3 步回显解析结果,确认后再执行。


依赖

  • scripts/smartsheet_filter.py — 核心筛选引擎(从 smartsheet-filter skill 移植)
  • 需要 WorkBuddy 已连接「腾讯文档」连接器
  • 依赖 /Applications/WorkBuddy.app/Contents/Resources/app.asar.unpacked/resources/builtin-plugins/tencent-docs-plugin/skills/tencent-docs/tencentdocs.py

Version history

  1. 1.2.0 ClawHub ↗
    Original release notes

    sheet-process 1.2.0 - 移除 skill-card.md 文件,简化文档结构。 - SKILL.md 文档中删除了 version、agent_created、metadata 字段。 - 保持筛选流程、使用说明与参数映射内容不变。 - 功能逻辑和用户交互未做更改,仅精简和清理说明文档。

  2. 0.1.1 ClawHub ↗
    Original release notes

    sheet-process v0.1.1 Changelog - Added initial scripts directory for core functionality. - Enhanced SKILL.md documentation with improved metadata, versioning, and compatibility information. - Removed redundant skill-card.md file. - Improved structure for skill distribution and agent integration.

  3. 1.1.0 ClawHub ↗
    Original release notes

    sheet-process 1.1.0 - No file changes detected for this version. - Version remains unchanged in SKILL.md (still 1.0.0). - No new features, fixes, or documentation updates found based on current inputs.

  4. 1.0.3 ClawHub ↗
    Original release notes

    - Removed the file skill-card.md. - No changes to core functionality or usage.

  5. 1.0.2 ClawHub ↗
    Original release notes

    - Updated documentation with version, metadata, and homepage fields in SKILL.md. - Added OpenClaw metadata requirements (e.g., python3 binary). - Removed the scripts directory from the repository. - No functional or logic changes to the skill code; changes are limited to metadata and documentation structure.

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

1.2.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供腾讯文档智能表格多条件筛选功能,解决用户实际数据处理痛点
  • 支持工作流模式和原子模式,适应不同使用场景和用户需求
Trigger Precision85/100

Highlights

  • 触发词定义清晰,区分工作流与原子模式,边界明确
  • 覆盖多种用户表达方式,减少误触和漏触风险
Structure and Standards75/100

Areas to improve

  • 文档过长 Reported severity: Minor

    主文档内容超过500行,影响阅读体验

    Recommendation: 考虑将部分内容拆分为子文档或通过链接引用

Highlights

  • 结构完整,包含概述、模式判定、交互流程、参数映射等必要章节
  • 提供详细的步骤说明和示例,便于用户理解和执行
Execution Reliability60/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    依赖的 scripts/smartsheet_filter.py 文件未包含在 Skill 包中

    Recommendation: 请确保所有被引用的脚本文件都包含在 Skill 包内,或提供明确的获取方式

Highlights

  • 参数映射清晰,与底层脚本接口对应关系明确
  • 流程逻辑完整,包含异常处理和用户确认机制
Evidence Verifiability (mean of the first four)75/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

`scripts/smartsheet_filter.py` - Core filter engine (from smartsheet-filter skill) requires WorkBuddy to connect to the Quest Document connection `/Applications/WorkBuddy.app/Contents/Resources/app.asar.unpacked/resources/builtin-plugins/tencent-docs-plugin/skills/tencent-docs/tencentdocs.py`

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.