Run SQL — or a plain-English question — against DuckDB databases, CSV, Parquet, JSON and Excel files, with schema inspection and error recovery built in.
Tinybird Best PracticesSkill
Summary
Tinybird's own datafile and SQL rules for coding agents — datasources, pipes, endpoints, materialized views, deduplication and query optimisation.
Features
- House rules for .datasource, .pipe and .connection files
- SQL and endpoint optimisation guidance (filter early, project narrow, defer expensive work)
- Materialized view patterns, including join prefiltering
- Deduplication patterns and engine selection (MergeTree / AggregatingMergeTree)
- Local vs Cloud build semantics for the tb CLI
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
The official agent skill from the Tinybird team, covering how to write and review the datafiles a Tinybird project is made of.
Tinybird projects are defined in plain text — .datasource, .pipe and .connection files that tb deploy pushes to Tinybird Cloud. That makes them exactly the kind of artefact a coding agent will happily generate, and exactly the kind where a small mistake (the wrong engine, an unfiltered join in a materialized view, a template parameter handled loosely) shows up as a slow endpoint or a wrong number rather than a syntax error.
The skill loads Tinybird's house rules for each file type and for the SQL inside them: MergeTree by default and AggregatingMergeTree for materialized targets; filter early and select only the columns you need; push expensive work later in the pipeline; SELECT-only SQL with strict parameter handling in Tinybird's templating syntax. It carries fourteen focused rule files an agent pulls in on demand — project layout, build and deploy, each datafile type, materialized-view join prefiltering, endpoint optimisation, tests and deduplication patterns — plus the local-versus-cloud distinction that trips people up (tb sql and tb logs default to local unless --cloud or --branch is passed, and dev_mode in tinybird.config.json decides the build target).
Use it whenever an agent is creating or refactoring Tinybird resources, designing an endpoint schema, or reviewing a project's SQL.
Related Skills
Skill: BigQuery Basics
by Google
Google's official BigQuery skill — datasets, tables, jobs and SQL from the bq CLI, plus the reference set for IAM, Terraform, change history and continuous queries.
Skill: ClickHouse Best Practices
by ClickHouse Inc
ClickHouse's official agent skill: 31 rules for primary keys, data types, JOINs, batching and partitioning that an agent must check and cite before advising on a schema or query.
Skill: EF Core Query Optimization
by .NET Team at Microsoft
Make slow Entity Framework Core queries fast — read the generated SQL first, fix N+1s, cartesian Include explosions and non-sargable predicates, then re-measure one change at a time.