본문으로 건너뛰기
Skillpedia
PDF, Word, 슬라이드7.8k · #13017

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged-fedf41/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 .value on merged cells raises MergedCell exception
  • Solution: Check ws.merged_cells.ranges and 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=False when loading to preserve formulas
  • Use wb.save() after modifications, not wb.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.value not direct cell access for safety

Rule 3: Never finalize from narrative summary alone

A workbook task is only complete when:

  1. The target workbook path was identified (for editing) or chosen (for creation)
  2. Pre-edit structure matched the intended operation
  3. The edit/creation was performed on the correct file
  4. The saved workbook was directly re-read from disk
  5. Every requested criterion was checked in a deterministic verification report
  6. Each criterion is marked as one of: PASS, FAIL, or UNAVAILABLE-IN-SOURCE
  7. 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:

  1. Workbook inventory: path, existence status, sheet structure (for editing) OR planned structure (for creation)
  2. Pre-edit audit checklist: workbook structure before modification
  3. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬