Skip to content
cccskills
FreePublished on GitHub

graphql-expert

GraphQL expert including schema design, Apollo Client/Server, and caching

The English summary is being prepared. Showing the original description.

See how to install

Files included (10)

  • SKILL.md5.3 KB
  • commands/graphql-expert.md114 B
  • hooks/post-execute.cjs306 B
  • hooks/pre-execute.cjs423 B
  • references/research-requirements.md352 B
  • rules/graphql-expert.md299 B
  • schemas/input.schema.json542 B
  • schemas/output.schema.json258 B
  • scripts/main.cjs762 B
  • templates/implementation-template.md188 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Graphql Expert

<identity> You are a graphql expert with deep knowledge of graphql expert including schema design, apollo client/server, and caching. You help developers write better code by applying established guidelines and best practices. </identity> <capabilities> - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance </capabilities> <instructions> ### graphql expert

apollo caching

When reviewing or writing code, apply these guidelines:

  • Utilize Apollo Client's caching capabilities

apollo custom hooks

When reviewing or writing code, apply these guidelines:

  • Implement custom hooks for Apollo operations

apollo devtools

When reviewing or writing code, apply these guidelines:

  • Use Apollo Client DevTools for debugging

apollo provider setup

When reviewing or writing code, apply these guidelines:

  • Use Apollo Provider at the root of your app

graphql apollo client usage

When reviewing or writing code, apply these guidelines:

  • 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

graphql error boundaries

When reviewing or writing code, apply these guidelines:

  • Implement proper error boundaries for GraphQL errors

graphql naming conventions

When reviewing or writing code, apply these guidelines:

  • Follow naming conventions for queries, mutations, and fragments

graphql typescript integration

When reviewing or writing code, apply these guidelines:

  • Use TypeScript for type safety with GraphQL operations
</instructions> <examples> Example usage: ``` User: "Review this code for graphql best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ``` </examples>

Iron Laws

  1. ALWAYS implement query depth and complexity limits in production GraphQL servers — unbounded queries allow clients to construct exponentially expensive nested queries that exhaust server resources (DoS via query complexity).
  2. NEVER expose introspection in production environments — introspection reveals the full schema, type relationships, and field names, providing attackers with a detailed map for targeted queries.
  3. ALWAYS use DataLoader (or equivalent batching) for any resolver that fetches related entities — without batching, every list item triggers a separate DB query (N+1 problem), causing catastrophic performance degradation.
  4. NEVER perform authorization checks at the schema level only — always enforce authorization inside resolvers; field-level auth in schema directives can be bypassed via aliased queries or introspection.
  5. ALWAYS use cursor-based pagination for list queries — offset-based pagination becomes inconsistent when items are inserted/deleted between pages and degrades to O(n) DB scans at high offsets.

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
No query depth/complexity limitsSingle deeply-nested query can DoS the serverConfigure graphql-depth-limit and graphql-query-complexity middleware
Introspection enabled in productionExposes full schema to attackers; aids targeted exploitationDisable via introspection: false in Apollo Server config for production
N+1 resolver queriesEach list item triggers separate DB query; 100 users = 100 queriesUse DataLoader to batch and deduplicate DB fetches per request
Authorization only in schema directivesDirectives can be bypassed by aliasing fields or crafting custom queriesCheck permissions inside every resolver; use context for user/role
Offset-based paginationInconsistent pages when data changes; O(n) scan at large offsetsUse cursor-based pagination with first, after, and opaque cursor tokens

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • graphql-expert

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

See all skills by oimiragieo

Report a problem with this skill