trino-presto-federated-query

trino-presto-federated-query is a skill for Claude Code, Codex from vaquarkhan/data-engineering-agent-skills. It costs 44 tokens per session (1,132 once invoked), scanned A, original, MIT.

A guide for using Trino or Presto to query data stored in different systems through one query layer.

In plain words
What is it for?
Use it to plan federated analytics across data lakes, warehouses, databases, search systems, and object storage.
Why use it?
It helps handle differences in data formats, consistency, speed, cost, and access rules when one query crosses several systems.

Skill for Claude CodeCodex

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

Good fit Use it to plan federated analytics across data lakes, warehouses, databases, search systems, and object storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query
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 vaquarkhan/data-engineering-agent-skills --skill trino-presto-federated-query
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills

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 trino-presto-federated-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query/github.svg)](https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query/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 trino-presto-federated-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query"><img src="https://agentmods.dev/badge/skills/vaquarkhan/data-engineering-agent-skills/trino-presto-federated-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,132 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.
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.00044 $0.01132
Opus 5 $0.00022 $0.00566
Sonnet 5 $0.00009 $0.00226
Haiku 4.5 $0.00004 $0.00113

Measured 9d ago against content hash 67e68d77eb11, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

trino-presto-federated-query 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 9d 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/trino-presto-federated-query/SKILL.md · 98 lines

How it starts

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

Trino Presto Federated Query

Overview

Use this skill when Trino or Presto sits across multiple data systems as a federated query layer. It helps agents reason about federation boundaries, predicate pushdown limits, consistency trade-offs, performance planning, and governed consumption patterns.

When to Use

  • querying across multiple heterogeneous data stores with Trino or Presto
  • defining governed federated analytics access for users or applications
  • managing performance, cost, and semantic consistency across systems
  • building a query layer over lakehouse tables, relational databases, and object stores
  • planning catalog and connector configuration for multi-source environments

Do not use this when all data lives in a single system or when a materialized serving layer would be simpler and more performant.

Workflow

  1. Define the federation scope and use case. Include:

    • which data systems are federated (data lake, warehouse, RDBMS, search, cache)
    • what queries need to cross system boundaries
    • who are the consumers (analysts, applications, dashboards)
    • what latency and concurrency expectations exist
    • is federation for ad-hoc exploration or production query patterns
  2. Configure catalogs and connectors with explicit assumptions.

    • document which connector is used for each source and its capabilities
    • understand pushdown support per connector: predicates, projections, aggregations, limits
    • define authentication and access control per catalog
    • test connector behavior for null handling, type mapping, and timezone semantics
    • version connector configurations and treat them as infrastructure code
  3. Design queries for federation-aware performance.

    • push filtering to the source where possible — cross-system joins are expensive
    • minimize data movement: filter early, aggregate at the source when pushdown supports it
    • avoid joining large datasets across different connectors — materialize one side first
    • use EXPLAIN to verify pushdown behavior before assuming it works
    • set query timeouts and resource limits to prevent runaway federated scans

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 44 tokens per session scan A 67e68d77eb11

Subscribe to this mod's changes

trino-presto-federated-query is a skill published in the GitHub repository vaquarkhan/data-engineering-agent-skills (45 stars, last pushed 3mo ago), licensed MIT. It adds 44 tokens to every session and 1,132 once invoked, about $0.0002 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-09-03.