/artcraft-skills:gridcraft-spreadsheetsfrom artcraft-skills
Builds and edits spreadsheets in GridCraft via MCP tools. Covers formulas, tables, pivot tables, charts, conditional formatting, data validation, filters, sorting, and export workflows.
Ships in artcraft-skills. 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.
GridCraft is an Excel-class spreadsheet app (cells, formulas, tables, pivots, charts, conditional
formats, validation, scenarios, solver, PDF export). You drive it through the gridcraft MCP
server. This skill says what to build, in what order, how to verify it, and how to hand it to
the user.
references/command-catalog.mdreferences/workflows.mdreferences/gotchas.mdMCP tools (deferred, load with ToolSearch select:mcp__gridcraft__write_range,... first):
new_workbook, open_workbook, write_range, set_cell, read_range, get_cell,
format_range, create_table, insert_chart, sort_range, filter, evaluate_formula,
list_functions, inspect_workbook, select, undo, redo, save_workbook, screenshot,
list_commands, execute_command.
execute_command {command, params}. Discover with list_commands {search:"pivot"} (the full
list is ~350 commands and too large to dump; always pass search) and trust its params
doc over memory."B2", "A1:D10", "Sheet2!A1:C3", whole columns "B:B".
Commands without range act on the current selection: pass range explicitly or
select first, never rely on the selection by accident.= are formulas; other strings are parsed like typed input
("12%" becomes 0.12, "1/2/2024" an en-US date). To store text verbatim (IDs with leading
zeros, dd.mm.yyyy dates) use execute_command range.setValues {range, values, parse:false} or
set the cell format to Text first., separators regardless of the user's locale.
list_functions {search|category} shows what exists (XLOOKUP, LET, FILTER, SORT, UNIQUE,
SUMIFS, ... check before assuming).undo {steps} rolls back.screenshot only works
against a connected desktop app (gridcraft --control 7979 + gridcraft-cli mcp --connect 7979).
In headless mode verify visually through PDF export (section 6).Scale the work to the request (a 10-row list is not a financial model).
new_workbook (blank, or sample budget|sales|grades as a skeleton to restyle) or
open_workbook {path} for an existing file; then inspect_workbook to learn sheets, tables,
names, charts before touching anything. Check the open warnings (xls/xlsb/ods import is
partial: values and cached results only).write_range the whole block in one call (headers + rows), not cell by cell.
Imports: execute_command data.fromTextCsv {path|text, delimiter} / data.getData {path|text}
(CSV/TSV/JSON array of objects) land in a new sheet as a table.create_table for lists, freeze headers, widths, number formats.State the acceptance checklist before mutating; report at phase boundaries, not per call.
Layout conventions
formulas.defineName {name:"TaxRate", refersTo:"=Assumptions!$B$2"} then
=B5*TaxRate. Names make formulas readable and survive row inserts.view.freezeTopRow or view.freezePanes {cell:"B2"}), size columns
(home.columnWidth {cols:"A:A", width:...} in pixels or chars, or home.autofitColumnWidth).Formulas
=SUM(B2:B20) (or table structured refs, or formulas.autoSum); conditional:
SUMIFS/COUNTIFS/AVERAGEIFS; lookups: XLOOKUP (exact by default) over VLOOKUP; guard
divisions: =IFERROR(B2/C2,0) only where a zero/blank is a legitimate outcome, don't blanket
hide errors.0.0%), never text. Dates stay real dates
(format yyyy-mm-dd), never strings.$B$1) when copying; fill with edit.fillDown
/ range.fill {range,input} (relative refs adjust) rather than writing 500 formulas by hand.FILTER, SORT, UNIQUE, SEQUENCE) spill; check get_cell for the spill
range and leave room below/right. Use cell.set {array:true} for legacy CSE arrays.create_table {range, name:"Sales"} then =SUM(Sales[Amount]);
table.totalRow / table.totalFunction for the total line.data.goalSeek {set,to,changing},
data.solver, data.scenarioAdd/Show/Summary, data.dataTable for what-ifs.Number formats (format_range numberFormat accepts a name or code): currency
"#,##0.00 \"EUR\"" or Currency; thousands "#,##0"; percent "0.0%"; date "yyyy-mm-dd";
negative red "#,##0;[Red]-#,##0". Align numbers right, headers matching their column.
Presentation quality
home.conditionalFormat {range, rule:{type: "cellIs", operator, value, preset:"lightRedFillDarkRedText"}}, colour scales, data bars, icon
sets, expression rules (formula:"=$D2<TODAY()").data.validation {range, type:"list", formula1:"North,South,East"}
(or a range ref), whole/decimal/date with operator + formula1/2, error messages.pageLayout.pageSetup / orientation, printArea, printTitles {rows:"1:1"},
scaleToFit {width:1,height:0}; check with file.printPreview.Charts: pick the type from the question: comparison column/bar, trend line/area, share
pie/doughnut (<=5 slices), relation scatter, distribution histogram, bridge waterfall.
insert_chart {range (headers included), type, subtype, title, at:"H2"}; refine with
chart.set {chart, title, legend, dataLabels, xTitle, yTitle, width, height},
chart.changeColors, chart.addElement {element:"trendline"}. Source range = header row +
category column + series columns only (no totals row). Always title the chart and label axes.
insert.chartRecommendations {range} suggests suitable types.
Never leave a chart as inserted (default multi-colour palette, a legend for one series, a title
that just repeats the column name): recolour with chart.changeColors to the sheet's one accent on
the series that answers the question and neutrals for the rest, and let the title state the finding.
Pivots: insert.pivotTable {source:"Sales" | "Sheet1!$A$1:$E$200", rows:[...], columns:[...], values:[{field,func}], filters:[...], destination}; adjust with pivot.addField/valueSettings/ sort/filter/group/layout; pivot.refresh after source edits; insert.pivotChart. A pivot
creates (and activates) a new sheet before the current one.
| Area | Ids |
|---|---|
| File | file.new {sample}, file.open {path,password?,csvAsText?}, file.save/saveAs {path}, file.exportPdf {path,sheets,range,fitToPage}, file.exportCsv, file.printPreview, file.close {force}, file.properties |
| Cells | cell.set, range.setValues {range,values,parse}, range.fill, edit.fillDown/Right, edit.fillSeries, edit.autoFill, edit.find/replace, edit.clearContents/Formats/All |
| Format | home.bold/italic/fontName/fontSize/fontColor/fillColor/borders/alignX/wrapText/mergeCells/numberFormat/cellStyle/formatCells {style}, home.columnWidth/rowHeight/autofit*, home.hide*, home.insertRows/Columns/deleteRows |
| Sheets | home.insertSheet {name}, sheet.rename/move/tabColor/hide/activate, home.deleteSheet |
| Tables | insert.table, table.rename/style/totalRow/totalFunction/resize, insert.slicer |
| Data | data.sort, `data.filterBy {column,values |
| Formulas | formulas.defineName, formulas.nameManager, formulas.errorChecking, formulas.tracePrecedents/Dependents, formulas.evaluate {formula}, formulas.calculateNow, formulas.convertToNumber |
| Review | review.newComment/newNote, review.protectSheet {password,...}, home.lockCell, review.protectWorkbook |
| Read | document.inspect, sheet.read {range,sheet,formulas,formatted}, cell.get |
| Automation | automate.newScript {name,commands}, automate.runScript |
gridcraft-cli (shell) can also info, cat, convert in out, eval, run --script, and
check <file> (recalculation oracle + xlsx round-trip fidelity) on a saved file.
save_workbook {path:<new name>} (e.g. budget-v2.xlsx) or confirm before saving in place.
Mention the destructive operations you performed (removeDuplicates, sort, delete rows/cols).header:true, never a single column of a
multi-column block (rows must stay together).review.protectSheet passwords are the user's to choose and
must be told to them.trust:"fromFile": its macros/scripts do not run unless the
user trusts them (automate.trustScripts); do not trust unasked.#REF!, #NAME?, #DIV/0!, #VALUE!, #N/A unless intentional and explained).evaluate_formula).####, no truncated text), numbers right-aligned and
formatted, dates real dates.After each phase:
read_range {range, formulas:true} to check formulas, read_range {range} for computed values.
Errors come back as {"error":"#DIV/0!"}. execute_command formulas.errorChecking lists all error
cells. read_range {formatted:true} returns display text.inspect_workbook: sheets, used ranges, tables, charts, merges, validations, conditional-format
counts, freeze panes, dirty flag, undo history.evaluate_formula {formula:"=SUM(Sheet1!B2:B20)"} (it
acts on the active sheet; prefix other sheets).execute_command file.exportPdf {path:"<scratch>/check.pdf", fitToPage:true} then
pdftoppm -png -r 80 -f 1 -l 1 check.pdf <scratch>/check and Read the PNG (or open the PDF
in pdfcraft page_render). Look for ####, clipped text, chart overlaps, colours, alignment.
With a desktop-connected server use screenshot {path} instead. Delete the scratch files.undo for a bad step; re-check what changed.save_workbook {path}: format by extension: .xlsx (default, native), .csv/.tsv (active
sheet only), .json, .html; file.saveAs also writes .pdf of the active sheet and
file.exportPdf {sheets:"all"} all sheets. .xlsm/.xlsb/.ods/.xls are open-only formats.file.close {force:true}) when done and remove scratch files.Every spreadsheet ends here, after the verify loop. The headless MCP session has no window, so the user cannot see the workbook until you save it and open the real app on it.
save_workbook {path} into the project directory, or the path the user named
(descriptive name, .xlsx, allowed write root; a new name if a file with that name already
exists unless the user said to overwrite). Note the full absolute path.setsid gridcraft /abs/path/book.xlsx >/dev/null 2>&1 &
(gridcraft [FILE...] is the desktop app, /usr/bin/gridcraft; it registers for xlsx, xlsm,
xlsb, ods, csv, tsv, so setsid xdg-open /abs/path/book.xlsx may open another default app:
prefer the explicit command.) If the user is already attached to this workbook
(--control session), don't launch another copy.references/gotchas.md)search in list_commands; the unfiltered list is huge.range hit the selection; insert.pivotTable and imports switch the active
sheet, so later write_range/evaluate_formula without a sheet prefix hit the wrong sheet.write_range parses strings like typed input (en-US): dates/decimals from other locales need
parse:false.formulas.convertToNumber.read_range {formatted:true} returns strings; plain read returns numbers.screenshot fails when headless: use PDF export + render.data.validation returns null on success; check with inspect_workbook (validations count).header:true..xlsx; csv/tsv keep only the active sheet and drop formulas' formatting and charts.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gridcraft, spreadsheets, excel, mcp-tools, workbook-automation
npx claudepluginhub dnviti/artcraft-skills --plugin artcraft-skills16 skills in this plugin
/artcraft-routerSelector for the ArtCraft skills: picks which ArtCraft skill(s) to load for a request and loads nothing else itself. Use when a creative request spans several ArtCraft apps (FigCraft, VectorCraft, DesignCraft, DeckCraft, PhotoCraft, LightCraft, FilmCraft, EffectCraft, SoundCraft, WordCraft, GridCraft, PdfCraft, CadCraft, SolidCraft) or when it is unclear which one fits: brand identity, landing page with custom icons, video with narration or animated titles, podcast from a script, magazine with retouched photos, report or deck with data, part plus drawing. Skip it when one skill clearly matches./cadcraft-drawingsDraft, dimension, annotate and plot 2D technical drawings in CadCraft (ArtCraft's AutoCAD-class 2D drafting app, driven through the `cadcraft` MCP server, tools mcp__cadcraft__*, or through `cadcraft-cli`). Use whenever the user mentions CadCraft or the cadcraft MCP tools, or asks for a 2D technical drawing: floor plan, site or room layout, elevation or section, mechanical/part drawing with dimensions, schematic or detail sheet, title block, layers, blocks, hatching, dimensions and annotations, plot or print to PDF at a scale (1:50, 1:100), or to open, inspect, fix, convert (DXF to DWG, SVG, PDF, PNG) or measure DXF/DWG files. Covers units and scale planning, layers, geometry, dimension styles, layouts and viewports, the render-and-verify loop, save/export and the mandatory show-and-approve phase. 3D parts (solid modelling, STEP/STL) belong to solidcraft-cad, vector artwork to vectorcraft-illustration, multi-page print layout to designcraft-layout./deckcraft-presentationsBuild and edit slide decks in DeckCraft (ArtCraft's PowerPoint-style presentation app, driven through the `deckcraft` MCP server, tools mcp__deckcraft__*). Use whenever the user mentions DeckCraft or the deckcraft MCP tools, or asks to create, design, restyle or edit a presentation, slide deck, pitch deck, keynote/talk, training or sales deck, or report-as-slides in/with DeckCraft (slides, layouts, themes, text, shapes, charts, tables, images, SmartArt, speaker notes, transitions, animations, .deckcraft/.pptx/.pdf output). Covers the outline, theme and layout choices, build, render-and-verify, save/export and the mandatory show-and-approve workflow. Not for cases where the user explicitly asked for another format or tool (a .pptx made with python-pptx, Google Slides, a Claude Slides artifact, PDF editing in PdfCraft, UI design in FigCraft)./designcraft-layoutLay out magazines, books, brochures, flyers, catalogues, designed annual reports and other multi-page print documents in DesignCraft (ArtCraft's InDesign-class layout app, via the `designcraft` MCP server or `designcraft-cli`). Use whenever the user mentions DesignCraft or the designcraft MCP tools, or asks for page layout or desktop publishing work: a magazine or book layout, spreads with facing pages, parent (master) pages, running heads and page numbers, columns and grids, paragraph/character styles, text flow across threaded frames, image placement, tables, table of contents, footnotes, bleed and crop marks, preflight, print-ready PDF/X, IDML/InDesign import/export, EPUB. Covers setup, parents, styles, content flow, render-and-verify and the mandatory show-and-approve phase. Single-flow documents (letters, reports, contracts) belong to wordcraft-documents, vector artwork and logos to vectorcraft-illustration, editing an existing PDF to pdfcraft-documents, UI design to figcraft-design./effectcraft-motionBuild motion graphics, animated titles, lower thirds, logo stings, kinetic typography, compositing and visual effects in EffectCraft (ArtCraft's After Effects-class compositor, via the `effectcraft` MCP server (mcp__effectcraft__*) or `effectcraft-cli`). Use whenever the user mentions EffectCraft or the effectcraft MCP tools, or asks for an animated composition, motion graphics, animated title/intro/lower third, keyframes, expressions, text animators, shape layers, particles, glow/blur/distortion, green-screen keying, rotoscoping, motion tracking, stabilizing, 3D cameras/lights, Lottie export, or to render a comp to MP4/ProRes/WebM/GIF/PNG sequence (with alpha); also .ecproj files. Covers comp, layers, keyframes, effects, frame-preview verify, render and the mandatory show-and-approve phase. Cutting/assembling footage on a timeline and colour grading belong to filmcraft-video, audio-only work to soundcraft-audio, still images to photocraft-images, static vector artwork to vectorcraft-illustration./figcraft-designDesign UI in FigCraft (ArtCraft's Figma-class design app, driven through the `figcraft` MCP server) and turn FigCraft designs into frontend code. Use whenever the user mentions FigCraft or the figcraft MCP tools, or asks to design a screen, app screen, mobile screen, landing page, dashboard, UI mockup, wireframe, design system, design tokens, color/text styles, variables, Light/Dark themes, components with variants, a clickable prototype or user flow; asks for a distinctive, unique, non-generic or 'not AI-looking' UI, a new product-UI visual direction, several divergent design directions to choose from or an art-director critique; or to implement, build, code up or hand off a FigCraft design (design to code, React, Tailwind, CSS variables, export assets/icons). Covers brief → divergent directions → tokens → anchor component → screens → screenshot-verify → adversarial review → prototype, with distinctive (non-generic) design as the default, and pixel-faithful implementation in the user's stack.Other plugins' skills for the same job