openclaw-skills/graphql-expert/SKILL.md
Use when designing GraphQL APIs, reviewing schemas and resolvers, optimizing queries, managing federation, or checking GraphQL security and performance best practices.
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 官方推荐实践编写。
development
Enumerating failure modes via pre-mortem analysis. Systematically identifies failure scenarios for plans, designs, and features, scoring them with RPN/AP. Does not write code.
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.
development
Converting document formats (Markdown/Word/Excel/PDF/HTML). Converts specs from Scribe and reports from Harvest into distributable formats; generates reusable conversion scripts. Use when converting documents, building accessibility-compliant PDFs, or creating Pandoc/LibreOffice pipelines.
testing
Curating cross-agent knowledge and guarding institutional memory. Extracts patterns from agent journals into METAPATTERNS.md, detects knowledge decay, propagates best practices, prevents organizational forgetting. Use when consolidating cross-agent insights, curating memory, or auditing knowledge decay.