Chuyển đến nội dung
Skillpedia
PDF, Word và slide14k · #11371

xlsx-official

Skill này làm gì

Skill này xử lý các file bảng tính như xlsx, xlsm và csv, từ việc tạo sổ tính mới đến sửa sổ đã có. Skill dành cho người làm việc với ngân sách, mô hình và bảng dữ liệu.

Khi nào nên dùng

  • ✓Khi bạn muốn tạo một sổ tính mới với công thức và tổng.
  • ✓Khi bạn cần cập nhật, làm sạch hoặc kiểm tra một bảng tính có sẵn.
  • ✓Khi bạn muốn xuất một sheet sang CSV hoặc dựng sổ tính để xem lại.

Liên kết skill

https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/xlsx-official/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/xlsx-official/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi muốn có một sổ tính với sheet ngân sách hằng tháng, dùng công thức để tính các tổng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chọn cách làm: tạo file mới bằng openpyxl hoặc pandas, sửa một sổ tính có sẵn, hoặc đọc dữ liệu để phân tích. Agent kiểm tra kết quả trước khi trả lại cho bạn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

XLSX Skill

An Apache-2.0 toolkit for producing, editing, and reading Microsoft Excel (.xlsx) files. Written from scratch against the public ECMA-376 / ISO/IEC 29500 (SpreadsheetML) specification and built on permissively-licensed tooling (openpyxl MIT, pandas BSD-3-Clause, lxml BSD-3-Clause, optional xlsxwriter BSD-2-Clause, optional external binary soffice MPL 2.0) so it can be reused in commercial projects without restriction.

Decision matrix

Situation Path Read first
Build a workbook from a prompt / dataframe / raw values Author with openpyxl (formulas + formatting) or pandas (bulk data) create.md
Edit an existing .xlsx — add rows, patch cells, refresh formulas Load with openpyxl, preserve formulas & styles edit.md
Only need to read the data out (analysis, ETL, quick QA) pandas.read_excel + openpyxl for structural inspection read.md
Clean, aggregate, or transform tabular data before writing back pandas pipeline, then hand back to openpyxl for final polish analyze.md
Deep structural edits (custom XML parts, defined names, VBA-free surgery) Unpack → edit XML → repack edit.md → Raw XML workflow
Recompute formula values before shipping scripts/bake.py via LibreOffice see QA below

If the task mixes several of these, do them in this order: read → plan → edit/create → recalc → validate.

One-time environment setup

Bundled runtime: when the MIMO_PYTHON environment variable is set, skip the pip installs below — run every command with python3/uv run replaced by "$MIMO_PYTHON" (e.g. "$MIMO_PYTHON" scripts/overview.py book.xlsx). openpyxl/pandas/lxml/xlsxwriter are preinstalled in that interpreter; pip console scripts are unavailable, so always go through "$MIMO_PYTHON" -m <module>. A bundled LibreOffice (for bake.py/pdf_out.py) is exposed as MIMO_SOFFICE and picked up automatically.

python3 -m pip install --upgrade openpyxl pandas lxml
# Optional but recommended:
python3 -m pip install --upgrade xlsxwriter
# For formula recalc and PDF export:
#   macOS       brew install --cask libreoffice
#   Debian/Ubuntu apt-get install -y libreoffice

Every script under scripts/ uses only the standard library plus openpyxl and pandas. No proprietary dependencies.

Common commands

# 1. Describe a workbook (sheets, dimensions, formula count, sample rows)
python scripts/overview.py input.xlsx

# 2. Recalculate every formula, then flag any residual #REF! / #DIV/0! / etc.
python scripts/bake.py output.xlsx               # default 30s LibreOffice timeout
python scripts/bake.py output.xlsx --timeout 60  # custom timeout

# 3. Validate ZIP integrity, XML well-formedness, and openpyxl load
python scripts/audit.py output.xlsx

# 4. Convert to CSV (one file per sheet, or a single sheet by name/index)
python scripts/csv_out.py input.xlsx out_dir/           # all sheets
python scripts/csv_out.py input.xlsx out.csv --sheet 0  # first sheet

# 5. Convert to PDF for visual QA (needs LibreOffice)
python scripts/pdf_out.py output.xlsx           # writes output.pdf next to it

# 6. Unpack an .xlsx into readable XML parts (for surgical edits)
python scripts/explode.py input.xlsx unpacked/

# 7. Repack an unpacked directory into a fresh .xlsx
python scripts/assemble.py unpacked/ output.xlsx

Every script is a small, self-contained Python file. Read the top of the file for full CLI options.

Authoring principles

Excel is a live calculation surface, not a static table renderer. Users open workbooks and expect to change numbers, watch the rest update, and trust what they see. Keep that in mind:

  1. Use formulas, not hardcoded values. Compute totals with =SUM(...), not with a Python sum() written into the cell. When source data changes, the workbook must recompute itself.
  2. Put assumptions in dedicated input cells. Reference them from formulas (=B5*(1+$B$6)), never inline (=B5*1.05). This is the single biggest determinant of whether a model is usable.
  3. One sheet per idea. Inputs on one sheet, calculations on another, output on a third. Cross-sheet references (Inputs!B5) make dependencies explicit.
  4. Named styles beat ad-hoc formatting. For anything reused (headers,
Câu hỏi thường gặp

Khi chỉnh sửa, nó có giữ công thức của tôi không?

Skill bao gồm việc sửa sổ tính có sẵn mà vẫn giữ nguyên công thức và định dạng.

Có cần cài thêm phần mềm không?

Skill dùng các thư viện Python như openpyxl và pandas, và có thể dùng LibreOffice để hiển thị khi đã được cài.

Nó có đọc được CSV không?

Có. Skill bao gồm đọc và xuất file CSV và TSV.

Chi tiết

Mô tả gốc của tác giả

Spreadsheet toolkit. Reach for it whenever the artifact on either side of the conversation is a workbook file — .xlsx, .xlsm, .xltx, .csv, .tsv — and the user wants that artifact produced, changed, cleaned, or read. Typical triggers: 'build me a model', 'update this sheet', 'add a column', 'compute the totals as formulas', 'sanity-check this xlsx', 'export sheet 2 to CSV', 'render the workbook as PDF', 'the spreadsheet in ~/Downloads is a mess, fix it'. Applies equally to financial models, ops reports, data cleanups, and template fills. Skip it when the workbook is only source material and the

repo: XiaomiMiMo/MiMo-Code

Độ phổ biến

Sao GitHub
14k
Vị trí xếp hạng
#11371
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự