officecli-xlsx
Fungsinya
Skill ini memandu agent AI dalam mengerjakan file spreadsheet .xlsx melalui alat officecli. Ini untuk orang yang membangun, memeriksa, atau memperbarui spreadsheet.
Kapan dipakai
- βSaat Anda ingin spreadsheet, pelacak, atau tabel keuangan baru dibuat dari data Anda.
- βSaat Anda memerlukan rumus, grafik, atau tabel pivot ditambahkan ke file Excel.
- βSaat Anda ingin mengimpor file CSV ke buku kerja Excel yang diformat dengan baik.
Link skill
https://github.com/iOfficeAI/OfficeCLI/blob/main/skills/officecli-xlsx/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda mengubah CSV pengeluaran ini menjadi buku kerja Excel dengan total dan grafik bulanan?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengimpor data, menambahkan rumus dan pemformatan, membuat grafik, lalu memeriksa buku kerja melalui officecli.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
OfficeCLI XLSX Skill
Setup
If officecli is missing:
- macOS / Linux:
curl -fsSL https://d.officecli.ai/install.sh | bash - Windows (PowerShell):
irm https://d.officecli.ai/install.ps1 | iex
Verify with officecli --version (open a new terminal if PATH hasn't picked up). If install fails, download a binary from https://github.com/iOfficeAI/OfficeCLI/releases.
β οΈ Help-First Rule
This skill teaches what good xlsx looks like, not every command flag. When a property name, enum value, or alias is uncertain, consult help BEFORE guessing.
officecli help xlsx # List all xlsx elements
officecli help xlsx <element> # Full element schema (e.g. pivottable, chart, cf)
officecli help xlsx <verb> <element> # Verb-scoped (e.g. add chart, set cell)
officecli help xlsx <element> --json # Machine-readable schema
Help reflects the installed CLI version. When this skill and help disagree, help is authoritative.
Shell & Execution Discipline
Shell quoting (zsh / bash). Excel paths contain [], and number formats contain $. Both are shell metacharacters. Rules:
- ALWAYS quote element paths:
"/Sheet1/row[1]", not/Sheet1/row[1]. - Use single quotes for any prop value containing
$:numFmt='$#,##0'. - For formulas with cross-sheet
!references, usebatchwith a<<'EOF'heredoc (see Known Issues). \nand\tin a prop value ARE interpreted by the CLI β\nis a real in-cell line break (pair with--prop wrapText=true),\ta tab β consistent across xlsx / docx / pptx. Double them (\\n) for a literal backslash-n (rarely wanted). ($is the shell layer above β single-quote it.)
Incremental execution. Run commands one at a time and read each exit code. officecli mutates the file on every call; a 50-command script that fails at command 3 will cascade silently. One command β check output β continue.
Requirements for Outputs
Before reaching for a command, know what a good xlsx looks like. These are the deliverable standards every workbook MUST meet.
All Excel files
Zero formula errors. Every delivered workbook MUST have ZERO #REF!, #DIV/0!, #VALUE!, #NAME?, #N/A. No exceptions β guard denominators with IFERROR or IF(x=0,...).
Formulas, not hardcoded values. If a number can be computed from other cells, it is a formula. Hardcoding 5000 where =SUM(B2:B9) belongs breaks the contract that the workbook stays live when inputs change. This is the single most important rule in this skill.
Professional font. Use one consistent, professional font across the workbook (Arial / Calibri / Times New Roman). Don't mix four fonts because one sheet came from CSV.
Explicit widths. There is no auto-fit. Any column the user will read MUST have width set β default 8.43 chars clips everything. Sensible starts: labels 20-25, numbers 12-15, dates 12, short codes 8-10.
Preserve existing templates. When editing a file that already has a look, match it. Existing conventions override these guidelines.
Visual delivery floor (applies to EVERY workbook)
Before you declare done, run officecli view "$FILE" html and Read the returned HTML path to confirm all of these:
- No
###in any cell.###means a column is too narrow for its widest value. Every column the user reads needs an explicitwidth.###in a delivered file is unfinished work, never "a small visual nit". - No truncated titles. Sheet titles, section headers, long labels must fit. Widen the column or apply
wrapText=trueon the cell. - No placeholder tokens rendered as data.
$fy$24,{var},<TODO>,xxxxmust never appear in a cell, chart title, series name, or legend. These are build-time tokens that escaped replacement. - Pie / doughnut slices have distinct fill colors. If the slices render same-colored, switch to
bar/columnor setcolors=...explicitly. - No empty trailing pages / empty chart anchors.
anchor=D2:J18over empty source cells looks like a broken chart.
If any of the above fails, STOP and fix before declaring done.
Print layout. Any sheet the user may print or send as a board pack needs page setup. Default portrait + no fit-to-page splits wide tables and charts mid-way. Pick the fit mode by sheet shape:
# Summary / chart / dashboard sheet (small, β€ ~40 rows): fit to a single page.
officecli set "$FILE" "/Summary" --prop orientation=landscap
Pertanyaan umum
Apakah perlu memasang Excel?
Tidak. Skill ini menyatakan officecli bekerja tanpa instalasi Office apa pun.
Apakah bisa menangani rumus lintas lembar?
Ya. Skill ini mencakup panduan rumus lintas lembar dan cara menuliskannya dengan aman.
Format apa saja yang tercakup?
Skill ini mencakup buku kerja .xlsx dan impor data CSV atau TSV.
Detail
Deskripsi asli dari pembuat
Use this skill any time a .xlsx file is involved -- as input, output, or both. This includes: creating spreadsheets, financial models, dashboards, or trackers; reading, parsing, or extracting data from any .xlsx file; editing, modifying, or updating existing workbooks; working with formulas, charts, pivot tables, or templates; importing CSV/TSV data into Excel format. Trigger whenever the user mentions 'spreadsheet', 'workbook', 'Excel', 'financial model', 'tracker', 'dashboard', or references a .xlsx/.csv filename.
repo: iOfficeAI/OfficeCLI
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #9137
- Lisensi
- Apache-2.0
- Diperbarui
- 30/10/2026
Komentar
- β¦
Skill lain dari repositori ini
officecli
33kMembantu agent Anda membuat, membaca, memeriksa, dan mengedit file Word, Excel, dan PowerPoint dengan alat officecli, tanpa perlu memasang Office.
morph-ppt-3d
33kMembantu agent Anda membuat presentasi PowerPoint dengan model 3D GLB dan transisi Morph yang halus antarslide.
morph-ppt
33kMembantu agent Anda membuat file PowerPoint dengan transisi Morph yang halus, di mana bentuk bergerak, membesar, atau berputar antarslide.
officecli-academic-paper
33kMembantu agent Anda memformat makalah riset, tesis, atau naskah sebagai file Word dengan sitasi, persamaan, dan tata letak gaya jurnal.
Skill serupa
feishu-doc
394kMembantu agent Anda membaca, membuat, dan mengedit dokumen cloud Feishu, termasuk teks, gambar, dan tabel, dengan memakai alat dokumen.
feishu-drive
394kMemungkinkan agent Anda menelusuri, mengatur, dan memberi komentar pada file di folder cloud Feishu yang sudah dibagikan kepada bot.
feishu-perm
394kMembantu agent Anda memeriksa dan mengubah siapa yang dapat mengakses file Feishu, dengan memilih izin terkecil yang memenuhi permintaan Anda.