Tinybird Agent Skills
Reusable guidance extracted from Tinybird Code (the Tinybird CLI coding agent). Use this skill when working in Tinybird projects, editing datafiles, running build/deploy flows, exploring data, managing tests/secrets, or using the Tinybird TypeScript SDK for type-safe definitions and typed client ingest/query.
When to Apply
- Creating or updating Tinybird resources (.datasource, .pipe, .connection)
- Working with queries, endpoints, or data exploration
- Managing Tinybird deployments, secrets, or tests
- Reviewing or refactoring Tinybird project files
- Using the Tinybird TypeScript SDK: defining datasources/pipes/endpoints in TypeScript,
tinybird.jsonconfig, SDK CLI (tinybird dev|build|deploy), or the typed client for ingest and query
Rule Files
rules/project-files.mdrules/build-deploy.mdrules/datasource-files.mdrules/pipe-files.mdrules/endpoint-files.mdrules/materialized-files.mdrules/sink-files.mdrules/copy-files.mdrules/connection-files.mdrules/sql.mdrules/endpoint-optimization.mdrules/append-data.mdrules/mock-data.mdrules/tests.mdrules/secrets.mdrules/tokens.mdrules/cli-commands.mdrules/data-operations.mdrules/deduplication-patterns.mdrules/local-development.mdrules/events-api-quarantine.mdrules/integration-testing.mdrules/typescript-sdk.mdrules/architecture.md
Quick Reference
- Classic (datafiles): Project local files are the source of truth; build for Local, deploy for Cloud. Use
tb infoto check CLI context. CLI commands by default target Local; usetb --cloud <command>for Cloud andtb --branch <branch-name> <command>for a branch. - TypeScript SDK: Use
@tinybirdco/sdkwhen you want type-safe definitions and a typed client; configure withtinybird.json, sync withnpx tinybird dev|build|deploy(seerules/typescript-sdk.md). Can mix SDK and datafiles viainclude. For CI/dry-run: config resolves${TB_TOKEN}/${TB_HOST}at load time — set placeholders so config parses even when not calling the API. - SQL is SELECT-only with Tinybird templating rules and strict parameter handling.
- Tinybird Local APIs: SQL API and ClickHouse proxy allow only SELECT/DESCRIBE; use
SELECT ... FINALfor ReplacingMergeTree dedup and REST for truncate (seerules/sql.md,rules/local-development.md). Events API quarantine behavior: seerules/events-api-quarantine.md. Datasource integration tests: seerules/integration-testing.md.
