/major-ai-skills:graphql-clientfrom major-ai-skills
Build Apollo Client or urql queries and mutations, manage cache behavior, and handle authentication and errors.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GraphQL clients (Apollo Client, urql) send typed operations to a GraphQL HTTP (or WS) endpoint, normalize/cache results, and integrate with UI frameworks. Agents write precise operations (no accidental over-fetch), configure auth links/exchanges, pick sane cache policies, and handle partial errors (errors + data) explicitly.
UI hooks/components
-> Apollo Client / urql client
-> links/exchanges (auth, retry, HTTP, WS)
-> GraphQL API
Cache (normalized / document) <- results
queries.ts dumping ground.update/cache.modify or urql cache exchanges) or invalidate deliberately.const client = new ApolloClient({
link: authLink.concat(httpLink),
cache: new InMemoryCache(),
defaultOptions: {
watchQuery: { fetchPolicy: "cache-and-network", errorPolicy: "all" },
},
});
const client = createClient({
url: "/graphql",
exchanges: [cacheExchange, authExchange, fetchExchange],
fetchOptions: () => ({
headers: { Authorization: `Bearer ${getToken()}` },
}),
});
| Pitfall | Result | Fix |
|---|---|---|
Mutation returns partial object without id | Cache cannot merge | Return id + changed fields; type policies |
no-cache everywhere | Slow UI, extra load | Use network-only only where required |
Ignoring errors array | Silent failed mutations | Surface GraphQL errors to users/logs |
| Huge fragments reused blindly | Over-fetch | Split fragments per view |
graphql-codegen) for typed documents when the schema is stable.@graphql-introspection-trimmer on public schemas.@shopify-app - Admin GraphQL usage in Shopify apps@postman - ad-hoc GraphQL operation debugging@react - UI integration patternsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.