spreadsheet-create-verify-gate
Ce qu’il fait
Ce workflow guide l'agent IA pour construire un nouveau classeur Excel ou modifier un fichier existant, puis démontrer que le résultat respecte votre spécification. Il s'adresse aux personnes qui ont besoin de feuilles, de colonnes et de comptages exacts, et qui veulent une preuve.
Quand l’utiliser
- ✓Quand vous avez besoin d'un nouveau classeur Excel créé à partir de zéro avec une structure imposée.
- ✓Quand un classeur existant doit être modifié et que plusieurs fichiers similaires pourraient être la cible.
- ✓Quand vous voulez la preuve que chaque exigence est satisfaite avant que le travail soit présenté comme terminé.
Lien du skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-proof-gate-merged-fedf41/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 feuilles et les comptages de ma spécification, puis prouve avec un contrôle Python que chaque exigence est respectée avant de me dire que c'est terminé.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent confirme le fichier cible, construit ou modifie le classeur et enregistre un script de vérification au format .py. Il exécute ce script avec openpyxl pour contrôler le fichier enregistré, et ne déclare la réussite que si chaque exigence est validée.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
L'agent vérifie-t-il le fichier enregistré ?
Oui, un script de vérification lit le classeur sur le disque après son enregistrement.
Avec quoi le script de vérification est-il exécuté ?
La compétence demande de l'enregistrer en .py et de l'exécuter par le shell, et non dans le bac à sable.
Qu'en est-il des pièges d'openpyxl ?
La compétence mentionne des problèmes d'openpyxl, comme les cellules fusionnées et la création de feuilles, et demande à l'agent de les gérer.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.8k
- Position au classement
- #13017
- 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.