スキル一覧に戻る
Rehan-Ul-Haq

graphql-api-builder

by Rehan-Ul-Haq

9🍴 2📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: graphql-api-builder description: | Builds production-grade GraphQL APIs with proper schema design, resolvers, and security. This skill should be used when users want to create GraphQL APIs, design schemas, implement resolvers, or add GraphQL to existing applications.

GraphQL API Builder

Build production-grade GraphQL APIs adapted to your stack and requirements.

What This Skill Does

  • Designs GraphQL schemas following best practices
  • Implements resolvers with proper data loading
  • Adds authentication and authorization
  • Handles pagination, errors, and edge cases

What This Skill Does NOT Do

  • Build REST APIs (different paradigm)
  • Manage GraphQL subscriptions infrastructure (WebSocket setup)
  • Deploy or host the API

Before Implementation

SourceGather
CodebaseExisting data models, auth setup, database schema
ConversationEntities, relationships, operations needed
Skill ReferencesPatterns from references/
User GuidelinesNaming conventions, auth requirements

Required Clarifications

ClarificationOptionsWhy
Server libraryApollo, graphql-yoga, MercuriusAffects setup code
DatabasePostgreSQL, MongoDB, etc.Affects data layer
Auth methodJWT, sessions, API keysAffects context setup
Pagination styleCursor (Relay) vs OffsetAffects schema design

Build Workflow

1. Schema Design → 2. Resolvers → 3. Data Layer → 4. Auth → 5. Validation

1. Schema Design

Design schema-first. See references/schema-patterns.md.

Key decisions:

  • Identify entities and relationships
  • Define queries (read) and mutations (write)
  • Use input types for mutation arguments
  • Add pagination to list queries

2. Resolvers

Implement resolvers for each field. See references/resolver-patterns.md.

Key patterns:

  • Use DataLoader for N+1 prevention
  • Return promises, let GraphQL handle async
  • Throw errors with proper codes

3. Data Layer

Connect to database via ORM or query builder.

Decision: Use Prisma for type-safety, raw SQL for performance-critical.

4. Authentication

Add auth to context. See references/security.md.

Request → Extract token → Verify → Add user to context → Resolver checks

5. Validation

  • Query depth limiting
  • Rate limiting
  • Input validation in mutations

Output Specification

ArtifactContents
schema.graphqlComplete SDL with types, queries, mutations
resolvers/Resolver files organized by type
dataloaders/DataLoader instances for each entity
context.jsContext setup with auth
server.jsServer initialization

Pre-Delivery Checklist

  • Schema follows naming conventions (PascalCase types, camelCase fields)
  • All list queries have pagination
  • DataLoader used for relationships
  • Auth checked in sensitive resolvers
  • Input types used for mutations
  • Errors use proper GraphQL error format

Reference Files

FileUse When
references/schema-patterns.mdDesigning types, queries, mutations
references/resolver-patterns.mdImplementing resolvers, DataLoader
references/security.mdAuth, rate limiting, depth limiting
references/anti-patterns.mdAvoiding common mistakes

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です