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に貼り付けるだけ。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エージェントが、AIMEやTerminal-Benchなどの標準的なAIベンチマークテストをセットアップして実行し、異なる改善方法を比較できるよう支援します。
experiment-guide
7.8kエージェントが、プログラムを改善する方法を調べる間に、小さな実験を計画し、その結果を読み、発見を記録できるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。