malloy-phrase-detection

malloy-phrase-detection is a skill for Claude Code, Codex from malloydata/publisher. It costs 45 tokens per session (947 once invoked), scanned A, original, MIT.

A guide for building search targets for Malloy's get_context tool, which finds data sources and their fields, measures, and views. Malloy is a language and toolset for querying data.

In plain words
What is it for?
Use it when discovering Malloy data sources or looking up specific fields, calculations, views, or category values.
Why use it?
It helps turn unclear search phrases into targets the tool can use, especially when exploring unfamiliar data sources.

Skill for Claude CodeCodex

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

Good fit Use it when discovering Malloy data sources or looking up specific fields, calculations, views, or category values.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/malloydata/publisher/malloy-phrase-detection"><img src="https://agentmods.dev/badge/skills/malloydata/publisher/malloy-phrase-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 947 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.00045 $0.00947
Opus 5.5 $0.00018 $0.00379
Sonnet 5.5 $0.00009 $0.00189
Haiku 4.5 $0.00005 $0.00095

Measured 1mo ago against content hash 2b4047605edc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

malloy-phrase-detection 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 1mo 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.

examples/storefront/skills/malloy-phrase-detection/SKILL.md · 84 lines

How it starts

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

Search target construction for storefront

This REPLACES the built-in malloy-phrase-detection for this package, so it has to stand on its own. It covers the general rules briefly and then the part that is specific here: the words people use for this business, none of which are field names.

Once you have the entity names, read storefront-conventions before trusting a measure. Several of them do not mean what they are called.

The general rules, briefly

Send search_text on every target. Omitting it lists a catalog, capped per source, and the cap drops the fields your question is about. Write it as a short description of the concept, not the user's word back at us: "region" becomes "the geographic region the customer lives in".

One target per distinct concept. Do not stack three dimension targets at the same field.

Pick the target type by what the thing is:

  • dimension: something to group or filter by, including dates and numeric bands.
  • measure: something aggregated. Counts, sums, rates, averages.
  • view: a pre-built analysis. Ask for one before assembling your own.
  • dimensional_value: a literal the user named ("Cancelled"). The one target where echoing the user's word is right. Scope the call to the source once you know it.
  • source: use alone, never mixed with the types above in one call.

A numeric-looking category ("tier 2", "18-30") is a dimension, not a measure. "Top N" with no metric named still needs a measure target for the ranking. "How many" and "how much" ask for a measure even when no noun names it: add a measure target for the quantity itself, because the filter ("in 2019") is the loud part of the sentence and the count is the part that gets dropped.

Storefront vocabulary

The left column is what people say. None of it appears in the model.

They say They mean Target
GMV, gross merchandise value, top line total_sales measure, "total revenue summed over sold line items"
AOV, basket size, average ticket avg_order_value measure, "average revenue per order"
units, units sold order_item_count measure, "count of line items sold"
SKU, item, article a product dimension, "the product sold"
category, department, product line category dimension, "product category"
territory, area, patch region dimension, "the customer's home sales region"
returns, RTV, send-backs return_rate measure, "share of line items returned"
margin, markup, profit margin_rate or total_margin measure, "gross margin, revenue minus product cost"

Read the full file on GitHub · 84 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. 1mo ago Changed · -9 lines · +7 tokens per session 2b4047605edc
  2. 1mo ago Changed 1565ffe43828
  3. 2mo ago Changed · +5 lines 8e59b8dbbe85
  4. 2mo ago Changed · +1 lines d86e0ea11de3
  5. 2mo ago Changed · +4 lines · -5 tokens per session 116c7ab57bb7
  6. 2mo ago Changed · +2 lines 0919aba0877f
  7. 3mo ago First seen · 81 lines · 43 tokens per session scan A 0676c2b079ec

Subscribe to this mod's changes

malloy-phrase-detection is a skill published in the GitHub repository malloydata/publisher (136 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 947 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

malloy-phrase-detection compared with skills from other repositories

malloy-phrase-detection next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
malloy-phrase-detectionmalloydata/publisherSkill136todayMITA45Claude Code, Codex
prompt-proximity-architectureelvisun/newsjackSkill1.7k4d agoMITA67Claude Code
skill0x-cmd/x-cmdSkill4.8k6d agoApache-2.0A54Claude Code, Codex
output-dev-workflow-functiongrowthxai/outputSkill4454d agoApache-2.0A31Claude Code
api-designmajiayu000/spellbookSkill3017d agoMITA42Claude Code, Codex
incident-slo-runbookmajiayu000/spellbookSkill3017d agoMITA70Codex
reimagine-it-extractKayforkind/reimagine-itSkill2182d agoMITA133Claude Code