Logo : Xlsx

Xlsx

Organisation
cubeplexai
xlsx

Ouvrir, créer, lire, analyser, modifier ou valider des fichiers Excel ou de tableur (.xlsx, .xlsm, .csv, .tsv). À utiliser lorsque l’utilisateur demande de créer, construire, modifier, analyser, lire, valider ou mettre en forme un tableur Excel, un modèle financier, un tableau croisé dynamique ou un fichier de données tabulaires. Cela comprend : la création de fichiers xlsx de zéro, la lecture et l’analyse de fichiers existants, la modification de fichiers xlsx existants sans aucune perte de format, le recalcul et la validation des formules, ainsi que l’application de normes professionnelles de mise en forme financière. S’active avec les termes « tableur », « Excel », « .xlsx », « .csv », « tableau croisé dynamique », « modèle financier », « formule », ou toute demande de production de données tabulaires au format Excel.

Présentation

Éditeurcubeplexai
Dépôtcubeplex
Nom de la compétencexlsx
Étoiles
533
Forks
46
Fichiers inclus
23
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 23

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par cubeplexai sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Xlsx dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/xlsx
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cubeplexai/cubeplex.git /tmp/cubeplex
mkdir -p .claude/skills
cp -r /tmp/cubeplex/backend/skills/preinstalled/xlsx .claude/skills/xlsx
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Xlsx dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Xlsx dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Xlsx n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

xlsx

Skill directory

load_skill returned a path field — the sandbox directory holding this skill's scripts, templates, and references. Use it verbatim; never construct the path yourself:

bash
export SKILL_DIR="<the `path` value from load_skill>"

Handle the request in this conversation — don't delegate to subagents: edit integrity depends on one agent owning the file. Write output files to the working directory, never into $SKILL_DIR.

Choosing the write strategy: openpyxl vs XML surgery

Two ways to write an .xlsx, each with a job. Pick by one question: does an input file already exist whose non-cell content must survive?

SituationStrategyWhy
CREATE from scratch (no source file)openpyxl (default)Nothing to corrupt. openpyxl makes charts, conditional formatting, cover pages, and rich styling trivial — all painful in raw XML.
EDIT / FIX an existing fileXML surgery (required)openpyxl load_workbook() → save() silently drops VBA, pivot tables, sparklines, slicers, and some charts. Unpack → edit XML → pack changes only the nodes you touch.

Gray zone — a financial model built from scratch: openpyxl works and is faster. Reach for XML surgery only when you need byte-level determinism or precise styles.xml index control (see references/format.md).

The one absolute rule: never openpyxl.load_workbook(existing.xlsx) then save() — that round-trip is what corrupts. openpyxl is safe only on a workbook you created in the same script.

openpyxl writes formula strings but no cached results, so an openpyxl-created model (one that uses formulas) MUST be recalculated (libreoffice_recalc.py) and checked (formula_check.py) before delivery — same gate as the XML path. A report that writes computed values directly needs neither step.

Report vs Model: do you need formulas at all?

The Formula-First rule below applies to models — workbooks the user will keep editing, where they change inputs/assumptions and derived cells must recompute. Most "analyze this data and give me a spreadsheet" requests are reports: the numbers are already final, computed by pandas/openpyxl. Forcing live formulas + a LibreOffice recalc onto a report adds a slow, fragile external dependency for zero benefit — the data already knows the answer, and recalc can hang or silently skip cells.

Deliverable typeUse formulas?Recalculate?Why
Report (analysis output, point-in-time snapshot)No — write the computed value directlyNoValues are final; charts read the values. Zero external dependency, instant, always correct.
Model (user will change inputs/assumptions)Yes — every derived cell is a live formulaYes (mandatory)User edits inputs → other cells must recompute in Excel/WPS.

Decide with one question: Will the user open this file and change numbers, expecting other cells to update? If yes → Model (formulas + recalc). If no → Report (write values). When unsure, a report is the safer default — it always opens correctly with no recalc step.

  • Report: set each derived cell to its already-computed number (never a formula). openpyxl: ws["C2"] = round(revenue, 2). XML: <c r="C2"><v>12345.67</v></c> (no <f>). No libreoffice_recalc.py step. Run formula_check.py only when you edited an existing file (to catch XML/structure issues), not to check formulas.
  • Model: follow the Formula-First rules below; recalc is mandatory and is the final step before delivery.

Task Routing

TaskMethodGuide
READ — analyze existing dataxlsx_reader.py + pandasreferences/read-analyze.md
CREATE — new xlsx from scratchopenpyxl (default), or XML template for byte-level controlreferences/create.md + references/format.md
EDIT — modify existing xlsxXML unpack→edit→packreferences/edit.md (+ format.md if styling needed)
FIX — repair broken formulas in existing xlsxXML unpack→fix <f> nodes→packreferences/fix.md
VALIDATE — check formulasformula_check.pyreferences/validate.md

READ — Analyze data (read references/read-analyze.md first)

Start with xlsx_reader.py for structure discovery, then pandas for custom analysis. Never modify the source file.

Formatting rule: When the user specifies decimal places (e.g. "2 decimal places"), apply that format to ALL numeric values — use f'{v:.2f}' on every number. Never output 12875 when 12875.00 is required.

Aggregation rule: Always compute sums/means/counts directly from the DataFrame column — e.g. df['Revenue'].sum(). Never re-derive column values before aggregation.

CREATE — new file (read references/create.md + references/format.md)

Default: build with openpyxl — it unlocks charts, conditional formatting, cover pages, and styling with far less effort than raw XML. Alternative for byte-level determinism / precise style-index control: copy templates/minimal_xlsx/ → edit XML directly → pack with xlsx_pack.py.

Either way, the strategy depends on Report vs Model (see that section):

  • Model (user will edit inputs): every derived value MUST be a live Excel formula (=SUM(B2:B9) / <f>SUM(B2:B9)</f>), never a hardcoded number. Apply font colors per format.md. Recalculate + formula_check.py before delivery.
  • Report (final snapshot): skip formulas entirely — write the computed values directly and deliver immediately. Charts read the values; no recalc needed.

EDIT — XML direct-edit (read references/edit.md first)

CRITICAL — EDIT INTEGRITY RULES:

  1. NEVER create a new Workbook() for edit tasks. Always load the original file.
  2. The output MUST contain the same sheets as the input (same names, same data).
  3. Only modify the specific cells the task asks for — everything else must be untouched.
  4. After saving output.xlsx, verify it: open with xlsx_reader.py or pandas and confirm the original sheet names and a sample of original data are present. If verification fails, you wrote the wrong file — fix it before delivering.

Never use openpyxl round-trip on existing files (corrupts VBA, pivots, sparklines). Instead: unpack → use helper scripts → repack.

"Fill cells" / "Add formulas to existing cells" = EDIT task. If the input file already exists and you are told to fill, update, or add formulas to specific cells, you MUST use the XML edit path. Never create a new Workbook(). Example — fill B3 with a cross-sheet SUM formula:

bash
python3 $SKILL_DIR/scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
# Find the target sheet's XML via xl/workbook.xml → xl/_rels/workbook.xml.rels
# Then use `edit` to add <f> inside the target <c> element:
#   <c r="B3"><f>SUM('Sales Data'!D2:D13)</f><v></v></c>
python3 $SKILL_DIR/scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx

Add a column (formulas, numfmt, styles auto-copied from adjacent column):

bash
python3 $SKILL_DIR/scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
python3 $SKILL_DIR/scripts/xlsx_add_column.py /tmp/xlsx_work/ --col G \
    --sheet "Sheet1" --header "% of Total" \
    --formula '=F{row}/$F$10' --formula-rows 2:9 \
    --total-row 10 --total-formula '=SUM(G2:G9)' --numfmt '0.0%' \
    --border-row 10 --border-style medium
python3 $SKILL_DIR/scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx

The --border-row flag applies a top border to ALL cells in that row (not just the new column). Use it when the task requires accounting-style borders on total rows.

Insert a row (shifts existing rows, updates SUM formulas, fixes circular refs):

bash
python3 $SKILL_DIR/scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
# IMPORTANT: Find the correct --at row by searching for the label text
# in the worksheet XML, NOT by using the row number from the prompt.
# The prompt may say "row 5 (Office Rent)" but Office Rent might actually
# be at row 4. Always locate the row by its text label first.
python3 $SKILL_DIR/scripts/xlsx_insert_row.py /tmp/xlsx_work/ --at 5 \
    --sheet "Budget FY2025" --text A=Utilities \
    --values B=3000 C=3000 D=3500 E=3500 \
    --formula 'F=SUM(B{row}:E{row})' --copy-style-from 4
python3 $SKILL_DIR/scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx

Row lookup rule: When the task says "after row N (Label)", always find the row by searching for "Label" in the worksheet XML (grep -n "Label" /tmp/xlsx_work/xl/worksheets/sheet*.xml or check sharedStrings.xml). Use the actual row number + 1 for --at. Do NOT call xlsx_shift_rows.py separately — xlsx_insert_row.py calls it internally.

Apply row-wide borders (e.g. accounting line on a TOTAL row): After running helper scripts, apply borders to ALL cells in the target row, not just newly added cells. In xl/styles.xml, append a new <border> with the desired style, then append a new <xf> in <cellXfs> that clones each cell's existing <xf> but sets the new borderId. Apply the new style index to every <c> in the row via the s attribute:

xml
<!-- In xl/styles.xml, append to <borders>: -->
<border>
  <left/><right/><top style="medium"/><bottom/><diagonal/>
</border>
<!-- Then append to <cellXfs> an xf clone with the new borderId for each existing style -->

Key rule: When a task says "add a border to row N", iterate over ALL cells A through the last column, not just newly added cells.

Manual XML edit (for anything the helper scripts don't cover):

bash
python3 $SKILL_DIR/scripts/xlsx_unpack.py input.xlsx /tmp/xlsx_work/
# ... edit XML with `edit` ...
python3 $SKILL_DIR/scripts/xlsx_pack.py /tmp/xlsx_work/ output.xlsx

FIX — Repair broken formulas (read references/fix.md first)

This is an EDIT task. Unpack → fix broken <f> nodes → pack. Preserve all original sheets and data.

VALIDATE — Check formulas (read references/validate.md first)

Run formula_check.py for static validation. Use libreoffice_recalc.py for dynamic recalculation when available.

Financial Color Standard

Cell RoleFont ColorHex Code
Hard-coded input / assumptionBlue0000FF
Formula / computed resultBlack000000
Cross-sheet reference formulaGreen00B050

Key Rules

  1. Formula-First for Models, Values for Reports: A model (user will edit inputs) MUST use live formulas for every derived cell. A report (final snapshot) MUST write the already-computed value directly — no formulas, no recalc. Decide by the "Report vs Model" rule above; do not force formulas onto a report.
  2. CREATE → openpyxl by default (charts/formatting made easy); XML template only when you need byte-level control
  3. EDIT existing → XML surgery: never openpyxl round-trip on a file you didn't create — it drops VBA/pivots/charts. Use unpack/edit/pack scripts
  4. Always produce the output file — this is the #1 priority
  5. Validate before delivery (models only): recalculate (if formulas), then formula_check.py exit code 0 = safe. Reports with no formulas skip this.
  6. Recalc is the final step — never overwrite the good copy. libreoffice_recalc.py now verifies that formula cells actually got cached <v> values; if it reports empty <v> cells, that is a HARD FAILURE — do not deliver. In a report workflow there are no formulas to recalc, so this never blocks you. If a model's recalc cannot be made to succeed, ship a report-style file (write the computed values) rather than delivering empty formula cells.

Utility Scripts

bash
python3 $SKILL_DIR/scripts/xlsx_reader.py input.xlsx                 # structure discovery
python3 $SKILL_DIR/scripts/formula_check.py file.xlsx --json         # formula validation
python3 $SKILL_DIR/scripts/formula_check.py file.xlsx --report      # standardized report
python3 $SKILL_DIR/scripts/xlsx_unpack.py in.xlsx /tmp/work/         # unpack for XML editing
python3 $SKILL_DIR/scripts/xlsx_pack.py /tmp/work/ out.xlsx          # repack after editing
python3 $SKILL_DIR/scripts/xlsx_shift_rows.py /tmp/work/ insert 5 1  # shift rows for insertion
python3 $SKILL_DIR/scripts/xlsx_add_column.py /tmp/work/ --col G ... # add column with formulas
python3 $SKILL_DIR/scripts/xlsx_insert_row.py /tmp/work/ --at 6 ...  # insert row with data

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Xlsx ?

Ouvrir, créer, lire, analyser, modifier ou valider des fichiers Excel ou de tableur (.xlsx, .xlsm, .csv, .tsv). À utiliser lorsque l’utilisateur demande de créer, construire, modifier, analyser, lire, valider ou mettre en forme un tableur Excel, un modèle financier, un tableau croisé dynamique ou un fichier de données tabulaires. Cela comprend : la création de fichiers xlsx de zéro, la lecture et l’analyse de fichiers existants, la modification de fichiers xlsx existants sans aucune perte de format, le recalcul et la validation des formules, ainsi que l’application de normes professionnelle...

Pourquoi utiliser Xlsx sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Xlsx se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Xlsx dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/cubeplexai/cubeplex/tree/main/backend/skills/preinstalled/xlsx. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Xlsx ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Xlsx ?

Autant que vous le souhaitez. Vous pouvez utiliser Xlsx avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Xlsx est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par cubeplexai sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇