openclaw-skills/graphql-expert/SKILL.md
用于 GraphQL API 设计、查询优化、Schema 管理和安全最佳实践。仓库整理版,吸收社区高频最佳实践。
npx skillsauth add seaworld008/commonly-used-high-value-skills graphql-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
OFFSET 性能低下。edges, node, pageInfo 结构。推荐用于大数据量和无限滚动场景,具有卓越的数据库查询性能。@auth 指令在 Schema 层面直接声明访问控制。type User {
id: ID!
username: String!
posts(first: Int, after: String): PostConnection! @auth(role: "USER")
}
type Query {
me: User
searchPosts(keyword: String!): [Post]
}
type Mutation {
createPost(content: String!): Post
}
const userLoader = new DataLoader(keys => myDb.batchGetUsers(keys));
const resolvers = {
Post: {
author: (parent, args, context) => {
// 解决 N+1 问题的关键:使用 loader
return userLoader.load(parent.authorId);
}
}
};
query GetMyProfile {
me {
id
username
posts(first: 10) {
edges {
node {
title
author {
id
}
}
}
}
}
}
注:本技能参考 Apollo GraphQL 和 GraphQL Foundation 官方推荐实践编写。
testing
Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.
tools
用于 Next.js App Router 模式开发,包含 RSC、Server Actions 和路由最佳实践。来源:skills.sh 10.2K installs。
tools
Deploy web projects to Netlify using the Netlify CLI (`npx netlify`). Use when the user asks to deploy, host, publish, or link a site/repo on Netlify, including preview and production deploys.
tools
Guides and best practices for working with Neon Serverless Postgres. Covers setup, connection methods, branching, autoscaling, scale-to-zero, read replicas, connection pooling, Neon Auth, and the Neon CLI, MCP server, REST API, TypeScript SDK, and Python SDK. Use when users ask about "Neon setup", "connect to Neon", "Neon project", "DATABASE_URL", "serverless Postgres", "Neon CLI", "neonctl", "Neon MCP", "Neon Auth", "@neondatabase/serverless", "@neondatabase/neon-js", "scale to zero", "Neon autoscaling", "Neon read replica", or "Neon connection pooling".