agentleFS
rafaelghifrafaelghif/antigravity-agents-core/.agents/skills/office/SKILL.md

office

Skill6 starsChanged 16 days agoMITView on GitHub

Processes, analyzes, extracts, and generates Microsoft Office documents (.docx, .xlsx, .pptx) and PDFs using Antigravity native multimodal capabilities and automation scripts. Use this skill when the user asks to parse spreadsheets, generate Word reports, extract PDF data, or manipulate Office files.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use computer-use and pptx.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    computer-use

    Use Orca's computer-use CLI to inspect and operate local desktop app windows through accessibility trees, screenshots, and safe UI actions. Use for desktop app interaction: list apps/windows, get app state, read visible UI, click controls, type, press keys, scroll, drag, set values, or perform accessibility actions. Also use for browser windows, webviews, Orca app UI, or other desktop UI. Triggers include "computer use", "orca computer", "read Spotify", "read Slack", "control/click/read in a desktop app", and "get app state".

    Also in 3 projects that use this

  • AnthropicSkill

    pptx

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Hardcoding unformatted floats: Never output raw floating-point numbers for currency without explicit cell formatting.

    line 38
  2. Distinctive:

    Monolithic raw dumps: Never paste 10,000 raw spreadsheet rows directly into chat context.

    line 39
  3. Very specific:

    Re-inventing native parsers: Never write complex regexes to scrape text from binary docx/xlsx files when Antigravity's multimodal ingestion …

    line 40
  4. Distinctive:

    Check file extension and size:

    line 47
  5. Distinctive:

    Follow formatting standards in references/document-conversions.md:

    line 62
  6. Very specific:

    Verify the generated file is valid and non-empty (test -s .scratch/output.xlsx).

    line 67

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Office & Document Processing

Process, analyze, extract, and author Microsoft Office documents (.docx, .xlsx, .pptx), CSV spreadsheets, and PDFs using Antigravity's native multimodal file ingestion and automated generation scripts.

Decision tree

  1. Does the task involve office documents, spreadsheets, or PDFs?
    • No (source code, plain markdown, database migrations, or live web pages) → Route to the appropriate domain skill (browsing, coding-standards, database-migration).
    • Yes → Proceed to step 2.
  2. Are you reading/analyzing an existing file or generating/modifying one?
    • Reading or Analyzing an existing document:
      • Small to medium files (<20 MB) or attached directly in conversation: Use Antigravity's native multimodal pipeline (read_file or prompt attachment). Gemini models parse text, tables, and layouts natively without external tools.
      • Large datasets, formula audits, or batch exports: Run the extraction helper scripts/extract-office.py via run_command to generate clean JSON or tabular outputs.
    • Generating or Modifying a document:
      • Excel spreadsheets (.xlsx): Use openpyxl or exceljs with proper cell styles, uppercase formulas (=SUM()), and auto-fitted column widths (see examples/generate-report.py).
      • Word documents (.docx): Use python-docx or pandoc with clear semantic headings (H1 > H2 > H3) and styled tables.
      • PDF exports: Convert from Markdown/HTML or compile via headless tooling. Proceed to step 3.
  3. Where should generated files be stored and presented?
    • Save output files to .scratch/ or project asset paths.
    • Present a concise Markdown summary table in your response or conversation artifact and link directly to the generated office file with a clickable relative path.

When to use office processing

1. Valid trigger scenarios

  • Native document inspection: Reading uploaded .docx, .xlsx, .pptx, or .pdf files to extract requirements, analyze contracts, or audit business logic.
  • Spreadsheet data processing: Parsing CSV/Excel tables, computing aggregations, validating formulas, or structuring raw metrics.
  • Client-ready report generation: Converting technical markdown specs, test results, or sprint metrics into styled .docx reports or .xlsx workbooks.
  • Data conversions: Transforming CSV/JSON into formatted Excel workbooks or compiling markdown into Word documents.

2. Prohibited anti-patterns

  • Hardcoding unformatted floats: Never output raw floating-point numbers for currency without explicit cell formatting.
  • Monolithic raw dumps: Never paste 10,000 raw spreadsheet rows directly into chat context; extract a representative sample and write the full dataset to a file.
  • Re-inventing native parsers: Never write complex regexes to scrape text from binary docx/xlsx files when Antigravity's multimodal ingestion or scripts/extract-office.py handles it natively.

Implementation workflow

Step 1: Pre-flight format & tool selection

  1. Check file extension and size:
    • For .docx, .xlsx, .pptx, .pdf: See references/office-formats-and-tools.md.
  2. Choose execution path:
    • Reading/Q&A: Antigravity native multimodal read_file.
    • Batch extraction: Run scripts/extract-office.py.
    • Authoring: Run a generator script like examples/generate-report.py.

Step 2: Extraction & processing

  • Execute extraction via run_command:
    python .agents/skills/office/scripts/extract-office.py path/to/document.xlsx .scratch/extracted.json
  • Inspect extracted JSON structure and verify key sheet names or section headings.

Step 3: Authoring & formatting standards

Follow formatting standards in references/document-conversions.md:

  • Spreadsheets: Header fills, borders, frozen top row, auto-adjusted column widths, and uppercase formulas.
  • Documents: Semantic hierarchy, styled table borders, and zero hardcoded absolute path links in footers.

Step 4: Verification & artifact delivery

  1. Verify the generated file is valid and non-empty (test -s .scratch/output.xlsx).
  2. Provide a markdown summary table in the response and include a clickable file link to the generated document.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.