Pular para o conteúdo
Skillpedia
PDF, Word e slides5,1 mil · #15052

office-tools

O que ela faz

É um conjunto de ferramentas de linha de comando para ler a estrutura de documentos, fazer edições pontuais, tratar alterações controladas e verificar o pacote do arquivo. É para quem precisa de edições cuidadosas em arquivos do Office sem uma reescrita arriscada.

Quando usar

  • ✓Quando você quer ler a estrutura de um arquivo do Word, PowerPoint ou Excel.
  • ✓Quando você quer aceitar ou revisar alterações controladas e comentários em um arquivo do Word.
  • ✓Quando você quer verificar um arquivo do Office em busca de problemas que impediriam sua abertura.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/Fei2411/DS-Bot/blob/main/ds-bot/src/office/skills/office-tools/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Verifique meu relatório do Word em busca de problemas que impediriam sua abertura, e liste os comentários dele.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente executa a ferramenta incluída para ler os blocos do arquivo e verificar o pacote. Ele grava as edições em um novo arquivo, ou no próprio arquivo quando você pedir, e relata o que encontrou.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Ele altera meu arquivo original?

Não, a menos que você peça para editar no próprio arquivo. Caso contrário, as edições vão para um novo arquivo de saída.

Precisa instalar alguma coisa?

Não. A skill diz que funciona offline e que nada precisa ser instalado.

O que significa um achado?

Um achado é um problema encontrado no arquivo. Ele é relatado sem interromper a execução.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
5,1 mil
Posição no ranking
#15052
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas