apollo-graphql
Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching, and caching
Skill by Mr-Wolv
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mr-wolv-apollo-graphql
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
apollo-graphql- Description
- Guidelines for developing GraphQL APIs and React applications using Apollo Client for state management, data fetching, and caching
- License
- MIT
- Instructions
- 591 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 591 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Apollo GraphQL Best Practices
You are an expert in Apollo Client, GraphQL, TypeScript, and React development. Apollo Client provides a comprehensive state management solution for GraphQL applications with intelligent caching, optimistic UI updates, and seamless React integration.
## Core Principles
- Use Apollo Client for state management and data fetching
- Implement query components for data fetching
- Utilize mutations for data modifications
- Use fragments for reusable query parts
- Implement proper error handling and loading states
- Leverage TypeScript for type safety with GraphQL operations
## Project Structure
```
src/
components/
graphql/
queries/
users.ts
posts.ts
mutations/
users.ts
posts.ts
fragments/
user.ts
post.ts
hooks/
useUser.ts
usePosts.ts
pages/
utils/
apollo-client.ts
types/
generated/ # Generated TypeScript types
```
## Setup and Configuration
### Apollo Client Setup
```typescript
// utils/apollo-client.ts
import { ApolloClient, InMemoryCache, HttpLink, from } from '@apollo/client';
import { onError } from '@apollo/client/link/error';
const httpLink = new HttpLink({
uri: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
});
const errorLink = onError(({ graphQLErrors, networkError }) => {
if (graphQLErrors) {
graphQLErrors.forEach(({ message, locations, path }) => {
console.error(`[GraphQL error]: Message: ${message}, Path: ${path}`);
});
}
if (networkError) {
console.error(`[Network error]: ${networkError}`);
}
});
export const apolloClient = new ApolloClient({
link: from([errorLink, httpLink]),
cache: new InMemoryCache({
typePolicies: {
Query: {
fields: {
users: {
merge(existing = [], incoming) {
return [...existing, ...incoming];
},
},
},
},
},
}),
defaultOptions: {
watchQuery: {
fetchPolicy: 'cache-and-network',
errorPolicy: 'all',
},
query: {
fetchPolicy: 'cache-first',
errorPolicy: 'all',
},
mutate: {
errorPolicy: 'all',
},
},
});
```
### Apollo Provider Setup
```typescript
// pages/_app.tsx or app/providers.tsx
import { ApolloProvider } from '@apollo/client';
import { apolloClient } from '@/utils/apollo-client';
function App({ children }: { children: React.ReactNode }) {
return (
<ApolloProvider client={apolloClient}>
{children}
</ApolloProvider>
);
}
```
## Schema Design Best Practices
### Naming Conventions
Use descriptive naming for types, fields, and arguments:
```graphql
# Good
type User {
id: ID!From Mr-Wolv/Skill_Playground_Bakr101_2026, MIT.
More from Mr-Wolv/Skill_Playground_Bakr101_2026
- 0.479score
architecture-patterns
Mr-Wolv
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: CClaude Code +9 - 0.476score
api-contract-testing
Mr-Wolv
Verify API contracts between services to ensure compatibility and prevent breaking changes.
SkillCFreshness: CClaude Code +9 - 0.474score
assumption-and-bias-check
Mr-Wolv
Surface hidden assumptions, cognitive biases, blind spots, and overconfidence before a decision or output stands.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-decision-records
Mr-Wolv
Write and maintain formal Architecture Decision Records (ADRs) for significant technical decisions.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-review
Mr-Wolv
Review an existing or proposed architecture against requirements, boundaries, risks, operability, and tradeoffs.
SkillCFreshness: CClaude Code +9 - 0.472score
skill-playground
Mr-Wolv
Curated collection of 241 skills — testing, architecture, DevOps, documentation, code quality, and engineering mindset — mirrored with global skill store
SkillCFreshness: CClaude Code +9 - 0.471score
adjacent-disciplines
Mr-Wolv
Systems engineering, HCI, cognitive psychology, game theory, control theory, organizational behavior, technical leadership
SkillCFreshness: CClaude Code +9 - 0.469score
api-tester
Mr-Wolv
Quick API endpoint testing using curl with structured output
SkillCFreshness: CClaude Code +9 - 0.469score
analytical-thinking-patterns
Mr-Wolv
First-principles reasoning, systems thinking, tradeoff analysis, decision frameworks
SkillCFreshness: CClaude Code +9 - 0.469score
api-documenter
Mr-Wolv
Generate API documentation from code, specifications, and endpoint definitions
SkillCFreshness: CClaude Code +9 - 0.469score
autonomous-learner
Mr-Wolv
Self-directed knowledge acquisition guided by analytical frameworks and learning objectives
SkillCFreshness: CClaude Code +9 - 0.463score
aws-cloud-architecture
Mr-Wolv
Comprehensive guide to AWS cloud architecture covering compute, storage, databases, networking, security, serverless, and cost optimization with…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Mr-Wolv
- 0.479score
architecture-patterns
Mr-Wolv
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: CClaude Code +9 - 0.476score
api-contract-testing
Mr-Wolv
Verify API contracts between services to ensure compatibility and prevent breaking changes.
SkillCFreshness: CClaude Code +9 - 0.474score
assumption-and-bias-check
Mr-Wolv
Surface hidden assumptions, cognitive biases, blind spots, and overconfidence before a decision or output stands.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-decision-records
Mr-Wolv
Write and maintain formal Architecture Decision Records (ADRs) for significant technical decisions.
SkillCFreshness: CClaude Code +9 - 0.474score
architecture-review
Mr-Wolv
Review an existing or proposed architecture against requirements, boundaries, risks, operability, and tradeoffs.
SkillCFreshness: CClaude Code +9 - 0.472score
skill-playground
Mr-Wolv
Curated collection of 241 skills — testing, architecture, DevOps, documentation, code quality, and engineering mindset — mirrored with global skill store
SkillCFreshness: CClaude Code +9
Cite this page
apollo-graphql skill. Agent Mart. https://agentmart.dev/skills/mr-wolv-apollo-graphql (last updated 2026-10-24)