Skill Press

No. 203 · basin

Cloudflare Basin

A field guide from Cloudflare

Cloudflare

When to use it

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.

Rank
No. 203 of 971
Installs
Not listed yet
Runs in
Claude, Codex, Cursor, GitHub Copilot
Length
301 words · 1 min
Files
18
License
Apache-2.0

Get this skill

Download the skill folder (.zip, 32 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "basin" Agent Skill by Cloudflare, from https://github.com/cloudflare/skills.

1. Fetch the whole folder skills/basin — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/cloudflare/skills.git 5108325ecceabc899c761e07aa617b09c02445ee
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "basin":
   - Claude Code: ~/.claude/skills/basin/ (all projects) or .claude/skills/basin/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that basin/SKILL.md exists and its frontmatter says name: basin.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/cloudflare/skills/tree/5108325ecceabc899c761e07aa617b09c02445ee/skills/basin --skill basin

Claude.ai

Upload the .zip as a custom skill.

  1. In Settings → Capabilities, turn on “Code execution and file creation”.
  2. Download the .zip above.
  3. Go to Customize → Skills, click + → Create skill → Upload a skill, and choose it.
Anthropic’s guide to using skills ↗

Contents

  1. Rebrand
  2. Choose the workflow
  3. Skill feedback

The skill, in full

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.

More in Data & Analytics

All Data & Analytics skills →

More from Cloudflare

From cloudflare/skills at 5108325, Apache-2.0. Install counts from skills.sh.