Skip to main content

basin

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.

CloudflareApache-2.0

SKILL.md

Written by Cloudflare and published in cloudflare/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.

Cloudflare Basin

Basin ingests and transforms events, manages Apache Iceberg tables in R2, and queries them with distributed SQL. Start with the Basin overview and retrieve the relevant current docs before implementing changes, especially for limits, pricing, permissions, and CLI syntax.

Rebrand

Cloudflare Data Platform is now Basin. Cloudflare Pipelines, R2 Data Catalog, and R2 SQL are now Basin Pipelines, Basin Catalog, and Basin SQL. Basin and all three products are generally available. Existing resources and configurations continue to work; existing R2 Data Catalog and R2 SQL APIs continue to work but will be deprecated in the future. Use the Basin commands and documentation URLs in new guidance. Some API identifiers, permission group names, and metrics names still use the old terms; check the current docs before renaming them.

Choose the workflow

Need Product Reference Current docs
Receive events, transform rows, and deliver to R2 Basin Pipelines Pipelines guide Basin Pipelines
Manage Iceberg metadata, table maintenance, and engine access Basin Catalog Catalog guide Basin Catalog
Query Iceberg tables with analytical SQL Basin SQL SQL guide Basin SQL

Typical flow: Basin Pipelines → Basin Catalog tables in R2 → Basin SQL or a compatible external engine. Begin with the Basin getting started guide for an end-to-end setup. For cross-product cost estimates, use Basin pricing.

The Wrangler command families are wrangler basin pipelines, wrangler basin catalog, and wrangler basin sql. Basin SQL uses WRANGLER_BASIN_SQL_AUTH_TOKEN; its REST query path is /basin-sql/query/{BUCKET}. If a wrangler basin command is not recognized, update Wrangler before falling back to the legacy command families.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

When basin runs

Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /basin in Claude Code or $basin in Codex.

The description says when to use it:

Use for streaming data into R2 Iceberg tables, managing catalogs, or querying those tables; also use for requests using the former Data Platform, Pipelines, R2 Data Catalog, or R2 SQL names.

Install basin

Claude Code

Copy the basin folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.

git clone --depth 1 https://github.com/cloudflare/skills.git /tmp/cloudflare-skills
mkdir -p .claude/skills
cp -r /tmp/cloudflare-skills/skills/basin .claude/skills/

Codex

Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if basin does not appear.

git clone --depth 1 https://github.com/cloudflare/skills.git /tmp/cloudflare-skills
mkdir -p .agents/skills
cp -r /tmp/cloudflare-skills/skills/basin .agents/skills/

Treq

Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for basin and choose Install….

Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.

Files

basin ships 17 files, 55.4 KB in total. Select a file to load it from GitHub.

references/catalog/README.md1.2 KBView on GitHub ↗

All skills by Cloudflare