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.
npx skills add malloydata/publisher --skill malloy-analysisgit clone --depth 1 https://github.com/malloydata/publisherWrote 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.
[](https://agentmods.dev/skills/malloydata/publisher/malloy-analysis)<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-analysis"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-analysis.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.02155 |
| Opus 5 | $0.00030 | $0.01077 |
| Sonnet 5 | $0.00012 | $0.00431 |
| Haiku 4.5 | $0.00006 | $0.00215 |
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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 87 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. Consider 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.
2. Discover the model (never guess names)
Find the right entities before writing any query.
- If you do not already know which package to work in, confirm the environment and package with the user before continuing.
- Call
get_contextwith a plain-English description of the question (for example "revenue by product category"). It returns the most relevant sources, views, and dimension/measure fields, the model each lives in, and their#(doc)descriptions. Start here so you target the right source and reuse an existingview:instead of scanning everything. - Drill down: call
get_contextagain scoped to a single source to focus on the fields and views within it. Even when you know an entity's name, use a descriptive search rather than just echoing the name. - Read the
#(doc)on each returned entity: it is where grain, units, null handling, and any source-level filters are described. Confirm the exact field names against the results before using them. - Read the source's own docstring too, not just each field's. The source-level
#(doc)often defines the grain, the universe of rows it represents, how joins behave, and source-level filters or assumptions that apply to every query rooted on it. Factor both the source and the field docstrings into how you build and later verify the query. - When unsure of Malloy syntax, call
search_malloy_docs(for example "window functions", "histograms") rather than guessing. For decomposing a multi-part question into retrieval targets, loadskill:malloy-phrase-detection. - Retry before concluding something is missing, then let a query settle it. If expected content is not in the results, try alternative phrasings of the search text, or look at the next-most-promising source. When a source's own summary says it carries the field, including one reached through a join, retrieval silence is not absence: name the field in a small
execute_queryand let the compiler answer. A field that runs exists, whatever the search returned. Only when that fails too should you tell the user the model does not have it, and say so before continuing rather than quietly working around the gap.
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.
- 7d ago First seen · 87 lines · 61 tokens per session scan A 3e7f493097e1
malloy-analysis is a skill published in the GitHub repository malloydata/publisher (100 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 2,155 once invoked, about $0.0003 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.
Other skills, from other repositories
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…
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…
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…
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…
wren-onboarding
Onboard a user to Wren Engine end-to-end. Walks through environment checks, project scaffolding, connection configuration via .env, and first query. Use when: user wants to install Wren Engine, set up a new data source connection, or bootstrap a new project from scratch. Triggers: '/wren-onboarding', 'install wren'…
arrowspace
Spectral vector search using graph Laplacian eigenstructure. Use when cosine/L2 similarity misses latent structure in your embeddings.