Iterative Retrieval
affaan-m/ECC
Pattern for progressively refining context retrieval to solve the subagent context problem.
How to phrase searchtext on a getcontext call so retrieval returns the fields you need instead of a truncated catalog.
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install malloydata/publisher malloy-phrase-detection --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/malloy-phrase-detection .claude/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .claude/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detectionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install malloydata/publisher malloy-phrase-detection --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/malloy-phrase-detection .agents/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .agents/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install malloydata/publisher malloy-phrase-detection --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/malloy-phrase-detection .cursor/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .cursor/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/malloydata/publisher.git --path skills/malloy-phrase-detection--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install malloydata/publisher malloy-phrase-detection --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/malloy-phrase-detection .gemini/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .gemini/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install malloydata/publisher malloy-phrase-detectionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/malloy-phrase-detection .github/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .github/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add malloydata/publisher --skill malloy-phrase-detection -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install malloydata/publisher malloy-phrase-detection --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/malloydata/publisher.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/malloy-phrase-detection .opencode/skills/malloy-phrase-detection && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "malloy-phrase-detection" agent skill from https://github.com/malloydata/publisher/tree/main/skills/malloy-phrase-detection into .opencode/skills/malloy-phrase-detection/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "malloy-phrase-detection", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
malloy-phrase-detectionHow to phrase searchtext on a getcontext call so retrieval returns the fields you need instead of a truncated catalog.
Malloy Phrase Detection is an agent skill from malloydata/publisher. How to phrase searchtext on a getcontext call so retrieval returns the fields you need instead of a truncated catalog. Covers target-type classification and decomposition patterns.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Publisher is the open-source analytics engine for Malloy. It lets you define data models once — and use them everywhere. The licence is MIT.
9 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit b9a1a19. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Malloy Phrase Detection loads about 2.8k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 1,625 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from malloydata/publisher at commit b9a1a19, republished under its MIT licence (© malloydata). 1,625 words, ~2,751 tokens.
.claude/skills/malloy-phrase-detection/SKILL.md (or your agent's skills folder).<!-- Copyright (c) Credible Data Inc. SPDX-License-Identifier: MIT -->
get_contextThe get_context tool description defines each field and what a call returns. This skill focuses on the parts you won't get right by default: classifying concepts into target types and splitting ambiguous phrases.
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.
Scope of this skill: the patterns below build dimension / measure / view / dimensional_value targets. Phrasing for source targets is covered at the end.
A note on matching: get_context searches over the model (sources, fields, views, and their descriptions), and dimensional_value targets search the categorical values stored in the data. Some servers don't index values; check the tool's description. On one that doesn't, find a literal value by targeting its dimension, then querying its distinct values with execute_query (see "Where value search isn't available" below).
search_textDo not enumerate. Omitting search_text lists a catalog rather than searching it. Knowing the package narrows where to look; it does not substitute for saying what you need: if you know the package, that is a reason to scope, not a reason to skip search_text. Enumerated listings are capped per source and per entity type, and with no relevance signal the cap drops the fields your question is about while keeping join-path noise.
A bare listing has three legitimate uses. The first is answering "what data is here?" when the user has named no subject at all. The second is reading a specific entity you already have the exact name of: scope to its source, set entity_name, and pass search_text: null, which returns that entity's docstring and Malloy code without spending a search. The third is checking whether a source you can name is in the catalog at all, after a ranked search did not return it (malloy-source-unreachable covers this). Every other call carries search_text on every target.
search_text for entity targetsWrite search_text as a brief semantic description of what you're looking for, not an echo of the user's word. This applies even when you already know the entity name from a prior result: still describe it, don't just repeat the name. That is a rule about how to phrase a search, and it does not conflict with the exact-entity lookup above: if you want that one entity's code and docstring rather than a ranked set, pin it with entity_name and skip the search entirely. Sending its name back as search_text is the move this rule forbids, because it searches for a name instead of either describing a concept or asking for the entity.
One target per concept is enough: the tool handles phrasing variants internally. Don't pile up dimension targets that point at the same field. Use multiple targets only when they describe genuinely distinct concepts (see "Non-obvious decomposition patterns" below).
dimension: categorical attribute to group, filter, or join on. Also used for time and numeric fields."the geographic region"measure: aggregation metric (count, sum, average, rate)."the total revenue or sales amount"view: pre-built analysis. Include one whenever the question sounds like a canned report (summary, breakdown, top-N, trend)."a summary of sales metrics"dimensional_value: a literal value the user named, stored in some dimension. search_text is the value itself, the one target where echoing the user's word is right."CyberArk"source: data domain, for a question that names a subject area rather than fields (phrasing below).Resolving categorical values. When the user names a literal value like "premium" or "New York City", send a dimensional_value target for it, scoped to its source once you know the source. Filter on the exact string it returns: the data may store "Premium", "PREMIUM", "NYC", or "New York", and only the data tells you which.
Where value search isn't available. Some servers have no value index and return nothing for a dimensional_value target, and on others a particular dimension's values may not be indexed. Then target the dimension the value lives on ("the subscription tier", "the city where the subscriber lives"), and confirm the exact stored string by querying that dimension's distinct values with execute_query before you filter on it.
These are the rules you won't apply correctly by default:
"the status of the user account") and one for the noun ("the user or account holder"). Resolve the modifier ("active") to the exact stored value with a dimensional_value target, or the status dimension's distinct values where values aren't indexed."the date the event occurred").dimensional_value target, or execute_query where values aren't indexed."the performance metric for a product") plus a dimension for the entity. If the measure is explicit ("top products by total sales"), use it directly and skip the generic ranking measure.dimensional_value targets, or execute_query where values aren't indexed.source and a dimension target with no way to answer. Always add a measure target for the quantity itself ("the number of titles"). This holds for every interrogative that IS the aggregation -- "how many", "how much", "how often" -- and it is the pattern most easily lost when a filter or grouping is the loud part of the sentence. Measured: an answerer got this right on "How many titles are in the dataset?" and dropped it on "How many titles were released in 2019?", where the year took the attention."the flag marking synthetic, test or monitoring traffic"), not just the noun they modify. Add one such target even when the question carries no qualifier at all, because a table of events, requests, sessions or logs usually holds test, internal or cancelled rows and nothing in the wording will say so. Resolve it to the model's own flag rather than inventing a filter on an id or a name; a hand-rolled exclusion and the documented one rarely select the same rows.User: "Customer churn in NYC over the last year for premium and basic subscribers"
The targets for this question:
| target_type | search_text |
|---|---|
measure | "the rate at which customers leave the service" |
dimension | "the city where the subscriber lives" |
dimension | "the date the subscription was canceled" |
dimension | "the tier of the subscription" |
view | "subscriber churn or retention analysis" |
Key moves: time ("last year") becomes a dimension on the cancellation date; "NYC" and "premium/basic subscribers" resolve to the city and tier dimensions in this first call, because the source is not known yet and an unscoped value search is slow. One view target is included to surface any canned churn analysis.
The response returns the source these fields live on (here subscriptions) with the matched fields on its card. Then send a second call scoped to subscriptions, with dimensional_value targets for "NYC", "premium" and "basic", to get the exact strings to filter on ("New York City" vs "NYC", "premium" vs "Premium"). Where values aren't indexed, run execute_query on the city and tier dimensions' distinct values instead.
search_text for source targetsAim for 3-8 words that name the entity and its business process. Don't include filter values, time ranges, or aggregations: those belong in entity targets.
| Too vague | Over-specific (entity-shaped) | Good |
|---|---|---|
"orders" | "total order revenue by customer last year" | "customer order history and line items" |
"customer data" | "premium subscribers who churned in NYC" | "subscriber accounts and churn" |
"metrics" | "monthly revenue variance by account" | "sales pipeline and revenue forecasts" |
Heuristics:
"sales order revenue", not "sales last month"."order fulfillment and shipping" over "ecommerce data" when multiple commerce-ish packages exist. Do NOT add words like "eyewear", "subscription box", "Acme Corp", or the user's specific vertical/brand. Source summaries describe data structure, not the customer's vertical, so those words add noise and can hurt matching.© malloydata, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/malloy-phrase-detection of malloydata/publisher.
Open the folder on GitHubat commit b9a1a19
Malloy Phrase Detection next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Malloy Phrase Detection this skillmalloydata/publisher | 116 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Iterative Retrievalaffaan-m/ECC | 276k | 7 repos | ~1.6k | Automated safety check: Pass | MIT | |
| Threat Detectionalirezarezvani/claude-skills | 28k | — | ~3.5k | Automated safety check: Pass | MIT | |
| Resemble Detectgithub/awesome-copilot | 40k | 3 repos | ~4.1k | Automated safety check: Pass | Apache-2.0 | |
| Pii Detectruvnet/ruflo | 74k | — | ~350 | Automated safety check: Notes | MIT | |
| Detecting Dnp3 Protocol Anomaliesmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~3.6k | Automated safety check: Pass | Apache-2.0 |
affaan-m/ECC
Pattern for progressively refining context retrieval to solve the subagent context problem.
alirezarezvani/claude-skills
A skill your agent uses when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry.
github/awesome-copilot
Deepfake detection and media safety — detect AI-generated audio, images, video, and text, trace synthesis sources, apply watermarks, verify speaker identity, and analyze media intelligence using…
ruvnet/ruflo
Detect and flag personally identifiable information (PII) in text, code, and configurations.
mukul975/Anthropic-Cybersecurity-Skills
Detect anomalies in DNP3 communications used in SCADA/ICS systems by monitoring unauthorized control commands, firmware update attempts, protocol violations, and deviations from baseline traffic…
mukul975/Anthropic-Cybersecurity-Skills
This skill covers detecting cyber attacks targeting Supervisory Control and Data Acquisition (SCADA) systems including man-in-the-middle attacks on industrial protocols, unauthorized command…
malloydata/publisher
Score one analytical answer against a verified golden, and score which of the entities the golden depends on retrieval delivered to the answerer.
malloydata/publisher
Fix a CRITICAL Trivy finding that is failing CI in this repo (a vulnerability, misconfiguration, or secret from security-scan.yml or image-scan.yml), or add, review, or retire an entry in…
malloydata/publisher
Turn a list of questions into an eval set, whatever shape it arrived in: a JSONL a customer sent, a CSV, a spreadsheet export, a markdown doc, an email thread, or a pull from production logs.
malloydata/publisher
Conduct a local Publisher evaluation loop in five steps: scrape/run, eval, diagnose, improve, checkpoint.
malloydata/publisher
Make the smallest safe Malloy model edit that closes a diagnosed model-owned gap, with a probe receipt for every factual claim.
malloydata/publisher
Decide whether ONE answer matches its golden, and say whether you believe the golden.
How to phrase searchtext on a getcontext call so retrieval returns the fields you need instead of a truncated catalog. Malloy Phrase Detection is an agent skill from malloydata/publisher. How to phrase searchtext on a getcontext call so retrieval returns the fields you need instead of a truncated catalog.
Run `npx skills add malloydata/publisher --skill malloy-phrase-detection -a claude-code`. Or copy the skill folder (skills/malloy-phrase-detection in malloydata/publisher) into .claude/skills/malloy-phrase-detection in your project. Claude Code loads it when a task matches its description.
Run `npx skills add malloydata/publisher --skill malloy-phrase-detection -a codex`. Or copy the skill folder (skills/malloy-phrase-detection in malloydata/publisher) into .agents/skills/malloy-phrase-detection in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add malloydata/publisher --skill malloy-phrase-detection -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/malloy-phrase-detection, .gemini/skills/malloy-phrase-detection, .github/skills/malloy-phrase-detection and .opencode/skills/malloy-phrase-detection in your project.
SKILL.md names no scripts, command-line tools or credentials: Malloy Phrase Detection is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Malloy Phrase Detection is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Malloy Phrase Detection: Iterative Retrieval (affaan-m/ECC, 276k stars), Threat Detection (alirezarezvani/claude-skills, 28k stars), Resemble Detect (github/awesome-copilot, 40k stars) and Pii Detect (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
malloydata (a GitHub organization) maintains it in malloydata/publisher, which has 116 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 9, 2026.
Source: malloydata/publisher on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.