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

data-client-graphql-setup

Skill by reactive

Sets up the @data-client/graphql package for projects that call GraphQL APIs. It configures a GQLEndpoint with authentication and custom options, and is meant for developers using Data Client.

  • Score 81
  • 2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install data-client-graphql-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/reactive/data-client /tmp/data-client && mkdir -p ~/.claude/skills && cp -r /tmp/data-client/.agents/skills/data-client-graphql-setup ~/.claude/skills/data-client-graphql-setup

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

Step-by-step: install data-client-graphql-setup in Claude Code

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

About

This skill configures the @data-client/graphql package in a project that calls GraphQL APIs. It creates a GQLEndpoint for a URL such as /graphql and shows how to add request headers for authentication, including async token refresh. It also includes a GQLEndpoint subclass that checks responses for UNAUTHENTICATED errors.

The guide asks the assistant to scan the codebase first for the endpoint URL, auth headers, custom headers and error handling patterns. It then includes query and mutation examples that use Data Client schemas to store results in the shared cache, plus a component example with useSuspense and useController. It is meant to run after data-client-setup detects GraphQL patterns, for developers using Data Client with a GraphQL API.

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

What it can do

  • GQLEndpoint setupCreates a GQLEndpoint for a GraphQL URL such as /graphql.
  • Authentication headersAdds Authorization headers through a getHeaders option, including async token refresh.
  • Custom error handlingSubclasses GQLEndpoint to detect UNAUTHENTICATED errors in responses.
  • Query and mutation examplesShows gql.query and gql.mutation endpoints that normalize results with schemas.
  • Collection examplesShows collection schemas for listing and creating records.
  • Component usageShows reading data with useSuspense and updating it with useController.

What you need

  • npm, yarn or pnpm
  • A GraphQL API endpoint
  • Data Client provider already set up
  • Entity classes from the data-client-schema skill

Try asking

  • Set up @data-client/graphql with a bearer token from localStorage
  • Add async token refresh to my GQLEndpoint
  • Create a GraphQL query and mutation for my User entity

Good to know

  • Set to disable-model-invocation, so it runs only when invoked directly
  • The examples assume existing Entity classes and a Data Client provider

Security check

A

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

Checked automatically: .agents/skills/data-client-graphql-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • references.json104 B
  • references/auth.md1 KB

Alternatives to data-client-graphql-setup

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

data-client-graphql-setup: common questions

When should I use this skill?

The source says to use it once the Data Client provider is set up and the project calls GraphQL APIs, ideally after data-client-setup detects GraphQL patterns.

How does authentication work with this setup?

The GQLEndpoint takes a getHeaders option that can return an Authorization header. The source shows both a synchronous token read and an async version for token refresh.

Does it handle GraphQL errors?

The source shows a custom GQLEndpoint subclass that checks response errors for the UNAUTHENTICATED code and dispatches an auth:expired event.

How do I install data-client-graphql-setup?

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

Is data-client-graphql-setup free?

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

Is data-client-graphql-setup safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, 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 data-client-graphql-setup?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

data-client-graphql-setup Install

Add to stack

Loading.