build-charts-with-typed-params
Builds Amplitude charts using the typed `chart` parameter on query_amplitude_data — events, filters, group-bys, segments, date ranges, and per-kind fields for…
от amplitude★ 50 звёзд на GitHub
Установить build-charts-with-typed-params в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Build Charts With Typed Params
Express the chart as typed, UI-shaped parameters and let the server compile it. Do not hand-build raw definition JSON.
Typed chart first
query_amplitude_data takes exactly one of chart or definition.
chart(preferred) — a small model mirroring the chart builder UI. It is compiled server-side by Langley'sCompileChartinto a validated definition, so a successful compile is structurally correct by construction. Compile errors name the offending field and come back with a fix-oriented hint.definition(fallback) — raw definition JSON. Only for chart types the typed model does not cover (composition,revenueLtv) or advanced params with no typed field.
Field names are snake_case; they are validated server-side by Pydantic.
The one thing that goes wrong
The compiler validates structure, not your taxonomy. An event or property name that doesn't exist won't error — it returns a well-formed chart with empty data, which reads like a real answer of "zero".
Resolve names first with the taxonomy search/read capabilities advertised by the connected catalog. Read event, user, or group properties as appropriate and use the exact name and scope returned. Do not invent a property-reader name from server prose or copy parameters from an older schema.
Two workflows
Create: discover names with the current taxonomy capability → build the typed chart → call
query_amplitude_data → render_amplitude_chart with the returned
chartEditId to show it.
Modify or fork a saved chart: search_amp_entities to find the chart id →
get_amplitude_charts with include: 'typed' → edit the returned object →
call query_amplitude_data with that chart and chartId set to the saved
chart id. Passing chartId links the edit to its parent, and the parent's
params fill any gaps the typed model omits. Reading a real chart back as typed
params is also the fastest way to see how this project spells things.
get_amplitude_charts has five modes on include: link (default; validates
ids, returns URLs, doesn't run the chart), typed, definition (raw), data
(runs it, max 3 ids), and guide (schema for the raw fallback). All except
guide need concrete ids — resolve them via search_amp_entities or get_from_url first.
Building blocks
These are shared across every chart kind.
Condition — one filter (+ Filter by, or a segment condition):
{ "property": "platform", "op": "is", "values": ["iOS"], "scope": "event" }
op: is, is not, contains, does not contain, greater than,
less than, set, is not null. Use contains for prefix/substring matching.
For presence checks prefer set — is not null is rejected by some chart
kinds (data_table segments) even though error hints suggest it; set works
everywhere. scope: event, user, group,
session, or derivedV2 for computed properties — take the scope from the
taxonomy lookup rather than guessing. Group-scoped properties also need
group_type (see below).
Event — { event, where[], group_by[] }. A composite event puts several
events in one slot: add object_type as INLINE_CUSTOM_EVENT (any member
counts) or COMPARISON_EVENT (members compared), plus members[].
Segment — a population, combining property conditions and behaviors:
{
"where": [{ "property": "country", "op": "is", "values": ["United States"], "scope": "user" }],
"performed": [{ "event": "Purchase", "op": ">=", "count": 1,
"time_type": "rolling", "time_value": 30 }]
}
Omit segments entirely for all users. In performed, time_type defaults to
forEachInterval; use rolling with time_value as lookback days.
Date range — required, and either relative or absolute, never both:
{ "relative": "Last 30 Days" }
{ "start": "2026-01-01", "end": "2026-01-31" } // ISO 8601, or epoch seconds
{ "start": "now-90d" } // omit end for "up to now"
Optional timezone is an IANA name; omit for the project default.
The relative range's unit must match the interval: with weekly interval
write "Last 12 Weeks", monthly "Last 6 Months" — "Last 3 Years" with a
weekly interval is rejected. Re-denominate the window in the interval's unit
or change the interval to match.
Interval — a word, not a number: hour, day (default), week, month,
quarter. Sub-daily intervals only allow short windows (hour caps around
8 days).
count_unique_by — the counting entity, "User" by default, or a group
like "org id".
Group-scoped properties
Group properties describe the account, not the user or the event — plan
tier, ARR, industry, on the org id (or similarly named) group type. They are
how almost every B2B question gets asked, and they are the most common thing to
get stuck on.
Discover them explicitly with the connected taxono
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл build-charts-with-typed-params?
Builds Amplitude charts using the typed `chart` parameter on query_amplitude_data — events, filters, group-bys, segments, date ranges, and per-kind fields for segmentation, funnel, retention, sessions, and data tables. Use when creating a chart, modifying or forking a saved one, or when a query returns empty data.
Как установить скилл build-charts-with-typed-params?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл build-charts-with-typed-params запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate 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…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…