spreadsheet-direct-verification
Skill này làm gì
Skill này khiến AI agent kiểm tra trực tiếp một workbook bằng script khi các báo cáo về nó không khớp nhau. Nó dành cho những người cần biết thực sự có gì trong bảng tính, chứ không phải những gì ai đó nói.
Khi nào nên dùng
- ✓Khi một agent được giao đưa ra các sự thật mâu thuẫn về một workbook qua các tin nhắn.
- ✓Khi tên sheet, số hàng hoặc tiêu đề trong các báo cáo không khớp nhau.
- ✓Khi một agent nói một file đã được lưu nhưng không kiểm tra nó trên đĩa.
Liên kết skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-direct-verification/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
“Một agent khác nói đã cập nhật workbook của tôi, nhưng các số không khớp. Hãy kiểm tra chính file bằng script và cho tôi biết thực sự có gì ở đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết script dùng openpyxl để đọc workbook từ đĩa. Nó in đường dẫn, tên sheet, tiêu đề, số hàng và việc các file đầu ra mong đợi có tồn tại hay không, rồi câu trả lời cuối cùng dựa trên báo cáo đó.
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 Direct Verification
Use this workflow when a higher-level or delegated agent has interacted with spreadsheet files, but its summaries or claims are inconsistent, incomplete, or hard to trust.
The goal is to replace uncertain narrative summaries with a direct, reproducible inspection from disk before you finalize your answer.
When to use this
Apply this skill when any of the following happen:
- A delegated agent reports conflicting workbook facts across messages
- Sheet names, row counts, headers, or output paths are inconsistent
- The agent says a file was created or modified, but did not verify it from disk
- The task depends on exact workbook contents, especially after edits
- You need a trustworthy final summary of what actually exists on disk
Core principle
When spreadsheet state matters, trust a deterministic script over a conversational summary.
Inspect the workbook directly with Python and openpyxl, and print a compact report covering:
- workbook path
- whether the file exists
- sheet names
- per-sheet headers
- per-sheet row counts
- totals for "marked" rows, if relevant to the task
- whether expected output files exist
Use the script output as the basis for your final response.
Workflow
- Identify the workbook(s) and expected output file(s).
- Determine what "marked row" means for the task.
- Examples:
- rows with a non-empty marker column
- rows with
x,yes,true, or1 - rows highlighted by a prior workflow that also wrote a marker column
- Examples:
- Run a direct Python inspection on the files from disk.
- Compare the script output against any delegated summary.
- If they differ, treat the script as authoritative.
- Only then provide the final user-facing summary.
Minimum verification checklist
Before finalizing, verify and record:
- exact input workbook path inspected
- exact output workbook path inspected
- whether each file exists
- all sheet names in each workbook
- header row for each relevant sheet
- number of non-empty data rows per sheet
- number of marked rows per sheet, if applicable
- whether modifications appear in the saved output file
Production planning validation checklist
For manufacturing and production planning spreadsheets, extend the verification to include:
Max daily minutes per press: Verify that no press exceeds the daily labor minute limit (e.g., 450 minutes per day per press).
- Sum labor minutes grouped by press and date
- Flag any press-date combinations exceeding the threshold
Max weekly hours per team member: Verify that no team member exceeds weekly hour limits (e.g., 37.5 hours per week).
- Sum assigned hours grouped by team member and week
- Flag any team-member-week combinations exceeding the threshold
Required roles per press: Verify that each press assignment includes all required roles (e.g., 1 operator + 1 water spider per press).
- Count distinct role assignments per press per shift or date
- Flag any press assignments missing required roles
Minimum changeover requirements per press: Verify that required changeovers are scheduled (e.g., minimum 3 changeovers per press per week).
- Count changeover events grouped by press and time period
- Flag any press-period combinations below the minimum threshold
Example production planning verification script extension
Extend the base inspection script with these production-specific checks:
# Add to the INPUTS list if you have separate labor/assignment sheets
# Extend MARKER_CANDIDATES for production-specific columns
PRODUCTION_MARKER_CANDIDATES = MARKER_CANDIDATES | {"press", "team_member", "role", "changeover", "date", "week"}
# Production constraint thresholds (adjust per task)
MAX_DAILY_MINUTES_PER_PRESS = 450
MAX_WEEKLY_HOURS_PER_MEMBER = 37.5
REQUIRED_ROLES_PER_PRESS = {"operator", "water_spider"} # or {"Operator", "Water Spider"}
MIN_CHANGEOVERS_PER_PRESS_PER_WEEK = 3
def validate_production_constraints(ws, headers):
"""Return a dict of constraint violations found in the worksheet."""
violations = {
"daily_minutes_exceeded": [],
"weekly_hours_exceeded": [],
"missing_roles": [],
"insufficient_changeovers": [],
}
if not headers:
return violations
normalized_headers = [normalize(h).lower() for h in headers]
# Find column indices
press_idx = next((i for i, h in enumerate(normalized_headers
Câu hỏi thường gặp
Script báo cáo những gì?
Nó báo cáo đường dẫn workbook, tên sheet, tiêu đề, số hàng và việc các file đầu ra mong đợi có tồn tại không.
Hàng được đánh dấu là gì?
Skill nói điều này tùy thuộc nhiệm vụ, chẳng hạn các hàng có giá trị ở một cột nhất định.
Tại sao tin script hơn bản tóm tắt?
Skill nói một script mang tính xác định đọc file thực tế, nên báo cáo của nó đáng tin hơn bản tóm tắt bằng lời.
Chi tiết
Mô tả gốc của tác giả
Use a deterministic Python/openpyxl inspection pass to verify workbook structure, counts, marked rows, and output-file existence when delegated spreadsheet summaries seem inconsistent.
repo: HKUDS/AgentPilot
Độ phổ biến
- Sao GitHub
- 7.8k
- Vị trí xếp hạng
- #13016
- 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.