agentleFS
LukehleLukehle/closeloop/skills/fin-artifact/SKILL.md

fin-artifact

Skill1 starsChanged 3 months agoMITView on GitHub

Build financial dashboards and reporting artifacts backed by BigQuery, Google Sheets, or a warehouse extract - in two tiers, an as-of snapshot by default and a live connector mode when the organization exposes one. Carries the finance visualization conventions - ARR and cash bridges, cohort heatmaps, actual-vs-budget variance bands, sign conventions, benchmark bands, suppression rules. Use when building any chart, dashboard, board visual, or data-backed page for financial data. Trigger on "dashboard", "build a chart", "visualize", "live board pack", "board visual", "EBITDA waterfall", "bridge chart", "cohort chart", "financial dashboard", "wire it to the warehouse".

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    A board number that silently changes is a defect: If the deck said $4.82M on Tuesday and reads $4.79M on Thursday because a late invoice …

    line 24
  2. Distinctive:

    Every snapshot artifact carries a provenance footer.

    line 32
  3. Very specific:

    Before writing a connector call, load the host's artifact-capabilities skill when available and read its type definitions.

    line 56
  4. Distinctive:

    Use for any movement between two states: ARR, revenue, EBITDA, cash, headcount.

    line 78
  5. Very specific:

    Before publishing, per finance-guardrails Rail 5:

    line 164

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Financial artifacts

Two things distinguish a financial artifact from a generic dashboard: the numbers must be provable, and the as-of must be explicit. Everything below follows from those.

For general visual craft, use Chartroom's concrete artifact-architecture, visual-hierarchy, chart-selection, and artifact-testing skills when that companion pack is installed. If it is not installed, follow the conventions and degraded mode below; this skill remains self-contained.


Tier 1 — the as-of snapshot (default)

Build this unless liveness is explicitly required. Data pulled at build time, baked into a self-contained page, stamped with the as-of.

Why this is the default rather than a fallback:

  • A board number that silently changes is a defect. If the deck said $4.82M on Tuesday and reads $4.79M on Thursday because a late invoice posted, you have created a credibility problem, not a freshness feature.
  • It is reproducible. Six months later the page still shows what was reported, which is the whole basis of an audit trail.
  • It needs no runtime capability, so it works on the most restricted seat.
  • It can be shared, which a connector-backed page cannot (see below).

Every snapshot artifact carries a provenance footer. Not optional:

As-of 2026-08-19 14:20 ET  |  Period Jul 2026 (closed)
Source bq://finance.gl_summary snapshot 2026-08-05T09:00Z  |  Run 2026-07-close
Tie-out PASS - subscription revenue agrees to GL 4100 within $0.00

Tier 2 — live connector mode (conditional)

A published artifact can call the viewer's claude.ai connectors via the mcp runtime capability. Two hard constraints follow, and both are commonly discovered too late:

  1. The source must be a claude.ai connector on the organization's account. A BigQuery or Sheets MCP server configured locally on your laptop is not reachable from a published page. If your org has not exposed BigQuery as a connector, live mode is unavailable regardless of your local setup.
  2. A page declaring connector access cannot be shared publicly. It is a viewer-consented grant, so each viewer authenticates as themselves. For financial data that is the correct security posture — and it is also a distribution constraint. A board pack that only opens for people with warehouse credentials is not a board pack.

Before writing a connector call, load the host's artifact-capabilities skill when available and read its type definitions. If that platform skill is unavailable, do not guess a connector shape: ship the Tier 1 snapshot and state that live mode was unavailable. Then:

  • Observe one real request/response pair per tool before publishing. Never guess argument names or result encoding. If you cannot safely observe one, say so at publish time rather than shipping a guessed shape.
  • Learn the shape, discard the values. Real figures never become placeholder content in the page.
  • Handle null from claude.use("mcp") — that is the unavailable case, and the page must degrade to its snapshot rather than render empty.
  • Drive freshness UI from the result's cache timestamp, and show it. A live page that cannot say how stale it is, is worse than a snapshot that can.

When live mode is right: an operational monitor someone watches during the day — cash position, collections, pipeline, daily bookings. When it is wrong: anything reported, sent, or presented.


Chart conventions for financial data

Bridges / waterfalls — the highest-value financial chart

Use for any movement between two states: ARR, revenue, EBITDA, cash, headcount.

  • Anchor bars (opening, closing) sit on the baseline; movement bars float
  • Connector lines between bars — without them the eye cannot follow the cumulative
  • Consistent sign colour: increases one hue, decreases another, anchors neutral. Never red/green alone — pair with position and label so it survives colourblindness and greyscale printing
  • Label every bar with its value. A bridge the reader must estimate from axis position has failed at its one job
  • The bars must sum exactly to the endpoint. If they do not, the decomposition is wrong — fix the analysis, never plug the chart
  • "Other" stays below the investigation floor or gets broken out

Cohort heatmaps

  • Rows = cohort (acquisition month), columns = periods since acquisition
  • Show cohort size beside each row. 120% retention on 4 customers is one upsell
  • Suppress cells under 5 entities — noise, and per finance-guardrails Rail 5 potentially identifying
  • Mark immature periods explicitly rather than truncating them; silently dropping the incomplete tail biases the curve upward
  • Sequential colour scale, not diverging — unless you are showing variance against a target, which is a different chart

Actual vs budget / forecast

  • Plot the variance, not two lines the reader has to subtract mentally
  • Band the acceptable range so "on track" is visible without arithmetic
  • State the comparison basis in the title: "vs Plan (Board approved 2026-01)" — plan versions multiply, and an unlabelled "plan" is unreconcilable later

Benchmark bands (SaaS metrics)

  • Draw the stage-appropriate range as a band, plot your value against it
  • Label the stage in the chart. A mid-market band on a seed-stage company is misleading even when the numbers are right (see saas-metrics)
  • Cite the benchmark source and vintage in a caption

Time series

  • Zero baseline for anything additive (revenue, cash, headcount). Truncating the axis to dramatize a trend is the most common chart lie in finance
  • Truncation is acceptable for rates and ratios, where zero is not meaningful — say so in the axis label
  • Mark period boundaries and any definition change with an annotation. A metric that changed definition mid-series needs a visible break, not a smooth line

Never

Dual axes (they encode an arbitrary relationship as a visual correlation), pie charts for anything with more than three slices or any time dimension, 3D effects, and any chart whose caption restates its title instead of stating the takeaway.


Sign conventions

Pick one, state it in the page, never mix within a view:

ConventionReads well for
Expenses positive, subtracted in the roll-upP&L tables that mirror the statements
Expenses negative, added in the roll-upBridges and waterfalls, where direction is the point

For cash flows, outflows negative, always — a cash chart with positive outflows will be misread by someone, and that someone will be in a board meeting.

Wrap negatives in parentheses in tables (accounting convention), use a minus sign in charts (reads correctly at small sizes and in labels).


Numbers in the page

  • Right-align all numerics. Tabular figures (font-variant-numeric: tabular-nums) so digits align across rows
  • Thousands separators always; consistent decimal places within a column
  • State units once in the header ($K, $M, %), not on every cell
  • Do not show more precision than the number has. An ARR figure derived from a rounded extract displayed to the cent is a false precision claim
  • Percentages: state whether a change is percentage points or percent. "NRR fell 4%" and "NRR fell 4 points" are different claims and the difference matters

Suppression and disclosure

Before publishing, per finance-guardrails Rail 5:

  • No customer-identifying detail below the aggregation threshold (5+ entities, none over 50%)
  • No employee compensation detail, no individually-identifying pay figures
  • No account numbers, tax IDs, or credentials anywhere in the page or its source
  • Suppressed cells are marked as suppressed, not silently blank — a blank reads as zero
  • Publishing is a deliberate step. Artifacts start private; sharing is the user's decision, and distributing financial data is exactly the kind of action that gets confirmed first

Build checklist

  • Every figure has a tie-out block behind it, and the page says PASS
  • As-of, period, and period status (open/closed) are visible on the page
  • Source and snapshot identifier in the footer
  • Tier stated — snapshot or live; if live, the freshness indicator works and the null path degrades to snapshot
  • Metric definitions available in the page (a definitions panel, or a link)
  • Charts obey the conventions above; bridges foot exactly
  • Suppression checklist clean
  • Renders in both light and dark, and prints legibly in greyscale — board packs get printed
  • Self-contained: no external CDN, font, or script requests

Degraded mode

No artifact publishing: produce a self-contained local HTML file with identical content. Every convention above applies to a local file exactly as it does to a published page.

No connector access: Tier 1, which is the default anyway. State in the footer that the page is a snapshot, so nobody assumes it refreshes.

No warehouse access at build time: build the page against a CSV extract someone provides, and carry the extract's own as-of rather than the build time. Those are different timestamps and conflating them misstates the data's age.


Going deeper

This skill is the finance-facing summary. The full craft — hand-built SVG charting under a strict CSP, bridge/cohort/variance/uncertainty/flow chart design, financial table layout, theming, accessibility, interaction patterns, and a tested dependency-free chart kit — lives in the companion pack:

chartroom — 27 skills plus chartkit.js /plugin marketplace add Lukehle/chartroom

Reach for it when you are actually building the page rather than deciding what belongs on it. Of particular use here: bridge-charts (the ARR and cash bridges this skill calls for, with a footing check in code), financial-tables, chart-annotation, and artifact-testing.


Related skills

  • Chartroom artifact-architecture, visual-hierarchy, chart-selection, and artifact-testing — optional companion craft; use the snapshot fallback when absent
  • Host artifact-capabilities — conditional connector reference; never required for Tier 1
  • tie-out — the proof behind every figure on the page
  • saas-metrics — definitions and benchmark bands
  • flux-analysis — the bridges this skill renders
  • startup-board-pack — what goes on which slide
  • warehouse-sql / sheets-bridge — where the data comes from

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.