s3-query-skill

s3-query-skill is a skill for Claude Code, Codex from OpenLinkSoftware/ai-agent-skills. It costs 224 tokens per session (4,393 once invoked), scanned C, original, MIT.

A client-side way to query files stored in Amazon S3 or compatible object storage, including Cloudflare R2, MinIO, Wasabi, and similar services, using SQL or object tools.

In plain words
What is it for?
Use it to run DuckDB queries over remote Parquet, CSV, or JSON files, list or inspect objects, download selected files, or synchronize storage.
Why use it?
It lets you inspect or query remote data without downloading an entire bucket or dataset first.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; positional $N argument.

Good fit Use it to run DuckDB queries over remote Parquet, CSV, or JSON files, list or inspect objects, download selected files, or synchronize storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openlinksoftware/ai-agent-skills/s3-query-skill
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 OpenLinkSoftware/ai-agent-skills --skill s3-query-skill
Clone the repo
git clone --depth 1 https://github.com/OpenLinkSoftware/ai-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 s3-query-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/openlinksoftware/ai-agent-skills/s3-query-skill.svg)](https://agentmods.dev/skills/openlinksoftware/ai-agent-skills/s3-query-skill)
Your own site
<a href="https://agentmods.dev/skills/openlinksoftware/ai-agent-skills/s3-query-skill"><img src="https://agentmods.dev/badge/skills/openlinksoftware/ai-agent-skills/s3-query-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,393 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00224 $0.04393
Opus 5 $0.00112 $0.02197
Sonnet 5 $0.00045 $0.00879
Haiku 4.5 $0.00022 $0.00439

Measured 8d ago against content hash d65a47a8add6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

s3-query-skill scanned grade C with 2 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/duckdb-s3-query.sh, scripts/s3-list.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

# ~/.aws/credentials

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Common Crawl's own [get-started docs](https://commoncrawl.org/get-started) describe `s3://commoncrawl/` as anonymously readable via `--no-sign-request`. Live testing during this skill's build did **not** confirm that — b
s3-query-skill/SKILL.md · 285 lines

How it starts

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

S3 API Query Client Skill

DuckDB httpfs · AWS CLI / boto3 · rclone · S3-compatible endpoints

Purpose

Act as the client side of the S3 API — read and query data that already lives at an S3 or S3-compatible endpoint, in place, without a bulk download. The skill covers two access modes:

  • In-place SQL query — DuckDB's httpfs extension runs SELECT directly against remote Parquet/CSV/JSON objects over the S3 protocol (range requests only pull the bytes a query needs). This is the pattern behind Daniel van Strien's post on querying the 2.1-billion-row Common Crawl Foundation index straight from a laptop, "for $0" — the index is published as an S3-compatible Hugging Face Storage Bucket and queried with DuckDB, no download step.
  • Object-level operations — list, head, get, put, and sync via AWS CLI / boto3 / rclone, for browsing a bucket or pulling specific objects (e.g. individual WARC/WAT/WET files).

Supported Endpoint Types

Endpoint type Example Auth Notes
AWS S3 — public/anonymous bucket s3://commoncrawl/ none in theory (--no-sign-request) ⚠️ Verified 2026-07-02: currently returns 403 on both ListObjectsV2 and GetObject via anonymous/unsigned requests — see the Common Crawl access note below for the working alternative
AWS S3 — private bucket s3://your-bucket/ AWS access key/secret or SSO profile Standard AWS auth chain
Hugging Face Storage Buckets https://s3.hf.co/<namespace> HF User Access Token → S3-style key (HFAK…) + secret Path-style addressing required; single region us-east-1; ListObjectsV1 unsupported
Cloudflare R2 / MinIO / Wasabi / Backblaze B2 / other S3-compatible custom endpoint_url provider-issued key/secret Same client shape as HF; only endpoint_url + addressing style change

⚠️ Common Crawl access note (verified live 2026-07-02)

Read the full file on GitHub · 285 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 285 lines · 224 tokens per session scan C d65a47a8add6

Subscribe to this mod's changes

s3-query-skill is a skill published in the GitHub repository OpenLinkSoftware/ai-agent-skills (38 stars, last pushed 4d ago), licensed MIT. It adds 224 tokens to every session and 4,393 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it C with 2 findings (reaches for credential files, makes network calls). 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

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…

google/skills · 138 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens