spreadsheet-proof-gate
Skill này làm gì
Quy trình này khiến AI agent đối chiếu công việc Excel với các yêu cầu bằng văn bản của bạn trước khi kết thúc. Nó dành cho những người cần bằng chứng rằng mọi sheet, cột và số lượng đều đúng.
Khi nào nên dùng
- ✓Khi bạn cần đúng tên sheet, cột hoặc số lượng trong một workbook.
- ✓Khi bạn đang sửa một file Excel hiện có và phải chắc kết quả là đúng.
- ✓Khi một agent được giao làm việc bảng tính và bạn muốn kết quả được kiểm tra.
Liên kết skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-merged/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cập nhật workbook ngân sách của tôi theo bản đặc tả này, rồi chứng minh bằng một kiểm tra Python rằng mỗi yêu cầu đã được đáp ứng trước khi bạn nói là xong.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xác nhận đường dẫn workbook, kiểm toán cấu trúc trước khi sửa, thực hiện thay đổi, rồi chạy một script openpyxl trên file đã lưu. Mỗi yêu cầu được đánh dấu đạt hoặc không đạt, và công việc chỉ được coi là xong khi mọi mục đạt hoặc được giải thích.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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- `
Câu hỏi thường gặp
Cổng chứng minh là gì?
Đó là một kiểm tra cuối cùng, chặn việc hoàn tất cho đến khi mọi yêu cầu đạt hoặc được giải thích.
Nó có dựa vào bản tóm tắt của agent không?
Không, skill yêu cầu không bao giờ kết thúc chỉ dựa trên bản tóm tắt bằng lời.
Thư viện nào kiểm tra file?
Skill dùng openpyxl trong một lượt kiểm tra Python trực tiếp.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.8k
- Vị trí xếp hạng
- #13006
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agentpilot
7.8kGiúp agent của bạn cải thiện dự án từng bước bằng cách chuẩn bị tác vụ và chạy vòng lặp AgentPilot, gồm đề xuất, kiểm thử và chấm điểm thay đổi.
openspace
7.8kGiúp agent của bạn thiết lập OpenSpace, công cụ lưu và lấy lại skill của agent, rồi kết nối nó với ứng dụng AI của bạn qua MCP.
rsi-arena
7.8kGiúp agent của bạn thiết lập và chạy các bài kiểm thử benchmark AI chuẩn, như AIME và Terminal-Bench, để so sánh các phương pháp cải tiến khác nhau.
experiment-guide
7.8kGiúp agent của bạn lên kế hoạch các thí nghiệm nhỏ, đọc kết quả và ghi lại phát hiện khi tìm cách cải thiện một chương trình.
Skill tương tự
feishu-doc
394kGiúp agent của bạn đọc, tạo và sửa tài liệu đám mây Feishu, gồm văn bản, hình ảnh và bảng, bằng công cụ tài liệu.
feishu-drive
394kCho phép agent của bạn duyệt, sắp xếp và bình luận các file trong một thư mục đám mây Feishu đã được chia sẻ với bot.
feishu-perm
394kGiúp agent của bạn kiểm tra và thay đổi ai có quyền truy cập một file Feishu, chọn quyền nhỏ nhất đáp ứng yêu cầu của bạn.