fetching-dbt-docs by dbt-labs/dbt-agent-skills
npx skills add https://github.com/dbt-labs/dbt-agent-skills --skill fetching-dbt-docsdbt 文档具有对 LLM 友好的 URL。始终在 URL 后添加 .md 以获取干净的 Markdown 格式,而非 HTML。
| 浏览器 URL | 对 LLM 友好的 URL |
|---|---|
https://docs.getdbt.com/docs/dbt-cloud-apis/service-tokens | https://docs.getdbt.com/docs/dbt-cloud-apis/service-tokens.md |
https://docs.getdbt.com/reference/commands/run | https://docs.getdbt.com/reference/commands/run.md |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 资源 | URL | 使用场景 |
|---|---|---|
| 单个页面 | 在任何文档 URL 后添加 .md | 获取特定文档 |
| 页面索引 | https://docs.getdbt.com/llms.txt | 查找所有可用页面 |
| 完整文档 | https://docs.getdbt.com/llms-full.txt | 在所有文档中搜索(先按关键词过滤) |
WebFetch: https://docs.getdbt.com/docs/path/to/page.md
始终在 URL 路径后添加 .md。
使用 llms.txt 搜索页面标题和描述:
WebFetch: https://docs.getdbt.com/llms.txt
Prompt: "查找与 [主题] 相关的页面。返回 URL。"
这种方法速度快,通常就足够了。
如果索引中没有结果,使用脚本搜索完整的页面内容:
搜索脚本位于相对于此技能基础目录的 scripts/search-dbt-docs.sh。
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh <关键词>
# 示例
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh semantic_model
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh "incremental strategy"
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh metric dimension # OR 搜索
# 强制重新下载(绕过 24 小时缓存)
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh metric --fresh
重要: 将 <SKILL_BASE_DIR> 替换为此技能加载时提供的实际基础目录路径。
然后使用 .md URL 获取单个页面。
| 错误 | 修复方法 |
|---|---|
获取没有 .md 的 HTML URL | 始终在文档 URL 后添加 .md |
| 先搜索 llms-full.txt | 先搜索 llms.txt 索引,仅在无结果时使用完整文档 |
| 完全加载 llms-full.txt | 使用搜索脚本进行过滤,然后获取单个页面 |
| 猜测页面路径 | 使用 llms.txt 索引查找正确的路径 |
每周安装次数
81
代码仓库
GitHub 星标数
246
首次出现
2026年1月29日
安全审计
安装于
github-copilot58
codex56
opencode56
gemini-cli55
kimi-cli52
amp52
dbt docs have LLM-friendly URLs. Always append .md to get clean markdown instead of HTML.
| Browser URL | LLM-friendly URL |
|---|---|
https://docs.getdbt.com/docs/dbt-cloud-apis/service-tokens | https://docs.getdbt.com/docs/dbt-cloud-apis/service-tokens.md |
https://docs.getdbt.com/reference/commands/run | https://docs.getdbt.com/reference/commands/run.md |
| Resource | URL | Use Case |
|---|---|---|
| Single page | Add .md to any docs URL | Fetch specific documentation |
| Page index | https://docs.getdbt.com/llms.txt | Find all available pages |
| Full docs | https://docs.getdbt.com/llms-full.txt | Search across all docs (filter by keyword first) |
WebFetch: https://docs.getdbt.com/docs/path/to/page.md
Always add .md to the URL path.
Use llms.txt to search page titles and descriptions:
WebFetch: https://docs.getdbt.com/llms.txt
Prompt: "Find pages related to [topic]. Return the URLs."
This is fast and usually sufficient.
If the index doesn't have results, use the script to search full page content:
The search script is located at scripts/search-dbt-docs.sh relative to this skill's base directory.
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh <keyword>
# Examples
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh semantic_model
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh "incremental strategy"
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh metric dimension # OR search
# Force fresh download (bypass 24h cache)
<SKILL_BASE_DIR>/scripts/search-dbt-docs.sh metric --fresh
Important: Replace <SKILL_BASE_DIR> with the actual base directory path provided when this skill is loaded.
Then fetch individual pages with .md URLs.
| Mistake | Fix |
|---|---|
Fetching HTML URL without .md | Always append .md to docs URLs |
| Searching llms-full.txt first | Search llms.txt index first, only use full docs if no results |
| Loading llms-full.txt entirely | Use the search script to filter, then fetch individual pages |
| Guessing page paths | Use llms.txt index to find correct paths |
Weekly Installs
81
Repository
GitHub Stars
246
First Seen
Jan 29, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot58
codex56
opencode56
gemini-cli55
kimi-cli52
amp52
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
65,000 周安装
供应链风险审计员 - 开源项目依赖项安全审计工具 | 识别高风险依赖项
1,100 周安装
企业法律风险评估框架:基于严重性与可能性的风险矩阵与分类指南
1,100 周安装
Valyu API 最佳实践指南:搜索、内容提取、AI 答案与深度研究
1,300 周安装
ralphinho-rfc-pipeline:AI驱动的复杂功能分解与多单元编排工作流工具
1,300 周安装
NanoClaw REPL - AI对话持久化工具,支持会话分支、模型切换与跨会话搜索
1,300 周安装
竞争情报分析工具:生成交互式HTML战卡,深度对比竞争对手功能、定价与定位
1,200 周安装