Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

auditing-warehouse-source-coverage

БесплатноЗапускает вложенные скриптыНе проверен

Audit already-implemented Data warehouse import sources for endpoints, schemas, and tables the vendor's API offers but we never wired up. Use when asked…

PostHogот PostHog★ 41 278 звёзд на GitHub

Об этом скилле

Auditing warehouse source endpoint coverage

Finds endpoint gaps in sources that already work: the vendor exposes an object users want, and we never added a table for it.

This is the reverse of implementing a new source. Nothing here is about the ~646 scaffolded stubs.

Output goes in products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS.md. Read it first: it records what a previous audit already found, so you extend it rather than rediscover it.

Why this needs a method

There are ~586 implemented sources. You cannot diff all of them against vendor docs in one pass, and a flat list of "source X has N tables" tells you nothing, because N should be 3 for some vendors and 40 for others.

So the audit is: establish our real inventory, rank by who actually uses it, diff the top of that ranking by hand, and sweep the long tail with a batched workflow. Depth over breadth on the sources that matter; breadth via fan-out for the rest. Ten spec-verified sources beat 200 guesses.

Both halves have been run once. COVERAGE_GAPS.md holds the hand-audited high-adoption sources and COVERAGE_GAPS_APPENDIX.md holds the swept remainder, so a re-run is a refresh, not a cold start.

Sweeping the long tail with a workflow

The tail is too big to audit inline but parallelizes perfectly, since sources are independent. What worked: one parallel() fan-out, batches of 8 sources per agent, 69 agents for 547 sources. It cost about 6.8M subagent tokens and 3,000 tool calls, and returned 4,540 findings with zero agent errors, so budget accordingly before starting. Requires explicit user opt-in to run a workflow at that scale.

Design notes that mattered:

  • Pass the payload by file, not inline. Write [{s, l, t, d}] (source type, label, current tables, known docs URLs) to a scratchpad JSON, give each agent an index range, and have it read its own slice. Inlining 136KB of source data into 69 prompts is pure waste.
  • Give agents our table list up front. It comes from get_schemas() and is authoritative, so agents spend their budget on vendor research instead of re-reading our code.
  • Force structured output with a schema, including a verified boolean and the exact doc_url diffed against. That URL is what makes the result auditable afterwards.
  • Make "could not verify" an explicit, blessed answer. Tell agents plainly that a fabricated endpoint wastes an implementer's day and is worse than reporting nothing. On the first run this held perfectly: all 542 gaps/thin/adequate results were verified: true and only the 5 genuine failures came back could-not-verify.

Then validate the output before trusting it:

  • Bulk-check the cited doc_urls with curl -o /dev/null -w "%{http_code}". About 95% should return 200; a low rate means agents were inventing sources.
  • Spot-check a handful of findings end to end: fetch the vendor spec, confirm the claimed path exists, and confirm it is genuinely absent from our source's endpoint map.
  • Expect endpoint names to hold up better than the one-line rationales beside them. Agents occasionally justify a lookup table by a field on a table we do not actually sync. Say so in the write-up rather than presenting both at equal confidence.

Step 1: dump our real endpoint inventory

Do not read settings.py files by hand and do not trust canonical_descriptions.py alone (it can lag the real endpoint map). Use the registry, which reports what get_schemas actually returns.

Run scripts/dump_source_inventory.py from the repo root:

flox activate -- bash -c "PYTHONPATH=. python .agents/skills/auditing-warehouse-source-coverage/scripts/dump_source_inventory.py > /tmp/inventory.json"

It leans on Source.get_documented_tables(), which builds a credential-free placeholder config, so it needs no secrets and hits no vendor API.

Gotchas:

  • Django logs a DEBUG-mode warning to stdout before the JSON. Strip everything before the first {.
  • A handful of sources raise while listing (GitHub needs configured repositories, for instance). The script records the error and moves on; it does not mean the source is broken.
  • SQLSource subclasses (Postgres, MySQL, BigQuery, Snowflake, MongoDB, Supabase, Redshift, MSSQL, ClickHouse, Neon, Convex) and file sources (Google Sheets, Custom) introspect user schemas and legitimately return nothing. Exclude them from the audit entirely; there is no fixed endpoint set to be missing.

Step 2: rank by production adoption, not alphabetically

A gap only matters in proportion to who hits it. Rank by distinct projects with a live connection of that source type, pulling the synced Postgres replicas in the internal dogfood project (US project 2), which cover both regions:

SELECT source_type, count() AS connections, count(DISTINCT team_id) AS teams
FROM (
    SEL
Полный SKILL.md на GitHub

Установить auditing-warehouse-source-coverage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/dump_source_inventory.py

FAQ

Что делает скилл auditing-warehouse-source-coverage?

Audit already-implemented Data warehouse import sources for endpoints, schemas, and tables the vendor's API offers but we never wired up. Use when asked whether a source is missing endpoints, to find new endpoints a vendor has added since a source was built, to refresh COVERAGE_GAPS.md, to prioritize which source to deepen next, or to check coverage before an integration review. Covers dumping our real endpoint inventory credential-free, ranking sources by production adoption, diffing against vendor OpenAPI/GraphQL specs, and recording findings. Not for implementing a source (use implementing-warehouse-sources), adding a vendor API version (warehouse-source-new-version), or writing source docs (documenting-warehouse-sources).

Как установить скилл auditing-warehouse-source-coverage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл auditing-warehouse-source-coverage запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить auditing-warehouse-source-coverage с