Langsung ke konten
Skillpedia
PDF, Word & slide7.8k Β· #13005

spreadsheet-struct-verified

Fungsinya

Alur kerja ini membantu agent AI membuat atau memperbarui buku kerja Excel dan memverifikasi hasilnya di disk. Alur ini ditujukan untuk orang yang memerlukan nama lembar, kolom, dan jumlah baris yang tepat.

Kapan dipakai

  • βœ“Saat Anda memerlukan buku kerja baru yang dibangun dari data sumber atau referensi dengan struktur tertentu.
  • βœ“Saat Anda memerlukan buku kerja yang sudah ada diubah dan lokasi file belum pasti.
  • βœ“Saat ketidaksesuaian pada tab, kolom, atau jumlah akan menimbulkan masalah nanti.

Link skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-enhanced/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-enhanced/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat buku kerja dengan tab dan kolom yang tercantum dalam brief saya, lalu periksa dengan skrip bahwa setiap tab dan jumlahnya sesuai.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Untuk file yang sudah ada, agent terlebih dahulu menemukan dan memeriksa buku kerja. Untuk file baru, agent membangun buku kerja dari data sumber. Dalam kedua kasus, skrip Python membaca file yang tersimpan dan memastikan lembar, kolom, serta jumlah sampel yang diperlukan sebelum pekerjaan dilaporkan selesai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apakah agent memeriksa file setelah disimpan?

Ya. Skrip Python yang deterministik membaca file yang tersimpan dan memastikan strukturnya.

Kapan pemeriksaan sebelum pengeditan dilewati?

Pemeriksaan ini dilewati jika buku kerja benar-benar baru, karena belum ada file yang perlu diperiksa.

Apa yang diverifikasi?

Lembar yang diperlukan, kolom yang terisi, dan jumlah sampel diverifikasi terhadap permintaan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
7.8k
Peringkat
#13005
Lisensi
MIT
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa