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

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

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

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

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 .xlsx or .xlsm files 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:

  1. Find candidate workbook files (modify mode only)
  2. Verify workbook structure before editing (modify mode only)
  3. Perform the edit or create
  4. 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬