malloy-gotchas-rendering

malloy-gotchas-rendering is a skill for Claude Code, Codex from malloydata/publisher. It costs 44 tokens per session (1,342 once invoked), scanned A, original, MIT.

A guide to common mistakes when adding charts, formatting, summary cards, and sparklines in Malloy, a language for querying and presenting data.

In plain words
What is it for?
Use it while adding chart annotations, formatting tags, summary cards, or sparklines, especially when checking tag placement and value scales.
Why use it?
It helps prevent renderer annotations from being ignored or producing misleading displays, such as incorrectly scaled values or unclear card labels.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it while adding chart annotations, formatting tags, summary cards, or sparklines, especially when checking tag placement and value scales.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malloydata/publisher/malloy-gotchas-rendering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add malloydata/publisher --skill malloy-gotchas-rendering
Clone the repo
git clone --depth 1 https://github.com/malloydata/publisher

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for malloy-gotchas-rendering

README.md
[![agentmods](https://agentmods.dev/badge/skills/malloydata/publisher/malloy-gotchas-rendering/github.svg)](https://agentmods.dev/skills/malloydata/publisher/malloy-gotchas-rendering)
Your own site
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-gotchas-rendering"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-gotchas-rendering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for malloy-gotchas-rendering

Your own site · 80×15
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-gotchas-rendering"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-gotchas-rendering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01342
Opus 5 $0.00022 $0.00671
Sonnet 5 $0.00009 $0.00268
Haiku 4.5 $0.00004 $0.00134

Measured 9d ago against content hash 2d871f805ca3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

malloy-gotchas-rendering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/malloy-gotchas-rendering/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rendering Gotchas

Read this before adding renderer annotations. These patterns cause most rendering issues.

One Tag Per Line

Each # annotation must be on its own line directly above the field. Never combine tags on one line.

// WRONG, will not work
# label="Revenue" # currency
revenue

// RIGHT
# label="Revenue"
# currency
revenue

No Fixed Scale on Measures

Use # currency (no scale) on measure definitions. The same measure renders at many granularities: usd0m turns $500 into $0.0M.

// WRONG on a measure definition
# currency=usd0m
measure: revenue is sum(total)

// RIGHT, no scale on measure
# currency
measure: revenue is sum(total)

Add scale (e.g., # currency=usd0m) only in views after confirming value ranges with queries.

# big_value Needs # label on Each Measure

# big_value
view: summary is {
  aggregate:
    # label="Revenue"
    # currency
    revenue

    # label="Orders"
    # number=auto
    order_count
}

Without # label, big_value cards show raw field names which are often unclear.

Sparkline Setup

Sparklines in # big_value require TWO things: a # hidden nested view AND a .sparkline= reference.

# big_value { sparkline=trend }
view: revenue_kpi is {
  aggregate:
    # label="Revenue"
    # currency
    revenue
  nest:
    # line_chart { size=spark }
    # hidden
    trend is { group_by: order_date, aggregate: revenue, order_by: order_date }
}

If the sparkline doesn't show: check that # hidden is on the nested view AND the view name matches .sparkline=.

Comparison Deltas

# big_value { comparison_field=prior_month comparison_label="vs Last Month" }
view: rev_delta is {
  aggregate:
    # label="Revenue"
    # currency
    revenue
    # hidden
    prior_month
}

Use down_is_good=true for metrics where decrease is positive (churn, defects).

# dashboard Layout

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 129 lines · 44 tokens per session scan A 2d871f805ca3

Subscribe to this mod's changes

malloy-gotchas-rendering is a skill published in the GitHub repository malloydata/publisher (100 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 1,342 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

reimagine-it-extract

Emit the content signals reimagine-it reads from an HTML file — title, anchors, proper nouns, dates, numbers, emails, links, source hex colors, and the derived palette — as JSON without generating a redesign. Use when the user says /reimagine-it extract, "what does the engine see in this page", "extract the palette"…

Kayforkind/reimagine-it · 133 tokens

reusable-visualization

Build ONE reusable chart visualization component that receives its data and its settings from the host application instead of fetching them, and declares the fields and config options the host exposes to viewers. Use this whenever a single chart component is reused across many different queries rather than built for…

lightdash/lightdash · 102 tokens

lightdash-agent-slack-messaging

Use this skill when writing, designing, or generating Slack messages for Lightdash's in-app analytics agent. Triggers when someone asks to create agent update messages, Slack digests, agent notifications, weekly summaries, daily summaries, or any Slack copy for the Lightdash project agent. Also use when asked to vary…

lightdash/lightdash · 114 tokens

developing-in-lightdash

Use when reading, creating, and editing Lightdash dashboards and charts as JSON, including dashboard layout and chart-type-specific configuration.

lightdash/lightdash · 31 tokens

upgrade-preflight

Checks whether a self-hosted Lightdash upgrade is safe to run, and reads the tooling's answer without over-reading it. Use when upgrading a self-hosted instance, planning a maintenance window, answering "is this upgrade safe", or recovering a failed, hung, parked or lock-stuck migration — covers lightdash…

lightdash/lightdash · 101 tokens

developing-data-apps-locally

Use when editing a locally created or downloaded Lightdash data app — how local editing, building, and uploading work, and what is read-only.

lightdash/lightdash · 38 tokens