spreadsheet-struct-verified
하는 일
이 워크플로는 AI 에이전트가 Excel 통합 문서를 만들거나 업데이트하고, 디스크에 저장된 결과를 검증하도록 돕습니다. 정확한 시트 이름, 열, 행 수가 필요한 사람을 위한 것입니다.
사용하는 경우
- ✓원본이나 참고 데이터로 필요한 구조를 갖춘 새 통합 문서를 만들어야 할 때.
- ✓기존 통합 문서를 바꿔야 하는데 파일 경로가 확실하지 않을 때.
- ✓탭, 열, 개수가 틀리면 나중에 문제가 생길 때.
스킬 링크
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-enhanced/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 요청서에 적힌 탭과 열로 통합 문서를 만든 다음, 스크립트로 모든 탭과 개수가 맞는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
기존 파일이라면 에이전트는 먼저 파일을 찾아 점검합니다. 새 파일이라면 원본 데이터로 통합 문서를 만듭니다. 어느 경우든 Python 스크립트가 저장된 파일을 읽고 필요한 시트, 열, 샘플 개수를 확인한 뒤에야 작업을 완료로 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Spreadsheet Structure Verified
Use this workflow whenever you need to create or modify an Excel workbook where the output must match an expected structure. The goal is to avoid delivering a workbook that does not satisfy the user's required tabs, columns, or counts by using deterministic Python verification.
Important: This workflow has two distinct modes:
| Task Type | Pre-edit Audit | Post-write Verification |
|---|---|---|
| Modify existing workbook | Full audit required (Phases 1-2) | Full verification required (Phase 4) |
| Create new workbook from source/reference data | Skip pre-edit audit (no existing file) | Deterministic Python verification REQUIRED (Phase 4) |
This is a workflow skill, not a tool-specific recipe. Apply it with any spreadsheet-capable tooling, but Phase 4 verification uses a deterministic Python script.
When to use
Use this workflow when:
- You are creating a new workbook from source/reference data
- You are modifying an existing workbook AND the workbook path is uncertain
- 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
- Systematic post-write verification is required before reporting completion
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 - Adapt Phase 1-2 to audit SOURCE reference files instead of targeting a non-existent workbook. Phase 1 locates and inspects source data files; Phase 2 audits their structure (sheet names, columns, data types, row counts, merged cells, formulas). Skip target workbook pre-edit audit (it doesn't exist yet), but DO audit the source/reference files thoroughly before creating. Phase 4 (deterministic Python verification) is MANDATORY for create mode.
Core principle
For modify-existing mode: Never write first. Verify before editing.
For create-new mode: You must create the file, but verify thoroughly after creation using a deterministic Python script.
Always perform these phases in order:
- Find candidate workbook files (modify mode only)
- Verify workbook structure before editing (modify mode only)
- Perform the edit or create
- Deterministic Python verification (ALL modes - MANDATORY)
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 verification must use the anchored path
For create-new mode: The output path must be under the anchored workspace; verify 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
Create mode: In create mode, Phase 1 focuses on locating SOURCE reference data files rather than a target workbook. Audit these source files to understand their structure before creating the new workbook.
Phase 1: Locate candidate Excel files (Modify mode only)
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
- In create mode: source data files, reference reports, or input spreadsheets that will populate the new workbook
Selection heuristics
Prefer files that:
- Match names mentioned by the user
- Are in the working directory or attached-data area
- Have
자주 묻는 질문
에이전트는 저장 후 파일을 확인하나요?
네, 결정적인 Python 검사가 저장된 파일을 읽고 구조를 확인합니다.
새 파일일 때는 수정 전 점검을 건너뛰나요?
네, 통합 문서가 완전히 새것이면 점검할 기존 파일이 없으므로 건너뜁니다.
무엇을 검증하나요?
요청에 따라 필요한 시트, 채워진 열, 샘플 개수를 검증합니다.
상세 정보
작성자의 원본 설명
Create and modify Excel workbooks with mandatory deterministic Python verification of workbook structure, required sheets, populated columns, and sample counts before reporting completion.
repo: HKUDS/AgentPilot
인기도
- GitHub 스타
- 7.8k
- 순위
- #13005
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
agentpilot
7.8k작업을 준비하고 AgentPilot 루프를 실행해 변경을 제안, 테스트, 점수화하면서 프로젝트를 단계적으로 개선하도록 돕습니다.
openspace
7.8k에이전트 스킬을 저장하고 가져오는 도구인 OpenSpace를 설정하고, MCP를 통해 AI 앱에 연결하도록 돕습니다.
rsi-arena
7.8kAIME나 Terminal-Bench 같은 표준 AI 벤치마크 테스트를 설정하고 실행해 서로 다른 개선 방법을 비교하도록 돕습니다.
experiment-guide
7.8k프로그램을 개선하는 방법을 조사하면서 작은 실험을 계획하고, 결과를 읽고, 발견 사항을 기록하도록 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.