spreadsheet-struct-verified
Ce qu’il fait
Ce flux de travail aide l'agent IA à créer ou mettre à jour des classeurs Excel et à vérifier le résultat sur le disque. Il s'adresse aux personnes qui ont besoin de noms de feuilles, de colonnes et de nombres de lignes exacts.
Quand l’utiliser
- ✓Quand vous avez besoin d'un nouveau classeur construit à partir de données sources ou de référence, avec une structure imposée.
- ✓Quand vous avez besoin de modifier un classeur existant et que le chemin du fichier n'est pas certain.
- ✓Quand un écart dans les onglets, les colonnes ou les comptages poserait des problèmes plus tard.
Lien du skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate-enhanced/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Crée un classeur avec les onglets et les colonnes listés dans mon brief, puis vérifie avec un script que chaque onglet et chaque comptage correspond.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Pour un fichier existant, l'agent commence par le repérer et l'auditer. Pour un nouveau fichier, il construit le classeur à partir des données sources. Dans les deux cas, un script Python relit le fichier enregistré et confirme les feuilles, les colonnes et les comptages d'échantillon requis avant de déclarer le travail terminé.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
L'agent contrôle-t-il le fichier après l'enregistrement ?
Oui, un contrôle Python déterministe relit le fichier enregistré et confirme sa structure.
Quand l'audit préalable est-il omis ?
Il est omis lorsque le classeur est entièrement nouveau, puisqu'il n'existe pas encore de fichier à auditer.
Que vérifie-t-on ?
Les feuilles requises, les colonnes renseignées et les comptages d'échantillon sont vérifiés par rapport à la demande.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.8k
- Position au classement
- #13005
- Licence
- MIT
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
agentpilot
7.8kAide votre agent à améliorer un projet étape par étape, en préparant une tâche et en lançant la boucle AgentPilot qui propose, teste et note les changements.
openspace
7.8kAide votre agent à installer OpenSpace, un outil qui enregistre et retrouve les skills des agents, et à le relier à votre application IA grâce à MCP.
rsi-arena
7.8kAide votre agent à configurer et lancer des tests de référence standard en IA, comme AIME et Terminal-Bench, pour comparer différentes méthodes d'amélioration.
experiment-guide
7.8kAide votre agent à planifier de petites expériences, à lire leurs résultats et à noter les conclusions pendant qu'il cherche comment améliorer un programme.
Skills similaires
feishu-doc
394kAide votre agent à lire, créer et modifier des documents cloud Feishu, y compris du texte, des images et des tableaux, grâce à l'outil de document.
feishu-drive
394kPermet à votre agent de parcourir, organiser et commenter des fichiers d'un dossier cloud Feishu partagé avec le bot.
feishu-perm
394kAide votre agent à vérifier et modifier qui peut accéder à un fichier Feishu, en choisissant la plus petite autorisation qui répond à votre demande.