tinybird
它能做什么
这个技能为 AI 智能体提供编写 Tinybird 项目文件和 SQL 的规则。适合在 Tinybird 中构建分析数据管道的开发者。
适用场景
- ✓当你创建或修改 Tinybird 数据源、管道或端点文件的时候。
- ✓当你为 Tinybird 编写或加快 SQL 查询的时候。
- ✓当你在 Tinybird 中设置物化视图或去除重复数据的时候。
技能链接
https://github.com/TryGhost/Ghost/blob/main/.agents/skills/tinybird/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我编写一个返回每日注册数的 Tinybird 端点,并保持查询速度快。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体遵循该技能中的文件格式规则和 SQL 限制,然后加入有助于提升速度和数据处理的模式。它将本地项目文件视为事实来源。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Tinybird Best Practices
Guidance for Tinybird file formats, SQL rules, optimization patterns, and data modeling. Use this skill when creating or editing Tinybird datafiles.
When to Apply
- Creating or updating Tinybird resources (.datasource, .pipe, .connection)
- Writing or optimizing SQL queries
- Designing endpoint schemas and data models
- Organizing project structure and data layers
- Working with materialized views or copy pipes
- Implementing deduplication patterns
- Reviewing or refactoring Tinybird project files
Rule Files
rules/project-files.mdrules/build-deploy.mdrules/datasource-files.mdrules/pipe-files.mdrules/endpoint-files.mdrules/materialized-files.mdrules/materialized-join-prefilter.mdrules/sink-files.mdrules/copy-files.mdrules/connection-files.mdrules/sql.mdrules/endpoint-optimization.mdrules/tests.mdrules/deduplication-patterns.md
Quick Reference
- Project local files are the source of truth.
- Build target comes from
tinybird.config.jsondev_mode(localorbranch). tb deploytargets Tinybird Cloud production.- Commands like
tb sqlandtb logsdefault to local unless--cloudor--branch=<branch-name>is set. - SQL is SELECT-only with Tinybird templating rules and strict parameter handling.
- Use MergeTree by default; AggregatingMergeTree for materialized targets.
- Filter early, select only needed columns, push complex work later in the pipeline.
常见问题
Tinybird SQL 可以修改数据吗?
该技能说明,Tinybird SQL 仅支持 SELECT,因此查询只会读取数据。
它建议使用哪种存储引擎?
该技能说明默认使用 MergeTree,并说明何时 AggregatingMergeTree 更合适。
它涵盖测试吗?
涵盖。该技能包含 Tinybird 测试的规则。
详情
作者的原始描述
Tinybird file formats, SQL rules, optimization patterns, and best practices for datasources, pipes, endpoints, and materialized views.
repo: TryGhost/Ghost
热度
- GitHub 星标
- 56k
- 排名
- #3279
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
tinybird-cli-guidelines
56k指导你的智能体使用 Tinybird CLI 命令进行本地开发、分支工作、构建、部署和数据管理。
build-ghost-app
56k帮你的智能体使用 Vite 和 React 构建 Ghost 应用,将其连接到 Ghost Admin,并设置其清单和安装链接。
build-ghost-app-ui
56k帮你的智能体使用 Ghost 的设计系统 Shade 构建 Ghost 应用的界面,并将它指向正确的文档和技能。
shade-imports
56k帮你的智能体从正确的路径导入 Shade 组件,并正确设置其样式表和 ShadeApp。