Official agent skill

Basin

by cloudflare in cloudflare/skills

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL.

OfficialApache-2.0Auto-check passedDatabases

Install Basin

skills CLI
$ npx skills add cloudflare/skills --skill basin -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cloudflare/skills basin --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cloudflare/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/basin .claude/skills/basin && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
basin
GitHub stars
3k
Used in
1 other repo
Token cost
~684 tokens
SKILL.md length
267 words
Files
16 (incl. references)
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL.

  • Streaming data into R2 Iceberg tables
  • SKILL.md covers Rebrand and Choose the workflow
  • Calls wrangler; needs WRANGLER_BASIN_SQL_AUTH_TOKEN
  • Managing catalogs

What it does

Basin is an agent skill from cloudflare/skills, published by the product's own GitHub organization. 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.

Its SKILL.md is about 680 tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including reference files (for example `references/catalog/README.md`, `references/catalog/api.md` and `references/catalog/configuration.md`).

It sits in Databases, covering SQL and Data governance. It works with Cloudflare, SQL, Cloudflare Workers and Cloudflare R2. The repository describes itself as: Skills for teaching agents how to build on Cloudflare. The licence is Apache-2.0.

When your agent uses it

  • Streaming data into R2 Iceberg tables
  • Managing catalogs
  • Querying those tables
  • Also use for requests using the former Data Platform

Example prompts

  • “/basin”

Requirements

  • A credential in WRANGLER_BASIN_SQL_AUTH_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit 41e0d19. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • wrangler

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.cloudflare.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • WRANGLER_BASIN_SQL_AUTH_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Basin loads about 684 tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 77 tokens; SKILL.md has 267 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~684
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cloudflare/skills at commit 41e0d19, republished under its Apache-2.0 licence (© cloudflare). 267 words, ~684 tokens.

Download SKILL.mdSave it as .claude/skills/basin/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
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 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.

Choose the workflow

NeedProductReferenceCurrent docs
Receive events, transform rows, and deliver to R2Basin PipelinesPipelines guideBasin Pipelines
Manage Iceberg metadata, table maintenance, and engine accessBasin CatalogCatalog guideBasin Catalog
Query Iceberg tables with analytical SQLBasin SQLSQL guideBasin 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.

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. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (references) in skills/basin of cloudflare/skills.

  • SKILL.md
  • references/catalog/README.md
  • references/catalog/api.md
  • references/catalog/configuration.md
  • references/catalog/gotchas.md
  • references/catalog/patterns.md
  • references/pipelines/README.md
  • references/pipelines/api.md
  • references/pipelines/configuration.md
  • references/pipelines/gotchas.md
  • references/pipelines/patterns.md
  • references/sql/README.md
  • references/sql/api.md
  • references/sql/configuration.md
  • references/sql/gotchas.md
  • references/sql/patterns.md

Open the folder on GitHubat commit 41e0d19

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in cloudflare/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Basin next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Basin compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Basin this skillcloudflare/skills3k1 repos~684Automated safety check: PassApache-2.0
Lunora Setup Hyperdriveanolilab/lunora283—~1.8kAutomated safety check: PassCustom licence
Drizzle Orm D1secondsky/claude-skills227—~2.4kAutomated safety check: PassMIT
Cloudflare 3sundial-org/awesome-openclaw-skills663—~1.5kAutomated safety check: PassNone
Sqlc Gen Moonbit Safetymizchi/skills356—~995Automated safety check: PassNone
Database MigrationRain-kl/OpenFlare288—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Connects an existing Postgres/MySQL database to a Lunora app from an action via Cloudflare Hyperdrive.

    283 GitHub stars~1.8k tokensUpdated today
    DatabasesAuto-check passed
  • Drizzle Orm D1

    secondsky/claude-skills

    | Type-safe ORM for Cloudflare D1 databases using Drizzle. An agent skill from secondsky/claude-skills.

    227 GitHub stars~2.4k tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • Cloudflare 3

    sundial-org/awesome-openclaw-skills

    Manage Cloudflare Workers, KV, D1, R2, and secrets using the Wrangler CLI.

    663 GitHub stars~1.5k tokensUpdated 7 mo ago
    DevOps & CloudAuto-check passed
  • Post-generation safety checks for sqlc-gen-moonbit + Cloudflare D1.

    356 GitHub stars~995 tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • Database Migration

    Rain-kl/OpenFlare

    Wavelet 项目专用:当新增或修改数据库表结构、索引、初始化数据、系统配置 seed、模板 seed、默认管理员、goose SQL 迁移、internal/infra/persistence/migrator、ClickHouse 分析库 DDL 或数据库升级流程时必须使用。本技能指导在 internal/infra/persistence/migrator/goose 下编写…

    288 GitHub stars~1.3k tokensUpdated today
    DatabasesAuto-check passed
  • New Setting

    Rain-kl/OpenFlare

    Wavelet 项目专用:当新增或修改启动时设置、数据库系统设置、业务设置、公共可见配置、/admin/system 参数配置、/admin/settings 图形化设置界面,或前端公共配置消费逻辑时必须使用。本技能指导设置类型判定、SystemConfig 字段与 visibility、goose SQL 初始化/升级、热更新读取、公共配置暴露、shadcn 图形组件和验证流程。

    288 GitHub stars~1.7k tokensUpdated today
    DatabasesAuto-check passed

More from cloudflare/skills

All 16 skills in this repo
  • Turnstile Spin

    cloudflare/skills

    Official

    Set up, repair, or migrate to Cloudflare Turnstile bot verification in an existing frontend and backend, including server-side Siteverify.

    3k GitHub starsUsed in 4 repos~7.2k tokens
    Auto-check: notes
  • Nextjs On Cloudflare

    cloudflare/skills

    Official

    Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.

    3k GitHub starsUsed in 2 repos~678 tokens
    Auto-check passed
  • Agents SDK

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    3k GitHub starsUsed in 2 repos~3k tokens
    Auto-check passed
  • Durable Objects

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

    3k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Sandbox Next

    cloudflare/skills

    Official

    Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview).

    3k GitHub starsUsed in 2 repos~1.7k tokens
    Auto-check passed
  • Cloudflare One Migrations

    cloudflare/skills

    Official

    Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One, including policy mapping, parity gaps, and rollout.

    3k GitHub starsUsed in 6 repos~3.1k tokens
    Auto-check passed

Questions about Basin

What does Basin do?

Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL. Basin is an agent skill from cloudflare/skills, published by the product's own GitHub organization. Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin Catalog, and Basin SQL.

When should I use Basin?

Basin fits situations like: streaming data into R2 Iceberg tables; managing catalogs; querying those tables; also use for requests using the former Data Platform.

How do I install Basin in Claude Code?

Run `npx skills add cloudflare/skills --skill basin -a claude-code`. Or copy the skill folder (skills/basin in cloudflare/skills) into .claude/skills/basin in your project. Claude Code loads it when a task matches its description.

How do I install Basin in Codex?

Run `npx skills add cloudflare/skills --skill basin -a codex`. Or copy the skill folder (skills/basin in cloudflare/skills) into .agents/skills/basin in your project. Codex loads it when a task matches its description.

Can I use Basin in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cloudflare/skills --skill basin -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/basin, .gemini/skills/basin, .github/skills/basin and .opencode/skills/basin in your project.

What does Basin need to run?

Going by SKILL.md and its folder, Basin needs the command-line tools its instructions call (wrangler) and credentials named WRANGLER_BASIN_SQL_AUTH_TOKEN. Our summary lists: A credential in WRANGLER_BASIN_SQL_AUTH_TOKEN.

Does Basin access the network?

SKILL.md names 2 domains. As links in the text: developers.cloudflare.com and github.com. This is read from the text; nothing was executed.

Is Basin safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Basin use?

Basin is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Basin use?

About 684 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Basin?

Skills that share tags, products or a category with Basin: Lunora Setup Hyperdrive (anolilab/lunora, 283 stars), Drizzle Orm D1 (secondsky/claude-skills, 227 stars), Cloudflare 3 (sundial-org/awesome-openclaw-skills, 663 stars) and Sqlc Gen Moonbit Safety (mizchi/skills, 356 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Basin?

cloudflare (a GitHub organization, an official publisher) maintains it in cloudflare/skills, which has 2,999 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 1, 2026.

Source: cloudflare/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.