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.
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-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install data-client-graphql-setup in Claude Code
git clone --depth 1 https://github.com/reactive/data-client /tmp/data-client && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/data-client/.agents/skills/data-client-graphql-setup ~/.gemini/antigravity-cli/skills/data-client-graphql-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install data-client-graphql-setup in Antigravity CLI
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
ANo 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 →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
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.
