Logo vun Office

Office

Communautéit
Lynricsy
office

Creates, edits and converts local Word, PowerPoint, Excel and PDF files; not Google Docs or Sheets. Use when a deliverable or input is .docx, .pptx, .xlsx or .pdf: reports, decks, spreadsheets with formulas, tracked changes and comments, form filling, PDF merge, split, OCR or table extraction, or Markdown to Word, including a small edit to an existing file.

Iwwersiicht

EditeurLynricsy
RepositoryHyperSkills
Skill-Nummoffice
Stären
26
Forks
0
Matgeliwwert Fichieren
24
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 24 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Lynricsy op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Office an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/office
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Lynricsy/HyperSkills.git /tmp/HyperSkills
mkdir -p .claude/skills
cp -r /tmp/HyperSkills/skills/office .claude/skills/office
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Office an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Office automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Office net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

office

Paths below are relative to this skill's directory.

Scope

Local Office and PDF files: .docx, .pptx, .xlsx, .pdf, plus the macro-enabled and template variants (.docm, .pptm, .potx, .xlsm). Creating them, editing existing ones in place, extracting their content, and converting between them and Markdown.

Not covered:

  • Google Docs, Sheets and Slides, or any other hosted document API.
  • HTML, Markdown or LaTeX as the deliverable. Markdown input that becomes a .docx is in scope.
  • Analysis whose output is a chart, a number or a written answer rather than a file.
  • Legacy binary formats (.doc, .ppt, .xls) beyond converting them to the modern equivalent with LibreOffice first.
  • .odt / .odp / .ods as authored formats.

Core rules

  • Render the current version of the file and read the page images before calling any of this done. The libraries do not lay out text, so overflow, clipping and missing elements exist only in the render.
  • Reopen every generated file with its matching Python library. LibreOffice converts packages that python-docx rejects, so conversion alone is not proof the file is well formed.
  • Edit an existing file; never regenerate it from what you extracted. Extraction is lossy, so a rewrite silently drops styles, headers, fields and anything you did not read.
  • Write formulas into spreadsheets, never computed values. A workbook of literals cannot be re-run when an assumption changes, which is the only reason the recipient wanted a spreadsheet.
  • Never deliver a workbook until scripts/xlsx_recalc.py exits zero. openpyxl writes formula strings without evaluating them, so an unrecalculated workbook is entirely unverified.
  • Write post-2007 Excel functions with the _xlfn. prefix, and prefer formulas that return one value per cell. Bare XLOOKUP recalculates to #NAME?, and a dynamic array truncates to its first element without raising an error.
  • Pass pptxgenjs colours as six hex digits or a pptx.SchemeColor. Eight-digit hex and CSS names are replaced with black on a stderr warning nothing shows.
  • Give every ImageRun an explicit type. Before docx 9.13 a missing type writes the media part with an undefined extension and no content type; later versions read it from the bytes, but the bundled converter pins 9.7.
  • Wrap every docx-js run in a Paragraph. A TextRun or PageBreak placed directly in a section is written to the file and then ignored by every renderer.
  • Do structural work before content work: adding, deleting or reordering slides or sheets invalidates every index and relationship id cached before it.
  • Choose fonts with metric-compatible substitutes — Arial, Times New Roman, Courier New — and never Aptos. A substituted font with different widths makes the visual check lie about line breaks.
  • Verify tracked changes with pandoc --track-changes=accept and --track-changes=reject, not with a render, which shows both versions at once.
  • Read a document that may carry revisions with --track-changes=all. The default silently returns the accepted text and hides that anything is pending.
  • Never invent a figure to fill a table, chart or field. Leave the gap visible and say what is missing.

Workflows

Task routing

Pick the tool from the deliverable, then follow the matching workflow.

FormatCreateEdit existingRead
docxdocx-js (docx npm)Unpack, edit word/document.xml, repackpandoc -f docx -t markdown
pptxpptxgenjspython-pptx; ppt/slides/slideN.xml for structuremarkitdown
xlsxopenpyxlopenpyxlopenpyxl, or pandas for bulk tables
pdfreportlabpypdf, qpdfpdfplumber, pdftotext -layout

Markdown to docx has its own path: scripts/md_to_docx.mjs by default, pandoc with a reference document when a house template must be matched.

create-document

  • Confirm the format, the audience and whether a template must be matched.
  • Read the reference for the format from the topic router before writing code, for the failure modes rather than the API.
  • Pick fonts with metric substitutes and, for a deck, a named palette.
  • Generate the file.
  • Reopen it with the matching library.
  • xlsx only: uv run scripts/xlsx_recalc.py <file> must exit zero.
  • uv run scripts/render_preview.py <file> and read every image.
  • Gate: library reopen succeeds, recalc is clean where applicable, and the images show no overflow, no missing element and no placeholder text.

edit-existing

  • Render the original first, so "what changed" has a baseline.
  • Decide the layer: library API if it can express the change, OOXML unpack if it cannot (tracked changes, comments, slide order, themes).
  • Keep the original file untouched and work on a copy.
  • Structural edits first, then save, reopen, then content edits.
  • For OOXML work: uv run scripts/office_unpack.py in.docx work/, edit, uv run scripts/office_pack.py work/ out.docx.
  • Reopen with the matching library.
  • Render the result and compare against the baseline render.
  • Gate: the intended change is visible, nothing else moved, and for redlining pandoc --track-changes=reject reproduces the original text while --track-changes=accept shows the edit.

read-extract

  • Establish what is being asked for: text, tables, numbers, or a summary.
  • Use the read tool from the routing table.
  • Word documents: pass --track-changes=all when revisions may exist.
  • PDFs: a page yielding no text is a scan — switch to OCR rather than concluding the file is broken.
  • Spot-check extracted numbers against the rendered page before anything acts on them.
  • Gate: every figure reported has been checked against the rendered source, and OCR-derived text is labelled as such.

convert

  • Markdown to docx: node scripts/md_to_docx.mjs in.md out.docx, or pandoc with --reference-doc when a template must be matched.
  • Office to PDF: soffice --headless --convert-to pdf <file>.
  • Office to Markdown: pandoc for docx, markitdown for pptx and xlsx.
  • Legacy binary to modern: soffice --headless --convert-to docx old.doc, then treat the result as the source.
  • Render the output and confirm the conversion did not reflow anything that matters — tables, page breaks, image placement.
  • Gate: the converted file opens in its library and its render matches the source's intent.

Topic router

TopicRead whenFile
Word creation, styles, tables, images, TOCBuilding or reading a .docxreferences/docx.md
Tracked changes, comments, redliningA reviewer must accept or reject editsreferences/docx-tracked-changes-comments.md
Markdown to Word, reference templatesConverting Markdown, or matching a house templatereferences/markdown-to-docx.md
pptxgenjs, python-pptx, template fillingBuilding or editing a deckreferences/pptx.md
Layouts, type scale, palette, avoid listThe deck has to look designedreferences/pptx-design.md
openpyxl, merged cells, formats, charts, VBAAny spreadsheet workreferences/xlsx.md
_xlfn. prefixes, dynamic arrays, model conventionsWriting formulas, or a financial modelreferences/xlsx-formulas.md
reportlab, pypdf, merge, split, watermark, encryptAny PDF workreferences/pdf.md
AcroForm fields, overlays, table extraction, OCRFilling a form or extracting from a PDFreferences/pdf-forms-tables-ocr.md
Package layout, content types, relationships, repackThe library cannot express the changereferences/ooxml-editing.md
Render loop, what to look for, font substitutionEvery delivery; before choosing fontsreferences/render-qa-fonts.md

Output format

When the deliverable is a file, report it like this — path, what was verified, and what a reader still has to decide:

report.docx — 4 pages
  verified: python-docx reopen; rendered 4/4 pages and reviewed
  assumptions: Q3 figures from the attached CSV; growth rate left at 12%
  open: the appendix table runs to the margin at A4; confirm Letter is intended

For a spreadsheet, include the recalculation result:

model.xlsx — Model sheet, 12 formula cells
  verified: xlsx_recalc.py clean (0 errors); openpyxl reopen keeps formulas
  assumptions: B2 growth 12%, B3 COGS 40% — both editable, everything derives

When a gate fails, say which one and what the failure was, rather than delivering with a caveat:

deck.pptx — NOT delivered
  gate: visual review, slide 4
  failure: the traction chart title overflows its box at 24 pt

Environment

System packages:

bash
# Debian / Ubuntu
sudo apt-get install -y libreoffice poppler-utils pandoc qpdf tesseract-ocr \
  fonts-liberation fonts-crosextra-carlito fonts-crosextra-caladea
# macOS
brew install --cask libreoffice && brew install poppler pandoc qpdf tesseract

Python (each bundled script declares its own PEP 723 dependencies, so uv run scripts/<name>.py needs no environment setup):

bash
uv pip install openpyxl pandas "markitdown[pptx,docx,xlsx,pdf]" Pillow lxml \
  python-docx python-pptx pypdf pdfplumber reportlab pytesseract pdf2image

Node, for document generation:

bash
cd scripts && npm install     # docx, marked
npm install pptxgenjs         # in the working directory for a deck

Bundled scripts:

ScriptModePurpose
scripts/render_preview.pyRunAny Office or PDF file to page PNGs for review
scripts/xlsx_recalc.pyRunRecalculate with LibreOffice, scan for error cells, non-zero exit on any
scripts/office_unpack.pyRunUnpack an OOXML package, recording entry order
scripts/office_pack.pyRunRepack it with [Content_Types].xml first and no directory prefix
scripts/md_to_docx.mjsRunMarkdown to Word with no native dependency
scripts/pdf_form_fields.pyRunList AcroForm fields with checkbox states; fill them with validation

Fonts are a correctness dependency, not cosmetics: check fc-match <font> returns the metric-compatible substitute before trusting a render, as described in references/render-qa-fonts.md.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Office?

Creates, edits and converts local Word, PowerPoint, Excel and PDF files; not Google Docs or Sheets. Use when a deliverable or input is .docx, .pptx, .xlsx or .pdf: reports, decks, spreadsheets with formulas, tracked changes and comments, form filling, PDF merge, split, OCR or table extraction, or Markdown to Word, including a small edit to an existing file.

Firwat Office op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Office besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Office an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Lynricsy/HyperSkills/tree/main/skills/office an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Office benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Office benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Office domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Office gratis?

Jo. De Skill gëtt vum Lynricsy ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇