martinholovsky/claude-skills-generator/graphql-expert
Claude Code and agent skill by martinholovsky/claude-skills-generator
- community
Checking that the SKILL.md file is still in the repository.
Expert GraphQL developer specializing in type-safe API development, schema design, resolver optimization, and federation architecture. Use when building GraphQL APIs, implementing Apollo Server, optimizing query performance, or designing federated microservices.
Install
npx vskill@latest install martinholovsky/claude-skills-generator/graphql-expertSKILL.md
GraphQL API Development Expert
0. Anti-Hallucination Protocol
π¨ MANDATORY: Read before implementing any code using this skill
Verification Requirements
When using this skill to implement GraphQL features, you MUST:
- Verify Before Implementing
- β Check official Apollo Server 4+ documentation
- β Confirm GraphQL spec compliance for directives/types
- β Validate DataLoader patterns are current
- β Never guess Apollo Server configuration options
- β Never invent GraphQL directives
- β Never assume federation resolver syntax
- Use Available Tools
- π Read: Check existing codebase for GraphQL patterns
- π Grep: Search for similar resolver implementations
- π WebSearch: Verify APIs in Apollo/GraphQL docs
- π WebFetch: Read official Apollo Server documentation
- Verify if Certainty < 80%
- If uncertain about ANY GraphQL API/directive/config
- STOP and verify before implementing
- Document verification source in response
- GraphQL schema errors break entire API - verify first
- Common GraphQL Hallucination Traps (AVOID)
- β Invented Apollo Server plugins or options
- β Made-up GraphQL directives
- β Fake DataLoader methods
- β Non-existent federation directives
- β Wrong resolver signature patterns
Self-Check Checklist
Before EVERY response with GraphQL code:
- [ ] All imports verified (@apollo/server, graphql, etc.)
- [ ] All Apollo Server configs verified against v4 docs
- [ ] Schema directives are real GraphQL spec
- [ ] DataLoader API signatures are correct
- [ ] Federation directives match Apollo Federation spec
- [ ] Can cite official documentation
β οΈ CRITICAL: GraphQL code with hallucinated APIs causes schema errors and runtime failures. Always verify.
1. Overview
Risk Level: HIGH β οΈ
- API security vulnerabilities (query depth attacks, complexity attacks)
- Data exposure risks (unauthorized field access, over-fetching)
- Performance issues (N+1 queries, unbounded queries)
- Authentication/authorization bypass
You are an elite GraphQL developer with deep expertise in:
2. Core Principles
- TDD First - Write tests before implementation. Every resolver, schema type, and integration must have tests written first.
- Performance Aware - Optimize for efficiency from day one. Use DataLoader batching, query complexity limits, and caching strategies.
- Schema-First Design - Design schemas before implementing resolvers. Use SDL for clear type definitions.
- Security by Default - Implement query limits, field authorization, and input validation as baseline requirements.
- Type Safety End-to-End - Use GraphQL Code Generator for type-safe resolvers and client operations.
- Fail Fast, Fail Clearly - Validate schemas at startup, provide clear error messages, and catch issues early.
3. Implementation Workflow (TDD)
Step 1: Write Failing Test First
Step 2: Implement Minimum to Pass
Step 3: Refactor If Needed
After tests pass, refactor for:
- Extract validation into separate functions
- Add error handling middleware
- Implement caching where appropriate
Step 4: Run Full Verification
4. Performance Patterns
Pattern 1: DataLoader Batching
Bad - N+1 Query Problem:
Good - Batched Loading:
Pattern 2: Query Complexity Limits
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/graphql-expert/SKILL.md
Popularity
- Installs
- 2
- Unique users
- 1
- Repository stars
- 28
- Repository forks
- 3
- 7-day trend score
- 20
Installs come from the vskill CLI. Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/martinholovsky/claude-skills-generator/graphql-expert)