spreadsheet-create-verify-gate
하는 일
이 워크플로는 AI 에이전트가 새 Excel 통합 문서를 만들거나 기존 문서를 바꾼 뒤, 사양에 맞는지 증명하도록 안내합니다. 정확한 시트, 열, 개수가 필요하고 증거를 원하는 사람을 위한 것입니다.
사용하는 경우
- ✓구조가 정해진 새 Excel 통합 문서를 처음부터 만들어야 할 때.
- ✓기존 통합 문서를 바꿔야 하는데 비슷한 파일이 여러 개 있을 수 있을 때.
- ✓작업을 완료로 보고하기 전에 모든 요구 사항이 충족되었다는 증명이 필요할 때.
스킬 링크
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged-fedf41/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 사양에 있는 시트와 개수대로 통합 문서를 만든 다음, 완료라고 말하기 전에 Python 검사로 각 요구 사항이 충족되었는지 증명해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 대상 파일을 확인하고, 통합 문서를 만들거나 편집한 뒤 검증 스크립트를 .py 파일로 저장합니다. 그 스크립트를 openpyxl로 실행해 저장된 파일을 검사하고, 모든 요구 사항이 통과했을 때만 성공을 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Spreadsheet Create/Verify Gate
Use this skill when you must create from scratch or modify an Excel workbook and the result must be proven against a user specification rather than merely described.
This skill extends the spreadsheet-proof-gate methodology with explicit support for:
- Workbook creation from scratch (not just editing existing files)
- openpyxl-specific pitfall handling (MergedCell, worksheet creation, formula handling)
- Tool failure resilience with clear escalation paths
- Pre-edit audit phases that catch common openpyxl errors before they occur
This is a workflow skill requiring a direct Python verification pass with openpyxl before reporting success. The verification script must be saved to a .py file and executed via run_shell (NOT execute_code_sandbox).
When to use
Use this skill when ANY of the following are true:
Creation scenarios:
- You must create a new Excel workbook from scratch
- No existing template is provided
- You need to establish the initial workbook structure
Editing scenarios:
- The workbook path must be discovered
- Multiple similar Excel files may exist
- The user requires exact sheet names, columns, counts, or samples
- Prior summaries are inconsistent or not trustworthy
- Exact post-edit workbook state matters
General:
- You must prove that mandatory criteria were satisfied
- A delegated agent may perform spreadsheet work
- Tool instability has been observed in prior attempts
Core rules
Rule 1: Creation vs. Editing distinction
Before starting, determine which path applies:
Creation path (new workbook):
- No existing workbook at the target path
- You are establishing the initial structure
- Pre-edit audit focuses on workspace validation and structure planning
Editing path (existing workbook):
- Existing workbook at the target path
- You are modifying structure or content
- Pre-edit audit includes full workbook structure inspection
Rule 2: Openpyxl pitfall awareness
The following openpyxl-specific issues must be handled explicitly:
MergedCell errors:
- Accessing
.valueon merged cells raisesMergedCellexception - Solution: Check
ws.merged_cells.rangesand handle merged regions specially - Pre-edit check: Identify all merged ranges before accessing cell values
Worksheet creation patterns:
wb.create_sheet()is the correct method, not direct assignment- Sheet names must be unique and ≤31 characters
- Invalid characters (
\ / ? * [ ]) are not allowed in sheet names
Formula handling:
- Set
data_only=Falsewhen loading to preserve formulas - Use
wb.save()after modifications, notwb.close() - Formula cells need explicit formula strings, not calculated values
Cell value type handling:
- Dates, numbers, and strings may need explicit type handling
- Use
cell.valuenot direct cell access for safety
Rule 3: Never finalize from narrative summary alone
A workbook task is only complete when:
- The target workbook path was identified (for editing) or chosen (for creation)
- Pre-edit structure matched the intended operation
- The edit/creation 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:
PASS,FAIL, orUNAVAILABLE-IN-SOURCE - Any non-pass result is explicitly reconciled before finalizing
Rule 4: Workspace anchoring is absolute
All discovery, reads, writes, and verification must be anchored to the exact workspace path provided for the task.
- Treat the provided workspace path as the authoritative root
- Resolve workbooks to exact paths under that root
- Do not silently switch to similarly named files elsewhere
- If the anchored file cannot be found for editing, stop rather than guessing
- For creation, ensure the output directory exists
Outcome contract
Your output should be based on proof, not inference.
For every task using this workflow, maintain these artifacts internally:
- Workbook inventory: path, existence status, sheet structure (for editing) OR planned structure (for creation)
- Pre-edit audit checklist: workbook structure before modification
- Post-write proof checklist: deterministic verification of every criterion
The post-write proof checklist is decisive.
Workflow
Phase 1: Determine creation vs. editing path
Step 1.1: Check for existing w
자주 묻는 질문
에이전트는 저장된 파일을 확인하나요?
네, 검증 스크립트가 파일을 쓴 뒤 디스크에서 통합 문서를 읽습니다.
검증 스크립트는 무엇으로 실행하나요?
스킬은 샌드박스가 아니라 .py 파일로 저장해 셸에서 실행하라고 안내합니다.
openpyxl의 주의할 점은 무엇인가요?
스킬은 병합된 셀이나 워크시트 생성 같은 openpyxl 문제를 언급하며, 에이전트가 이를 처리하도록 요구합니다.
상세 정보
작성자의 원본 설명
Create or edit Excel workbooks with openpyxl-specific pitfall handling, anchored preflight audit, and deterministic post-write proof that every criterion is satisfied
repo: HKUDS/AgentPilot
인기도
- GitHub 스타
- 7.8k
- 순위
- #13017
- 라이선스
- 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 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.