spreadsheet-audit-edit-validate
Skill này làm gì
Quy trình này giúp AI agent thay đổi hoặc tạo workbook Excel mà không sửa nhầm file hoặc sheet. Nó dành cho những người có nhiều bảng tính tương tự và cần cập nhật đúng file.
Khi nào nên dùng
- ✓Khi bạn cần sửa một workbook hiện có và phải tìm đường dẫn của nó trên đĩa.
- ✓Khi có thể tồn tại nhiều file Excel tương tự và có thể sửa nhầm file.
- ✓Khi bạn cần workbook hoàn thiện khớp với các tab, cột và số lượng bắt buộc.
Liên kết skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate/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
“Tìm đúng file báo cáo tháng trong các file của tôi, thêm cột của tháng này, rồi kiểm tra các tab và số lượng vẫn khớp.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm các workbook ứng viên và xác nhận file mục tiêu. Nó kiểm toán cấu trúc trước khi sửa, ghi thay đổi vào đúng sheet, rồi xác thực file đã lưu theo các sheet, cột và số lượng bắt buộc.
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 Audit Edit Validate
Use this workflow whenever you need to modify or generate an Excel workbook and the task depends on matching an expected workbook structure. The goal is to avoid editing the wrong file, writing into the wrong sheet, or delivering a workbook that does not satisfy the user's required tabs, columns, or counts. Use this workflow whenever you need to create or modify an Excel workbook and the task depends on matching an expected workbook structure. The goal is to avoid editing the wrong file, writing into the wrong sheet, or delivering a workbook that does not satisfy the user's required tabs, columns, or counts.
Important: This workflow has two distinct modes depending on the task type:
| Task Type | Pre-edit Audit | Post-write Validation |
|---|---|---|
| Modify existing workbook | Full audit required (Phases 1-2) | Full validation required (Phase 4) |
| Create new workbook from source/reference data | Skip pre-edit audit (no existing file to audit) | Full validation required (Phase 4) |
This is a workflow skill, not a tool-specific recipe. Apply it with any spreadsheet-capable tooling.
When to use
Use this workflow when:
- You are modifying an existing workbook AND the workbook path is uncertain or must be discovered from the filesystem
- The workbook path is uncertain or must be discovered from the filesystem
- Multiple similar
.xlsxor.xlsmfiles may exist - The user specifies required sheet names, row counts, sample counts, or populated columns
- A silent structure mismatch would cause downstream errors
Before proceeding, determine which workflow mode applies:
Mode A: Modify existing workbook - Use the full workflow (all phases) when there is an existing workbook file that must be updated in place, the user references an existing file, or the task requires preserving existing data/formulas/formatting.
Mode B: Create new workbook from source/reference data - Skip Phase 1 (locate) and Phase 2 (pre-edit audit) when the task requires generating a new workbook from scratch, source data exists elsewhere but the target workbook does not exist, or the user asks to "create", "generate", or "build" a report. Phase 4 (post-write validation) is still MANDATORY for create mode.
Core principle
For modify-existing mode: Never write first.
For create-new mode: You must create the file, but validate thoroughly after creation.
Always perform three phases in order:
- Find candidate workbook files
- Verify workbook structure before editing
- Validate the saved workbook against the user specification
Note: For create-new mode, skip directly to Phase 3 (create), then perform Phase 4 (validation). Phase 4 is mandatory for all modes.
If any check fails, stop and resolve the mismatch before continuing.
Workspace-path anchoring rule
All spreadsheet operations must be anchored to the exact workspace path provided for the task.
For modify-existing mode: Discovery, inspection, editing, and validation must use the anchored path
For create-new mode: The output path must be under the anchored workspace; validate the created file from that path
Treat the provided workspace path as the authoritative root for all file operations
Resolve the selected workbook to an exact path under that workspace before editing
Do not switch to a different directory, fallback path, temp copy, or similarly named workbook unless the user explicitly authorizes it
If a delegated tool reports a workbook path, independently verify that exact path from the current workspace before trusting the result
If the workbook cannot be found at the anchored workspace path, stop rather than guessing
Workflow
Phase 1: Locate candidate Excel files
Search the filesystem broadly enough to find plausible workbooks, then narrow to the file most likely intended by the user.
What to look for
Search for:
.xlsx.xlsm.xls- files whose names resemble the user request
- recently modified files
- files inside likely project/output/data directories
Selection heuristics
Prefer files that:
- Match names mentioned by the user
- Are in the working directory or attached-data area
- Have expected modification dates
- Contain sheet names matching the task
- Have row/column structure consistent with the requested operation
If several files are plausible, inspect them all before choosing.
Minimum evide
Câu hỏi thường gặp
Agent chọn đúng file bằng cách nào?
Nó tìm các file ứng viên trong không gian làm việc và xác nhận mục tiêu qua cấu trúc trước khi sửa.
Quy trình có thay đổi với file mới không?
Có, với workbook mới thì bỏ qua bước kiểm toán trước khi sửa, nhưng vẫn chạy kiểm tra sau khi ghi.
Bước xác thực kiểm tra những gì?
Nó kiểm tra các sheet bắt buộc, cột có dữ liệu và số lượng mẫu sau khi ghi.
Chi tiết
Mô tả gốc của tác giả
Safely update Excel workbooks by first locating candidate files, verifying workbook structure before editing, and running post-write validation against required sheets, populated columns, and sample counts.
repo: HKUDS/AgentPilot
Độ phổ biến
- Sao GitHub
- 7.8k
- Vị trí xếp hạng
- #13007
- 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.