malloy-analysis

malloy-analysis is a skill for Claude Code, Codex from malloydata/publisher. It costs 43 tokens per session (5,242 once invoked), scanned A, original, MIT.

A workflow for answering data questions using Malloy models, which describe business data and its relationships in a reusable form. It discovers the relevant model, runs a query, and checks the result.

In plain words
What is it for?
Use it to find metrics, breakdowns, trends, or charts from data exposed through Malloy models.
Why use it?
It helps avoid guessing table or field names and reduces the risk of answering a data question with the wrong filters, grouping, or time range.

Skill for Claude CodeCodex

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

Good fit Use it to find metrics, breakdowns, trends, or charts from data exposed through Malloy models.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-analysis"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,242 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.00043 $0.05242
Opus 5.5 $0.00017 $0.02097
Sonnet 5.5 $0.00009 $0.01048
Haiku 4.5 $0.00004 $0.00524

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

Security

Grade A, and why

malloy-analysis 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 10d 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-analysis/SKILL.md · 122 lines

How it starts

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

Malloy analysis workflow

Tool names are written bare here - get_context, execute_query, search_malloy_docs. The exact prefixed name depends on the host surface; match each against the tools you actually have.

You answer data questions against Malloy semantic models reached over MCP; you have no direct database access. Approach every question the way an experienced analyst would: methodically, skeptically, and with a commitment to getting the right answer, not just an answer.

1. Understand the question

Restate what is being asked: which metric, which breakdown (group-by), which filters, which time range. Decide whether the question is standalone or depends on prior conversation, and what a correct answer would look like: its shape, magnitude and grain. If the question is ambiguous, make the most reasonable assumption and state it rather than stalling. One exception: when the MODEL ITSELF says the ask is ambiguous (a source or field doc that names two valid readings and says there is no default), assuming is the wrong move. Ask which the user means, naming both, or return both clearly labelled; naming the ambiguity and then picking one anyway is not resolving it. This applies equally to a follow-up ("more granular", "break that down", "same thing but by week") that refines the SHAPE of an earlier answer and settles no metric nobody has chosen: if no previous turn established which metric, the ambiguity is still open however the question is worded.

No specific question ("what's interesting?", "explore this data", "look for patterns")? Orient with step 2 and tell the user what data exists (sources, grain, date range). Then profile: with a question, only the columns it touches; without one, broadly, for surprises (run: source -> { index: * limit: 100 }, min/max/null count of numbers, the top 20 values of each category, date range and gaps, duplicate keys with having: n > 1). Offer 3 to 5 hypotheses ranked by likely impact (skew: outliers; time patterns: trend; imbalance: segments; correlated columns: drivers; unexpected nulls: data quality) and ask which to pursue; if the user named one, go straight to it. Investigate each with steps 3 to 5 (search_malloy_docs has patterns for window functions, cohorts and percent of total), validate each finding with at least one second check (another metric, the denominator, whether it repeats over time, the raw rows), and report the three to five best insights with evidence, confidence and assumptions. To keep views, offer a report (malloy-reports: a grid for a dashboard, linear for a write-up); to turn the work into a model, malloy-model-as-you-go or malloy-model.

Read the full file on GitHub · 122 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. 10d ago Changed 9a39876ffbaa
  2. 14d ago Changed · +1 lines 6767632daf55
  3. 15d ago Changed · +4 lines 04e8f310d740
  4. 18d ago Changed · +4 lines e7429ee58cbb
  5. 28d ago Changed · +5 tokens per session 238f1cc2f684
  6. 1mo ago Changed · -23 lines · -23 tokens per session 1baa3203c191
  7. 1mo ago Changed 4050bd52a5e6
  8. 1mo ago Changed · +50 lines 94de81ccd091
  9. 1mo ago Changed · -1 lines c106faf92dae
  10. 1mo ago First seen · 87 lines · 61 tokens per session scan A 3e7f493097e1

Subscribe to this mod's changes

malloy-analysis is a skill published in the GitHub repository malloydata/publisher (118 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 5,242 once invoked, about $0.0002 per session on Opus 5.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

repository-writeback

Use when changing the dbt project through a pull request (editDbtProject) or managing those pull requests, offering to fix or extend the semantic layer, or following up a merged pull request.

lightdash/lightdash · 44 tokens

mcp-artifact-integration

Integrate Lightdash MCP query results into Claude-created HTML or React artifacts. Covers host bridges, response envelopes, polling, errors, CSV fallback and chart data. Not needed for ordinary chat or Lightdash's built-in chart app.

lightdash/lightdash · 53 tokens

effective-dbt-sql

Use when writing or modifying dbt model SQL — deciding whether to add a subquery or reuse an existing dimension/metric, structuring a query, joining models, or refactoring a metric's SQL. Encodes SQL semantic-correctness rules: reuse existing fields, prefer CTEs over correlated subqueries, and make joins and column…

lightdash/lightdash · 0 tokens

alibabacloud-data-agent-mcp-skill

Alibaba Cloud Data Agent MCP skill (alibabacloud-data-agent-mcp-skill, data-agent MCP) for enterprise database/file analysis. Use when the user asks (in any language, including Chinese) to query/analyze DMS-managed databases, run SQL/data analysis, start quick-query (lite) or deep-analysis (pro/ultra) sessions…

aliyun/data-agent-skill · 199 tokens

fused-integrations

Reference for using Fused's built-in integration connections inside UDFs. Covers data sources (Snowflake, BigQuery, GCS, S3, Airtable, Notion, Google Drive), compute/inference providers (Modal, Hugging Face, Baseten, Daytona, ComfyOrg, Slack), and LLM providers (Anthropic, OpenAI) — the fused.api connect helpers…

fusedio/skills · 126 tokens

wren-usage

Wren Engine — semantic SQL engine for AI agents. Query 22+ data sources (PostgreSQL, BigQuery, Snowflake, MySQL, ClickHouse, etc.) through a modeling layer (MDL). This skill is the main entry point: it guides setup, delegates to focused sub-skills for SQL authoring, MDL generation, project management, and MCP server…

Canner/wren-engine · 126 tokens