build-google-sheet
Build or extend a Google Sheet that does real work: financial models, budgets, P&L and cash-flow statements, accounting ledgers and reconciliations, trackers…
от CognitionAI★ 42 звезды на GitHub
Установить build-google-sheet в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Building spreadsheets that compute
A good sheet separates inputs from logic, uses formulas rather than pasted numbers, labels
every row, formats so numbers read at a glance, and proves itself with check rows. Devin
builds it in passes, reading back after each one. Tool signatures: google-workspace-mcp.
Pass 0: agree the shape
For a model or statement, confirm in one message: periods (months/quarters/years and how many), currency and units, the inputs the user controls, the outputs they care about, and whether existing data should be imported. Default layout for a model:
Inputstab: one assumption per row (label, value, unit/notes); the only cells a user edits.- One tab per statement or calculation (
P&L,Cash flow,Headcount...): row labels in column A, periods across columns, every number a formula referencingInputsor the row above. Checksrows (or tab): identities that must hold (balance sheet balances, totals match the source, no negative inventory), showingok/CHECK.Datatabs for raw imports, untouched by formulas; summaries pull from them withSUMIFS/QUERY/FILTER.
For a ledger/reconciliation: a transactions table with a header row, consistent columns
(date, account, description, debit, credit, balance), the balance as a running formula, a
trial-balance or reconciliation tab with SUMIFS by account and a difference row.
Pass 1: create the workbook and tabs
- New file:
create_file(name, type: "spreadsheet", folderId?), optionally with CSVcontentfor a first data tab. Thenread_sheet(spreadsheetId)for the defaultsheetId. - Tabs:
update_spreadsheetwithaddSheet: {properties: {title, gridProperties: {rowCount, columnCount, frozenRowCount: 1}}}; rename the default tab withupdateSheetProperties(fields: "title"). The replies carry each newsheetId: keep them, every later grid request needs them. - Existing workbook:
read_sheetwith no range (tabs, sizes, named ranges) and the ranges in play withvalueRender: "formula"before changing anything. Never overwrite a tab you have not read.
Pass 2: write values and formulas
write_sheet(spreadsheetId, range: "'Inputs'!A1", values: [[...], ...]): a 2-D array laid
down from the top-left cell. Strings that look like formulas, numbers, dates (2027-01-01)
or percents (12%) are parsed as such; raw: true keeps them literal (ids, zip codes).
- Write formulas as strings (
"=Inputs!$B$2*(1+Inputs!$B$3)^(B$1-1)"), build the per-period row in code so each column's references are right, and keep absolute references ($B$2) on inputs. Cross-tab references use'Tab name'!A1. - Prefer one formula pattern per row over hand-typed values; prefer
SUMIFS,XLOOKUP/INDEX-MATCH,IFERROR,ARRAYFORMULA,QUERY,SEQUENCE/EDATEfor period headers. - Appending transactions:
write_sheet(range: "'Ledger'!A:F", values, append: true). - Lay down labels and headers in the same write so the sheet is never half-labelled.
Pass 3: make it readable and safe (update_spreadsheet)
| Need | Request |
|---|---|
| Currency / percent / date formats | repeatCell with cell.userEnteredFormat.numberFormat: {type: "CURRENCY", pattern: "$#,##0;($#,##0)"} (or PERCENT 0.0%, DATE mmm yyyy), fields: "userEnteredFormat.numberFormat" |
| Bold header, fill, borders, wrap | repeatCell with textFormat.bold, backgroundColor, horizontalAlignment; updateBorders |
| Freeze headers / label column | updateSheetProperties gridProperties.frozenRowCount / frozenColumnCount |
| Column widths | autoResizeDimensions or updateDimensionProperties (pixelSize) |
| Input cells visibly editable | light fill on Inputs!B cells; setDataValidation (NUMBER_BETWEEN, ONE_OF_LIST for dropdowns, DATE_IS_VALID) with strict: true. strict: true did not stop a write_sheet value in testing, so add a check cell rather than rely on it for values you write |
| Protect formula tabs | addProtectedRange with warningOnly: true (users get a warning, not a lock-out) on each calculation tab |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл build-google-sheet?
Build or extend a Google Sheet that does real work: financial models, budgets, P&L and cash-flow statements, accounting ledgers and reconciliations, trackers, dashboards and data tables with formulas, number formats, validation, conditional formatting, named ranges, protection and charts, then verify it computes. Use whenever the deliverable is a spreadsheet or the user asks for changes to one. Requires google-workspace-mcp.
Как установить скилл build-google-sheet?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build-google-sheet запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…