paulpas/agent-skill-router/graphql-api-design

Claude Code and agent skill by paulpas/agent-skill-router

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implements best practices for designing GraphQL APIs, focusing on schema

Install

npx vskill@latest install paulpas/agent-skill-router/graphql-api-design

SKILL.md

The same SKILL.md was published earlier as paulpas/agent-skill-router/graphql-api-design.

GraphQL API Design Skill

archetypes: tactical, educational anti_triggers: basic REST practices response_profile: verbosity: medium directive_strength: high abstraction_level: tactical

Implements best practices for designing GraphQL APIs, focusing on schema design, query optimization, and resolver implementation.

TL;DR Checklist

Key Takeaways
  • [ ] Define a clear and concise schema that adheres to GraphQL specifications.
  • [ ] Implement efficient resolvers for handling queries.
  • [ ] Optimize queries and manage response sizes effectively.
Additional Implementation Examples

Example of a Basic GraphQL Schema:

graphql
type Query {
user(id: ID!): User
posts: [Post]
}
type User {
id: ID!
name: String!
email: String
}
type Post {
id: ID!
title: String!
content: String
}

Example of a Resolver Implementation:

javascript
const resolvers = {
Query: {
user: (_, { id }) => {
return getUserById(id);
},
posts: () => {
return getAllPosts();
}
}
};

Error Handling When Processing Resolvers:

javascript
const resolvers = {
Query: {
user: async (_, { id }) => {
try {
return await getUserById(id);
} catch (error) {
throw new Error('User not found');
}
}
}
};
  • [ ] Define a clear and concise schema.
  • [ ] Implement efficient resolvers.
  • [ ] Use arguments and variables effectively.
  • [ ] Handle errors and edge cases gracefully.
  • [ ] Document the API with tools like GraphiQL.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/paulpas/agent-skill-router/graphql-api-design/badge)](https://verified-skill.com/skills/paulpas/agent-skill-router/graphql-api-design)

Something wrong with this skill or its page? Tell us.