Langsung ke konten
Skillpedia
PDF, Word & slide5.1k Β· #15052

office-tools

Fungsinya

Skill ini adalah kumpulan alat baris perintah untuk membaca struktur dokumen, membuat suntingan yang tepat sasaran, menangani perubahan yang dilacak, dan memeriksa paket file. Skill ini untuk orang yang memerlukan suntingan hati-hati pada file Office tanpa penulisan ulang yang berisiko.

Kapan dipakai

  • βœ“Saat Anda ingin membaca struktur file Word, PowerPoint, atau Excel.
  • βœ“Saat Anda ingin menerima atau meninjau perubahan yang dilacak atau komentar dalam file Word.
  • βœ“Saat Anda ingin memeriksa file Office dari masalah yang membuatnya gagal dibuka.

Link skill

https://github.com/Fei2411/DS-Bot/blob/main/ds-bot/src/office/skills/office-tools/SKILL.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/Fei2411/DS-Bot/blob/main/ds-bot/src/office/skills/office-tools/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPeriksa laporan Word saya dari masalah yang bisa membuatnya tidak bisa dibuka, dan daftarkan komentarnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menjalankan alat bawaan untuk membaca blok-blok file dan memeriksa paketnya. Agent menulis suntingan ke file baru, atau langsung di tempatnya jika Anda memintanya, lalu melaporkan temuannya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Office tools

A bundled command line for the jobs the format skills cannot do safely: reading a document's structure with stable ids, repairing packages, targeted edits, tracked changes, layout findings, and contact sheets of rendered pages. Run every command through the Node and CLI paths in the runtime block at the end of this skill.

Every command accepts --json and prints {"ok":true,"data":…} for a run that completed, or {"ok":false,"error":{"code","message"}} when it failed. Findings are results, not failures: they land inside data.findings with ok still true, and the exit code carries them β€” 0 = ok, 1 = findings remain, 2 = usage or failure. Edits write a new file (-o out) or overwrite the input (--in-place); they never touch the input otherwise.

Commands

  • unpack <file> <dir> / pack <dir> <file> β€” extract a package to readable XML and repack it. pack --against <original> also runs check against the original.
  • check <file|dir> [--against <original>] [--fix] β€” only defects that make Office refuse a file or show a repair prompt. --against reports just the issues the original lacks. --fix repairs what is safe (xml:space, duplicate ids, content-type rows, dangling relationships).
  • docx read <file> [--changes] β€” body blocks as p1…, t1… in reading order, with paragraph style, tables as cell rows (merges noted), headers/footers, footnotes/endnotes, comments and the paragraph each anchors to. Text shows tracked changes accepted; --changes marks them inline ({+inserted (Ana)+}, {-deleted (Ana)-}, moves, format changes, deleted paragraph marks).
  • docx fields <file> β€” simple and complex fields with instruction and current result.
  • docx edit <file> (-o out|--in-place) --ops <json|@file> β€” one batch of ops, all-or-nothing, ids from docx read of the same file: replace (cross-run text/regex, keeps formatting), set_cell, set_field, insert, delete, comment, accept_changes, reject_changes.
  • pptx inventory <file> [--slides N…] β€” slide size, theme fonts, and every shape per slide: id, name, kind, placeholder, resolved box in inches (group transforms applied, layout/master placeholder inherited), text with run fonts and sizes, picture media.
  • pptx layout <file> [--autofit] β€” overlapping text boxes and shapes off the slide, from the same resolved boxes. --autofit sets a:normAutofit on the shapes found. Overflow inside a box still needs a render.
  • pptx slides <file> -o|--in-place --order 3,1,1,5 β€” reorder by current positions; a repeated position duplicates the slide (notes, charts and embedded workbooks copied); positions left out are removed.
  • pptx clean <file|dir> [--dry-run] β€” drop slides not in the list, unreachable parts, dangling relationships/Overrides, unreferenced media (also works on docx/xlsx).
  • xlsx inventory <file> β€” sheets (state, dimension, cell/formula counts, merges, tables, charts), defined names, every error cell with its formula, and a note when formulas have no cached value.
  • xlsx read <file> --sheet <name> [--range A1:H40] β€” a grid of cached values with formulas shown; dates as ISO.
  • sheet <png…|dir> -o <contact.png> [--cols 4] [--width 320] β€” one contact sheet of rendered pages, labelled with page numbers.

Workflows

Word β€” docx read for the ids β†’ one docx edit batch over the opened document β†’ docx read again to confirm β†’ check --against <the untouched original> for anything left. Keep the original copy untouched (no --in-place on it).

PowerPoint β€” pptx inventory β†’ edit (python-pptx through the format skill; pptx slides/pptx clean for structure) β†’ pptx layout for overlap/off-slide findings β†’ when office-render is in the catalog, render β†’ sheet over the rendered images and look at the contact sheet before single slides β†’ fix β†’ recheck.

Excel β€” xlsx inventory β†’ edit with openpyxl (format skill) β†’ office-recalculate β†’ xlsx inventory again and confirm no error cells and no uncached formulas.

XML edits β€” only through unpack, a real XML parser, and pack --against. Never sed or string-splice XML.

Finish line β€” check passes clean, pptx layout findings addressed or explained, the contact sheet looked at when rendering is available, and anything that could not be verified is said in the report.

Design rules for a new deck

One idea and one visual per slide. Titles state the point. One accent colour. A locked type scale. No card behind every paragraph. Draw

Pertanyaan umum

Apakah file asli saya berubah?

Tidak, kecuali Anda memintanya mengedit di tempat. Jika tidak, suntingan ditulis ke file keluaran baru.

Apakah perlu memasang sesuatu?

Tidak. Menurut skill ini, skill bekerja secara offline dan tidak ada yang perlu dipasang.

Apa arti sebuah temuan?

Temuan adalah masalah yang ditemukan pemeriksaan dalam file. Masalah itu dilaporkan tanpa menghentikan proses.

Detail

Deskripsi asli dari pembuat

Inspect, check, and edit .docx/.pptx/.xlsx packages in place β€” block-level reading, comments, tracked changes, slide inventory and layout checks, slide reorder/duplicate/cleanup, workbook errors, package checks, contact sheets. Works offline; nothing to install.

repo: Fei2411/DS-Bot

Popularitas

Bintang GitHub
5.1k
Peringkat
#15052
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa