malloy-materialization-tuning

malloy-materialization-tuning is a skill for Claude Code, Codex from malloydata/publisher. It costs 81 tokens per session (1,882 once invoked), scanned A, original, MIT.

A recommendations-only guide for tuning Malloy Persistence, which stores expensive query results for reuse, using run history and timing data from Malloy Publisher.

In plain words
What is it for?
Use it to review persisted sources, compare build and reuse history, and recommend which sources to persist, stop persisting, or schedule differently.
Why use it?
It helps identify persistence choices that may reduce query time or cost while avoiding unapproved changes that could waste storage or make queries slower.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review persisted sources, compare build and reuse history, and recommend which sources to persist, stop persisting, or schedule differently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/malloydata/publisher/malloy-materialization-tuning
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-materialization-tuning
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-materialization-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/malloydata/publisher/malloy-materialization-tuning/github.svg)](https://agentmods.dev/skills/malloydata/publisher/malloy-materialization-tuning)
Your own site
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-materialization-tuning"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-materialization-tuning/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-materialization-tuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-materialization-tuning"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-materialization-tuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,882 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.00081 $0.01882
Opus 5 $0.00041 $0.00941
Sonnet 5 $0.00016 $0.00376
Haiku 4.5 $0.00008 $0.00188

Measured today against content hash 612cee91fa3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

malloy-materialization-tuning 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 today.

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-materialization-tuning/SKILL.md · 108 lines

How it starts

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

Tuning materializations for cost and performance

This skill turns the signals the open-source Publisher already records (the materialization history, per-run timings, and which sources were built vs reused) into concrete, recommendations-only advice: which sources to persist, which to stop persisting, and how to schedule and scope them. It is the local counterpart to the platform's usage-driven optimization: the Publisher has the raw signals, and you read them with the malloy-pub CLI.

Recommendations only. Never change a model, schedule, or scope without the user's explicit go-ahead. Present the findings and the proposed edits, then apply them only when asked. Persisting the wrong source wastes storage and rebuild time; unpersisting a hot one makes queries slow. Let the user decide.

Assumes the malloy-pub CLI is on PATH and points at the server (--url or MALLOY_PUBLISHER_URL, default http://localhost:4000). Substitute the real environment and package for <env> / <pkg>.

Step 1: Take inventory

Establish what the package persists today and how it is governed.

  • Persist sources: the sources annotated #@ persist name="…" in the package's .malloy files. Read the models (or get_context the package) to list them.

  • Schedule + scope:

    malloy-pub schedule view --environment <env> --package <pkg>
    

    This prints the cron (or none, meaning publish / on-demand only), the persist scope (package = artifacts reused across versions; version = per published version), and whether a freshness policy is set. A control-plane-managed package (manifestLocation set) is refreshed by the control plane, not the standalone scheduler, so leave its cadence alone.

Step 2: Read the materialization history

The history is where cost lives. Each run records its trigger, timing, and how many sources were built vs reused.

  • Across the whole environment (all packages, newest first; the rows are interleaved and labeled by package, not grouped into contiguous per-package blocks):

Read the full file on GitHub · 108 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. today Changed 612cee91fa3e
  2. 9d ago First seen · 108 lines · 81 tokens per session scan A 6cb966f2f203

Subscribe to this mod's changes

malloy-materialization-tuning is a skill published in the GitHub repository malloydata/publisher (100 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 1,882 once invoked, about $0.0004 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