Creates, edits, analyzes, and verifies standalone spreadsheet files (.xlsx, .csv, .tsv) with formulas, formatting, charts, and data analysis. For Google Sheets-ready workbooks, not live Excel control.
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 paths and
results. Standalone workbook work uses workspaceRoot, inputRoot,
assetRoot, outputRoot, and evidenceRoot; it does not require a host
workspace loader. After the final workbook is reopened, follow
../office-kit/references/review.md; use the optional text reading view
(contentView: "anydoc") only to close an identified sheet-value or table
coverage gap, never as proof of formulas, chart appearance, cell formatting,
or layout.
For a multi-step workbook task, use officekit tasks to discover prior work and
the portable guidance in ../office-kit/references/repl.md. Create a task with
officekit repl --new <goal> or open its current revision with
officekit repl <task-id>. Stage source workbooks through ctx.input, import
the public API with await ctx.import("office-kit"), and keep live workbook
objects only in process-local ctx.state. Use inspect → edit → recalculate →
reimport/render → reviewArtifact → ctx.commit → ctx.publish; only the
current reviewed commit may be delivered. Register additional render or inspect
files with ctx.recordEvidence, and return the final absolute path, SHA-256,
and visualReview status. A new session reconstructs the workbook from the
verified task revision rather than a JavaScript heap. A currently open workbook
belongs to Excel Live Control, not this file workflow.
Use this skill when you need to work with spreadsheets (.xlsx, .csv, .tsv) to do any of the following:
routing/google_sheets.md.Do not follow those routing instructions if irrelevant to the task. Default is to create/edit spreadsheets with artifact tool.
office-kit JS library for all spreadsheet authoring. Run
bundled examples with officekit run or the active OfficeKit installation;
do not assume a host-specific dependency loader.@oai/artifact-tool. It is a different host-bundled
runtime, not an OfficeKit alias or fallback, and its output must never be
attributed to OfficeKit.office-kit is unavailable, report a blocker. Do not guess or search for paths, install packages, use resolution hacks, or import bundled internals.taskRoot or system temporary directory. Keep generated
sources and intermediate files out of the managed installation directory..mjs builder and patch/rerun it. Do not use heredocs or duplicate builders.workbook.help("<api_or_feature>") query.openpyxl, xlsxwriter, or pandas.ExcelWriter unless the user explicitly asks.update_plan for complex spreadsheet work..xlsx artifact(s), one per line: [Revenue Model - MNST.xlsx](/absolute/path/to/revenue_model_mnst.xlsx).Other documents:
style_guidelines.md: REQUIRED for formatting requirementsartifact_tool_docs/API_QUICK_START.md: REQUIRED API documentation for artifact_tool JS library, which exposes methods to read, manipulate, edit, recalculate, render, import and save spreadsheets. You must read it entirely to get started.features/charts.md: Read when creating or editing charts.features/pivot-tables.md: Read when creating, importing, or verifying native PivotTables.examples/officekit-range-workflow.mjs: Run or adapt this public-package example for R1C1 formulas, block writes, range navigation, formula inspection, bounded native line-chart trendlines and percentage error bars, OfficeKit roundtrip, native XML, and SVG verification.examples/officekit-sparkline-workflow.mjs: Run or adapt this canonical example for line/column sparkline authoring, Range aliases, inspect/render/verify, and source-bound OfficeKit edits.examples/officekit-data-table-workflow.mjs: Run or adapt this canonical example for one-variable and two-variable What-If data-table authoring, inspect, OfficeKit roundtrip, and source-bound imported topology.examples/officekit-data-validation-workflow.mjs: Run or adapt this canonical example for list/whole/custom validation authoring, input prompts, error alerts, blank policy, intuitive drop-down visibility, OfficeKit roundtrip, fixed-range edits, and native render QA.examples/officekit-worksheet-protection-workflow.mjs: Run or adapt this canonical example for unlocked input cells, hidden locked formulas, passwordless worksheet editing restrictions, source-bound permission edits, second import, and native render QA. Protection is not encryption or access control.examples/officekit-pivot-table-workflow.mjs: Run or adapt this canonical example for bounded native PivotTable authoring with exact item and absolute whole-day date filters, source and cached-value audit, inspect/render/verify, OfficeKit roundtrip, and the one source-bound refreshOnLoad=true → false hardening operation on a uniquely owned imported cache. Its native-host check records that LibreOffice resave drops the advanced date filter and recalculates that Pivot unfiltered; it does not claim the filter survived. Other imported Pivot topology remains read-only.examples/officekit-pivot-refresh-hardening-workflow.mjs: Run or adapt this no-overwrite imported-workbook transaction only when one named PivotTable on one named worksheet proves the uniquely owned explicit refreshOnLoad=true capability. It changes only its cache-definition root to false, compares every other package part byte-for-byte, reimports/renders, and writes a byte-bound audit; it never refreshes data or becomes a general Pivot editor.examples/officekit-financial-returns-workflow.mjs: Run or adapt this three-sheet Inputs / Returns / Checks example for visible finance/reinvestment assumptions, finance color conventions, NPV/XNPV/IRR/XIRR/MIRR/PMT outputs, guarded return checks, SVG review, and canonical OfficeKit roundtrip.examples/officekit-loan-amortization-workflow.mjs: Run or adapt this three-sheet Inputs / Amortization / Checks example for a visible loan schedule using PMT/IPMT/PPMT plus RATE/PV/FV/NPER inverse audits and CUMIPMT/CUMPRINC schedule reconciliations, payment-timing-aware first-period checks, finance color conventions, SVG review, and canonical OfficeKit roundtrip.examples/officekit-asset-depreciation-workflow.mjs: Run or adapt this three-sheet Inputs / Depreciation / Checks example for visible fixed-asset assumptions, SLN/SYD/DB/DDB schedules, salvage-floor and depreciable-basis checks, finance color conventions, SVG review, and canonical OfficeKit roundtrip.examples/officekit-statistical-analysis-workflow.mjs: Run or adapt this Data / Analysis / Checks example for auditable sample/population variance and standard deviation, Pearson correlation, sample/population covariance, bounded least-squares slope/intercept/R-squared/standard-error diagnostics, the single-variable LINEST 5-by-2 statistics matrix, a visible-assumption FORECAST.LINEAR point estimate plus a three-point TREND forecast sequence, source-linked formulas, independent reconciliations, SVG review, and canonical OfficeKit roundtrip.examples/officekit-exponential-growth-workflow.mjs: Run or adapt this Data / Analysis / Checks example for a bounded positive-y exponential model, the single-variable LOGEST 5-by-2 coefficient/log-space diagnostics matrix, a three-point GROWTH forecast sequence, independent LN/EXP reconciliations, SVG review, and two canonical OfficeKit roundtrips. It does not claim seasonal, multivariable, or arbitrary nonlinear forecasting.examples/officekit-robust-statistics-workflow.mjs: Run or adapt this Data / Analysis / Checks example for tied average rank, exclusive percentiles/quartiles, multi-mode spill results, and a symmetric trimmed mean with independent formula reconciliations, SVG review, and two canonical OfficeKit roundtrips. Write formulas, including bounded LET(...), exactly as Excel displays them; OfficeKit Codec owns the _xlfn/_xlws/scoped _xlpm/ANCHORARRAY package syntax.examples/officekit-scatter-chart-workflow.mjs: Run or adapt this canonical example for formula-backed numeric X/Y scatter series, dual value axes, marker styling, SVG verification, and fixed-topology OfficeKit edits.examples/officekit-bubble-chart-workflow.mjs: Run or adapt this canonical example for one formula-backed numeric X/Y/Size bubble series, dual value axes, proportional SVG/native bubbles, and fixed-topology OfficeKit edits.examples/officekit-threaded-comment-reply-workflow.mjs: Run or adapt this imported-workbook example when an existing canonical Excel threaded-comment root needs one or more direct replies plus an explicit resolve/reopen transition; it preserves existing IDs, people, dates, text, and direct-reply order, performs a second import and all-sheet SVG review, and writes a byte-bound audit. Nested/branched reply graphs remain source-bound and fail closed.examples/officekit-growth-assumption-edit-workflow.mjs: Run or adapt this bounded imported-workbook example when exactly one named growth assumption may change. It protects a second-sheet canary, formula topology, a separate margin assumption, sheet identity/order, source bytes, and writes a byte-bound OfficeKit rewrite audit after recalculation, second import, and all-sheet SVG review.examples/officekit-connection-refresh-hardening-workflow.mjs: Run or adapt this source-bound transaction only to turn one imported connection's explicit refreshOnLoad=true request off. It refuses an absent/already-false/ambiguous connection, preserves every other modeled connection field, protects the input, publishes without overwrite, reimports, renders all sheets, and writes a byte-bound audit. It does not run external data or stop manual, macro, PivotTable, or other host-triggered refreshes.examples/officekit-operating-plan-workflow.mjs: Run or adapt this forward workflow for a locked 24-month actuals CSV plus three-scenario assumptions JSON. It creates Sources, Assumptions, Forecast, Dashboard, and Checks sheets with formula-backed values, scenario validation, cash warnings, root threaded comments, line and pie charts, frozen headers, second import, model/native render review, and a byte-bound audit; never hard-code derived values or mutate the input files.examples/officekit-accessibility-audit-workflow.mjs: Use this read-only existing-XLSX workflow to bind the source SHA-256, run workbook.auditAccessibility() plus workbook.verify(), and publish one no-overwrite JSON report with savePolicy.strategy: none. Review artifact_tool_docs/ACCESSIBILITY_AUDIT.md; a green modeled drawing check is not Excel Accessibility Checker or WCAG conformance.examples/officekit-drawing-accessibility-edit-workflow.mjs: Use this source-bound existing-XLSX transaction to repair exactly one uniquely named worksheet image or chart after binding its complete prior accessibility state and accessibilityCapability. It permits exactly one worksheet-drawing XML part to change, reimports the result, proves the non-target drawing projection and visual SVG projection unchanged, and publishes no-overwrite XLSX plus byte-bound audit outputs. It never edits reading order or claims whole-workbook conformance.You must read these domain rules when the request clearly relates to the domain, but do not load domain guidance for unrelated tasks unless asked:
domain_guidance/financial_models.mddomain_guidance/corporate_finance_fpa.mddomain_guidance/healthcare.mddomain_guidance/marketing_advertising.mddomain_guidance/scientific_research.mdInstruction precedence for workbook content, layout, and formatting is: user request > reference/template > domain and formatting defaults.
On first tool or API error:
Do not loop indefinitely on similar failures.
=A5*(1+$A$6) instead of =A5*1.05#,##0, #,##0.0, 0.0%, 0.00%, "$"#,##0, "$"#,##0.00, yyyy-mm-dd, mmm yyyy but choose the format that best fits the data.. and , in format codes to mimic locale separators; separators are controlled by spreadsheet/render locale. Use 0.0%, not 0,0%, and #,##0, not #.##0.#,##0; rates usually use 0.0% or 0.00%; currency uses whole units unless cents matter.Complete only when:
.xlsx files under outputRoot (normally
workspaceRoot/outputs) unless the user explicitly gives another path.Before final response, verify values/formulas and visual quality.
Before delivering a workbook that contains images or charts, run
workbook.auditAccessibility(). Resolve machine issues, review every manual
check, and do not infer image descriptions from filenames or visible chart
titles. Use the packaged read-only workflow when the request is an audit of an
existing XLSX.
const check = await workbook.inspect({
kind: "table",
range: "Dashboard!A1:H20",
include: "values,formulas",
tableMaxRows: 20,
tableMaxCols: 12,
});
console.log(check.ndjson);
const errors = await workbook.inspect({
kind: "match",
searchTerm: "#REF!|#DIV/0!|#VALUE!|#NAME\\?|#N/A",
options: { useRegex: true, maxResults: 300 },
summary: "final formula error scan",
});
console.log(errors.ndjson);
const blob = await workbook.render({ sheetName: "Sheet1", range: "A1:H20", scale: 2 });
Make sure you do at least one visual pass of all the sheets in the workbook before the final export.
Visual requirements:
await fs.mkdir(outputDir, { recursive: true });
const output = await SpreadsheetFile.exportXlsx(workbook);
await output.save(`${outputDir}/output.xlsx`);
.xlsx variants unless asked.Return the final workbook as an absolute path with kind: "workbook" and its
SHA-256. Include the narrowest inspected sheet/range or object locator for
material claims, plus render/inspect/verify evidence paths when available.
Report visualReview: "complete" only after the required renders were
understood; otherwise use "unavailable" or "requires-human". Do not emit
a host-specific citation directive. See ../office-kit/references/workspace.md for
the result envelope. Semantic review must cover the requested ranges, formulas,
errors, tables, charts, and sheet identities; structural review must reopen the
actual XLSX. The text reading view may reduce reading cost for a large workbook,
but it cannot
validate formula topology or rendered workbook geometry.
User.pandas, numpy, pypdf, python-docx, and reportlab. You may read/extract in separate scripts if needed.docx, pdf-lib, and pdfjs-dist.agents/agent.yaml (opens in a new tab)agents/openai.yaml (opens in a new tab)artifact_tool_docs/ACCESSIBILITY_AUDIT.md (opens in a new tab)artifact_tool_docs/API_QUICK_START.md (opens in a new tab)assets/file-spreadsheet.png (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)examples/officekit-accessibility-audit-workflow.mjs (opens in a new tab)examples/officekit-asset-depreciation-workflow.mjs (opens in a new tab)examples/officekit-bubble-chart-workflow.mjs (opens in a new tab)examples/officekit-connection-refresh-hardening-workflow.mjs (opens in a new tab)examples/officekit-data-table-workflow.mjs (opens in a new tab)examples/officekit-data-validation-workflow.mjs (opens in a new tab)examples/officekit-drawing-accessibility-edit-workflow.mjs (opens in a new tab)examples/officekit-exponential-growth-workflow.mjs (opens in a new tab)examples/officekit-financial-returns-workflow.mjs (opens in a new tab)examples/officekit-growth-assumption-edit-workflow.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
/spreadsheets:Spreadsheetsfrom Spreadsheets
npx claudepluginhub w31r4/officekit --plugin spreadsheetsOther plugins' skills for the same job