adding-inbox-sources
БесплатноБез исполняемых скриптовНе проверенAdd a data warehouse table as a Self-driving Inbox signal source (the feature that ships GitHub, Linear, Zendesk, Jira, PagerDuty, Sentry, Snyk, Canny and…
от PostHog★ 41 278 звёзд на GitHubОб этом скилле
Adding a Self-driving Inbox source
The Self-driving Inbox connects a PostHog data warehouse source and syncs one table of actionable records.
After each sync, the signals pipeline reads the new rows, filters them with an LLM actionability gate, and emits signals.
The pipeline is driven by a static registry keyed on (ExternalDataSourceType, table), so each table needs an emitter config.
All work happens in this repository:
| Surface | What changes |
|---|---|
| Backend (required) | SignalSourceProduct value, emitter module, registry entry, contract variant, a test row |
| Frontend (required) | products/signals/frontend/inbox/externalSignalSources.ts entry and the signalSourcesLogic.ts unions |
| Wizard (optional) | PostHog/context-mill self-driving skill, so npx @posthog/wizard self-driving offers the source |
Do not edit the desktop app (products/desktop/) or packages/agent/packages/agent-contracts/src/inbox-types.ts for a new source.
A desktop change in the same PR as a new SignalSourceProduct value fails the desktop/backend coupling check, and the inbox does not need it.
The data warehouse source itself must already exist and be implemented.
Find candidates
- List implemented sources: iterate
SourceRegistry.get_all_sources()and keep a source whentype(src).get_schemas is not _BaseSource.get_schemasandget_source_config.unreleasedSourceis false. Run it on a freshorigin/masterworktree. - Call
get_documented_tables()for each source. It gives table names and incremental fields without credentials.get_canonical_descriptions()gives column names. - Keep tables that hold one actionable record per row: issues, tickets, conversations, incidents, alerts, findings, feedback, reviews, survey responses. Skip CRM tasks and notes, message logs, blog posts and event tickets.
- Check that each table has a human-readable text column, a stable id, and a creation timestamp. Tables with text only in nested JSON need a bespoke emitter. Tables with one row per occurrence need grouping (see below).
- Compare against
_register_all_emitters()inproducts/signals/backend/emission/registry.pyand open PRs (gh pr list --search "inbox source in:title").
Backend checklist (per source)
Code lives in products/signals/backend/. Read emission/CLAUDE.md first.
- Enum: add a
SignalSourceProductvalue and aSIGNAL_SOURCE_PRODUCT_LABELSentry inenums.py. The model's choices are callables, so a new value needs no migration. A new record kind needs aSignalSourceTypevalue, the matchingmodels.pySourceTypechoice, and a prompt pair inemission/_prompts.py. - Emitter: add
emission/<product>_<table>.pyexporting aSignalSourceTableConfig.- Flat tables use
make_flat_emitterfromemission/_common.py(seepagerduty_incidents.py). - Nested JSON: extract in HogQL with
JSONExtractString(col, 'key') AS new_alias, using an alias that differs from the column name, or parse in Python (seejira_issues.py,intercom_conversations.py,emission/_survey.py). - Warehouse columns are snake_case. The import renames API fields (
createdAtbecomescreated_at). Check the source'scanonical_descriptions.pyandsettings.py. partition_fieldis the creation timestamp. Setpartition_field_is_datetime_string=Truefor string columns. The fetcher wraps the column inparseDateTimeBestEffort(toString(...)), so a native timestamp also works. Epoch columns use an expression such asfromUnixTimestamp(intDiv(toInt(col), 1000)).- Tables with one row per occurrence (no grouped issue id) use
fetchers/grouped_warehouse.pywith aGROUP BY, so one issue emits once instead of flooding the inbox. - Use
where_clauseto skip resolved, closed or empty-text rows only when the status values are certain. A filter on a column that a vendor sometimes omits makes the whole query fail. - Do not select PII (emails, names, user objects, IPs). Use ids, urls, statuses and severities.
- Reuse the shared prompt pair for the record kind. Siblings use
max_records=200,first_sync_lookback_days=1anddescription_summarization_threshold_chars=2000.
- Flat tables use
- Register:
register_signal_source(ExternalDataSourceType.X, "<table>", CONFIG)in_register_all_emitters(). The table name must match the schema name the source returns, including casing (Issues,Cases). - Contract: in
contracts.pyadd<Name><Kind>SignalExtra(onestr | Noneper extra field,listfor list fields) and<Name><Kind>SignalInput, then add the Input to theSignalInputunion and theSIGNAL_INPUT_VARIANTStuple. - Tests: add a row to
TIER1_SOURCESin `emission/tests/test_tier1_re
Установить adding-inbox-sources в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл adding-inbox-sources?
Add a data warehouse table as a Self-driving Inbox signal source (the feature that ships GitHub, Linear, Zendesk, Jira, PagerDuty, Sentry, Snyk, Canny and others). A source syncs one warehouse table of actionable records (issues, tickets, conversations, incidents, findings, feedback, reviews) and the signals pipeline turns new rows into signals. Use when asked to "add a new inbox/self-driving source", "make <vendor> a signal source", or to find which warehouse sources could become signal sources. Covers candidate discovery, the backend emitter and registry, the signals frontend source catalog, the optional context-mill wizard entry, and created_via attribution.
Как установить скилл adding-inbox-sources?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adding-inbox-sources запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic