跳到正文
Skillpedia
PDF、Word 与幻灯片7.8k · #13006

spreadsheet-proof-gate

它能做什么

这项工作流程让 AI 智能体在完成之前,依据你书面的要求核对 Excel 任务。它适合需要证明每个工作表、列和数量都正确的人。

适用场景

  • ✓当你需要工作簿中精确的工作表名称、列或数量的时候。
  • ✓当你在编辑已有的 Excel 文件,并且必须确保结果正确的时候。
  • ✓当一个受委托的智能体完成了电子表格工作,而你希望对结果进行检查的时候。

技能链接

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-merged/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-merged/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请更新我的预算工作簿,使其符合这份规格。然后用 Python 检查证明每项要求都已满足,之后再告诉我完成了。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会确认工作簿路径,在编辑前审核其结构,进行修改,然后对保存后的文件运行一个 openpyxl 脚本。每项要求都会被标记为通过或不通过,只有当所有项目都通过或被解释清楚时,工作才算完成。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Spreadsheet Proof Gate

Use this skill when you must modify, create, or validate an Excel workbook and the result must be proven against a user specification rather than merely described.

This skill combines:

  • workbook discovery and identity confirmation
  • pre-edit structure auditing
  • safe workbook editing
  • deterministic post-write verification from disk
  • a machine-checkable pass/fail checklist for every requested criterion
  • a hard finalization gate that rejects completion when any required criterion is unmet or unreconciled

This is a workflow skill. It does not require a specific editor, but it does require a direct Python verification pass with openpyxl before you report success.

When to use

Use this skill when any of the following are true:

  • the workbook path must be discovered
  • multiple similar Excel files may exist
  • the user requires exact sheet names, columns, counts, or samples
  • the task edits an existing workbook
  • a delegated agent may perform spreadsheet work
  • prior summaries are inconsistent or not trustworthy
  • exact post-edit workbook state matters
  • you must prove that mandatory criteria were satisfied

Core rule

Never finalize from narrative summary alone.

A workbook task is only complete when:

  1. the target workbook was identified from the anchored workspace path
  2. pre-edit structure matched the intended operation
  3. the edit was performed on the correct file
  4. the saved workbook was directly re-read from disk
  5. every requested criterion was checked in a deterministic verification report
  6. each criterion is marked as one of:
    • PASS
    • FAIL
    • UNAVAILABLE-IN-SOURCE
  7. any non-pass result is explicitly reconciled before finalizing

If any mandatory criterion is still FAIL, do not declare success.

If a criterion is UNAVAILABLE-IN-SOURCE, only finalize if:

  • the source workbook truly lacks the needed input,
  • you state that clearly,
  • and the user request did not require inventing unsupported data.

Workspace anchoring rule

All discovery, reads, writes, and verification must be anchored to the exact workspace path provided for the task.

Rules:

  • treat the provided workspace path as the authoritative root
  • resolve the workbook to an exact path under that root
  • do not silently switch to a similarly named file elsewhere
  • do not trust a delegated tool's reported path without independently confirming it
  • if the anchored file cannot be found, stop rather than guessing

Outcome contract

Your output to yourself and to the user should be based on proof, not inference.

For every task, maintain three artifacts internally:

  1. Candidate inventory
  2. Pre-edit audit checklist
  3. Post-write proof checklist

The post-write proof checklist is decisive.

Workflow

Phase 1: Discover candidate workbooks

Search under the exact workspace root for plausible Excel files:

  • .xlsx
  • .xlsm
  • .xls

Prefer files that:

  • match names mentioned by the user
  • live in likely data/output/project folders
  • have relevant modification times
  • contain expected sheet names
  • contain plausible row/column structure

If several files are plausible, inspect all plausible candidates before choosing.

Minimum evidence before selecting a workbook

Before choosing the workbook to edit, confirm at least:

  • exact anchored path
  • file existence
  • workbook readability
  • sheet names
  • approximate row counts in relevant sheets
  • relevant headers in target sheets

Do not select a workbook based on filename similarity alone.

Phase 2: Convert the user request into explicit criteria

Before editing, extract every requirement you can verify.

Possible criteria include:

  • required workbook path or output path
  • required sheet names
  • sheets to preserve
  • sheets to create
  • target sheet to edit
  • required columns
  • required formulas or summaries
  • minimum data rows
  • exact row counts
  • sample size
  • marker/flag count
  • selection rules
  • category coverage requirements
  • preservation of macros/formatting
  • preservation of untouched sheets

Turn these into an explicit checklist.

Criteria format

Represent each requested requirement as a discrete checkable item.

Good examples:

  • required-sheet: Summary exists
  • required-sheet: Sample exists
  • required-column: Sheet Sample has column "Selected"
  • sample-count: exactly 25 marked rows in Sample
  • coverage: at least 1 marked row where Product = Trade Finance
  • preservation: source sheet RawData still exists
  • `
常见问题

什么是证明关卡?

它是一项最终检查,在每项要求都通过或得到解释之前,阻止任务完成。

它依赖智能体的总结吗?

不依赖。这项技能要求绝不能仅凭叙述性的总结来定稿。

哪个库用于检查文件?

这项技能在直接的 Python 验证过程中使用 openpyxl。

详情

作者的原始描述

Edit Excel workbooks only after anchored preflight audit, then require deterministic Python/openpyxl post-write proof that every requested criterion is satisfied or explicitly reconciled before finalizing.

repo: HKUDS/AgentPilot

热度

GitHub 星标
7.8k
排名
#13006
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能