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

graphql-schema

Skill by sickn33

Guides an assistant through writing GraphQL queries and mutations with Apollo Client and generated types. It is for developers who use .gql files, codegen and generated hooks in a React project.

  • Score 89
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install graphql-schema

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/graphql-schema ~/.claude/skills/graphql-schema

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

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

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

About

This agent skill gives an AI assistant a set of conventions for GraphQL work. It covers creating queries and mutations in .gql files, running codegen to produce typed hooks, and using those generated hooks instead of raw Apollo hooks. It also includes rules for mutation error handling, loading and disabled states, fetch policies, optimistic updates and reusable fragments.

The skill is written for frontend developers who use Apollo Client and generate TypeScript types from a GraphQL schema. The source states that its npm script names and file layout are upstream project choices rather than Apollo requirements. Users are told to confirm their real schema, codegen configuration and installed client version before applying the patterns.

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

What it can do

  • Query creationWalks through writing a .gql query file, running codegen and using the generated hook.
  • Mutation creationShows a mutation workflow with required onError handling and a cache update.
  • Mutation UI rulesRequires mutation triggers to be disabled and show loading state during the request.
  • Fetch policiesLists cache-first, cache-and-network, network-only and no-cache with usage guidance.
  • Optimistic updatesShows an optimisticResponse pattern and when not to use optimistic updates.
  • FragmentsShows how to define a reusable fragment in a .gql file and spread it into queries.
  • Anti-pattern reviewContrasts inline gql literals and missing error handlers with the recommended patterns.

What you need

  • Apollo Client
  • A GraphQL schema
  • Codegen configuration that produces generated hooks
  • npm scripts for codegen (gql:typegen, sync-types)

Try asking

  • Create a .gql query file and generated hook for listing items with pagination
  • Write a GraphQL mutation with onError handling and a cache update for creating an item
  • Review my Apollo mutations to check that buttons are disabled while loading

Good to know

  • The source sets risk to critical in its frontmatter.
  • Fragment examples reference UI and helper code that is not bundled, so they may not compile as written.
  • Examples are not a substitute for environment-specific tests, security review or user approval for destructive actions.
  • Use only when the task matches the upstream source and local project context.

Security check

A

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

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

Inside the skill

  • SKILL.md7 KB

Alternatives to graphql-schema

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

graphql-schema: common questions

Does this skill require a specific GraphQL server?

The source does not name a specific server. It says to confirm the real schema, codegen configuration and installed Apollo Client version before use.

Are the npm script names required by Apollo?

No. The source says the .gql and generated-hook conventions and npm scripts are upstream project choices, not Apollo requirements.

How should mutations handle errors according to this skill?

Every mutation should include an onError handler, and the trigger should be disabled and show loading state while the mutation runs.

How do I install graphql-schema?

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

Is graphql-schema free?

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

Is graphql-schema safe to use?

It scores 89 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 graphql-schema?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

graphql-schema Install

Add to stack

Loading.