Spreadsheet authoring

From event4u-app/agent-config · View interactive version

Spreadsheet authoring is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when building or editing a spreadsheet or model — formulas over hardcoded values, read-back after writes, official-source data, pivot-first charts. Triggers on 'spreadsheet', 'build a model'.

How to use this skill

Skill file

spreadsheet-authoring

The spreadsheet surface's correctness floor (per

CODE0):

a spreadsheet's truth source is the formula read-back, not a plausible

table of numbers. A cell that holds a hardcoded computed value is a latent

lie — it silently goes stale the moment an input changes.

When to use

Do NOT use for: per-customer unit-economics reasoning (route to

unit-economics-modeling), runway shape (route to runway-cognition), or a

prose document/table (that is the document surface, doc-coauthoring).

Procedure

  1. Detect the surface + capability. Confirm a spreadsheet is the right

surface (not a prose table). Confirm native spreadsheet tooling is available;

if not, see § Capability-aware degradation.

  1. Formulas over hardcoded values. Any computed cell holds a formula

(=SUM(...), =B2*C2), never the typed-in result. Hardcoding a computed

value is the cardinal spreadsheet defect — it does not recalculate.

  1. Read back after every write, and RECALCULATE first. After writing a

formula, force a recalculation, then read the cell back — a library that

writes formulas without recalculating leaves the cached value stale, so a

read-back before recalc proves nothing. The zero-formula-error contract:

any of #REF! / #DIV/0! / #VALUE! / #N/A / #NAME? in a written cell

is a failure, not a warning — reject the output and fix the formula. The

recalc'd read-back is the spreadsheet's verification truth source.

Formulas, never hardcoded computed values — a library that writes the

Python-computed number into the cell instead of the = formula has produced

a dead spreadsheet that will not update when inputs change; write the formula

string and let the recalc compute it.

  1. Source-comment web-sourced cells. Any figure taken from the web carries a

cell comment with its source. Financial figures follow the

CODE0 rule

(official sources first; aggregators need permission + unofficial marking).

  1. Expand ranges on structural edits. After inserting a row/column inside a

formula's range, expand the range (or use a whole-column / table reference) so

the new data is included — verified by read-back.

  1. Pivot-first charting. Chart from a pivot/aggregate of raw data, not

directly from hundreds of raw transactional rows.

  1. Bulk range operations over manual cell loops. Prefer a single range

formula / fill over hand-editing cells one by one.

Capability-aware degradation

state that formulas were written into the export, and what the target app will

recompute on open.

what cannot be verified on this host, and deliver the formula definitions +

the layout as a durable plan the user applies in their spreadsheet app.

Output format

  1. The spreadsheet / model — cells carrying formulas (not baked values),

source comments on sourced cells, pivots feeding charts.

  1. assumptions.md — every input value, sourced or marked assumption;

the official-vs-unofficial status of each financial figure.

  1. verification-note.md — which cells were read back, any formula errors

found + fixed, and — on a degraded host — exactly what could not be verified.

Gotcha

it looks right today and is silently wrong after the next input change.

from every downstream total.

unreadable chart and hides the data's real shape.

sourcing defect even when the number happens to be right — see

spreadsheet-source-quality.

is a fabricated verification (never do it — degrade honestly).

Do NOT

official without the user's explicit permission + a cell-level unofficial mark.

spreadsheet — say what could not be verified instead.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.