spreadsheet-audit-edit-validate
Что он делает
Этот сценарий помогает ИИ-агенту менять или создавать книги Excel, не трогая не тот файл или лист. Он нужен тем, у кого есть несколько похожих таблиц и нужно обновить правильную.
Когда использовать
- ✓Когда нужно изменить существующую книгу, и ее путь нужно найти на диске.
- ✓Когда может существовать несколько похожих файлов Excel, и есть риск изменить не тот.
- ✓Когда готовая книга должна соответствовать нужным вкладкам, столбцам и количеству строк.
Ссылка на скилл
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Найди среди моих файлов нужную книгу с месячным отчетом, добавь столбец за этот месяц и проверь, что вкладки и количество строк по-прежнему совпадают.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент ищет подходящие книги и подтверждает нужную по структуре. Он проверяет структуру перед редактированием, записывает изменения на нужный лист, а затем проверяет сохраненный файл на соответствие требуемым листам, столбцам и количеству строк.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
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
Частые вопросы
Как агент выбирает нужный файл?
Он находит кандидатов в рабочей области и подтверждает цель по структуре до редактирования.
Меняется ли сценарий для новых файлов?
Да, для новой книги проверка перед редактированием пропускается, но проверка после записи выполняется.
Что проверяет валидация?
Она проверяет нужные листы, заполненные столбцы и количество строк в выборке после записи.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 7.8k
- Место в рейтинге
- #13007
- Лицензия
- MIT
- Обновлён
- 01.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agentpilot
7.8kПомогает агенту улучшать проект шаг за шагом: готовит задачу и запускает цикл AgentPilot, который предлагает, проверяет и оценивает изменения.
openspace
7.8kПомогает агенту настроить OpenSpace, инструмент для хранения и получения скиллов агента, и подключить его к вашему ИИ-приложению через MCP.
rsi-arena
7.8kПомогает агенту настроить и запустить стандартные тесты ИИ, например AIME и Terminal-Bench, чтобы сравнивать разные методы улучшения.
experiment-guide
7.8kПомогает агенту планировать небольшие эксперименты, читать их результаты и записывать выводы, пока он исследует, как улучшить программу.
Похожие скиллы
feishu-doc
394kПомогает агенту читать, создавать и редактировать облачные документы Feishu, включая текст, изображения и таблицы, с помощью инструмента для документов.
feishu-drive
394kПозволяет агенту просматривать, упорядочивать и комментировать файлы в облачной папке Feishu, к которой предоставлен доступ боту.
feishu-perm
394kПомогает агенту проверить и изменить, кто может получить доступ к файлу Feishu, выбирая наименьшее право, которое соответствует вашему запросу.