Aller au contenu
Skillpedia
PDF, Word et présentations7.8k · #13007

spreadsheet-audit-edit-validate

Ce qu’il fait

Ce flux de travail aide l'agent IA à modifier ou créer des classeurs Excel sans toucher au mauvais fichier ni à la mauvaise feuille. Il s'adresse aux personnes qui disposent de plusieurs feuilles de calcul semblables et ont besoin de mettre à jour la bonne.

Quand l’utiliser

  • ✓Quand vous avez besoin de modifier un classeur existant et que son chemin doit être retrouvé sur le disque.
  • ✓Quand plusieurs fichiers Excel semblables peuvent exister et qu'un mauvais fichier pourrait être modifié.
  • ✓Quand vous avez besoin que le classeur final corresponde aux onglets, colonnes et comptages requis.

Lien du skill

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

Copiez-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

Utilise ce skill pour m’aider : https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/spreadsheet-audit-edit-validate/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Trouve le bon classeur de rapport mensuel parmi mes fichiers, ajoute la colonne de ce mois-ci et vérifie que les onglets et les comptages correspondent toujours.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent recherche les classeurs candidats et confirme lequel est la cible. Il audite la structure avant la modification, écrit les changements dans la bonne feuille, puis valide le fichier enregistré par rapport aux feuilles, colonnes et comptages requis.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Spreadsheet Audit Edit Validate

Use this workflow whenever you need to modify or generate an Excel workbook and the task depends on matching an expected workbook structure. The goal is to avoid editing the wrong file, writing into the wrong sheet, or delivering a workbook that does not satisfy the user's required tabs, columns, or counts. Use this workflow whenever you need to create or modify an Excel workbook and the task depends on matching an expected workbook structure. The goal is to avoid editing the wrong file, writing into the wrong sheet, or delivering a workbook that does not satisfy the user's required tabs, columns, or counts.

Important: This workflow has two distinct modes depending on the task type:

Task Type Pre-edit Audit Post-write Validation
Modify existing workbook Full audit required (Phases 1-2) Full validation required (Phase 4)
Create new workbook from source/reference data Skip pre-edit audit (no existing file to audit) Full validation required (Phase 4)

This is a workflow skill, not a tool-specific recipe. Apply it with any spreadsheet-capable tooling.

When to use

Use this workflow when:

  • You are modifying an existing workbook AND the workbook path is uncertain or must be discovered from the filesystem
  • The workbook path is uncertain or must be discovered from the filesystem
  • 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

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 - Skip Phase 1 (locate) and Phase 2 (pre-edit audit) when the task requires generating a new workbook from scratch, source data exists elsewhere but the target workbook does not exist, or the user asks to "create", "generate", or "build" a report. Phase 4 (post-write validation) is still MANDATORY for create mode.

Core principle

For modify-existing mode: Never write first.

For create-new mode: You must create the file, but validate thoroughly after creation.

Always perform three phases in order:

  1. Find candidate workbook files
  2. Verify workbook structure before editing
  3. Validate the saved workbook against the user specification

Note: For create-new mode, skip directly to Phase 3 (create), then perform Phase 4 (validation). Phase 4 is mandatory for all modes.

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 validation must use the anchored path

  • For create-new mode: The output path must be under the anchored workspace; validate 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

Phase 1: Locate candidate Excel files

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

Selection heuristics

Prefer files that:

  • Match names mentioned by the user
  • Are in the working directory or attached-data area
  • Have expected modification dates
  • Contain sheet names matching the task
  • Have row/column structure consistent with the requested operation

If several files are plausible, inspect them all before choosing.

Minimum evide

Questions fréquentes

Comment l'agent choisit-il le bon fichier ?

Il repère les fichiers candidats dans l'espace de travail et confirme la cible d'après sa structure avant de la modifier.

Le flux change-t-il pour les nouveaux fichiers ?

Oui, pour un nouveau classeur l'audit préalable est omis, mais la validation après écriture reste effectuée.

Que vérifie la validation ?

Elle vérifie les feuilles requises, les colonnes renseignées et les comptages d'échantillon après l'écriture.

Détails

Description originale de l’auteur

Safely update Excel workbooks by first locating candidate files, verifying workbook structure before editing, and running post-write validation against required sheets, populated columns, and sample counts.

repo: HKUDS/AgentPilot

Popularité

Étoiles GitHub
7.8k
Position au classement
#13007
Licence
MIT
Mis à jour
01/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires