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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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:
- the target workbook was identified from the anchored workspace path
- pre-edit structure matched the intended operation
- the edit was performed on the correct file
- the saved workbook was directly re-read from disk
- every requested criterion was checked in a deterministic verification report
- each criterion is marked as one of:
PASSFAILUNAVAILABLE-IN-SOURCE
- 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:
Candidate inventoryPre-edit audit checklistPost-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 existsrequired-sheet: Sample existsrequired-column: Sheet Sample has column "Selected"sample-count: exactly 25 marked rows in Samplecoverage: at least 1 marked row where Product = Trade Financepreservation: 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
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。