MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Convert-Excel-To-Md

Convert-Excel-To-Md is an code AI skill with a core value of Converts Excel (. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Converts Excel (.xlsx) workbooks into Markdown so their contents can be accurately analyzed, summarized, searched, or extracted from. Use this skill whenever the user shares, references, or asks about

Last verified on: 2026-07-16

Quick Facts

Category code
Works With Claude, GitHub Copilot
Source github/awesome-copilot
Stars ⭐ 34.1k
Last Verified 2026-07-16
Risk Level Low
mkdir -p ./skills/convert-excel-to-md && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/convert-excel-to-md/SKILL.md -o ./skills/convert-excel-to-md/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Convert Excel to Markdown


When to use this skill


Trigger this skill any time there is a `.xlsx` file that needs to be

understood or processed — for example, a user attaches a spreadsheet and

asks questions about it, wants a summary of the data, wants specific rows or

values pulled out, or wants multiple workbooks in a folder processed

together. Excel's native `.xlsx` format is a zipped XML bundle that is not

reliably readable as plain text, so always convert it to Markdown first

using the script in this skill rather than trying to open or parse the file

directly.


This skill only supports `.xlsx`. If asked to convert a legacy `.xls` file,

tell the user it isn't supported and ask them to re-save it as `.xlsx`

(Excel: File > Save As > Excel Workbook (.xlsx)) first.


**Mixed file types:** When the user references a folder or set of documents

containing multiple supported file types (`.pdf`, `.docx`, `.xlsx`), this

skill handles only `.xlsx` files. The agent MUST also invoke the sibling

skills in parallel:

- `convert-pdf-to-md` for any `.pdf` files

- `convert-word-to-md` for any `.docx` files


Never process a folder and silently skip a supported file type. All three

skills must be invoked together when mixed types are present.


Setup (once per environment)


Before the first conversion in a given environment, follow

[`references/setup.md`](references/setup.md) step by step to ensure Python,

pip, and the `markitdown` package are installed. Do this proactively rather

than guessing whether the environment is ready — the script itself will

also fail with a clear pointer back to that file if `markitdown` turns out

to be missing, so it's safe to just try the conversion first if you're

reasonably confident setup was already done.


Usage


The conversion script lives at `scripts/convert_excel_to_md.py`.


**Output structure:** MarkItDown's XLSX converter renders each sheet as its

own `## <SheetName>` Markdown table — it has no support for embedded images

at all. This script separately extracts real embedded images (raster

pictures, not charts) and maps them to the sheet they belong to, writing a

self-contained folder per document:


text
<name>/
    img/
        sheet001_<sheetname>_img001.<ext>
        sheet002_<sheetname>_img001.<ext>
        ...
    <name>.md          (each sheet's images appear right after its table,
                         under a "#### Images in this sheet" heading)

This is per-sheet placement, not exact cell position — the finest

granularity MarkItDown's stable output anchors (the `## <SheetName>`

headings) allow. If a workbook has no embedded images, no `img/` folder or

image sections are created. Native Excel **charts** are not extracted as

images (only actual embedded pictures are — charts would need to be

rendered by Excel/LibreOffice, which this lightweight skill does not do).


**Single file:**


powershell
python scripts\convert_excel_to_md.py "C:\path\to\workbook.xlsx"

This creates a `workbook\` folder next to the source file (containing

`workbook.md` and, if present, `workbook\img\`). To control the destination

folder explicitly:


powershell
python scripts\convert_excel_to_md.py "C:\path\to\workbook.xlsx" -o "C:\path\to\output_folder"

**A folder of workbooks (batch mode):**


powershell
python scripts\convert_excel_to_md.py "C:\path\to\folder"

Add `--recursive` to also include subfolders:


powershell
python scripts\convert_excel_to_md.py "C:\path\to\folder" --recursive

Each `.xlsx` found gets its own `<name>\` output folder next to it by

default. Pass `-o "C:\path\to\output_parent"` to collect all the generated

`<name>\` folders under a separate parent directory instead (subfolder

structure is preserved when combined with `--recursive`).


After conversion, read the resulting `.md` file(s) to perform the actual

analysis the user asked for — the script's job is only to produce accurate

Markdown (and images), not to interpret the content.


Deciding where output go

🎯 Best For

  • Data analysts
  • Business intelligence teams
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Finding patterns in customer data
  • Creating automated dashboards
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Convert-Excel-To-Md to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Can this connect to my database directly?

Most data skills accept CSV or JSON input. Database connectors are listed in the Works With section.

Is Convert-Excel-To-Md compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Convert-Excel-To-Md?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Convert-Excel-To-Md?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/convert-excel-to-md/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Not validating data quality

AI analysis is only as good as your input data. Profile and clean data before analysis.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills