Controls a workbook already open in Microsoft Excel desktop via OfficeKit's local Add-in. Reads/writes ranges, manages sessions, and captures evidence for live Excel tasks.
Ships in Spreadsheets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use the shared ../office-kit/references/workspace.md contract for request files
and evidence. Keep JSON requests under taskRoot; the live workbook remains
owned by Excel, and screenshots or audits belong under evidenceRoot. Return
the session result and evidence without host-specific citation syntax.
For a multi-step live task, launch officekit repl and read
../office-kit/references/repl.md. Run await ctx.excel.doctor() and
await ctx.excel.sessions() before a mutation, then pass the same typed JSON
request to await ctx.excel.execute(request). Read the changed range again
after every write; if the response says maybeApplied: true, inspect before
retrying. Call await ctx.excel.disconnect(sessionId) when the task is done.
This facade does not install the add-in or certificate: keep
officekit excel install and officekit excel uninstall as explicit control
plane commands.
Use this Skill only for a workbook already open in Microsoft Excel desktop on Windows or macOS. It operates the open workbook through OfficeKit's local Add-in and a loopback bridge. It does not use a cloud relay, account, tenant, or organization deployment.
For a standalone spreadsheet file, use Spreadsheets instead. Do not switch between the two paths unless the user asks to change the target.
Start every task with:
officekit excel doctor --json
If it reports not-installed, explain that the local certificate must be
trusted before Excel can load the add-in. With the user's explicit approval,
run:
officekit excel install --yes --json
Then the user completes the one-time Excel step:
install.The task pane shows the connected workbook, session ID, diagnostics, and a
content-free audit summary. It can be hidden after connection; the shared runtime
keeps the live session active. If the local bridge has stopped while Excel was
closed, run officekit excel doctor --json before reopening the OfficeKit pane.
Do not claim that a connection exists until officekit excel sessions --json
lists exactly one intended workbook. If multiple workbooks are open and the
target is ambiguous, ask the user which workbook to use.
officekit excel sessions --json.officekit excel execute request.json --json.save operation only when the user explicitly wants the workbook
saved. For an unsaved workbook, Excel opens its native Save As prompt and
the user chooses the file location; OfficeKit never chooses a path or
overwrites a file on its own.Use one stable idempotencyKey for a single intended operation. Requests are
serialized per session. When an error has maybeApplied: true, inspect the
touched target before deciding whether to retry; never assume the operation did
not happen.
For dashboards, charts, dense tables, and substantive visual changes, call
read_range_image and review the rendered range. Apply
style_guidelines.md and
charts.md when their subject is relevant.
The protocol exposes typed primitives for range reads/writes/clears, search, sheet and workbook metadata, copy, screenshot, dimensions and views, formats, tables, charts, PivotTables, object lists, and explicit save. Read the reference before choosing an operation. Do not send JavaScript source code or unvalidated arbitrary Excel API calls through this route.
An unsupported-capability result means the open Excel client cannot provide
that typed operation. Report it plainly; do not simulate the operation with
mouse clicks, macros, COM/VBA, or an unrelated workbook.
The bridge records only timestamp, session, workbook name, operation, range
summary, outcome, and a request hash. It does not record cell values or
formulas. disconnect <session-id> ends one pairing. uninstall --yes
removes OfficeKit's local state and certificate trust; Excel may still show the
sideloaded item until the user removes it from My Add-ins.
Read the matching file only when relevant:
agents/openai.yaml (opens in a new tab)assets/file-spreadsheet.png (opens in a new tab)charts.md (opens in a new tab)domain_guidance/corporate_finance_fpa.md (opens in a new tab)domain_guidance/financial_models.md (opens in a new tab)domain_guidance/healthcare.md (opens in a new tab)domain_guidance/marketing_advertising.md (opens in a new tab)domain_guidance/scientific_research.md (opens in a new tab)references/live-protocol.md (opens in a new tab)style_guidelines.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/spreadsheets:excel-live-controlfrom Spreadsheets
npx claudepluginhub w31r4/officekit --plugin spreadsheets2 skills in this plugin
Other plugins' skills for the same job