Office logo

Office

Community
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.

Overview

PublisherLynricsy
RepositoryHyperSkills
Skill nameoffice
Stars
26
Forks
0
Bundled files
24
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 24 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Lynricsy on GitHub. Read the source before you install it.

Installation

Install the Office AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Lynricsy/HyperSkills/tree/main/skills/office
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Office in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Office on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Office is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Office AI skill do?

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.

Why use Office on TypingMind?

Because you install it once and use it with any model. Office is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Office in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Lynricsy/HyperSkills/tree/main/skills/office. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Office?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Office?

As many as you like. As long as a model supports skills, you can use Office with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Office AI skill free?

Yes. It is published on GitHub by Lynricsy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇