office-router

office-router is a skill for Claude Code, Codex from matingai/crab. It costs 38 tokens per session (525 once invoked), scanned A, original, MIT.

A routing guide for work involving Microsoft Office files such as spreadsheets, documents, and presentations. It checks the actual file type and sends the task to the matching workflow, or uses Slidev for new presentations when a PowerPoint file is not required.

In plain words
What is it for?
Use it to inspect and route edits for .xlsx, .docx, and .pptx files, create simple Office documents, and choose a presentation workflow.
Why use it?
It prevents the wrong editing process from being used for a file. It also helps decide when basic tools are enough and when a script is needed to preserve complex formatting or document behavior.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect and route edits for .xlsx, .docx, and .pptx…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matingai/crab/office-router
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add matingai/crab --skill office-router
Clone the repo
git clone --depth 1 https://github.com/matingai/crab

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for office-router

README.md
[![agentmods](https://agentmods.dev/badge/skills/matingai/crab/office-router.svg)](https://agentmods.dev/skills/matingai/crab/office-router)
Your own site
<a href="https://agentmods.dev/skills/matingai/crab/office-router"><img src="https://agentmods.dev/badge/skills/matingai/crab/office-router.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.00525
Opus 5 $0.00019 $0.00262
Sonnet 5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00052

Measured 6d ago against content hash 203384043ee3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

office-router scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bundled-skills/office/office-router/SKILL.md · 65 lines

What it actually says

Office Router

Use this skill first when the user mentions an Office file or asks for an Office-style deliverable and the exact workflow is not yet clear.

Routing

  1. Call office_inspect on the target path before planning edits.
  2. Route by actual format and reported capabilities, not by the user's label alone.
  3. If the file is .xlsx, switch to office/xlsx-edit.
  4. If the file is .docx, switch to office/docx-edit.
  5. If the file is .pptx, switch to office/pptx-review.
  6. If the file is unsupported, stop and explain the limitation instead of guessing.
  7. If the user wants a new presentation but has not required .pptx, prefer slides/slidev-deck instead of the .pptx workflow.

Choose The Execution Path

Start with the built-in office_* tools when the task is mostly structural:

  • inspect or summarize an Office file
  • simple workbook cell or sheet edits
  • paragraph-level .docx rewrites
  • slide review or extraction from .pptx

Escalate to a workspace script via write_file + execute_code when the user likely expects high fidelity or complex document behavior:

  • exact template preservation
  • formatting, widths, merges, formulas, charts, comments, or images
  • .pptx creation or direct modification
  • large data cleanup or conversions
  • deterministic repeatability across multiple files

Prefer Slidev over .pptx creation when the user is asking for:

  • a new slide deck from notes
  • a pitch deck draft
  • a presentation that will be iterated in-browser
  • a deck outline before final export

Prefer a short script file over giant one-off shell commands. Save outputs to a new path unless the user explicitly wants in-place replacement.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 65 lines · 38 tokens per session scan A 203384043ee3

Subscribe to this mod's changes

office-router is a skill published in the GitHub repository matingai/crab (4 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 525 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable Brand/Style/Layout/Deck workspaces, filling native PPTX templates, and enhancing finished PPTX files. Use when the user asks to create, generate, reconstruct, regenerate, beautify, redesign…

hugohe3/ppt-master · 108 tokens

office-artifacts

Use when creating, opening, reading, or editing Office artifacts such as LibreOffice-native ODT/ODS/ODP files and compatibility DOCX/XLSX/PPTX files with the officeartifact tool.

agent0ai/agent-zero · 47 tokens

document-processing-expert

Read, generate and modify office documents and PDFs from code: PDF extraction and forms, Word documents, Excel workbooks and PowerPoint decks. Use when the user mentions PDF, DOCX, XLSX, PPTX, Word, Excel, PowerPoint or spreadsheets, wants data extracted from documents, needs a report or invoice generated as a file…

personamanagmentlayer/pcl · 102 tokens

pptx

Read, create, and convert Microsoft PowerPoint (.pptx) presentations — extract slide text to JSON/markdown, build decks from JSON/markdown outlines, and export to PDF.

zhixuli0406/DuDuClaw · 39 tokens

xlsx

Read, create, and convert Microsoft Excel (.xlsx) and CSV spreadsheets — extract sheets and tables to JSON, build workbooks from JSON/CSV, and export to PDF.

zhixuli0406/DuDuClaw · 37 tokens

document-creator

Use when creating, editing, and generating Office documents programmatically — Word, PowerPoint, Excel, and PDF. One interface for all document formats with shared methodology.

oyi77/1ai-skills · 37 tokens