graphql-implementation

aj-geddes/useful-ai-prompts · updated Apr 8, 2026

$npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill graphql-implementation
0 commentsdiscussion
summary

Implement GraphQL APIs with proper schema design, resolver patterns, error handling, and performance optimization for flexible client-server communication.

skill.md

GraphQL Implementation

Table of Contents

Overview

Implement GraphQL APIs with proper schema design, resolver patterns, error handling, and performance optimization for flexible client-server communication.

When to Use

  • Designing new GraphQL APIs
  • Creating GraphQL schemas and types
  • Implementing resolvers and mutations
  • Adding subscriptions for real-time data
  • Migrating from REST to GraphQL
  • Optimizing GraphQL performance

Quick Start

Minimal working example:

type User {
  id: ID!
  email: String!
  firstName: String!
  lastName: String!
  role: UserRole!
  posts: [Post!]!
  createdAt: DateTime!
  updatedAt: DateTime!
}

enum UserRole {
  ADMIN
  USER
  MODERATOR
}

type Post {
  id: ID!
  title: String!
  content: String!
  author: User!
  comments: [Comment!]!
  publishedAt: DateTime
  createdAt: DateTime!
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Guide Contents
GraphQL Schema Design GraphQL Schema Design
Node.js Apollo Server Implementation Node.js Apollo Server Implementation
Python GraphQL Implementation (Graphene) Python GraphQL Implementation (Graphene)
Query Examples Query Examples
Error Handling Error Handling

Best Practices

✅ DO

  • Use clear, descriptive field names
  • Design schemas around client needs
  • Implement proper error handling
  • Use input types for mutations
  • Add subscriptions for real-time data
  • Cache resolvers efficiently
  • Validate input data
  • Use federation for scalability

❌ DON'T

  • Over-nest queries deeply
  • Expose internal database IDs
  • Return sensitive data without authorization
  • Create overly complex schemas
  • Forget to handle null values
  • Ignore N+1 query problems
  • Skip error messages

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.752 reviews
  • Isabella Gonzalez· Dec 16, 2024

    graphql-implementation is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Dev Li· Dec 8, 2024

    Solid pick for teams standardizing on skills: graphql-implementation is focused, and the summary matches what you get after install.

  • Rahul Santra· Nov 27, 2024

    Registry listing for graphql-implementation matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Ava Reddy· Nov 27, 2024

    We added graphql-implementation from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Amina Gupta· Nov 23, 2024

    graphql-implementation fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Isabella Khan· Nov 7, 2024

    Useful defaults in graphql-implementation — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Tariq Iyer· Oct 26, 2024

    I recommend graphql-implementation for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Pratham Ware· Oct 18, 2024

    graphql-implementation reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ava Ghosh· Oct 18, 2024

    graphql-implementation fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Amina Jackson· Oct 14, 2024

    We added graphql-implementation from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

showing 1-10 of 52

1 / 6