Xlsx logo

Xlsx

Community
Immortalqx
xlsx

Spreadsheet workflow for `.xlsx`, `.xlsm`, `.csv`, and `.tsv` files. Use when Codex needs to create, inspect, repair, clean, reformat, or extend a spreadsheet; preserve workbook structure while editing an existing file; add formulas, charts, or sheets; or convert messy tabular data into a deliverable spreadsheet file.

Overview

PublisherImmortalqx
Repositorymy_codex_skills
Skill namexlsx
Stars
56
Forks
0
Bundled files
53
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 53 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Immortalqx on GitHub. Read the source before you install it.

Installation

Install the Xlsx AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Immortalqx/my_codex_skills/tree/main/xlsx
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Immortalqx/my_codex_skills.git /tmp/my_codex_skills
mkdir -p .claude/skills
cp -r /tmp/my_codex_skills/xlsx .claude/skills/xlsx
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xlsx in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xlsx on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xlsx is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Spreadsheet Files

Overview

Use this skill whenever the primary deliverable is a spreadsheet file or the user explicitly wants work done on spreadsheet data in place. Prefer openpyxl when workbook structure, formulas, styling, or multiple sheets must be preserved. Use pandas for analysis and reshaping, then write the final workbook carefully instead of treating the spreadsheet as a disposable export.

Non-Negotiable Rules

  • Use formulas in the workbook instead of calculating values in Python and hardcoding the result.
  • Preserve existing workbook structure unless the user asked for destructive cleanup.
  • Recalculate and verify formulas after edits with scripts/recalc.py.
  • Keep formatting readable: sensible column widths, aligned headers, and explicit number formats.
  • If editing a financial model, keep assumptions visually distinct from formulas and outputs.

Choose the Workflow

Existing workbook

Use openpyxl when the file already exists and you must preserve:

  • formulas,
  • formatting,
  • named sheets,
  • comments,
  • workbook-level structure.

New workbook or pure analysis

Use pandas for:

  • data cleaning,
  • joins,
  • aggregation,
  • reshaping.

Then write the final spreadsheet with either:

  • pandas if a simple flat export is enough, or
  • openpyxl if formulas, formatting, or multiple sheets matter.

Core Workflow

  1. Inspect the workbook or source data.
  2. Decide whether the task is analysis-only, structure-preserving edit, or workbook creation.
  3. Make the edits.
  4. Recalculate formulas with python scripts/recalc.py <excel_file>.
  5. Fix any reported workbook errors before handoff.

Reading and Analyzing Data

Pandas quick read

python
import pandas as pd

df = pd.read_excel("file.xlsx")
all_sheets = pd.read_excel("file.xlsx", sheet_name=None)

print(df.head())
print(df.info())
print(df.describe(include="all"))

Openpyxl structure-preserving read

python
from openpyxl import load_workbook

wb = load_workbook("existing.xlsx")
print(wb.sheetnames)

ws = wb["Sheet1"]
print(ws["A1"].value)

Use Formulas, Not Hardcoded Values

Wrong

python
total = df["Sales"].sum()
sheet["B10"] = total

Correct

python
sheet["B10"] = "=SUM(B2:B9)"
sheet["C5"] = "=(C4-C2)/C2"
sheet["D20"] = "=AVERAGE(D2:D19)"

This rule applies to totals, percentages, growth rates, averages, ratios, and derived metrics in general.

Creating a New Workbook

python
from openpyxl import Workbook
from openpyxl.styles import Font, PatternFill, Alignment

wb = Workbook()
ws = wb.active
ws.title = "Summary"

ws["A1"] = "Metric"
ws["B1"] = "Value"
ws["A2"] = "Revenue"
ws["B2"] = 125000
ws["A3"] = "Cost"
ws["B3"] = 83000
ws["A4"] = "Profit"
ws["B4"] = "=B2-B3"

header_fill = PatternFill("solid", start_color="D9EAF7")
for cell in ws[1]:
    cell.font = Font(bold=True)
    cell.fill = header_fill
    cell.alignment = Alignment(horizontal="center")

ws.column_dimensions["A"].width = 18
ws.column_dimensions["B"].width = 14

wb.save("output.xlsx")

Editing an Existing Workbook

python
from openpyxl import load_workbook

wb = load_workbook("existing.xlsx")
ws = wb["Sheet1"]

ws["A1"] = "New Value"
ws.insert_rows(2)
ws.delete_cols(3)

new_sheet = wb.create_sheet("NewSheet")
new_sheet["A1"] = "Data"

wb.save("modified.xlsx")

Recalculate and Verify

After editing any workbook with formulas, run:

bash
python scripts/recalc.py output.xlsx

Optional timeout override:

bash
python scripts/recalc.py output.xlsx 30

The script:

  • sets up LibreOffice automation when needed,
  • recalculates formulas,
  • scans all sheets for Excel errors,
  • returns JSON with counts and cell locations.

Example output

json
{
  "status": "success",
  "total_errors": 0,
  "total_formulas": 42
}

If errors are reported

Typical fixes:

  • #REF!: invalid references after row or column edits.
  • #DIV/0!: denominator can be zero.
  • #VALUE!: wrong data type in a formula input.
  • #NAME?: misspelled function or unsupported name.

Do not hand off the workbook until recalculation is clean or the user explicitly accepts the remaining issues.

Financial Model Conventions

When the workbook behaves like a model rather than a data dump:

  • keep assumptions in dedicated cells or sheets,
  • label units and time periods explicitly,
  • apply consistent number formats,
  • visually separate inputs, formulas, and outputs,
  • add comments for non-obvious hardcoded assumptions.

Verification Checklist

  • Workbook opens successfully.
  • Expected sheets are present.
  • Key formulas still point at the right ranges.
  • Number formats and percentages are readable.
  • No accidental hardcoded replacements were introduced.
  • scripts/recalc.py reports success or the remaining issues are documented.

Notes

  • Use openpyxl for workbook fidelity.
  • Use pandas for tabular transformation.
  • Use local scripts in scripts/ instead of rebuilding recalculation helpers ad hoc.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xlsx AI skill do?

Spreadsheet workflow for `.xlsx`, `.xlsm`, `.csv`, and `.tsv` files. Use when Codex needs to create, inspect, repair, clean, reformat, or extend a spreadsheet; preserve workbook structure while editing an existing file; add formulas, charts, or sheets; or convert messy tabular data into a deliverable spreadsheet file.

Why use Xlsx on TypingMind?

Because you install it once and use it with any model. Xlsx is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xlsx in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Immortalqx/my_codex_skills/tree/main/xlsx. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xlsx?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xlsx?

As many as you like. As long as a model supports skills, you can use Xlsx with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xlsx AI skill free?

Yes. It is published on GitHub by Immortalqx under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇