basin — Claude Code skill: Cloudflare Basin workflows
Skill for building and troubleshooting Cloudflare Basin analytics. Stream data into R2 Iceberg tables, manage catalogs, and run distributed SQL queries from your IDE.
npx skills add cloudflare/skills --skill basin -a claude-codeWhat basin does
basin integrates three Cloudflare components: Basin Pipelines to ingest and transform events, Basin Catalog to manage Iceberg table metadata and maintenance in R2, and Basin SQL for analytical queries. The typical flow moves data through Pipelines into catalogued tables, then queries them with SQL or compatible external engines.
The skill works with current Wrangler commands (wrangler basin pipelines, wrangler basin catalog, wrangler basin sql) and tracks the migration from legacy names (Data Platform, R2 Data Catalog, R2 SQL). Legacy command families like wrangler pipelines and wrangler r2 continue to work. Basin SQL requires the WRANGLER_BASIN_SQL_AUTH_TOKEN environment variable.
Before starting, install the latest Wrangler version and check current docs for limits, pricing, and syntax—the component migration is ongoing.
What it helps with
- stream events into R2 Iceberg tables using Basin Pipelines
- transform and deliver data rows
- manage Iceberg table metadata and maintenance
- write analytical SQL queries against catalog tables
- debug Basin Pipelines, Catalog, or SQL configuration
Example prompts for the agent
- Help me set up a Basin Pipeline to stream logs into R2
- How do I create and register an Iceberg table in Basin Catalog
- Write a SQL query for Basin tables and check the syntax
How to install basin
1Skills CLI (Vercel)
npx skills add cloudflare/skills --skill basin -a claude-code2Manually: put the files in place
~/.claude/skills/basin/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/basin/
1Skills CLI (Vercel)
npx skills add cloudflare/skills --skill basin -a codex2Manually: put the files in place
.agents/skills/basin/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add cloudflare/skills --skill basin -a cursor2Manually: put the files in place
.cursor/skills/basin/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install cloudflare/skills basin2Manually: put the files in place
.github/skills/basin/SKILL.md1Skills CLI (Vercel)
npx skills add cloudflare/skills --skill basin -a gemini-cli2Platform CLI
gemini skills install https://github.com/cloudflare/skills --path skills/basinManually: put the files in place
.devin/skills/basin/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add cloudflare/skills --skill basin -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set18
The whole set →Similar
Questions about basin
How do I install basin in Claude Code?
Run npx skills add cloudflare/skills --skill basin -a claude-code, then find the skill file at ~/.claude/skills/basin/SKILL.md.
What does the basin skill do?
It helps you build analytics workflows: stream events through Basin Pipelines into R2 Iceberg tables, manage the table catalog with Basin Catalog, and write distributed SQL queries via Basin SQL.
What do I need to run Basin SQL?
Set the WRANGLER_BASIN_SQL_AUTH_TOKEN environment variable. REST queries use the path /basin-sql/query/{BUCKET}. Check your Wrangler version before use.
Source text
SKILL.md · Apache-2.0
---
name: basin
description: 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.
---
# Cloudflare Basin
Basin ingests and transforms events, manages Apache Iceberg tables in R2, and queries them with distributed SQL. Start with the [Basin overview](https://developers.cloudflare.com/basin/index.md) and retrieve the relevant current docs before implementing changes, especially for limits, pricing, permissions, and CLI syntax. While PR #33850 remains open, use the proposed pages in that PR if the new URLs have not been published.
## Rebrand
Cloudflare Data Platform is now **Basin**. Cloudflare Pipelines, R2 Data Catalog, and R2 SQL are now **Basin Pipelines**, **Basin Catalog**, and **Basin SQL**. Existing resources and configurations continue to work. The prior Wrangler command families also continue to work: `wrangler pipelines`, `wrangler r2 bucket catalog`, and `wrangler r2 sql`. Use the new Basin commands and documentation URLs in new guidance. Legacy API identifiers and metrics names may still use the old terms; check the current docs for deprecation details. The migration is documented in [cloudflare-docs PR #33850](https://github.com/cloudflare/cloudflare-docs/pull/33850).
## Choose the workflow
| Need | Product | Reference | Current docs |
|------|---------|-----------|--------------|
| Receive events, transform rows, and deliver to R2 | Basin Pipelines | [Pipelines guide](references/pipelines/README.md) | [Basin Pipelines](https://developers.cloudflare.com/basin-pipelines/index.md) |
| Manage Iceberg metadata, table maintenance, and engine access | Basin Catalog | [Catalog guide](references/catalog/README.md) | [Basin Catalog](https://developers.cloudflare.com/basin-catalog/index.md) |
| Query Iceberg tables with analytical SQL | Basin SQL | [SQL guide](references/sql/README.md) | [Basin SQL](https://developers.cloudflare.com/basin-sql/index.md) |
Typical flow: Basin Pipelines → Basin Catalog tables in R2 → Basin SQL or a compatible external engine. Begin with the [Basin getting started guide](https://developers.cloudflare.com/basin/get-started/guide/index.md) for an end-to-end setup.
The proposed 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}`. Check the installed Wrangler version and current reference pages before running commands because the migration is ongoing.
© cloudflare · Apache-2.0 · cloudflare/skills