Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

phoenix-graphql

Skill by Arize-ai

Writes efficient GraphQL queries against the Phoenix API. It helps with data analysis and with GraphQL for a user's own scripts, tools, and integrations.

  • Score 79
  • 12k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install phoenix-graphql

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Arize-ai/phoenix /tmp/phoenix && mkdir -p ~/.claude/skills && cp -r /tmp/phoenix/src/phoenix/server/agents/prompts/skills/phoenix-graphql ~/.claude/skills/phoenix-graphql

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install phoenix-graphql in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

phoenix-graphql is an agent skill from Arize-ai for writing GraphQL queries against the Phoenix API. In internal mode, the assistant queries Phoenix through the phoenix-gql bash command and uses the skill's schema entrypoints, efficiency rules, and patterns instead of running full introspection. Reference files cover projects, spans and traces, sessions, datasets, experiments, prompts, annotations, and filter expressions.

In user-facing mode, the skill gives the endpoint, bearer token authentication, and curl and Python client examples for the user's own code. It recommends the REST API and Phoenix client packages for stable programmatic access where they cover the need. It is aimed at people who analyze Phoenix data or build scripts and integrations against it.

Written from the project's SKILL.md and checked against it.

What it can do

  • node(id:) lookupFetches any entity by its Relay global id, such as datasets, prompts, experiments, and sessions.
  • By-name and by-id helpersProvides getProjectByName, getProjectSessionById, getSpanByOtelId, getTraceByOtelId, and getDatasetExampleByExternalId.
  • Schema map referencesLoads per-entity reference files on demand so the assistant avoids full schema introspection.
  • Batched aggregatesUses aliases to combine independent project metrics such as latency percentiles and error counts in one query.
  • Filter expressionsDocuments span, trace, and session filter conditions written as Python boolean expressions.
  • Relay paginationExplains first, after, edges, and pageInfo handling for paginated results.
  • Experiment comparisonCovers compareExperiments for comparing a base experiment with other experiments.
  • External API examplesGives the endpoint, bearer token auth, and curl and Python examples for user scripts.

What you need

  • Phoenix base URL set as PHOENIX_ENDPOINT
  • Phoenix API key set as PHOENIX_API_KEY
  • phoenix-gql bash command for internal data analysis

Try asking

  • Show the p50 and p99 latency for my default Phoenix project
  • Write a paginated GraphQL query that lists my Phoenix datasets
  • Find recent ERROR spans in my project and summarize them

Good to know

  • The GraphQL schema is primarily designed for the Phoenix UI and may change between versions.
  • Mutations are allowed only when runtime permissions say so.
  • A GraphQL document may be at most 2 KiB of UTF-8, and variable values do not count toward it.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: src/phoenix/server/agents/prompts/skills/phoenix-graphql/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to phoenix-graphql

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

phoenix-graphql: common questions

Should the assistant run full schema introspection on Phoenix?

No. The skill says not to run full introspection and to read the relevant reference file instead. Single-type introspection is allowed only when a reference does not cover a needed field.

How do I authenticate to the Phoenix GraphQL endpoint?

Send a Phoenix API key as a bearer token in the Authorization header. API keys are created in Phoenix settings.

Is GraphQL the best way to script against Phoenix?

The source recommends the REST API and the arize-phoenix-client Python or @arizeai/phoenix-client TypeScript packages where they cover the need. GraphQL is suggested for everything else.

How do I install phoenix-graphql?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is phoenix-graphql free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is phoenix-graphql safe to use?

It scores 79 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to phoenix-graphql?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

phoenix-graphql Install

Add to stack

Loading.