maintaining-dbt-documentation
БесплатноЗапускает вложенные скриптыНе проверенAudits dbt documentation coverage and drafts missing model/column descriptions in the project's own house style, one folder at a time, for human review. Use…
от dbt-labs★ 776 звёзд на GitHubОб этом скилле
Maintaining dbt Documentation
Keep a dbt project's model and column documentation complete and consistent as it grows. This skill (1) audits which models lack YAML documentation, (2) drafts the missing descriptions in the conventions the project already uses — working one folder at a time — and (3) leaves every change for the user to review. It never commits or pushes.
Two ways it's used:
- Backfill — document a folder of undocumented models on a project that has drifted below full coverage.
- Keep in sync — after models are added or their SQL changes (common when many contributors are landing models), run the audit to find the gap, document just those, and re-verify.
This is the systematic, coverage-driven companion to using-dbt-for-analytics-engineering
(which covers one-off model building and its references/writing-documentation.md
guide). Use that skill for the content principles of a good description; use this
one to find the gaps and backfill them at scale in a consistent style.
Match the project's conventions — do not impose your own
Before drafting anything, read several already-documented models and mirror what you find. dbt projects vary widely; infer and follow the local house style rather than a generic template. Determine:
- YAML layout — one shared schema file per folder (named after the folder), one
.ymlper model, or a single project-wide file? Add new entries where existing ones live. Only create a new file (version: 2+models:) if the folder has none. - Description mechanism — inline
description:strings, or{% docs %}blocks referenced with{{ doc('...') }}? Follow whichever the project uses. - Description shape — do descriptions lead with grain ("One row per …")? State
the primary key, key foreign keys, and upstream sources? Single-line for simple
staging models vs. folded blocks (
description: >) for models with caveats? Copy the observed pattern. - Column coverage — which columns get documented (all, vs. keys + derived only)? Match the neighbours' depth.
- Test placement — inline
tests:/data_tests:, and on which columns?
If the project has no documented models yet (greenfield), fall back to dbt best
practice: grain-first model descriptions ("One row per …"), then PK, key FKs, and
upstream ref()/source()s; document keys and any non-obvious/derived columns.
Workflow
Audit. Generate the manifest, then run the coverage script against it. The audit reads
target/manifest.json, so dbt has already resolved everydescription— the result is correct regardless of YAML layout or{% docs %}blocks. Keep your working directory at the dbt project root (sodbt parsewritestarget/manifest.jsonthere and the script finds it), and invoke the script by its full path in the skill directory:dbt parse # (re)generate target/manifest.json — no warehouse needed python3 <SKILL_BASE_DIR>/audit_coverage.py # whole-project coverage summary (models + columns) python3 <SKILL_BASE_DIR>/audit_coverage.py <folder> # one folder: undocumented models + models missing column docsReplace
<SKILL_BASE_DIR>with this skill's actual base directory (the path provided when the skill is loaded);audit_coverage.pylives there, not in the project. The script readstarget/manifest.jsonrelative to your current directory, so stay at the project root. Pass--manifest <path>if the manifest is elsewhere. Prefer MCP/CLI conventions from therunning-dbt-commandsskill for invoking dbt (pick the right executable).dbt parsealone regeneratestarget/manifest.json, which is everything this audit reads — no warehouse connection needed. Column coverage therefore counts only columns declared in YAML: columns that exist in the warehouse but aren't declared yet are out of scope here (the audit reads the manifest, not the catalog). If you also want to surface those, rundbt docs generate(not--empty-catalog, which skips the warehouse and yields an empty catalog) and inspecttarget/catalog.jsonseparately. If the user named a folder, go straight to it; otherwise show the summary and confirm which folder to start with (biggest gap or product area first). If the audit shows 0 gaps, report full coverage and stop.Understand each undocumented model. For every undocumented model in the folder, before writing a word:
- Read the SQL (or Python). Identify the grain (GROUP BY / DISTINCT / window partitions / join fan-out), the primary key, and the columns actually selected.
- Resolve every
ref()andsource(). Read the upstream model's existing YAML description so column meanings and wording stay consistent; reuse the upstream wording for a passed-through column. - Check
dbt_project.ymlvars and `m
Установить maintaining-dbt-documentation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(dbt *)Bash(python3 *)Bash(git *)ReadWriteEditGlobGrepВложенные файлы
FAQ
Что делает скилл maintaining-dbt-documentation?
Audits dbt documentation coverage and drafts missing model/column descriptions in the project's own house style, one folder at a time, for human review. Use when documenting undocumented models, backfilling missing YAML descriptions, auditing doc coverage, or keeping schema YAML in sync with model SQL — especially on multi-contributor projects where new models routinely land undocumented.
Как установить скилл maintaining-dbt-documentation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл maintaining-dbt-documentation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic