phoenix-graphql
БесплатноБез исполняемых скриптовНе проверенWrite efficient GraphQL queries against the Phoenix API. Load this skill in two cases: (1) before composing any non-trivial GraphQL query yourself for data…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
Two modes
- Internal data analysis — you are querying Phoenix yourself to answer a question. Apply the schema facts, efficiency rules, and patterns below directly.
- Helping the user integrate — the user wants GraphQL queries for their own code or tools. Use the same schema facts and patterns, plus the "External API usage" section for endpoint, auth, and client examples. Queries you hand to the user should use variables and include pagination handling.
Entrypoints
Top-level Query entrypoints get you to a starting entity; per-entity schema details live in the reference files listed under "Schema map" below.
node(id: ID!)— global lookup for any entity by its Relay global id; resolve with an inline fragment, e.g.node(id: $id) { ... on Dataset { name } }. This is the primary way to fetch datasets, prompts, experiments, sessions, and annotations, which have no by-name/by-id helpers.projects(...),datasets(...),prompts(...),evaluators(...)→ Relay connections, each withfilter/sortinputs to find an entity when you only have a name.- By-X helpers (the only ones that exist):
getProjectByName(name: String!),getProjectSessionById(sessionId: String!),getDatasetExampleByExternalId(datasetId: GlobalID!, externalId: String!),getSpanByOtelId(spanId: String!),getTraceByOtelId(traceId: String!). There is nogetDatasetByName,getPromptByName, orgetExperimentById— usenode(id:)or a connectionfilterinstead. viewer→ the authenticatedUser;projectCount,datasetCount,promptCount— cheap counts.compareExperiments(baseExperimentId: GlobalID!, compareExperimentIds: [GlobalID!]!, first, after, filterCondition)→ experiment comparison.
Schema map
Per-entity field references and examples are split into reference files. Load only the one(s) you need with load_skill_reference, after loading this skill:
- Projects, spans, and traces: Project aggregates and
spans; Span and Trace fields. The starting point for most trace analysis. - Sessions: ProjectSession multi-turn session metrics, token/cost, and session traces.
- Datasets: Dataset and DatasetExample examples, versions, splits, and labels.
- Experiments: Experiment and ExperimentRun runs, aggregate metrics, and comparison.
- Prompts: Prompt and PromptVersion versions, templates, and tags.
- Annotations: Span, trace, session, and experiment-run annotation fields; how to read them; and the mutations that write notes, labels, and annotation configs.
- Filter expressions: The span, trace, and session filter languages (
filterCondition,traceFilterCondition,sessionFilterCondition), including vocabulary, operators, root-span scoping, and compiled examples. Load it before writing any condition beyond the one-liners below.
Conventions
These apply to every entity:
- Pagination is Relay-style:
first/afterargs; responses haveedges { node { ... } }andpageInfo { hasNextPage endCursor }. Cursors are opaque strings. Some connections (e.g.Project.spans,Experiment.runs,ProjectSession.traces) are forward-only. - IDs: the
idfield on any node is a Relay global ID (base64 ofTypeName:rowId) — use it withnode(id:). OpenTelemetry hex IDs come fromSpan.spanIdandTrace.traceId— use those for OTel lookups. Note aSpanhas notraceIdfield; read it via the nestedtrace { traceId }. Never mix global IDs with OTel IDs. TimeRangeinput:{ start: DateTime, end: DateTime }— ISO 8601 strings;endis exclusive; both optional.SpanSortinput:{ col: SpanColumn, dir: SortDir }, e.g.{ col: startTime, dir: desc }. UsefulSpanColumnvalues:startTime,latencyMs,tokenCountTotal,cumulativeTokenCountTotal,tokenCostTotal.- Filter conditions (
filterCondition,traceFilterCondition,sessionFilterCondition) are Python boolean expressions, one language each for spans, traces, and sessions, e.g.span_kind == 'LLM',status_code == 'ERROR','timeout' in output.value,annotations['Hallucination'].label == 'hallucinated'. There is notracesconnection: list traces with the clauseparent_span is None(root spans, orphans included), orparent_id is Nonefor spans with no parent id. Unknown span filter names compile as attribute paths and match nothing, so readreferences/filter-expressions.mdbefore writing a condition.
Efficiency rules
- Do not run full schema introspection. Read the relevant
Schema mapresource instead; it covers the fields and arguments for that entity. Only when a resource does not cover a field you need, introspect a single type:{ __type(name: "Project") { fields { name args { name type { name kind } } } } }. - **Batch independent lookups with
Установить phoenix-graphql в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл phoenix-graphql?
Write efficient GraphQL queries against the Phoenix API. Load this skill in two cases: (1) before composing any non-trivial GraphQL query yourself for data analysis (via the `phoenix-gql` bash command) — it contains schema entrypoints and patterns that eliminate the need for introspection; (2) when the user asks for help writing GraphQL queries for their own scripts, tools, or integrations against Phoenix — it covers the endpoint, authentication, and client examples.
Как установить скилл phoenix-graphql?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phoenix-graphql запускает скрипты?
Нет, скилл состоит только из инструкций (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